Skip to content

Commit bb8cabe

Browse files
committed
Move the definition of BC_LITTLE_ENDIAN to adapter.h.
1 parent b60cf3b commit bb8cabe

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ext/bcmath/libbcmath/src/adapter.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,10 @@ typedef zend_long bc_long;
7474
#define BC_BYTES_SWAP64(x) ZEND_BYTES_SWAP64(x)
7575
#define BC_BYTES_SWAP32(x) ZEND_BYTES_SWAP32(x)
7676

77+
#ifdef WORDS_BIGENDIAN
78+
# define BC_LITTLE_ENDIAN 0
79+
#else
80+
# define BC_LITTLE_ENDIAN 1
81+
#endif
82+
7783
#endif

ext/bcmath/libbcmath/src/private.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,6 @@
5858
# define BC_VECTOR_BOUNDARY_NUM (BC_VECTOR) 10000
5959
#endif
6060

61-
#ifdef WORDS_BIGENDIAN
62-
# define BC_LITTLE_ENDIAN 0
63-
#else
64-
# define BC_LITTLE_ENDIAN 1
65-
#endif
66-
6761
/* 64-bytes for 64-bit */
6862
#define BC_STACK_VECTOR_SIZE 8
6963

0 commit comments

Comments
 (0)