Skip to content

Commit 7c7265e

Browse files
committed
replaced PHP_HAVE_BUILTIN_CTZL
1 parent d92b1d9 commit 7c7265e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ext/bcmath/libbcmath/src/adapter.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,8 @@ typedef zend_long bc_long;
6565

6666
#define BC_EMPTY_SWITCH_DEFAULT_CASE() EMPTY_SWITCH_DEFAULT_CASE()
6767

68+
#ifdef PHP_HAVE_BUILTIN_CTZL
69+
# define BC_HAVE_BUILTIN_CTZL
70+
#endif
71+
6872
#endif

ext/bcmath/libbcmath/src/str2num.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static inline const char *bc_count_digits(const char *str, const char *end)
5656
int mask = bc_simd_movemask_8x16(bytes);
5757
if (mask != 0xffff) {
5858
/* At least one of the bytes is not within range. Move to the first offending byte. */
59-
#ifdef PHP_HAVE_BUILTIN_CTZL
59+
#ifdef BC_HAVE_BUILTIN_CTZL
6060
return str + __builtin_ctz(~mask);
6161
#else
6262
break;

0 commit comments

Comments
 (0)