diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-01-27 07:31:50 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-01-27 07:31:50 +0000 |
commit | a92dd46dd529a0a48c37db08c3101e9677d0638d (patch) | |
tree | 6f861b8f456483b95007f0bc0102295893c2048a /gc.c | |
parent | 68bf801c39c439d274844b56e763f27634ee452f (diff) | |
download | ruby-a92dd46dd529a0a48c37db08c3101e9677d0638d.tar.gz |
* gc.c (HEAP_ALIGN, HEAP_ALIGN_MASK): DRY, let compiler calculate
from HEAP_ALIGN_LOG.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -538,8 +538,8 @@ rb_objspace_free(rb_objspace_t *objspace) /* tiny heap size: 16KB */ #define HEAP_ALIGN_LOG 14 -#define HEAP_ALIGN 0x4000 -#define HEAP_ALIGN_MASK 0x3fff +#define HEAP_ALIGN (1UL << HEAP_ALIGN_LOG) +#define HEAP_ALIGN_MASK (~(~0UL << HEAP_ALIGN_LOG)) #define REQUIRED_SIZE_BY_MALLOC (sizeof(size_t) * 5) #define HEAP_SIZE (HEAP_ALIGN - REQUIRED_SIZE_BY_MALLOC) |