4 ms·
Well, not written in assembly but uses x86 intrinsics: https://github.com/leni536/fast_hilbert_curve https://github.com/leni536/fast_hilbert_curve I'm pretty
by leni536 9y ago
Well, not written in assembly but uses x86 intrinsics:
https://github.com/leni536/fast_hilbert_curve https://github.com/leni536/fast_hilbert_curve
I'm pretty proud of it. It calculates the coordinates of the nth point on the hilbert curve. No loops, no branches. It uses the pext, pdep and popcount intrinsics creatively.
- keldaris 9y agoInteresting. Have you tried generalizing that for higher dimensions?