Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Add 128 to a signed char and the compiler is free to assume it is zero/false

To be honest, I hope compilers don't do such things. I would vastly prefer to see it run Tower of Hanoi simulation in Emacs at this point.

But evading bound-checking of 8bit math done in 32bit registers is totally reasonable (by the standard of usual UB optimizations), thanks.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: