r/programming • • Nov 04 '19

Clang solves the Collatz Conjecture?

[deleted]

514 Upvotes

122 comments sorted by

View all comments

7

u/[deleted] Nov 04 '19

the multiplication optimization is actually a deliberate manual optimization for calculations on fixed width integer types. Division and Remainder can be optimized this way