mirror of
https://github.com/php/php-src.git
synced 2025-01-25 21:23:45 +08:00
- Optimize slightly for common case - n!=4
This commit is contained in:
parent
300119a492
commit
e4765438b8
@ -730,12 +730,14 @@ static inline unsigned int zend_mm_low_bit(size_t _size) /* {{{ */
|
||||
unsigned int n;
|
||||
unsigned int index = 0;
|
||||
|
||||
do {
|
||||
n = offset[_size & 15];
|
||||
n = offset[_size & 15];
|
||||
while (n == 4) {
|
||||
_size >>= 4;
|
||||
index += n;
|
||||
} while (n == 4);
|
||||
return index;
|
||||
n = offset[_size & 15];
|
||||
}
|
||||
|
||||
return index + n;
|
||||
#endif
|
||||
}
|
||||
/* }}} */
|
||||
|
Loading…
Reference in New Issue
Block a user