Date: Fri, 11 Jan 2008 18:27:01 +0000 (UTC) From: Bruce Evans <bde@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/i386/include ieeefp.h Message-ID: <200801111827.m0BIR2bt026340@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801111827.m0BIR2bt026340>