diff --git a/source/util-math.h b/source/util-math.h index 0364da96..1935162a 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))); }