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

That's very likely. Clang 8.0 collapses the loop with any optimizer setting other than -O0.

But if you had to do it manually, loop unrolling and SIMD instructions (although not part of standard C) would be good bets and can probably get you an order of magnitude.



Clang 8.0?


Apple Clang version number is approximately the same as the Xcode version number, and not identical to the Clang release it's based on.


So what version of upstream Clang is Xcode 8.0 based on?




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: