mingw-w64-crt/math/arm64/nearbyintf.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 | |
| 7 | #include <math.h> |
| 8 | #include <internal.h> |
| 9 | |
| 10 | __ASM_DEFINE_FUNC(float, nearbyintf, (float x), |
| 11 | "mrs x1, fpcr\n\t" |
| 12 | "frintx s0, s0\n\t" |
| 13 | "msr fpcr, x1\n\t" |
| 14 | "ret") |