mirror of
https://github.com/php/php-src.git
synced 2026-04-10 09:33:06 +02:00
- More correct way of doing bit mask
This commit is contained in:
@@ -103,7 +103,7 @@ ZEND_API zend_alloc_globals alloc_globals;
|
||||
unsigned int real_size; \
|
||||
unsigned int cache_index;
|
||||
|
||||
#define REAL_SIZE(size) ((size+7) & 0xFFFFFFF8)
|
||||
#define REAL_SIZE(size) ((size+7) & ~0x7)
|
||||
|
||||
#define CALCULATE_REAL_SIZE_AND_CACHE_INDEX(size) \
|
||||
real_size = REAL_SIZE(size); \
|
||||
|
||||
@@ -52,7 +52,7 @@ typedef union _align_test {
|
||||
long lng;
|
||||
} align_test;
|
||||
|
||||
#define MAX_CACHED_MEMORY 16
|
||||
#define MAX_CACHED_MEMORY 16
|
||||
#define MAX_CACHED_ENTRIES 24
|
||||
#if (defined (__GNUC__) && __GNUC__ >= 2)
|
||||
#define PLATFORM_ALIGNMENT (__alignof__ (align_test))
|
||||
|
||||
Reference in New Issue
Block a user