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

why is this strange? -O0 is no optimization at all, so it isn't strange % yields an integer division right?

On -03 they compile to the same, both signed and unsigned.



For some reason gcc is still optimizing it though!




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

Search: