News for hackers. Stuff that matters.
Re:Low Level Bit Hacks You Absolutely Must Know by throwaway2016a on Friday May 11, 2018 @08:42AM (#17046864)
This is a question I give people who were already hired out of curiosity and I explicitly say not to use modulus. I ask a similar question in interviews but don't exclude modulus and most answer using modulus.
Re:Low Level Bit Hacks You Absolutely Must Know by naasking on Friday May 11, 2018 @09:18AM (#17047075)
Well, you need to use modulus if you want to be 100% portable.