WILD GUESS ALERT!
I'm guessing that this is for byte-alignment on big-endian versus
little-endian...
So it's more like and as masks to flip-flop bytes by
some binary logic / magic.
The -1 is to "wrap" the byte to binary inversion.
You might want to grep the code and see how th
day, March 1, 2012 6:44 PM
Subject: Re: [PHP-DEV] question about Zend MM
On Thu, 01 Mar 2012 17:22:23 +0100, Adi Mutu wrote:
> I want to understand how Zend MM works, so i'm looking trought the sources
> and i see this:
>
> #define ZEND_MM_ALIGNMENT_MASK ~(ZEND_MM_
On Thu, 01 Mar 2012 17:22:23 +0100, Adi Mutu wrote:
I want to understand how Zend MM works, so i'm looking trought the
sources and i see this:
#define ZEND_MM_ALIGNMENT_MASK ~(ZEND_MM_ALIGNMENT-1) #define
ZEND_MM_ALIGNED_SIZE(size) (((size) + ZEND_MM_ALIGNMENT - 1) &
ZEND_MM_ALIGNMENT_MA