|
@@ -167,12 +167,12 @@ static struct xor_block_template xor_block_avx = {
|
|
|
|
|
|
#define AVX_XOR_SPEED \
|
|
#define AVX_XOR_SPEED \
|
|
do { \
|
|
do { \
|
|
- if (cpu_has_avx) \
|
|
|
|
|
|
+ if (cpu_has_avx && cpu_has_osxsave) \
|
|
xor_speed(&xor_block_avx); \
|
|
xor_speed(&xor_block_avx); \
|
|
} while (0)
|
|
} while (0)
|
|
|
|
|
|
#define AVX_SELECT(FASTEST) \
|
|
#define AVX_SELECT(FASTEST) \
|
|
- (cpu_has_avx ? &xor_block_avx : FASTEST)
|
|
|
|
|
|
+ (cpu_has_avx && cpu_has_osxsave ? &xor_block_avx : FASTEST)
|
|
|
|
|
|
#else
|
|
#else
|
|
|
|
|