Jump to content
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

Transition Impacts

Tru64 UNIX Software Transition Kit


» HP STK home
» Home
» Overview
» Tools
» Documentation
» Transition impacts
» Identifier types
» Impact list
» Porting to HP-UX
» Glossary
» Help
» Send us feedback
Site maps
» Tru64 UNIX STK
Content starts here

critical impact:

write_rnd and read_rnd - not available; use fesetround and fegetround (CrUn66)

UN Impacts

Problem description

The write_rnd and read_rnd routines exist on Tru64 UNIX, but not on HP-UX.

The write_rnd and read_rnd routines set and return IEEE dynamic rounding mode for floating-point operations.


C/C++ Functionsread_rnd C/C++ Functionswrite_rnd      

See also

Solution description

Replace write_rnd with fesetround and read_rnd with fegetround to achieve similar results.

The correct way for applications to set and get IEEE dynamic rounding mode is to use fesetround and fegetround. Note that fesetround and fegetround may not behave exactly the same as write_rnd and read_rnd. See the Floating Point section in the Tru64 UNIX to HP-UX 11i Porting Guide for more information.

See also

Problem summary

classifications source types OS release severity type
UN C, C++ any HP-UX 11i version critical unavailable
Printable version
Privacy statement Using this site means you accept its terms Feedback to DSPP
© 2007 Hewlett-Packard Development Company, L.P.