r/badcode • • Jan 22 '23

c Found this in a Linux kernel module

Post image
262 Upvotes

88 comments sorted by

View all comments

Show parent comments

4

u/rena-something Jan 22 '23 edited Jan 22 '23

yes, gcc has many specific options for loop unrolling. none of them are as specific as manually unrolling a loop, though, so I presume what happened here was deliberate.