Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
anonymoushn
on Dec 20, 2022
|
parent
|
context
|
favorite
| on:
EABitTricks.h
You need two shifts in C++ because shifting a uint32_t by 32 is UB. Every actual computer probably gives you 0 if you shift 0 right by a too-large amount though...
danbruc
on Dec 21, 2022
[–]
Fortunately my encounters with C and C++ have been rare and brief.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: