diff options
author | Yves Orton <demerphq@gmail.com> | 2020-06-20 22:06:53 +0200 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2021-02-12 19:21:28 +0100 |
commit | d18575f18c6ee61ce80492e82cae7361358d570a (patch) | |
tree | 3bc2bb3e340f70f25d73ff5881dbc89b46f7a010 /hv_func.h | |
parent | 2e2ef76832856ad351409211a61516bf39b36917 (diff) | |
download | perl-d18575f18c6ee61ce80492e82cae7361358d570a.tar.gz |
hv_func.h: Move static declaration so it works with Siphash builds
Diffstat (limited to 'hv_func.h')
-rw-r--r-- | hv_func.h | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -105,14 +105,6 @@ #endif -PERL_STATIC_INLINE -U32 S_perl_hash_with_seed(const U8 * const seed, const U8 * const str, const STRLEN len) -{ - U8 state[_PERL_HASH_STATE_BYTES]; - _PERL_HASH_SEED_STATE(seed,state); - return _PERL_HASH_WITH_STATE(state,str,len); -} - #define PERL_HASH_WITH_SEED(seed,hash,str,len) \ (hash) = S_perl_hash_with_seed((const U8 *) seed, (const U8 *) str,len) #define PERL_HASH_WITH_STATE(state,hash,str,len) \ @@ -160,6 +152,13 @@ U32 S_perl_hash_with_seed(const U8 * const seed, const U8 * const str, const STR #define PERL_HASH_INTERNAL(hash,str,len) PERL_HASH(hash,str,len) #endif +PERL_STATIC_INLINE U32 +S_perl_hash_with_seed(const U8 * seed, const U8 *str, STRLEN len) { + U8 state[_PERL_HASH_STATE_BYTES]; + _PERL_HASH_SEED_STATE(seed,state); + return _PERL_HASH_WITH_STATE(state,str,len); +} + #endif /*compile once*/ /* |