logoalt Hacker News

selcukatoday at 6:03 AM2 repliesview on HN

To be fair it is possible that the developer enabled a special "unroll all loops, no matter what" optimisation flag during compilation.

I agree it would be stupid for a compiler to even support such a flag, but those were the 1980s/90s.


Replies

ack_completetoday at 3:37 PM

Doesn't require any special flags, just hitting optimizer limits can do it with MSVC.

https://www.reddit.com/r/cpp/comments/1i36ahd/is_this_an_msv...

cyberaxtoday at 6:09 AM

Ahh... Good old funrollloops...

https://www.shlomifish.org/humour/by-others/funroll-loops/Ge...

show 1 reply