@@@ fltfmt mess
[mLib] / mem / sub.h
index b48e835..1dddd19 100644 (file)
--- a/mem/sub.h
+++ b/mem/sub.h
@@ -68,7 +68,7 @@
  * All blocks allocated by the binner are a multiple of this size.
  */
 
-#define SUB_GRANULE sizeof(union align)
+#define SUB_GRANULE (ALIGNOF(union align))
 
 /* --- Finding the right bin for a given size --- *
  *
  * block wanted; result is the bin index.
  */
 
-#define SUB_BIN(x) (((x) + SUB_GRANULE - 1) / SUB_GRANULE)
+#define SUB_BIN(x) (((x) + SUB_GRANULE - 1)/SUB_GRANULE)
 
 /* --- Convert a bin back to the block size --- *
  *
  * This gives the size of block contained in a given bin.
  */
 
-#define SUB_BINSZ(x) ((x) * SUB_GRANULE)
+#define SUB_BINSZ(x) ((x)*SUB_GRANULE)
 
 /* --- Number of bins required --- */
 
-#define SUB_BINS (SUB_MAXBIN / SUB_GRANULE + 1)
+#define SUB_BINS (SUB_MAXBIN/SUB_GRANULE + 1)
 
 /*----- Data structures ---------------------------------------------------*/