3 ms·
Slightly optimized code to get down to 32 asm instructions. https://godbolt.org/z/ccE3r1bjc https://godbolt.org/z/ccE3r1bjc
by ww520 2y ago
Slightly optimized code to get down to 32 asm instructions.
https://godbolt.org/z/ccE3r1bjc https://godbolt.org/z/ccE3r1bjc
- teo_zero 2y agoGodbolt shows 40 asm instructions, or am I misreading it?
- ww520 2y agoAhh ok. The above link used whatever the latest trunk of the zig compiler to generate code. Looks like the current trunk has regressed just now and produces more instructions. The link below uses the previous stable version and produces fewer instructions. https://godbolt.org/z/Ez4YGbdqn https://godbolt.org/z/Ez4YGbdqn