diff options
Diffstat (limited to 'src/math/aarch64/lroundf.c')
-rw-r--r-- | src/math/aarch64/lroundf.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/math/aarch64/lroundf.c b/src/math/aarch64/lroundf.c new file mode 100644 index 00000000..32e51f3c --- /dev/null +++ b/src/math/aarch64/lroundf.c @@ -0,0 +1,8 @@ +#include <math.h> + +long lroundf(float x) +{ + long n; + __asm__ ("fcvtas %x0, %s1" : "=r"(n) : "w"(x)); + return n; +} |