From 38f536049a8ed8f4bdf7706f4afcbbaf06c974c9 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Sat, 29 Oct 2016 18:13:12 +0300 Subject: [core] Moved util::log2 to its own header - Added util::{MIN,MAX}_ZOOM_F to avoid consecutive conversions from double to float - Move util::log2 to its own header (part of mbgl/math) --- src/mbgl/util/math.hpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/mbgl/util/math.hpp') diff --git a/src/mbgl/util/math.hpp b/src/mbgl/util/math.hpp index 5d4220d0a2..f969ecaedd 100644 --- a/src/mbgl/util/math.hpp +++ b/src/mbgl/util/math.hpp @@ -106,11 +106,5 @@ T smoothstep(T edge0, T edge1, T x) { return t * t * (T(3) - T(2) * t); } -// Computes the log2(x) rounded up to the next integer. -// (== number of bits required to store x) -uint32_t ceil_log2(uint64_t x); - -double log2(double x); - } // namespace util } // namespace mbgl -- cgit v1.2.1