Query: write_rnd
OS: osf1
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
write_rnd(3) Library Functions Manual write_rnd(3)NAMEwrite_rnd, read_rnd - Sets and returns IEEE dynamic rounding mode for floating-point operationsLIBRARYStandard C Library (libc.so, libc.a)SYNOPSIS#include <float.h> unsigned int write_rnd( unsigned int rnd); unsigned int read_rnd();DESCRIPTIONThe write_rnd function sets the dynamic rounding mode in the floating-point control register (fpcr) for IEEE floating-point operations and returns the previous dynamic rounding mode. Dynamic rounding mode for IEEE floating-point operations is enabled for code generated by the C compiler by specifying -fprm d to cc(1), and by using the d floating-point instruction operator in assembly language code. Specify rnd as one of the following constants defined in float.h --------------------------------------------------- Constant Meaning --------------------------------------------------- FP_RND_RZ Round toward zero (chopped rounding) FP_RND_RN Round toward nearest (normal rounding) FP_RND_RP Round toward plus infinity FP_RND_RM Round toward minus infinity --------------------------------------------------- The read_rnd function returns the current dynamic rounding mode for floating-point operations.RETURN VALUESThe write_rnd function returns the previous IEEE floating-point rounding mode. The read_rnd function returns the current IEEE floating- point rounding mode.RELATED INFORMATIONCommands: cc(1). Files: float.h. Assembly Language Programmer's Guide. Alpha Architecture Reference Manual. IEEE Standard for Binary Floating-Point Arithmetic delim off write_rnd(3)
Related Man Pages |
---|
fesetround(3) - mojave |
fegetround(3m) - hpux |
fpgetround(3) - netbsd |
write_rnd(3) - osf1 |
fesetround(3) - osx |
Similar Topics in the Unix Linux Community |
---|
Floating Point Division |
Rounding off the value of Floating point value |
Floating point Emulator |
Floating Point |
printf (awk,perl,shell) float rounding issue |