about summary refs log tree commit diff
path: root/src/math/x32/exp2l.s
Commit message (Collapse)AuthorAgeFilesLines
* math: fix x86_64 and x32 asm not to use sahf instructionSzabolcs Nagy2014-11-051-10/+3
| | | | | | | | | | | 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.
* x32 port (diff against vanilla x86_64)rofl0r2014-02-231-21/+21
|
* import vanilla x86_64 code as x32rofl0r2014-02-231-0/+90