]> thyrsus.com Git - comparator.git/commitdiff
No more padding dependency.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 11 Sep 2003 21:11:00 +0000 (21:11 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 11 Sep 2003 21:11:00 +0000 (21:11 +0000)
shred.h

diff --git a/shred.h b/shred.h
index 4c18b6ea390f96d294357410e2d255c8aeb9d177..e111031595ce9b7206c1d8c42dc7c6daddd0931c 100644 (file)
--- a/shred.h
+++ b/shred.h
@@ -4,19 +4,14 @@
 
 /*
  * 65,536 lines should be enough, but maybe someday this will be 32 bits.
- * The point of making it a short is that the data sets can get quite large.
+ * The point of making it a short is that the data sets can get quite large,
+ * so we want the hash_t and sorthash_t structures to be small.
  */
 typedef u_int16_t      linenum_t;
 #define TONET          htons
 #define FROMNET                ntohs
-#define UNIQUE_FLAG    (linenum_t)-1
+#define UNIQUE_FLAG    (linenum_t)-1   /* 2s-complement assumption */
 
-/*
- * The code depends on the assumption that this structure has 
- * no leading, trailing, or internal padding. This should be the 
- * case on all modern 8-bit-byte, byte-addressible machines,
- * whether 32 or 64 bit.
- */
 #define HASHSIZE       16
 struct hash_t
 {