summaryrefslogtreecommitdiff
path: root/hv_func.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2013-05-07 23:52:16 +0200
committerYves Orton <demerphq@gmail.com>2013-05-08 00:10:45 +0200
commite6b54db65c0cdda6ff40959415e828972b6a92b5 (patch)
treee1fa02fffce3b0b347ed1258ab3e678275d55809 /hv_func.h
parenta2098e2036fea6a0d6544c47278aea9193a203c2 (diff)
downloadperl-e6b54db65c0cdda6ff40959415e828972b6a92b5.tar.gz
document and improve hash algorithm randomization related build options
Install was a copy of other material, made heavy reference to 5.8.x and and didnt really document what it should have. I reworked it to be more up to date.
Diffstat (limited to 'hv_func.h')
-rw-r--r--hv_func.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/hv_func.h b/hv_func.h
index 9dfe158cf5..7678807d88 100644
--- a/hv_func.h
+++ b/hv_func.h
@@ -11,9 +11,9 @@
#ifndef PERL_SEEN_HV_FUNC_H /* compile once */
#define PERL_SEEN_HV_FUNC_H
-#define PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
#if !( 0 \
+ || defined(PERL_HASH_FUNC_SIPHASH) \
|| defined(PERL_HASH_FUNC_SDBM) \
|| defined(PERL_HASH_FUNC_DJB2) \
|| defined(PERL_HASH_FUNC_SUPERFAST) \
@@ -22,12 +22,8 @@
|| defined(PERL_HASH_FUNC_ONE_AT_A_TIME_HARD) \
|| defined(PERL_HASH_FUNC_ONE_AT_A_TIME_OLD) \
)
-#ifdef HAS_QUAD
-#define PERL_HASH_FUNC_SIPHASH
-#else
#define PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
#endif
-#endif
#if defined(PERL_HASH_FUNC_SIPHASH)
# define PERL_HASH_FUNC "SIPHASH_2_4"