xref: /third_party/musl/src/math/powerpc64/fmax.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/src/math/powerpc64/
1570af302Sopenharmony_ci#include <math.h>
2570af302Sopenharmony_ci
3570af302Sopenharmony_ci#ifdef __VSX__
4570af302Sopenharmony_ci
5570af302Sopenharmony_cidouble fmax(double x, double y)
6570af302Sopenharmony_ci{
7570af302Sopenharmony_ci	__asm__ ("xsmaxdp %x0, %x1, %x2" : "=ws"(x) : "ws"(x), "ws"(y));
8570af302Sopenharmony_ci	return x;
9570af302Sopenharmony_ci}
10570af302Sopenharmony_ci
11570af302Sopenharmony_ci#else
12570af302Sopenharmony_ci
13570af302Sopenharmony_ci#include "../fmax.c"
14570af302Sopenharmony_ci
15570af302Sopenharmony_ci#endif
16

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