#include <math.h>
float logbf(float x)
{
if (!isfinite(x))
return x * x;
if (x == 0)
return -1/(x*x);
return ilogbf(x);
}
#ifdef TEST
int
main(void) {
return 0;
}
#endif
![]() |
index : grovel | |
| Unnamed repository; edit this file 'description' to name the repository. | External SSH Git service user |
| aboutsummaryrefslogtreecommitdiff |
#include <math.h>
float logbf(float x)
{
if (!isfinite(x))
return x * x;
if (x == 0)
return -1/(x*x);
return ilogbf(x);
}
#ifdef TEST
int
main(void) {
return 0;
}
#endif