musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/stdio/vfprintf.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2014年11月05日 21:40:29 +0100
committerSzabolcs Nagy <nsz@port70.net>2014年11月05日 21:40:29 +0100
commita732e80d33b4fd6f510f7cec4f5573ef5d89bc4e (patch)
tree66494d38f5374808c3816c83395d5f5850abb607 /src/stdio/vfprintf.c
parentde2b9c21d94e0b76b629fec0060d043f535eef01 (diff)
downloadmusl-a732e80d33b4fd6f510f7cec4f5573ef5d89bc4e.tar.gz
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.
Diffstat (limited to 'src/stdio/vfprintf.c')
0 files changed, 0 insertions, 0 deletions
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月05日 06:27:43 +0000

AltStyle によって変換されたページ (->オリジナル) /