From: Julian Seward Date: Wed, 24 Apr 2002 20:32:50 +0000 (+0000) Subject: VG_(malloc_aligned): accept req_alignB == 4. X-Git-Tag: svn/VALGRIND_1_0_3~313 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=225686924204e28770e8495f6abb1c130bdb99ff;p=thirdparty%2Fvalgrind.git VG_(malloc_aligned): accept req_alignB == 4. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@138 --- diff --git a/coregrind/vg_malloc2.c b/coregrind/vg_malloc2.c index 718ed3a838..8b6c6213b7 100644 --- a/coregrind/vg_malloc2.c +++ b/coregrind/vg_malloc2.c @@ -1081,6 +1081,7 @@ void* VG_(malloc_aligned) ( ArenaId aid, Int req_alignB, Int req_pszB ) a power of 2. There must be a better way to do this. What is it? */ switch (req_alignB) { + case 4: case 8: case 16: case 32: case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: diff --git a/vg_malloc2.c b/vg_malloc2.c index 718ed3a838..8b6c6213b7 100644 --- a/vg_malloc2.c +++ b/vg_malloc2.c @@ -1081,6 +1081,7 @@ void* VG_(malloc_aligned) ( ArenaId aid, Int req_alignB, Int req_pszB ) a power of 2. There must be a better way to do this. What is it? */ switch (req_alignB) { + case 4: case 8: case 16: case 32: case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: