X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fpbd%2Fpbd%2Ffastlog.h;h=80b02e95224893dd7cfe8f413dd5ab977c88fb4f;hb=771a4a4e0c9b6653083f44081a81964c802eb549;hp=21cbfbdce22579524cf45670eba168f69fa0b2a6;hpb=24d2b5ec9200bf46ccb42528560de4a02b7be516;p=ardour.git diff --git a/libs/pbd/pbd/fastlog.h b/libs/pbd/pbd/fastlog.h index 21cbfbdce2..80b02e9522 100644 --- a/libs/pbd/pbd/fastlog.h +++ b/libs/pbd/pbd/fastlog.h @@ -25,9 +25,9 @@ static inline float fast_log2 (float val) x &= ~(255 << 23); x += 127 << 23; *exp_ptr = x; - + val = ((-1.0f/3) * t.f + 2) * t.f - 2.0f/3; - + return (val + log_2); }