mirror of
https://github.com/fluencelabs/musl
synced 2025-05-19 02:31:29 +00:00
11 lines
130 B
C
11 lines
130 B
C
#include "libm.h"
|
|
|
|
float logbf(float x)
|
|
{
|
|
if (!isfinite(x))
|
|
return x * x;
|
|
if (x == 0)
|
|
return -1/(x+0);
|
|
return ilogbf(x);
|
|
}
|