diff options
author | Guilherme Andrade <[email protected]> | 2017-04-20 21:35:54 +0100 |
---|---|---|
committer | Guilherme Andrade <[email protected]> | 2017-04-20 21:51:16 +0100 |
commit | 1b37d0b010ea31b04b9d0a15d0bec9c75a013dc9 (patch) | |
tree | a543b013c074d8e763a31e0adf706f7cf922176a /erts/emulator/beam/erl_nif.c | |
parent | 0835f40ae25f97360dc393928796387d3cd6b16e (diff) | |
download | otp-1b37d0b010ea31b04b9d0a15d0bec9c75a013dc9.tar.gz otp-1b37d0b010ea31b04b9d0a15d0bec9c75a013dc9.tar.bz2 otp-1b37d0b010ea31b04b9d0a15d0bec9c75a013dc9.zip |
erts: Remove enif_phash2_ranged
Diffstat (limited to 'erts/emulator/beam/erl_nif.c')
-rw-r--r-- | erts/emulator/beam/erl_nif.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/erts/emulator/beam/erl_nif.c b/erts/emulator/beam/erl_nif.c index 14abf461a3..f7777c8b92 100644 --- a/erts/emulator/beam/erl_nif.c +++ b/erts/emulator/beam/erl_nif.c @@ -1214,25 +1214,15 @@ int enif_compare(Eterm lhs, Eterm rhs) return result; } +unsigned long enif_phash2(Eterm term) +{ #if SIZEOF_LONG < 4 /* This *really* shouldn't happen */ # error Incompatible long word size #endif - -unsigned long enif_phash2(Eterm term) -{ return make_hash2(term) & ((1 << 27) - 1); } -unsigned long enif_phash2_ranged(Eterm term, unsigned long range) -{ -#if SIZEOF_LONG > 4 - if (range > (unsigned long) UINT32_MAX) - range = 0; -#endif - return make_hash2_within_range(term, range); -} - int enif_get_tuple(ErlNifEnv* env, Eterm tpl, int* arity, const Eterm** array) { Eterm* ptr; |