xref: /third_party/musl/src/math/powerpc/fabs.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/src/math/powerpc/
1570af302Sopenharmony_ci#include <math.h>
2570af302Sopenharmony_ci
3570af302Sopenharmony_ci#if defined(_SOFT_FLOAT) || defined(__NO_FPRS__) || defined(BROKEN_PPC_D_ASM)
4570af302Sopenharmony_ci
5570af302Sopenharmony_ci#include "../fabs.c"
6570af302Sopenharmony_ci
7570af302Sopenharmony_ci#else
8570af302Sopenharmony_ci
9570af302Sopenharmony_cidouble fabs(double x)
10570af302Sopenharmony_ci{
11570af302Sopenharmony_ci	__asm__ ("fabs %0, %1" : "=d"(x) : "d"(x));
12570af302Sopenharmony_ci	return x;
13570af302Sopenharmony_ci}
14570af302Sopenharmony_ci
15570af302Sopenharmony_ci#endif
16

Indexes created Thu Nov 07 10:32:03 CST 2024