Skip to content

How to handle edge cases when allocating bits for the bits output tag? #405

Answered by rbergen
louie-github asked this question in Q&A
Discussion options

You must be logged in to vote

We had a rather extensive discussion with Dave about this, a while back. What it boils down to is that his main requirement for marking an implementation as a 1-bit implementation is that meaningful "bit twiddling" is used. Reserving individual bits for even numbers but never using them is fine, having a small over-allocation of the applicable "bit-hosting type" (integer or otherwise) is fine.

Over-allocating by a factor of 8 is a bit excessive, so identifying that one is a great catch indeed.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@tjol
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by louie-github
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants