Skip to content

Commit

Permalink
sync bela: Fix BLAKE3 build
Browse files Browse the repository at this point in the history
  • Loading branch information
fcharlie committed Dec 31, 2023
1 parent 20cab65 commit 8616c0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion vendor/bela.lock
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://github.com/fcharlie/bela/tree/7ea43482892f03eac1850fd4e6bcf9cd572b4ecf
https://github.com/fcharlie/bela/tree/290e8f60a43031ca948e11d618606e8651b87be8
6 changes: 3 additions & 3 deletions vendor/bela/src/belahash/blake3/blake3_dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
#define ATOMIC_LOAD(x) x
#define ATOMIC_STORE(x, y) x = y
#elif defined(_MSC_VER)
#define ATOMIC_INT LONG
#define ATOMIC_LOAD(x) InterlockedOr(&x, 0)
#define ATOMIC_STORE(x, y) InterlockedExchange(&x, y)
#define ATOMIC_INT long
#define ATOMIC_LOAD(x) _InterlockedOr(&x, 0)
#define ATOMIC_STORE(x, y) _InterlockedExchange(&x, y)
#else
#define ATOMIC_INT int
#define ATOMIC_LOAD(x) x
Expand Down

0 comments on commit 8616c0e

Please sign in to comment.