-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
intersonnect/stream: simplify Converter (now only works on raw bits) …
…and add StrideConverter to handle first-level user fields
1 parent
9f74894
commit df3a45b
Showing
2 changed files
with
93 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df3a45b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I meant is that the
Converter
should only be able to operate on layouts that are of the form[("data", nbits)]
. It could create its endpoints itself, and take only the bit sizes (integers) as parameter.df3a45b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This way you do not have to call
raw_bits
anywhere in the converter, and the addition of thechunks
fields is easier.df3a45b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok that's fine. I just did the changes and will test/commit it tomorrow.