chiark
/
gitweb
/
~mdw
/
mLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Test universal hashing and fix bugs.
[mLib]
/
sub.h
diff --git
a/sub.h
b/sub.h
index 1b077030db25b0f229790f494dfea473407c2a19..87085abee250ab842a4698afd5a031fdfe7e5e0a 100644
(file)
--- a/
sub.h
+++ b/
sub.h
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: sub.h,v 1.
6 2000/06/17 10:35:51
mdw Exp $
+ * $Id: sub.h,v 1.
7 2003/10/12 14:44:46
mdw Exp $
*
* Allocation of known-size blocks
*
*
* Allocation of known-size blocks
*
@@
-30,6
+30,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: sub.h,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: sub.h,v $
+ * Revision 1.7 2003/10/12 14:44:46 mdw
+ * Various fixes.
+ *
* Revision 1.6 2000/06/17 10:35:51 mdw
* Major overhaul for arena support.
*
* Revision 1.6 2000/06/17 10:35:51 mdw
* Major overhaul for arena support.
*
@@
-61,6
+64,10
@@
#include <stdlib.h>
#include <stdlib.h>
+#ifndef MLIB_ALIGN_H
+# include "align.h"
+#endif
+
#ifndef MLIB_ARENA_H
# include "arena.h"
#endif
#ifndef MLIB_ARENA_H
# include "arena.h"
#endif
@@
-86,11
+93,10
@@
/* --- The granularity of bin buffers --- *
*
/* --- The granularity of bin buffers --- *
*
- * All blocks allocated by the binner are a multiple of this size. I've
- * chosen @void *@ because I need to store @void *@ things in here.
+ * All blocks allocated by the binner are a multiple of this size.
*/
*/
-#define SUB_GRANULE sizeof(
void *
)
+#define SUB_GRANULE sizeof(
union align
)
/* --- Finding the right bin for a given size --- *
*
/* --- Finding the right bin for a given size --- *
*