aboutsummaryrefslogtreecommitdiff
path: root/src/util/fastrange.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2022-01-06 11:29:08 -0500
committerPieter Wuille <pieter@wuille.net>2022-01-06 11:29:55 -0500
commit96ecd6fa3e0f53c3a25eb7c328220b819f8dde03 (patch)
tree3506cd32d7d05afc3813915a2ec90d1bbb93318d /src/util/fastrange.h
parentc6d15c45d971fb25551b7a66a2615e3f0bee999b (diff)
downloadbitcoin-96ecd6fa3e0f53c3a25eb7c328220b819f8dde03.tar.xz
scripted-diff: rename MapIntoRange to FastRange64
-BEGIN VERIFY SCRIPT- sed -i -e 's/MapIntoRange/FastRange64/' src/blockfilter.cpp src/test/fuzz/golomb_rice.cpp src/util/fastrange.h -END VERIFY SCRIPT-
Diffstat (limited to 'src/util/fastrange.h')
-rw-r--r--src/util/fastrange.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/fastrange.h b/src/util/fastrange.h
index 57bb8e07dc..963d21c03a 100644
--- a/src/util/fastrange.h
+++ b/src/util/fastrange.h
@@ -12,7 +12,7 @@
// x * n.
//
// See: https://lemire.me/blog/2016/06/27/a-fast-alternative-to-the-modulo-reduction/
-static inline uint64_t MapIntoRange(uint64_t x, uint64_t n)
+static inline uint64_t FastRange64(uint64_t x, uint64_t n)
{
#ifdef __SIZEOF_INT128__
return (static_cast<unsigned __int128>(x) * static_cast<unsigned __int128>(n)) >> 64;