News for hackers. Stuff that matters.
Re:EABitTricks.h by anonymoushn on Tuesday December 20, 2022 @02:54PM (#34071536)
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...
Re:EABitTricks.h by danbruc on Wednesday December 21, 2022 @05:50AM (#34079017)
Fortunately my encounters with C and C++ have been rare and brief.