Skip to content

Commit

Permalink
Fix bela
Browse files Browse the repository at this point in the history
  • Loading branch information
fcharlie committed Jul 29, 2023
1 parent ad7323a commit f2ab76d
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/60bd8d2fa51ed281b8d9f0fbbcc7af65ff920453
https://github.com/fcharlie/bela/tree/47836da3a358265302f6618180ae6c83aedfca10
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 f2ab76d

Please sign in to comment.