The power of two – fast division and modulo operations Posted by liamswayne on Thursday April 25, 2024 @12:56PM from the blog.teamleadnet.com dept. https://blog.teamleadnet.com/2012/07/faster-division-and-modulo-operation.html ( 1 comment | 2 points | on HN )
https://ridiculousfish.com/blog/posts/labor-of-division-epis... explains the math behind it.