fabs.c\powerpc\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/powerpc/fabs.c
blob: 9453a3aa981ffcc70343a355a41a758fe3070b1d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <math.h>
#if defined(_SOFT_FLOAT) || defined(__NO_FPRS__) || defined(BROKEN_PPC_D_ASM)
#include "../fabs.c"
#else
double fabs(double x)
{
	__asm__ ("fabs %0, %1" : "=d"(x) : "d"(x));
	return x;
}
#endif
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月07日 16:11:44 +0000

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