while (n–->42) { std::cout << n; }

Fibonacci Hashing: The Optimization that the World Forgot (or: a Better Alternative to Integer Modulo)

https://www.reddit.com/r/programming/comments/8rlr3a/fibonacci_hashing_the_optimization_that_the_world/e0sic25/