@harold@mastodon.gamedev.place
2026-03-10 10:10 UTC
Ever wanted to invert a permutation using only pshufb?
Yeah.
The worst thing is it's not even *that* bad
Replies (2)
-
@harold@mastodon.gamedev.place 2026-03-10 10:57
Addition chain can save a handful of pshufbs .. why am I optimizing this
-
@bal4e@tech.lgbt 2026-03-10 10:24
@harold I haven't taken too close a look yet, but I'm getting strong "modular inversion via Fermat's Little Theorem" vibes.