r/ProgrammerAnimemes • • Feb 20 '20

Duff's Device

Post image
933 Upvotes

21 comments sorted by

View all comments

Show parent comment

1

u/Da_rizzlah Aug 07 '26

It could be to hint to the compiler to generate a jump table for the function. A jump table is a list of addresses to jump to with numbers. It compresses a large number of if(){goto}s into a goto table[case].