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.
6 #include <_mingw_mac.h>
11 .globl __MINGW_USYMBOL(ceilf)
12 .def __MINGW_USYMBOL(ceilf); .scl 2; .type 32; .endef
14 .seh_proc __MINGW_USYMBOL(ceilf)
17 __MINGW_USYMBOL(ceilf):
18 #if defined(_AMD64_) || defined(__x86_64__)
37 addss .hugeval(%rip), %xmm0
38 ucomiss .zeroval(%rip), %xmm0
64 addss .hugeval(%rip), %xmm0
65 ucomiss .zeroval(%rip), %xmm0
69 movl $1065353216, %edx
78 movl $-2147483648, 8(%rsp)
90 #elif defined(_ARM_) || defined(__arm__)
92 bic r0, r1, #0x00c00000
93 orr r0, r0, #0x00400000 /* Round towards Plus Infinity */
99 #elif defined(_X86_) || defined(__i386__)
103 fstcw 4(%esp) /* store fpu control word */
105 /* We use here %edx although only the low 1 bits are defined.
106 But none of the operations should care and they are faster
107 than the 16 bit operations. */
108 movl $0x0800,%edx /* round towards +oo */
112 fldcw (%esp) /* load modified control word */
116 fldcw 4(%esp) /* restore original control word */