From 6561ea9b3c7522c4e1629c8b884cdc754e7a0c13 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Sat, 29 Sep 2018 16:57:41 +0200 Subject: [PATCH] util-math: Rename get_power_of_two to get_power_of_two_exponent --- source/util-math.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/util-math.h b/source/util-math.h index 0364da9..1935162 100644 --- a/source/util-math.h +++ b/source/util-math.h @@ -120,13 +120,13 @@ namespace util { #pragma pop_macro("is_power_of_two_as_loop") template - inline uint64_t get_power_of_two_floor(T v) + inline uint64_t get_power_of_two_exponent_floor(T v) { return uint64_t(floor(log10(T(v)) / log10(2.0))); } template - inline uint64_t get_power_of_two_ceil(T v) + inline uint64_t get_power_of_two_exponent_ceil(T v) { return uint64_t(ceil(log10(T(v)) / log10(2.0))); }