diff options
-rw-r--r-- | onion_base32.c | 8 | ||||
-rw-r--r-- | onion_base32.h | 2 | ||||
-rw-r--r-- | sand-leek.c | 6 |
3 files changed, 8 insertions, 8 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 */ diff --git a/onion_base32.h b/onion_base32.h index 8f88ebb..ae28943 100644 --- a/onion_base32.h +++ b/onion_base32.h @@ -1,6 +1,6 @@ int check_base32(char *); void onion_base32(char [16], unsigned char (*)); -#ifdef AVX_ONION_BASE32 +#ifdef SSSE3_ONION_BASE32 void onion_base32_avx(char [16], unsigned char (*)); #endif diff --git a/sand-leek.c b/sand-leek.c index 3a88a67..f0152c8 100644 --- a/sand-leek.c +++ b/sand-leek.c @@ -154,7 +154,7 @@ work(void *arg) { SHA1_Update(&working_sha_c, &e_big_endian, EXPONENT_SIZE_BYTES); SHA1_Final((unsigned char*)&sha, &working_sha_c); -#ifdef AVX_ONION_BASE32 +#ifdef SSSE3_ONION_BASE32 onion_base32_avx(onion, sha); #else onion_base32(onion, sha); @@ -255,8 +255,8 @@ monitor_progress(unsigned long volatile *khashes, int thread_count) { void show_version(void) { -#ifdef AVX_ONION_BASE32 -# define EXTENSIONS "AVX Base32 Algorithm" +#ifdef SSSE3_ONION_BASE32 +# define EXTENSIONS "SSSE3 Base32 Algorithm" #else # define EXTENSIONS "None" #endif |