Skip to content

Commit a7add80

Browse files
committed
Test nightly fix
1 parent b92395d commit a7add80

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

ext/bcmath/libbcmath/src/private.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,32 +43,32 @@
4343
/* Bytes swap */
4444
#if defined(_MSC_VER)
4545
# include <stdlib.h>
46-
# define BSWAP32(u) _byteswap_ulong(u)
47-
# define BSWAP64(u) _byteswap_uint64(u)
46+
# define BC_BSWAP32(u) _byteswap_ulong(u)
47+
# define BC_BSWAP64(u) _byteswap_uint64(u)
4848
#else
4949
# ifdef __has_builtin
5050
# if __has_builtin(__builtin_bswap32)
51-
# define BSWAP32(u) __builtin_bswap32(u)
51+
# define BC_BSWAP32(u) __builtin_bswap32(u)
5252
# endif // __has_builtin(__builtin_bswap32)
5353
# if __has_builtin(__builtin_bswap64)
54-
# define BSWAP64(u) __builtin_bswap64(u)
54+
# define BC_BSWAP64(u) __builtin_bswap64(u)
5555
# endif // __has_builtin(__builtin_bswap64)
5656
# elif defined(__GNUC__)
57-
# define BSWAP32(u) __builtin_bswap32(u)
58-
# define BSWAP64(u) __builtin_bswap64(u)
57+
# define BC_BSWAP32(u) __builtin_bswap32(u)
58+
# define BC_BSWAP64(u) __builtin_bswap64(u)
5959
# endif // __has_builtin
6060
#endif // defined(_MSC_VER)
61-
#ifndef BSWAP32
62-
inline uint32_t BSWAP32(uint32_t u)
61+
#ifndef BC_BSWAP32
62+
static inline uint32_t BC_BSWAP32(uint32_t u)
6363
{
6464
return (((u & 0xff000000) >> 24)
6565
| ((u & 0x00ff0000) >> 8)
6666
| ((u & 0x0000ff00) << 8)
6767
| ((u & 0x000000ff) << 24));
6868
}
6969
#endif
70-
#ifndef BSWAP64
71-
inline uint64_t BSWAP64(uint64_t u)
70+
#ifndef BC_BSWAP64
71+
static inline uint64_t BC_BSWAP64(uint64_t u)
7272
{
7373
return (((u & 0xff00000000000000ULL) >> 56)
7474
| ((u & 0x00ff000000000000ULL) >> 40)
@@ -82,10 +82,10 @@ inline uint64_t BSWAP64(uint64_t u)
8282
#endif
8383

8484
#if SIZEOF_SIZE_T >= 8
85-
#define BC_BSWAP(u) BSWAP64(u)
85+
#define BC_BSWAP(u) BC_BSWAP64(u)
8686
#define BC_UINT_T uint64_t
8787
#else
88-
#define BC_BSWAP(u) BSWAP32(u)
88+
#define BC_BSWAP(u) BC_BSWAP32(u)
8989
#define BC_UINT_T uint32_t
9090
#endif
9191

0 commit comments

Comments
 (0)