Skip to content

Commit

Permalink
remove ulong for now
Browse files Browse the repository at this point in the history
  • Loading branch information
colesbury committed Aug 22, 2023
1 parent abf6b92 commit 19c1306
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 94 deletions.
12 changes: 0 additions & 12 deletions Include/pyatomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,6 @@ _Py_atomic_load_uintptr(const volatile uintptr_t *address);
static inline unsigned int
_Py_atomic_load_uint(const volatile unsigned int *address);

static inline unsigned long
_Py_atomic_load_ulong(const volatile unsigned long *address);

static inline Py_ssize_t
_Py_atomic_load_ssize(const volatile Py_ssize_t *address);

Expand Down Expand Up @@ -241,9 +238,6 @@ _Py_atomic_load_uintptr_relaxed(const volatile uintptr_t *address);
static inline unsigned int
_Py_atomic_load_uint_relaxed(const volatile unsigned int *address);

static inline unsigned long
_Py_atomic_load_ulong_relaxed(const volatile unsigned long *address);

static inline Py_ssize_t
_Py_atomic_load_ssize_relaxed(const volatile Py_ssize_t *address);

Expand Down Expand Up @@ -287,9 +281,6 @@ _Py_atomic_store_uintptr(volatile uintptr_t *address, uintptr_t value);
static inline void
_Py_atomic_store_uint(volatile unsigned int *address, unsigned int value);

static inline void
_Py_atomic_store_ulong(volatile unsigned long *address, unsigned long value);

static inline void
_Py_atomic_store_ptr(volatile void *address, void *value);

Expand Down Expand Up @@ -333,9 +324,6 @@ _Py_atomic_store_uintptr_relaxed(volatile uintptr_t *address, uintptr_t value);
static inline void
_Py_atomic_store_uint_relaxed(volatile unsigned int *address, unsigned int value);

static inline void
_Py_atomic_store_ulong_relaxed(volatile unsigned long *address, unsigned long value);

static inline void
_Py_atomic_store_ptr_relaxed(volatile void *address, void *value);

Expand Down
24 changes: 0 additions & 24 deletions Include/pyatomic_gcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -388,12 +388,6 @@ _Py_atomic_load_uint(const volatile unsigned int *address)
return __atomic_load_n(address, __ATOMIC_SEQ_CST);
}

static inline unsigned long
_Py_atomic_load_ulong(const volatile unsigned long *address)
{
return __atomic_load_n(address, __ATOMIC_SEQ_CST);
}

static inline Py_ssize_t
_Py_atomic_load_ssize(const volatile Py_ssize_t *address)
{
Expand Down Expand Up @@ -479,12 +473,6 @@ _Py_atomic_load_uint_relaxed(const volatile unsigned int *address)
return __atomic_load_n(address, __ATOMIC_RELAXED);
}

static inline unsigned long
_Py_atomic_load_ulong_relaxed(const volatile unsigned long *address)
{
return __atomic_load_n(address, __ATOMIC_RELAXED);
}

static inline Py_ssize_t
_Py_atomic_load_ssize_relaxed(const volatile Py_ssize_t *address)
{
Expand Down Expand Up @@ -569,12 +557,6 @@ _Py_atomic_store_uint(volatile unsigned int *address, unsigned int value)
__atomic_store_n(address, value, __ATOMIC_SEQ_CST);
}

static inline void
_Py_atomic_store_ulong(volatile unsigned long *address, unsigned long value)
{
__atomic_store_n(address, value, __ATOMIC_SEQ_CST);
}

static inline void
_Py_atomic_store_ptr(volatile void *address, void *value)
{
Expand Down Expand Up @@ -659,12 +641,6 @@ _Py_atomic_store_uint_relaxed(volatile unsigned int *address, unsigned int value
__atomic_store_n(address, value, __ATOMIC_RELAXED);
}

static inline void
_Py_atomic_store_ulong_relaxed(volatile unsigned long *address, unsigned long value)
{
__atomic_store_n(address, value, __ATOMIC_RELAXED);
}

static inline void
_Py_atomic_store_ptr_relaxed(volatile void *address, void *value)
{
Expand Down
30 changes: 0 additions & 30 deletions Include/pyatomic_msc.h
Original file line number Diff line number Diff line change
Expand Up @@ -527,18 +527,6 @@ _Py_atomic_load_uint(const volatile unsigned int *address)
#endif
}

static inline unsigned long
_Py_atomic_load_ulong(const volatile unsigned long *address)
{
#if defined(_M_X64) || defined(_M_IX86)
return *address;
#elif defined(_M_ARM64)
return __ldar32((unsigned __int32 volatile*)address);
#else
#error no implementation of _Py_atomic_load_ulong
#endif
}

static inline Py_ssize_t
_Py_atomic_load_ssize(const volatile Py_ssize_t* address)
{
Expand Down Expand Up @@ -635,12 +623,6 @@ _Py_atomic_load_uint_relaxed(const volatile unsigned int *address)
return *address;
}

static inline unsigned long
_Py_atomic_load_ulong_relaxed(const volatile unsigned long *address)
{
return *address;
}

static inline Py_ssize_t
_Py_atomic_load_ssize_relaxed(const volatile Py_ssize_t* address)
{
Expand Down Expand Up @@ -727,12 +709,6 @@ _Py_atomic_store_uint(volatile unsigned int *address, unsigned int value)
_InterlockedExchange((volatile long*)address, (long)value);
}

static inline void
_Py_atomic_store_ulong(volatile unsigned long *address, unsigned long value)
{
_InterlockedExchange((volatile long*)address, (long)value);
}

static inline void
_Py_atomic_store_ptr(volatile void *address, void *value)
{
Expand Down Expand Up @@ -822,12 +798,6 @@ _Py_atomic_store_uint_relaxed(volatile unsigned int *address, unsigned int value
*address = value;
}

static inline void
_Py_atomic_store_ulong_relaxed(volatile unsigned long *address, unsigned long value)
{
*address = value;
}

static inline void
_Py_atomic_store_ptr_relaxed(volatile void* address, void* value)
{
Expand Down
28 changes: 0 additions & 28 deletions Include/pyatomic_std.h
Original file line number Diff line number Diff line change
Expand Up @@ -461,13 +461,6 @@ _Py_atomic_load_uint(const volatile unsigned int *address)
return atomic_load((const volatile _Atomic(unsigned int)*)address);
}

static inline unsigned long
_Py_atomic_load_ulong(const volatile unsigned long *address)
{
_Py_USING_STD
return atomic_load((const volatile _Atomic(unsigned long)*)address);
}

static inline Py_ssize_t
_Py_atomic_load_ssize(const volatile Py_ssize_t *address)
{
Expand Down Expand Up @@ -567,13 +560,6 @@ _Py_atomic_load_uint_relaxed(const volatile unsigned int *address)
return atomic_load_explicit((const volatile _Atomic(unsigned int)*)address, memory_order_relaxed);
}

static inline unsigned long
_Py_atomic_load_ulong_relaxed(const volatile unsigned long *address)
{
_Py_USING_STD
return atomic_load_explicit((const volatile _Atomic(unsigned long)*)address, memory_order_relaxed);
}

static inline Py_ssize_t
_Py_atomic_load_ssize_relaxed(const volatile Py_ssize_t *address)
{
Expand Down Expand Up @@ -672,13 +658,6 @@ _Py_atomic_store_uint(volatile unsigned int *address, unsigned int value)
atomic_store((volatile _Atomic(unsigned int)*)address, value);
}

static inline void
_Py_atomic_store_ulong(volatile unsigned long *address, unsigned long value)
{
_Py_USING_STD
atomic_store((volatile _Atomic(unsigned long)*)address, value);
}

static inline void
_Py_atomic_store_ptr(volatile void *address, void *value)
{
Expand Down Expand Up @@ -777,13 +756,6 @@ _Py_atomic_store_uint_relaxed(volatile unsigned int *address, unsigned int value
atomic_store_explicit((volatile _Atomic(unsigned int)*)address, value, memory_order_relaxed);
}

static inline void
_Py_atomic_store_ulong_relaxed(volatile unsigned long *address, unsigned long value)
{
_Py_USING_STD
atomic_store_explicit((volatile _Atomic(unsigned long)*)address, value, memory_order_relaxed);
}

static inline void
_Py_atomic_store_ptr_relaxed(volatile void *address, void *value)
{
Expand Down

0 comments on commit 19c1306

Please sign in to comment.