cvs commit: src/sys/i386/include ieeefp.h
Bruce Evans
bde at FreeBSD.org
Fri Jan 11 10:27:02 PST 2008
bde 2008-01-11 18:27:01 UTC
FreeBSD src repository
Modified files:
sys/i386/include ieeefp.h
Log:
Separate fpresetsticky() from the other fpset functions so that the
others can be replaced cleanly by the amd64 versions. There is no
current amd64 version to merge, but there is an old one which is
similar.
Fix the following bugs in fpresetsticky():
- garbage args clobbered non-sticky bits in the status register
- the return value was usually garbage since it was masked with the
arg instead of with the field selector.
Optimize fpresetsticky() to avoid using the environment as in
feclearexcept() (use only fnclex() if possible) and also to avoid
using fnclex() for null changes. The second of these optimizations
might not be so good since its branch might cost more than it saves.
Revision Changes Path
1.13 +27 -4 src/sys/i386/include/ieeefp.h
More information about the cvs-src
mailing list