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>
16 /* It is not important that this constant is precise. It is only
17 a value which is known to be on the safe side for using the
18 fyl2xp1 instruction. */
21 .globl __MINGW_USYMBOL(log2l)
22 .def __MINGW_USYMBOL(log2l); .scl 2; .type 32; .endef
23 __MINGW_USYMBOL(log2l):
31 jc 3f // in case x is NaN or ±Inf
32 4: fsub %st(2), %st // x-1 : x : 1
33 fld %st // x-1 : x-1 : x : 1
34 fabs // |x-1| : x-1 : x : 1
35 fcompl limit(%rip) // x-1 : x : 1
39 fstp %st(1) // x-1 : 1
46 2: fstp %st(0) // x : 1
53 3: jp 4b // in case x is ±Inf
67 jc 3f // in case x is NaN or ±Inf
68 4: fsub %st(2), %st // x-1 : x : 1
69 fld %st // x-1 : x-1 : x : 1
70 fabs // |x-1| : x-1 : x : 1
71 fcompl limit // x-1 : x : 1
75 fstp %st(1) // x-1 : 1
79 2: fstp %st(0) // x : 1
83 3: jp 4b // in case x is ±Inf