GLIBC 2.27 added new versioned symbols of powf and logf, while the double versions of pow and log remained stable. Prefer the double version to avoid introducing a dependency on a newer version of GLIBC than strictly necessary. See https://lists.gnu.org/archive/html/info-gnu/2018-02/msg00000.html
15 lines
258 B
C++
15 lines
258 B
C++
#pragma once
|
|
|
|
#include <cmath>
|
|
#include <cstdint>
|
|
|
|
namespace mbgl {
|
|
namespace util {
|
|
|
|
// Computes the log2(x) rounded up to the next integer.
|
|
// (== number of bits required to store x)
|
|
uint32_t ceil_log2(uint64_t x);
|
|
|
|
} // namespace util
|
|
} // namespace mbgl
|