Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Floating-Point Guide: HP 9000 Computers

Chapter 5 Manipulating the Floating-Point Status Register

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

The floating-point status register (also known as the floating-point control register) stores information about several aspects of the floating-point environment:

  • The rounding mode

  • What traps are enabled—that is, what exceptions your program can catch

  • If traps are not enabled, what exceptions have occurred

  • Whether flush-to-zero underflow mode is set (for systems that have this capability)

  • The model and revision of the system's floating-point unit (FPU) (also called the floating-point coprocessor)

HP-UX systems provide facilities that allow you to manipulate the status register. The fenv(5) suite, a group of C math library functions, allows you to retrieve any of this information or to modify the environment. The +FP compiler option allows you to specify on the command line the traps to enable for a particular program and the underflow mode.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1997 Hewlett-Packard Development Company, L.P.