2008-07-06 15:10:32 +00:00
|
|
|
.\" Written Sat Mar 8 10:35:08 MEZ 1997 by
|
|
|
|
.\" J. "MUFTI" Scheurich (mufti@csv.ica.uni-stuttgart.de)
|
2006-06-01 20:30:30 +00:00
|
|
|
.\" This page is licensed under the GNU General Public License
|
|
|
|
.\"
|
2007-05-18 09:55:10 +00:00
|
|
|
.TH __SETFPUCW 3 1997-03-08 "Linux" "Linux Programmer's Manual"
|
2004-11-03 13:51:07 +00:00
|
|
|
.SH NAME
|
2007-06-16 07:34:33 +00:00
|
|
|
__setfpucw \- set FPU control word on i386 architecture (obsolete)
|
2004-11-03 13:51:07 +00:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.B #include <i386/fpu_control.h>
|
|
|
|
.sp
|
2007-07-13 08:45:03 +00:00
|
|
|
.BI "void __setfpucw(unsigned short " control_word );
|
2004-11-03 13:51:07 +00:00
|
|
|
.SH DESCRIPTION
|
2005-10-19 06:54:38 +00:00
|
|
|
.BR __setfpucw ()
|
2004-11-03 13:51:07 +00:00
|
|
|
transfers
|
2007-04-12 22:42:49 +00:00
|
|
|
.I control_word
|
2008-07-23 02:57:20 +00:00
|
|
|
to the registers of the FPU (floating-point unit) on the i386 architecture.
|
|
|
|
This was used to control floating-point precision,
|
|
|
|
rounding and floating-point exceptions.
|
2007-07-18 20:25:46 +00:00
|
|
|
.SH CONFORMING TO
|
accept.2, execve.2, futimesat.2, getresuid.2, getrlimit.2, madvise.2, mq_getsetattr.2, msgctl.2, nice.2, open.2, poll.2, setresuid.2, shmctl.2, sigaction.2, times.2, utimensat.2, __setfpucw.3, atoi.3, endian.3, err.3, euidaccess.3, fenv.3, fopencookie.3, fpurge.3, getgrouplist.3, getutmp.3, j0.3, lgamma.3, netlink.3, pthread_attr_init.3, pthread_attr_setaffinity_np.3, pthread_cleanup_push_defer_np.3, pthread_getattr_np.3, pthread_kill_other_threads_np.3, pthread_setaffinity_np.3, pthread_tryjoin_np.3, pthread_yield.3, random_r.3, readdir.3, rtnetlink.3, scanf.3, setenv.3, significand.3, sigsetops.3, strerror.3, strstr.3, sysv_signal.3, termios.3, timegm.3, unlocked_stdio.3, y0.3, locale.5, bootparam.7, feature_test_macros.7, ip.7, locale.7, pthreads.7, rtld-audit.7, nscd.8: Global fix: s/non-standard/nonstandard/
The tendency in English, as prescribed in style guides like
Chicago MoS, is towards removing hyphens after prefixes
like "non-" etc.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-01-16 16:37:52 +00:00
|
|
|
This function was a nonstandard GNU extension.
|
2007-06-16 07:34:33 +00:00
|
|
|
.SH NOTES
|
2004-11-03 13:51:07 +00:00
|
|
|
As of glibc 2.1 this function does not exist anymore.
|
2006-08-03 13:57:30 +00:00
|
|
|
There are new functions from C99, with prototypes in
|
2007-12-10 07:08:12 +00:00
|
|
|
.IR <fenv.h> ,
|
2007-06-16 07:34:33 +00:00
|
|
|
to control FPU rounding modes, like
|
2004-11-03 13:51:07 +00:00
|
|
|
.IR fegetround ,
|
|
|
|
.IR fesetround ,
|
2008-07-23 02:57:20 +00:00
|
|
|
and the floating-point environment, like
|
2004-11-03 13:51:07 +00:00
|
|
|
.IR fegetenv ,
|
|
|
|
.IR feholdexcept ,
|
|
|
|
.IR fesetenv ,
|
2007-09-20 16:26:31 +00:00
|
|
|
.I feupdateenv
|
2007-06-16 07:34:33 +00:00
|
|
|
and FPU exception handling, like
|
2004-11-03 13:51:07 +00:00
|
|
|
.IR feclearexcept ,
|
|
|
|
.IR fegetexceptflag ,
|
|
|
|
.IR feraiseexcept ,
|
|
|
|
.IR fesetexceptflag ,
|
|
|
|
.IR fetestexcept .
|
|
|
|
.PP
|
2007-12-16 13:39:24 +00:00
|
|
|
If direct access to the FPU control word is still needed, the
|
|
|
|
.B _FPU_GETCW
|
|
|
|
and
|
|
|
|
.B _FPU_SETCW
|
|
|
|
macros from
|
2007-12-10 07:08:12 +00:00
|
|
|
.I <fpu_control.h>
|
2004-11-03 13:51:07 +00:00
|
|
|
can be used.
|
2007-05-19 04:30:20 +00:00
|
|
|
.SH EXAMPLE
|
2007-09-20 16:26:31 +00:00
|
|
|
.B __setfpucw(0x1372)
|
2007-05-19 04:30:20 +00:00
|
|
|
|
2007-06-16 07:34:33 +00:00
|
|
|
Set FPU control word on the i386 architecture to
|
2007-05-19 04:30:20 +00:00
|
|
|
.br
|
|
|
|
\- extended precision
|
|
|
|
.br
|
|
|
|
\- rounding to nearest
|
|
|
|
.br
|
|
|
|
\- exceptions on overflow, zero divide and NaN
|
2004-11-03 13:51:07 +00:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR feclearexcept (3)
|
|
|
|
.br
|
2007-12-10 07:08:12 +00:00
|
|
|
.I <fpu_control.h>
|