Timeline for Bit manipulation tool set
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 10, 2020 at 13:24 | history | edited | CommunityBot |
Commonmark migration
|
|
| Feb 1, 2016 at 3:43 | comment | added | user1118321 |
Ah, sorry about that. Yeah, I forgot about constexpr. Good point. Glad it helped at least a little!
|
|
| Feb 1, 2016 at 3:29 | comment | added | Lingxi |
Thanks for the detailed review. It does help! 1) I made all functions constexpr. As such, it's unnecessary to further const-qualify the parameters. 2) The head family is mainly a convenient shorthand to save you from typing num_bits() - 1 or head_bit_idx(). I guess I will just keep them along. 3) After a second thought, head IS a bad name. It doesn't following any existing practice. I renamed it to MSB which is widely known as a shorthand for most significant bit. 4) As to bit stream, I think std::bitset or std::vector<bool> will do it :-)
|
|
| Jan 31, 2016 at 16:33 | history | answered | user1118321 | CC BY-SA 3.0 |