1
0
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:
Andi Gutmans
2000-06-14 19:10:30 +00:00
parent c532a70746
commit 988435cf04
2 changed files with 2 additions and 2 deletions

View File

@@ -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); \

View File

@@ -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))