Improve fesetenv performance by avoiding unnecessary FPSR/FPCR reads/writes.
commit3136eb7abd3e45a8622c0272181816c1a92e1f65
authorWilco Dijkstra <wdijkstr@arm.com>
Wed, 5 Aug 2015 13:57:37 +0000 (5 14:57 +0100)
committerWilco Dijkstra <wdijkstr@arm.com>
Wed, 5 Aug 2015 15:24:01 +0000 (5 16:24 +0100)
tree5aeae1b79760c432d5983c725b656f5c0c8aee50
parent782723d6d8c7b599c4fdbbd359a7bc57b25044ad
Improve fesetenv performance by avoiding unnecessary FPSR/FPCR reads/writes.
It uses the same logic as the ARM version. The common case removes 1 FPSR
and 1 FPCR read. For FE_DFL_ENV and FE_NOMASK_ENV a FPCR read is avoided in
case the FPCR does not change.
ChangeLog
sysdeps/aarch64/fpu/fesetenv.c