mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
hf mf hardnested - added missing init
This commit is contained in:
parent
134ddf6313
commit
2305411a1d
1 changed files with 4 additions and 3 deletions
|
@ -143,7 +143,7 @@ bitslice_test_nonces_t bitslice_test_nonces_NOSIMD;
|
||||||
bitslice_test_nonces_t bitslice_test_nonces_dispatch;
|
bitslice_test_nonces_t bitslice_test_nonces_dispatch;
|
||||||
|
|
||||||
#if defined (_WIN32)
|
#if defined (_WIN32)
|
||||||
#define malloc_bitslice(x) __builtin_assume_aligned(_aligned_malloc((x), MAX_BITSLICES/8), MAX_BITSLICES/8)
|
#define malloc_bitslice(x) __builtin_assume_aligned(_aligned_malloc((x), MAX_BITSLICES / 8), MAX_BITSLICES / 8)
|
||||||
#define free_bitslice(x) _aligned_free(x)
|
#define free_bitslice(x) _aligned_free(x)
|
||||||
#elif defined (__APPLE__)
|
#elif defined (__APPLE__)
|
||||||
static void *malloc_bitslice(size_t x) {
|
static void *malloc_bitslice(size_t x) {
|
||||||
|
@ -156,7 +156,7 @@ static void *malloc_bitslice(size_t x) {
|
||||||
}
|
}
|
||||||
#define free_bitslice(x) free(x)
|
#define free_bitslice(x) free(x)
|
||||||
#else
|
#else
|
||||||
#define malloc_bitslice(x) memalign(MAX_BITSLICES/8, (x))
|
#define malloc_bitslice(x) memalign(MAX_BITSLICES / 8, (x))
|
||||||
#define free_bitslice(x) free(x)
|
#define free_bitslice(x) free(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -559,6 +559,7 @@ void SetSIMDInstr(SIMDExecInstr instr) {
|
||||||
static SIMDExecInstr GetSIMDInstr(void) {
|
static SIMDExecInstr GetSIMDInstr(void) {
|
||||||
SIMDExecInstr instr;
|
SIMDExecInstr instr;
|
||||||
|
|
||||||
|
__builtin_cpu_init();
|
||||||
#if defined(COMPILER_HAS_SIMD_AVX512)
|
#if defined(COMPILER_HAS_SIMD_AVX512)
|
||||||
if (__builtin_cpu_supports("avx512f"))
|
if (__builtin_cpu_supports("avx512f"))
|
||||||
instr = SIMD_AVX512;
|
instr = SIMD_AVX512;
|
||||||
|
@ -575,7 +576,7 @@ static SIMDExecInstr GetSIMDInstr(void) {
|
||||||
instr = SIMD_MMX;
|
instr = SIMD_MMX;
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
instr = SIMD_NONE;
|
instr = SIMD_NONE;
|
||||||
|
|
||||||
return instr;
|
return instr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue