]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
fdr/teddy: remove padding from structures
authorJustin Viiret <justin.viiret@intel.com>
Fri, 9 Jun 2017 06:28:32 +0000 (16:28 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Mon, 21 Aug 2017 00:39:00 +0000 (10:39 +1000)
src/fdr/fdr_internal.h
src/fdr/teddy_internal.h

index dd81c2dc87ce885afbfcfb252d1ac5189ad831cb..8109d1e822ced8c1a98e48b309e6b0208be1f327 100644 (file)
@@ -71,18 +71,15 @@ struct FDR {
     u32 maxStringLen;
     u32 confOffset;
     u32 floodOffset;
-
-    u8 stride; /* stride - how frequeuntly the data is consulted by the first
+    u8 stride; /* stride - how frequently the data is consulted by the first
                 * stage matcher */
     u8 domain; /* number of bits used to index into main FDR table. This value
                 * is used only of debugging/asserts. */
     u16 domainMask; /* pre-computed domain mask */
     u32 tabSize; /* pre-computed hashtable size in bytes */
-    u32 pad;
-
-    m128 start; /* initial start state to use at offset 0. The state has been set
-                 * up based on the min length of buckets to reduce the need for
-                 * pointless confirms. */
+    m128 start; /* initial start state to use at offset 0. The state has been
+                 * set up based on the min length of buckets to reduce the need
+                 * for pointless confirms. */
 };
 
 /** \brief FDR runtime arguments.
index f3319bd201a6f1f084418478b4eb53bb10e3a214..359d1e135b1405f233872026b1ac57abb542212a 100644 (file)
@@ -38,10 +38,6 @@ struct Teddy {
     u32 maxStringLen;
     u32 confOffset;
     u32 floodOffset;
-    u32 link;
-    u32 pad1;
-    u32 pad2;
-    u32 pad3;
 };
 
 #endif