diff options
| author | TheVice <[email protected]> | 2020-01-27 16:24:14 +0200 |
|---|---|---|
| committer | Jack O'Connor <[email protected]> | 2020-01-30 16:17:46 -0500 |
| commit | 58926046ca31df80b8806e64d9edd13b8dd503dd (patch) | |
| tree | 051f8bb0574719e980cb7b460c9fc6ff12694482 /c/blake3_avx512.c | |
| parent | 3c098eecc1c5a19adbfc1968e055d4cfadf64f0f (diff) | |
[MSVC] added possible to compile at Microsoft Visual C compiler.
[main.c] removed including of unistd.h from c/main.c file.
[blake3_avx2.c|blake3_avx512.c|blake3_sse41.c] resolved compile error:
'C4146' - applying of unary minus operator to the unsigned value.
Diffstat (limited to 'c/blake3_avx512.c')
| -rw-r--r-- | c/blake3_avx512.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c/blake3_avx512.c b/c/blake3_avx512.c index 6477277..cbccb1b 100644 --- a/c/blake3_avx512.c +++ b/c/blake3_avx512.c @@ -1044,7 +1044,7 @@ INLINE void transpose_msg_vecs16(const uint8_t *const *inputs, INLINE void load_counters16(uint64_t counter, bool increment_counter, __m512i *out_lo, __m512i *out_hi) { - const __m512i mask = _mm512_set1_epi32(-(uint32_t)increment_counter); + const __m512i mask = _mm512_set1_epi32(-(int32_t)increment_counter); const __m512i add0 = _mm512_set_epi32(15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0); const __m512i add1 = _mm512_and_si512(mask, add0); __m512i l = _mm512_add_epi32(_mm512_set1_epi32(counter), add1); |
