chiark / gitweb /
base/asm-common.h, *-x86ish-*.S: Centralize SSE shuffling constants.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 11 Aug 2016 08:15:12 +0000 (09:15 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 11 Aug 2016 08:15:12 +0000 (09:15 +0100)
commita13b573023a59dc1e2febef1142aa4b1d1af67b7
treec8b436f77cc9907bb41d3cc411f1d361d6cd5c4d
parent70bc6059902c30dcbd1cddbdb628e4bcbd9cc6f5
base/asm-common.h, *-x86ish-*.S: Centralize SSE shuffling constants.

Introduce a centrally defined `SHUF(D, C, B, A)' macro to make shuffling
constants for `pshufd' and friends, rather than defining inscrutable
`ROTL' etc. macros in each file.

There are lots of other shuffling instructions, which may need their own
magic macros, so this might prove to have been a bad name, but we'll
worry about that later.
base/asm-common.h
symm/chacha-x86ish-sse2.S
symm/rijndael-x86ish-aesni.S
symm/salsa20-x86ish-sse2.S