3 ms·
See also bitfields, which make the compiler generate the shifting and masking code for you: https://en.wikipedia.org/wiki/Bit_field https://en.wikipedia.org/wi
by pjscott 10y ago
See also bitfields, which make the compiler generate the shifting and masking code for you:
https://en.wikipedia.org/wiki/Bit_field https://en.wikipedia.org/wiki/Bit_field
- davidw 10y agoErlang also has pretty nice syntax for handling bits & bytes. http://erlang.org/doc/programming_examples/bit_syntax.html http://erlang.org/doc/programming_examples/bit_syntax.html
- pjscott 10y agoWhoa, that's some practical syntax. Suddenly I'm filled with envy that none of the C-family languages have that.