Benchmarking division and libdivide on Apple M1 and Intel AVX512
I bet there's more than one integer division unit per core.<p>When I've been micro-optimizing performance-critical code, integer division shows up as a hot spot regularly. I assume most developers don't think about the performance implications of coding up a / or % between two runtime values, preventing the compiler from doing any strength reduction. Apple must have seen this in their surely voluminous profiling of real-world applications.