float scalbnf(float x, int exp) should wrap float ldexpf(float x, int exp) instead of doing x * exp2f((float)exp). These functions are equivalent because FLT_RADIX == 2.
This could be fixed by having scalbnf as an alias to ldexpf. Similar thing for scalblnf(float x, long exp) apart from casting long to int.
float scalbnf(float x, int exp)
should wrapfloat ldexpf(float x, int exp)
instead of doingx * exp2f((float)exp)
. These functions are equivalent becauseFLT_RADIX == 2
.This could be fixed by having
scalbnf
as an alias toldexpf
. Similar thing forscalblnf(float x, long exp)
apart from castinglong
toint
.