mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 15:03:34 +00:00
10 lines
146 B
C
10 lines
146 B
C
#include "libc/math/math.h"
|
|
|
|
double fdim(double x, double y)
|
|
{
|
|
if (isnan(x))
|
|
return x;
|
|
if (isnan(y))
|
|
return y;
|
|
return x > y ? x - y : 0;
|
|
}
|