Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dpdani committed Feb 1, 2025
1 parent 86db113 commit 5ffd765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cereggii/atomic_int/atomic_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ inline int
AtomicInt64_SubOrSetOverflow(int64_t current, int64_t to_sub, int64_t *result)
{
#ifdef __aarch64__
int overflowed = __builtin_saddll_overflow(current, to_sub, result);
int overflowed = __builtin_ssubll_overflow(current, to_sub, result);
#else
int overflowed = __builtin_ssubl_overflow(current, to_sub, result);
#endif
Expand All @@ -83,7 +83,7 @@ inline int
AtomicInt64_MulOrSetOverflow(int64_t current, int64_t to_mul, int64_t *result)
{
#ifdef __aarch64__
int overflowed = __builtin_saddll_overflow(current, to_mul, result);
int overflowed = __builtin_smulll_overflow(current, to_mul, result);
#else
int overflowed = __builtin_smull_overflow(current, to_mul, result);
#endif
Expand Down

0 comments on commit 5ffd765

Please sign in to comment.