Headers floatingpoint.h(3HEAD)
NAME
floatingpoint.h, floatingpoint - IE floating point defini-
tions
SYNOPSIS
#include
DESCRIPTION
This file defines constants, types, and functions used to
implement standard floating point according to ANSI/IE Std
754-1985. The functions are implemented in libc. The
included header file defines certain types of
interest to the kernel.
IE Rounding Modes
fpdirectiontype The type of the IE rounding direc-
tion mode. Note: the order of
enumeration varies according to
hardware.
fpprecisiontype The type of the IE rounding preci-
sion mode, which only applies on sys-
tems that support extended precision
such as machines based on the Intel
80387 FPU or the 80486. SIGFPE han-
dling:
sigfpecodetype The type of a SIGFPE code.
sigfpehandlertype The type of a user-definable SIGFPE
exception handler called to handle a
particular SIGFPE code.
SIGFPEDEFAULT A macro indicating the default SIGFPE
exception handling, namely to perform
the exception handling specified by
the user, if any, and otherwise to
dump core using abort(3C).
SIGFPEIGNORE A macro indicating an alternate
SIGFPE exception handling, namely to
ignore and continue execution.
SIGFPEABORT A macro indicating an alternate
SIGFPE exception handling, namely to
SunOS 5.11 Last change: 5 Mar 1993 1
Headers floatingpoint.h(3HEAD)
abort with a core dump.
IE Exception Handling
NIEXCEPTION The number of distinct IE
floating-point exceptions.
fpexceptiontype The type of the NIEXCEPTION
exceptions. Each exception is
given a bit number.
fpexceptionfieldtype The type intended to hold at
least NIEXCEPTION bits
corresponding to the IE excep-
tions numbered by
fpexceptiontype. Thus
fpinexact corresponds to the
least significant bit and
fpinvalid to the fifth least
significant bit. Note: some
operations may set more than one
exception.
IE Formats and Classification
single;extended;quadruple
Definitions of IE formats.
fpclasstype
An enumeration of the various classes of IE values and
symbols.
IE Base Conversion
The functions described under floatingtodecimal(3C) and
decimaltofloating(3C) satisfy not only the IE Standard,
but also the stricter requirements of correct rounding for
all arguments.
DECIMALSTRINGLENGTH The length of a decimalstring.
decimalstring The digit buffer in a
decimalrecord.
SunOS 5.11 Last change: 5 Mar 1993 2
Headers floatingpoint.h(3HEAD)
decimalrecord The canonical form for represent-
ing an unpacked decimal floating-
point number.
decimalform The type used to specify fixed or
floating binary to decimal conver-
sion.
decimalmode A struct that contains specifica-
tions for conversion between
binary and decimal.
decimalstringform An enumeration of possible valid
character strings representing
floating-point numbers, infini-
ties, or NaNs.
FILES
/usr/include/sys/ieeefp.h
SEE ALSO
abort(3C), decimaltofloating(3C), econvert(3C),
floatingtodecimal(3C), sigfpe(3C), stringtodecimal(3C),
strtod(3C)
SunOS 5.11 Last change: 5 Mar 1993 3
|