xref: /aosp_15_r20/external/musl/src/math/logbf.c (revision c9945492fdd68bbe62686c5b452b4dc1be3f8453)
1 #include <math.h>
2 
logbf(float x)3 float logbf(float x)
4 {
5 	if (!isfinite(x))
6 		return x * x;
7 	if (x == 0)
8 		return -1/(x*x);
9 	return ilogbf(x);
10 }
11