summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/sprintf.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2008-01-11 18:27:01 +0000
committerbde <bde@FreeBSD.org>2008-01-11 18:27:01 +0000
commitb1a379ee656f7f3ee5bb8d3f47b2fd30ee48b8eb (patch)
tree16a832da476a257c12b147ebb2243e595b3218a5 /lib/libc/stdio/sprintf.c
parent466cc1c021f230db7007d6a57d79d2cefb5c0993 (diff)
downloadFreeBSD-src-b1a379ee656f7f3ee5bb8d3f47b2fd30ee48b8eb.zip
FreeBSD-src-b1a379ee656f7f3ee5bb8d3f47b2fd30ee48b8eb.tar.gz
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.
Diffstat (limited to 'lib/libc/stdio/sprintf.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud