Debian Codegraph @

libc-top-half/musl/src/math/powerpc64/lround.c

raw
1 #include <math.h>
2
3 #ifdef __VSX__
4
5 long lround(double x)
6 {
7 long n;
8 __asm__ (
9 "xsrdpi %1, %1\n"
10 "fctid %0, %1\n" : "=d"(n), "+d"(x));
11 return n;
12 }
13
14 #else
15
16 #include "../lround.c"
17
18 #endif