summaryrefslogtreecommitdiff
path: root/embedvar.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2017-03-22 16:40:28 +0100
committerYves Orton <demerphq@gmail.com>2017-04-23 11:44:17 +0200
commita3bf60fbb1f05cd2c69d4ff0a2ef99537afdaba7 (patch)
treedcd0cbf4be0ef56b631affe55f775c6ed94452a9 /embedvar.h
parent05f97de032fe95cabe8c9f6d6c0a5897b1616194 (diff)
downloadperl-a3bf60fbb1f05cd2c69d4ff0a2ef99537afdaba7.tar.gz
Add new hashing and "hash with state" infrastructure
This adds support for three new hash functions: StadtX, Zaphod32 and SBOX, and reworks some of our hash internals infrastructure to do so. SBOX is special in that it is designed to be used in conjuction with any other hash function for hashing short strings very efficiently and very securely. It features compile time options on how much memory and startup time are traded off to control the length of keys that SBOX hashes. This also adds support for caching the hash values of single byte characters which can be used in conjuction with any other hash, including SBOX, although SBOX itself is as fast as the lookup cache, so typically you wouldnt use both at the same time. This also *removes* support for Jenkins One-At-A-Time. It has served us well, but it's day is done. This patch adds three new files: zaphod32_hash.h, stadtx_hash.h, sbox32_hash.h
Diffstat (limited to 'embedvar.h')
-rw-r--r--embedvar.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/embedvar.h b/embedvar.h
index a33f213efc..67914f2645 100644
--- a/embedvar.h
+++ b/embedvar.h
@@ -385,10 +385,14 @@
#define PL_Gdollarzero_mutex (my_vars->Gdollarzero_mutex)
#define PL_fold_locale (my_vars->Gfold_locale)
#define PL_Gfold_locale (my_vars->Gfold_locale)
+#define PL_hash_chars (my_vars->Ghash_chars)
+#define PL_Ghash_chars (my_vars->Ghash_chars)
#define PL_hash_seed (my_vars->Ghash_seed)
#define PL_Ghash_seed (my_vars->Ghash_seed)
#define PL_hash_seed_set (my_vars->Ghash_seed_set)
#define PL_Ghash_seed_set (my_vars->Ghash_seed_set)
+#define PL_hash_state (my_vars->Ghash_state)
+#define PL_Ghash_state (my_vars->Ghash_state)
#define PL_hints_mutex (my_vars->Ghints_mutex)
#define PL_Ghints_mutex (my_vars->Ghints_mutex)
#define PL_keyword_plugin (my_vars->Gkeyword_plugin)