Skip to content

Commit

Permalink
arm64 does not have 128-bit integers, I suppose
Browse files Browse the repository at this point in the history
  • Loading branch information
dpdani committed Aug 22, 2024
1 parent 50a7bb6 commit 416e0bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Include/cpython/pyatomic_msc.h
Original file line number Diff line number Diff line change
Expand Up @@ -1122,8 +1122,8 @@ _Py_atomic_store_llong_release(long long *obj, long long value)
#if defined(_M_X64) || defined(_M_IX86)
*(long long volatile *)obj = value;
#elif defined(_M_ARM64)
_Py_atomic_ASSERT_ARG_TYPE(unsigned __int128);
__stlr128((unsigned __int128 volatile *)obj, (unsigned __int128)value);
_Py_atomic_ASSERT_ARG_TYPE(unsigned __int64);
__stlr64((unsigned __int64 volatile *)obj, (unsigned __int64)value);
#else
# error "no implementation of _Py_atomic_store_llong_release"
#endif
Expand All @@ -1135,8 +1135,8 @@ _Py_atomic_store_ullong_release(unsigned long long *obj, unsigned long long valu
#if defined(_M_X64) || defined(_M_IX86)
*(unsigned long long volatile *)obj = value;
#elif defined(_M_ARM64)
_Py_atomic_ASSERT_ARG_TYPE(unsigned __int128);
__stlr128((unsigned __int128 volatile *)obj, (unsigned __int128)value);
_Py_atomic_ASSERT_ARG_TYPE(__int64);
__stlr64((unsigned __int64 volatile *)obj, (unsigned __int64)value);
#else
# error "no implementation of _Py_atomic_store_ullong_release"
#endif
Expand Down

0 comments on commit 416e0bb

Please sign in to comment.