☰
Debian Codegraph
@
0.0~git20260129.ec0effd-3
0.0~git20260129.ec0effd-2
/
/
libc-top-half
/
musl
/
src
/
math
/
powerpc64
/
lroundf.c
☽
☼
libc-top-half/musl/src/math/powerpc64/lroundf.c
code
plain
raw
MIT
2005-2019 Rich Felker <
[email protected]
>; 2005-2019 Many other contributors
debian/copyright
1
#include <math.h>
2
3
#ifdef __VSX__
4
5
long lroundf(float x)
6
{
7
long n;
8
__asm__ (
9
"xsrdpi %1, %1\n"
10
"fctid %0, %1\n" : "=d"(n), "+f"(x));
11
return n;
12
}
13
14
#else
15
16
#include "../lroundf.c"
17
18
#endif