summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2014-02-18 08:57:48 -0700
committerKarl Williamson <public@khwilliamson.com>2014-02-19 08:32:59 -0700
commit4c1877fc886efb240941fae022811ee44a51a6fd (patch)
tree04ab6688c10badaa5a3bdafb6ae5978769f804cc /regcomp.h
parentcd3413cbbd08762c41f584d23806a18fb5f1160d (diff)
downloadperl-4c1877fc886efb240941fae022811ee44a51a6fd.tar.gz
regcomp.h: Allow compiler to perform calculation
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.
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.h b/regcomp.h
index 1b00c201f7..744f361dc4 100644
--- 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 {