59e8fd6611
Not everything of musl's code is compiled yet (i.e. the .ignored-c files are not) as we need fenv.h first. Our previous math code is also not deleted yet but not compiled anymore.
11 lines
136 B
C
11 lines
136 B
C
#include <math.h>
|
|
|
|
double fdim(double x, double y)
|
|
{
|
|
if (isnan(x))
|
|
return x;
|
|
if (isnan(y))
|
|
return y;
|
|
return x > y ? x - y : 0;
|
|
}
|