Lines Matching refs:_size

340 	size_t _size;  member
503 size_t _size = (size); \
504 (b)->info._size = (type) | _size; \
505 ZEND_MM_BLOCK_AT(b, _size)->info._prev = (type) | _size; \
509 (b)->info._size = ZEND_MM_GUARD_BLOCK | ZEND_MM_ALIGNED_HEADER_SIZE; \
512 #define ZEND_MM_BLOCK_SIZE(b) ((b)->info._size & ~ZEND_MM_TYPE_MASK)
513 #define ZEND_MM_IS_FREE_BLOCK(b) (!((b)->info._size & ZEND_MM_USED_BLOCK))
514 #define ZEND_MM_IS_USED_BLOCK(b) ((b)->info._size & ZEND_MM_USED_BLOCK)
515 #define ZEND_MM_IS_GUARD_BLOCK(b) (((b)->info._size & ZEND_MM_TYPE_MASK) == ZEND_MM_GUARD_BLOCK)
526 #define ZEND_MM_FREE_BLOCK_SIZE(b) (b)->info._size
631 # define ZEND_MM_SET_BLOCK_SIZE(block, _size) \ argument
632 ((zend_mm_block*)(block))->debug.size = (_size)
634 # define ZEND_MM_SET_BLOCK_SIZE(block, _size) argument
645 …if (UNEXPECTED((block)->info._size != ZEND_MM_BLOCK_AT(block, ZEND_MM_FREE_BLOCK_SIZE(block))->inf…
647 UNEXPECTED(ZEND_MM_PREV_BLOCK(block)->info._size != (block)->info._prev))) { \
665 static inline unsigned int zend_mm_high_bit(size_t _size) in zend_mm_high_bit() argument
670 __asm__("bsrl %1,%0\n\t" : "=r" (n) : "rm" (_size) : "cc"); in zend_mm_high_bit()
675 __asm__("bsr %1,%0\n\t" : "=r" (n) : "rm" (_size) : "cc"); in zend_mm_high_bit()
679 bsr eax, _size in zend_mm_high_bit()
682 return (8 * SIZEOF_SIZE_T - 1) - __builtin_clzl(_size); in zend_mm_high_bit()
685 while (_size != 0) { in zend_mm_high_bit()
686 _size = _size >> 1; in zend_mm_high_bit()
693 static inline unsigned int zend_mm_low_bit(size_t _size) in zend_mm_low_bit() argument
698 __asm__("bsfl %1,%0\n\t" : "=r" (n) : "rm" (_size) : "cc"); in zend_mm_low_bit()
703 __asm__("bsf %1,%0\n\t" : "=r" (n) : "rm" (_size) : "cc"); in zend_mm_low_bit()
707 bsf eax, _size in zend_mm_low_bit()
710 return __builtin_ctzl(_size); in zend_mm_low_bit()
716 n = offset[_size & 15]; in zend_mm_low_bit()
718 _size >>= 4; in zend_mm_low_bit()
720 n = offset[_size & 15]; in zend_mm_low_bit()
1253 p->info._size != q->info._prev) { in zend_mm_find_leaks()
1289 p->info._size != q->info._prev) { in zend_mm_check_leaks()
1384 if (p->info._size != ZEND_MM_NEXT_BLOCK(p)->info._prev) { in zend_mm_check_ptr()
1386 …"Invalid pointer: ((size="PTR_FMT") != (next.prev="PTR_FMT"))\n", p->info._size, ZEND_MM_NEXT_BLOC… in zend_mm_check_ptr()
1393 ZEND_MM_PREV_BLOCK(p)->info._size != p->info._prev) { in zend_mm_check_ptr()
1395 … ((prev="PTR_FMT") != (prev.size="PTR_FMT"))\n", p->info._prev, ZEND_MM_PREV_BLOCK(p)->info._size); in zend_mm_check_ptr()
1573 p->info._size != q->info._prev) { in zend_mm_check_heap()