mingw-w64-crt/math/arm/nearbyint.S
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 <_mingw_mac.h> |
| 7 | |
| 8 | .file "nearbyint.S" |
| 9 | .text |
| 10 | .align 4 |
| 11 | .globl __MINGW_USYMBOL(nearbyint) |
| 12 | .def __MINGW_USYMBOL(nearbyint); .scl 2; .type 32; .endef |
| 13 | __MINGW_USYMBOL(nearbyint): |
| 14 | push {r4, lr} |
| 15 | vmrs r4, fpscr |
| 16 | bl rint |
| 17 | vmsr fpscr, r4 |
| 18 | pop {r4, pc} |