1floatingpoint.h(3HEAD)              Headers             floatingpoint.h(3HEAD)
2
3
4

NAME

6       floatingpoint.h, floatingpoint - IEEE floating point definitions
7

SYNOPSIS

9       #include <floatingpoint.h>
10
11

DESCRIPTION

13       This  file  defines  constants,  types, and functions used to implement
14       standard floating point according to ANSI/IEEE Std 754-1985. The  func‐
15       tions  are implemented in libc. The included header file <sys/ieeefp.h>
16       defines certain types of interest to the kernel.
17
18   IEEE Rounding Modes
19       fp_direction_type      The type of the IEEE  rounding  direction  mode.
20                              Note:  the order of enumeration varies according
21                              to hardware.
22
23
24       fp_precision_type      The type of the IEEE  rounding  precision  mode,
25                              which  only  applies  on  systems  that  support
26                              extended precision such as machines based on the
27                              Intel 80387 FPU or the 80486. SIGFPE handling:
28
29
30       sigfpe_code_type       The type of a SIGFPE code.
31
32
33       sigfpe_handler_type    The  type  of  a user-definable SIGFPE exception
34                              handler called to  handle  a  particular  SIGFPE
35                              code.
36
37
38       SIGFPE_DEFAULT         A  macro indicating the default SIGFPE exception
39                              handling, namely to perform the  exception  han‐
40                              dling  specified by the user, if any, and other‐
41                              wise to dump core using abort(3C).
42
43
44       SIGFPE_IGNORE          A macro indicating an alternate SIGFPE exception
45                              handling,  namely  to ignore and continue execu‐
46                              tion.
47
48
49       SIGFPE_ABORT           A macro indicating an alternate SIGFPE exception
50                              handling, namely to abort with a core dump.
51
52
53   IEEE Exception Handling
54       N_IEEE_EXCEPTION           The  number  of distinct IEEE floating-point
55                                  exceptions.
56
57
58       fp_exception_type          The type of the N_IEEE_EXCEPTION exceptions.
59                                  Each exception is given a bit number.
60
61
62       fp_exception_field_type    The   type   intended   to   hold  at  least
63                                  N_IEEE_EXCEPTION bits corresponding  to  the
64                                  IEEE   exceptions   numbered   by  fp_excep‐
65                                  tion_type. Thus  fp_inexact  corresponds  to
66                                  the  least significant bit and fp_invalid to
67                                  the fifth least significant bit. Note:  some
68                                  operations may set more than one exception.
69
70
71   IEEE Formats and Classification
72       single;extended;quadruple
73
74           Definitions of IEEE formats.
75
76
77       fp_class_type
78
79           An enumeration of the various classes of IEEE values and symbols.
80
81
82   IEEE Base Conversion
83       The   functions   described  under  floating_to_decimal(3C)  and  deci‐
84       mal_to_floating(3C) satisfy not only the IEEE Standard,  but  also  the
85       stricter requirements of correct rounding for all arguments.
86
87       DECIMAL_STRING_LENGTH     The length of a decimal_string.
88
89
90       decimal_string            The digit buffer in a decimal_record.
91
92
93       decimal_record            The   canonical   form  for  representing  an
94                                 unpacked decimal floating-point number.
95
96
97       decimal_form              The type used to specify  fixed  or  floating
98                                 binary to decimal conversion.
99
100
101       decimal_mode              A  struct  that  contains  specifications for
102                                 conversion between binary and decimal.
103
104
105       decimal_string_form       An enumeration of  possible  valid  character
106                                 strings  representing floating-point numbers,
107                                 infinities, or NaNs.
108
109

FILES

111       /usr/include/sys/ieeefp.h
112

SEE ALSO

114       abort(3C),  decimal_to_floating(3C),  econvert(3C),   floating_to_deci‐
115       mal(3C), sigfpe(3C), string_to_decimal(3C), strtod(3C)
116
117
118
119SunOS 5.11                        5 Mar 1993            floatingpoint.h(3HEAD)
Impressum