Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
slededit
on May 11, 2018
|
parent
|
context
|
favorite
| on:
Low Level Bit Hacks You Absolutely Must Know
What about C++ bitfields? Not a library but a language extension. A lot of code I used has migrated to that.
daemin
on May 14, 2018
[–]
Normal C++ bitfields? Sometimes you get that inside classes in the form of "bool x : 1; bool y : 1;" etc. But that's much harder to use as far as function parameters go, so old school bitmasks are used for that.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: