regcomp.h: Allow compiler to perform calculation
authorKarl Williamson <public@khwilliamson.com>
Tue, 18 Feb 2014 15:57:48 +0000 (08:57 -0700)
committerKarl Williamson <public@khwilliamson.com>
Wed, 19 Feb 2014 15:32:59 +0000 (08:32 -0700)
Instead of doing the calculation of how many bytes a 256 bitmap
occupies, let the compiler do it.  I believe we are not too far away
from having the ability to allow applications to recompile Perl to
increase the bitmap size trading speed for memory.  ICU has an 8192
bitmap last time I checked.

regcomp.h

index 1b00c20..744f361 100644 (file)
--- a/regcomp.h
+++ b/regcomp.h
@@ -185,7 +185,7 @@ struct regnode_2 {
 };
 
 
-#define ANYOF_BITMAP_SIZE      32      /* 256 b/(8 b/B) */
+#define ANYOF_BITMAP_SIZE      (256 / 8)   /* 8 bits/Byte */
 
 /* also used by trie */
 struct regnode_charclass {