fdimf.c\math\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/math/fdimf.c
blob: 543c3648e3ff22e861479ea011a2e2e8c2077d99 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include <math.h>
float fdimf(float x, float y)
{
	if (isnan(x))
		return x;
	if (isnan(y))
		return y;
	return x > y ? x - y : 0;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月01日 19:55:50 +0000

AltStyle によって変換されたページ (->オリジナル) /