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

pbsd investigated above[1] and found that the problem was the use of signed chars.

[1]: https://news.ycombinator.com/item?id=7737582



Argh, this is annoying indeed. And yes, compiler is correct not to autovectorize in this case then.


Why?


Different integer wrapping semantics I assume.


I wonder, though, because signed overflow is already undefined in C. The compiler could do anything there and call it correct.




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

Search: