mingw-w64-crt/math/arm64/rintf.c
raw| 1 | /** |
| 2 | * This file has no copyright assigned and is placed in the Public Domain. |
| 3 | * This file is part of the mingw-w64 runtime package. |
| 4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package. |
| 5 | */ |
| 6 | #include <math.h> |
| 7 | |
| 8 | float rintf (float x) { |
| 9 | float retval = 0.0F; |
| 10 | __asm__ __volatile__ ("frintx %s0, %s1\n\t" : "=w" (retval) : "w" (x)); |
| 11 | return retval; |
| 12 | } |