A faster way to compute signed 64-bit floor division by constants
Summary
A technical blog post exploring fast floor division for signed 64-bit integers with constants known at compile time. It surveys standard division, introduces fast floor-division techniques including sign-selected multipliers and a novel approach, and compares performance across ARM and x86 with benchmarks. The article also discusses correctness, edge cases, compiler behavior, and guidance on when to use each method.