Skip to content

Commit 7a3516c

Browse files
authored
zend_alloc trailing 1 calculation helper ZEND_ATTRIBUTE_CONST addition. (#13874)
1 parent e5f4cdd commit 7a3516c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_alloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ static void *zend_mm_mmap(size_t size)
541541
/***********/
542542

543543
/* number of trailing set (1) bits */
544-
static zend_always_inline int zend_mm_bitset_nts(zend_mm_bitset bitset)
544+
ZEND_ATTRIBUTE_CONST static zend_always_inline int zend_mm_bitset_nts(zend_mm_bitset bitset)
545545
{
546546
#if (defined(__GNUC__) || __has_builtin(__builtin_ctzl)) && SIZEOF_ZEND_LONG == SIZEOF_LONG && defined(PHP_HAVE_BUILTIN_CTZL)
547547
return __builtin_ctzl(~bitset);

0 commit comments

Comments
 (0)