xref: /third_party/musl/src/math/powerpc64/lroundf.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_cilong lroundf(float x)
6570af302Sopenharmony_ci{
7570af302Sopenharmony_ci	long n;
8570af302Sopenharmony_ci	__asm__ (
9570af302Sopenharmony_ci		"xsrdpi %1, %1\n"
10570af302Sopenharmony_ci		"fctid %0, %1\n" : "=d"(n), "+f"(x));
11570af302Sopenharmony_ci	return n;
12570af302Sopenharmony_ci}
13570af302Sopenharmony_ci
14570af302Sopenharmony_ci#else
15570af302Sopenharmony_ci
16570af302Sopenharmony_ci#include "../lroundf.c"
17570af302Sopenharmony_ci
18570af302Sopenharmony_ci#endif
19

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