1
0
mirror of https://github.com/janet-lang/janet synced 2025-12-14 04:28:06 +00:00

Get rid of req for 64 bit atomics

This commit is contained in:
Calvin Rose
2023-10-01 10:27:51 -05:00
parent 7cdd7cf6eb
commit af7ed4322e
4 changed files with 3 additions and 23 deletions

View File

@@ -637,15 +637,11 @@ struct JanetListenerState {
* signals. Define them here */
#ifdef JANET_WINDOWS
typedef long JanetAtomicInt;
typedef long long JanetAtomicInt64;
#else
typedef int32_t JanetAtomicInt;
typedef int64_t JanetAtomicInt64;
#endif
JANET_API JanetAtomicInt janet_atomic_inc(JanetAtomicInt volatile *x);
JANET_API JanetAtomicInt janet_atomic_dec(JanetAtomicInt volatile *x);
JANET_API JanetAtomicInt64 janet_atomic64_inc(JanetAtomicInt64 volatile *x);
JANET_API JanetAtomicInt64 janet_atomic64_dec(JanetAtomicInt64 volatile *x);
/* We provide three possible implementations of Janets. The preferred
* nanboxing approach, for 32 or 64 bits, and the standard C version. Code in the rest of the