- Optimize slightly for common case - n!=4

This commit is contained in:
Andi Gutmans 2009-08-09 04:46:02 +00:00
parent 300119a492
commit e4765438b8

View File

@ -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
}
/* }}} */