Skip to content

Commit 9322cf5

Browse files
committed
Remove Py_ALWAYS_INLINE
1 parent 39bfe1f commit 9322cf5

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/_xxhash.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,10 @@
125125
#define XXH128_DIGESTSIZE 16
126126
#define XXH128_BLOCKSIZE 64
127127

128-
#ifndef Py_ALWAYS_INLINE
129-
# define Py_ALWAYS_INLINE
130-
#endif
131128

132129
/* Hex lookup table for hexdigest(). */
133130
/* Get a buffer from an object. Rejects str with hashlib-compatible error. */
134-
static inline Py_ALWAYS_INLINE int
131+
static inline int
135132
_get_buffer_or_str(PyObject *obj, Py_buffer *buf)
136133
{
137134
if (obj == Py_None) {
@@ -651,7 +648,7 @@ static void PYXXH32_dealloc(PYXXH32Object *self)
651648
* When XXHASH_WITH_LOCK is not defined: no locking, but still release GIL
652649
* for large data to avoid blocking other threads. */
653650
#define XXHASH_DO_UPDATE(type, update_fn) \
654-
static inline Py_ALWAYS_INLINE void \
651+
static inline void \
655652
PY##type##_do_update(PY##type##Object *self, Py_buffer *buf) \
656653
{ \
657654
XXHASH_LOCK_MAYBE_INIT(self, buf->len); \

0 commit comments

Comments
 (0)