Expose fast_log2().

This commit is contained in:
Jared Boone 2016-02-13 11:18:15 -08:00
parent 7d60b940d6
commit d2531016e5
2 changed files with 3 additions and 1 deletions

View file

@ -59,7 +59,7 @@ uint32_t gcd(const uint32_t u, const uint32_t v) {
}
#endif
static float fast_log2(const float val) {
float fast_log2(const float val) {
// Thank you Stack Overflow!
// http://stackoverflow.com/questions/9411823/fast-log2float-x-implementation-c
union {