mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-08 21:00:19 +02:00
We already have this mask generated, and because sha instructions typically don't exist in a vacuum it is actually beneficial to cache the mask and use a single tbl instruction per shuffle. OpenSSL has 12 sha1 instructions in their hot loop as an example, so this would be a fairly good reduction in that loop. Sadly we don't have it in instcountci, instead having their sha256 hotloop instead (Which currently doesn't have sha256rnds2 optimized). Even in a vacuum this is technically 1 instruction savings for each instruction which is nice.