*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> __setfpucw (3)              
Title
Content
Arch
Section
 

__SETFPUCW(3)

Contents


NAME    [Toc]    [Back]

       __setfpucw - set fpu control word on i386 architecture (obsolete)

SYNOPSIS    [Toc]    [Back]

       #include <i386/fpu_control.h>

       void __setfpucw((unsigned short) control_word);

DESCRIPTION    [Toc]    [Back]

       __setfpucw transfers control_word to the registers of the fpu (floating
       point unit) on i386 architecture. This was  used  to  control  floating
       point precision, rounding and floating point exceptions.

EXAMPLE    [Toc]    [Back]

       __setfpucw(0x1372)

       Set fpu control word on i386 architecture to
	    - extended precision
	    - rounding to nearest
	    - exceptions on overflow, zero divide and NaN

AVAILABILITY    [Toc]    [Back]

       As  of  glibc  2.1 this function does not exist anymore.  There are new
       functions from ISO C99, with prototypes in /usr/include/fenv.h, to control
  fpu rounding modes, like fegetround, fesetround, and the floating
       point environment, like fegetenv, feholdexcept,	fesetenv,  feupdateenv
       and   fpu  exception  handling,	like  feclearexcept,  fegetexceptflag,
       feraiseexcept, fesetexceptflag, fetestexcept.   These  functions  don't
       have manpages, but are documented in the info docs.

       If direct acces to the FPU control word is still needed, the _FPU_GETCW
       and _FPU_SETCW macros from /usr/include/fpu_control.h can be used.

SEE ALSO    [Toc]    [Back]

      
      
       feclearexcept(3)
       /usr/include/i386/fpu_control.h



i386 Linux Man Page		  1997-03-08			 __SETFPUCW(3)
[ Back ]
 Similar pages
Name OS Title
ALgetfillpoint IRIX (obsolete) control select() or poll() behavior of an audio port
boot.conf OpenBSD i386-specific second-stage bootstrap
pxeboot OpenBSD i386-specific second-stage PXE bootstrap
boot OpenBSD i386-specific second-stage bootstrap
i386_iopl OpenBSD change the i386 I/O privilege level
boot_i386 OpenBSD i386 system bootstrapping procedures
i386_iopl NetBSD change the i386 I/O privilege level
i386_set_ioperm NetBSD manage i386 per-process I/O permission bitmap
i386_clr_watch FreeBSD manage i386 debug register values
biosboot OpenBSD i386-specific first-stage system bootstrap
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service