Hey HN, I recently built an experimental AVX2 128 bit fixed point math library, and failed to achieve significantly better results than compiler optimized scalar code. The main bottlenecks I faced are: 1. No native unsigned 64-bit comparisons and 128-bit registers, and a lot of instructions trying to emulate carry chains 2. Juggling lo and hi limbs across registers chokes the allocator, and modern compilers can optimize scalar loops without these bottlenecks Was curious if anyone has also attempted wide integer or fixed point math in AVX2, or used a AoS layout instead of an SoA layout. Thanks
Repository
arjavsharma91/v4q128
v4q128
arjavsharma91/v4q128
v4q128
A 4-lane AVX2 SIMD Q64.64 fixed-point arithmetic library for high-throughput 128-bit fixed-point math on x86_64. Archived after benchmarking showed manual vectorization overhead negated performance gains over compiler-optimized scalar code.
Visit project- First shared
- Nov 10, 2026
- HN activity
- 11
Show HN@arjavsharma91Nov 10, 2026
Show HN: I abandoned my AVX2 128-bit fixed-point library
Community