aboutsummaryrefslogtreecommitdiff
path: root/onion_base32.c
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-05-21 22:03:38 +1200
committerDavid Phillips <david@sighup.nz>2017-05-21 22:03:38 +1200
commit790d08ae73c7c72342265404dd897e3c618253d7 (patch)
treedc7d433ae4cbfe91dedcc413963888728e4e7086 /onion_base32.c
parentbc232e35d872b49865c1551fa5b0857da86493cd (diff)
downloadsand-leek-790d08ae73c7c72342265404dd897e3c618253d7.tar.xz
AVX->SSSE3
Diffstat (limited to 'onion_base32.c')
-rw-r--r--onion_base32.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/onion_base32.c b/onion_base32.c
index d70facf..e8f8df7 100644
--- a/onion_base32.c
+++ b/onion_base32.c
@@ -35,10 +35,10 @@ onion_base32(char output[16], unsigned char sum[20]) {
}
}
-#ifdef AVX_ONION_BASE32
-#include <immintrin.h>
+#ifdef SSSE3_ONION_BASE32
+#include <tmmintrin.h>
-/* A slightly-parallel base32 algorithm using AVX
+/* A slightly-parallel base32 algorithm using SSSE3
* Note: This is not a general base32 algorithm; it outputs only the
* first 16 base32 symbols of the input buffer, using only the first
* 20 bytes of that buffer.
@@ -99,4 +99,4 @@ onion_base32_avx(char output[16], unsigned char sum[20]) {
_mm_storeu_si128((__m128i*)output, l|n);
}
-#endif /* ifdef AVX_ONION_BASE32 */
+#endif /* ifdef SSSE3_ONION_BASE32 */