3 ms·
I didn’t even know about __builtin_clz(0) being undefined and I use it regularly (for code challenge BS mostly). That’s really painful. It looks like it’s some
by davemp 9y ago
I didn’t even know about __builtin_clz(0) being undefined and I use it regularly (for code challenge BS mostly). That’s really painful.
It looks like it’s something to do with log(0) being undefined and hardware vendors just couldn’t agree on wether to set a flag or just count the number of leading zeros.