Browse code

-changed DEBUG ROUNDTO to sizeof(void*) (4 on 32 bits archs & 8 on 64bits)

Andrei Pelinescu-Onciul authored on 24/02/2003 16:47:23
Showing 2 changed files
... ...
@@ -34,7 +34,7 @@
34 34
 
35 35
 /* defs*/
36 36
 
37
-#define ROUNDTO		8 /* size we round to, must be = 2^n, and
37
+#define ROUNDTO		sizeof(void*) /* size we round to, must be = 2^n, and
38 38
                       sizeof(fm_frag) must be multiple of ROUNDTO !*/
39 39
 #define MIN_FRAG_SIZE	ROUNDTO
40 40
 
... ...
@@ -34,7 +34,8 @@
34 34
 
35 35
 /* defs*/
36 36
 #ifdef DBG_QM_MALLOC
37
-	#define ROUNDTO		 8 /* minimum possible ROUNDTO ->heavy debugging*/
37
+	#define ROUNDTO		sizeof(void*) /* minimum possible ROUNDTO ->heavy 
38
+										 debugging*/
38 39
 #else
39 40
 	#define ROUNDTO		16 /* size we round to, must be = 2^n  and also
40 41
 							 sizeof(qm_frag)+sizeof(qm_frag_end)