History log of /seL4-refos-master/libs/libmuslc/src/math/x32/exp2l.s
Revision Date Author Comments
# 18938c29 23-Apr-2015 Rich Felker <dalias@aerifal.cx>

fix regression in x86_64 math asm with old binutils

the implicit-operand form of fucomip is rejected by binutils 2.19 and
perhaps other versions still in use. writing both operands explicitly
fixes the issue. there is no change to the resulting output.

commit a732e80d33b4fd6f510f7cec4f5573ef5d89bc4e was the source of this
regression.


# a732e80d 05-Nov-2014 Szabolcs Nagy <nsz@port70.net>

math: fix x86_64 and x32 asm not to use sahf instruction

Some early x86_64 cpus (released before 2006) did not support sahf/lahf
instructions so they should be avoided (intel manual says they are only
supported if CPUID.80000001H:ECX.LAHF-SAHF[bit 0] = 1).

The workaround simplifies exp2l and expm1l because fucomip can be
used instead of the fucomp;fnstsw;sahf sequence copied from i386.

In fmodl and remainderl sahf is replaced by a simple bit test.


# 664cd341 07-Jan-2014 rofl0r <retnyg@gmx.net>

x32 port (diff against vanilla x86_64)


# 323272db 07-Jan-2014 rofl0r <retnyg@gmx.net>

import vanilla x86_64 code as x32