HP-UX Floating-Point Guide

Index
Index 237
equality
testing floating-point values
for
, 72, 84
errno variable
, 105
errno.h header file
, 105
error conditions. See exception
conditions
error handling
C math library
, 104
Fortran math library
, 106
errors
compiling and linking
, 224
errors, math library
domain
, 74
effect on application results
, 74
range
, 74
exception conditions
, 53
division by zero
, 59
effect on application results
, 74
enabling
, 136, 153
finding out if they occurred
,
133, 164
handling
, 157
inexact result
, 53
integer
, 165
invalid operation
, 58
overflow
, 56
underflow
, 42, 57
exception flags
examining and setting
, 133,
164
math library functions
, 106
overview
, 132
exception processing
IEEE
, 60
exception trap enable bits
examining and setting
, 136
overview
, 132
setting
, 153
setting for library error
handling
, 106
setting from command line
,
148
exceptions. See exception
conditions
exp2 function
, 119
expm1 function
, 118
exponent field
, 36, 39
F
fastmode. See flush-to-zero mode
fdim function
, 119
feclearexcept function
, 133
fegetenv function
, 139
fegetexceptflag function
, 133
fegetflushtozero function
, 145
fegetround function
, 130
fegettrapenable function
, 136
feholdexcept function
, 139
fenv(5) library functions
, 119,
127
fenv.h header file
, 127, 195
feraiseexcept function
, 133
fesetenv function
, 139
fesetexceptflag function
, 133
fesetflushtozero function
, 145
fesetround function
, 130
fesettrapenable function
, 136,
154
fetestexcept function
, 133, 164
feupdateenv function
, 139
finite function
obsolete
, 16
float type math functions
, 115
floating-point
checklist of problems
, 217
coding practices, effect on
application results
, 83
comparison operation
, 62
conversion operation
, 64
defined
, 22
exceptions
, 53
exceptions, processing
, 60
formats
, 36, 40
operations
, 61
overview, 22
performance
, 167
remainder operation
, 66
representation, limits of
, 40
representation, summary
, 48
trap handling
, 151
floating-point classification
macro
, 48, 116
example
, 117
table of values
, 116
floating-point environment
manipulating
, 139
floating-point operations
effect on application results
, 71
floating-point results
factors affecting
, 69
floating-point status register
,
128
+FP option
, 148
exception bit values, table
, 129
fenv(5) functions
, 127
fields, effect on application
results
, 82
illustration
, 128
manipulating
, 125
manipulating on command line
with +FP option
, 148, 153
manipulating with fenv(5)
functions
, 119, 127
optimization and
, 128
floating-point unit (FPU)
, 126
floor
, 92
flush-to-zero mode
and D bit
, 82
D bit and
, 129
examining
, 145
library routines and
, 146
setting
, 145, 183
setting with +FP
, 148
FMA (fused multiply-add)
instructions
, 80, 174, 177
fmax function
, 119
fmin function
, 119