The <values.h> Header File

Various platform-dependent constants

Constants

_DEXPLEN
Number of exponent bits for double precision.
_EXPBASE
Exponent base used for floating point representation.
_FEXPLEN
Number of exponent bits for single precision.
_IEEE
Boolean flag: tells that TI floats are not compatible with IEEE standard.
BITSPERBYTE
Number of bits per one byte.
DMAXEXP
Maximal floating point exponent for double precision; greater exponents are principally possible (up to 16383), but not supported in all math functions.
DMAXPOWTWO
Maximal power of two in double precision.
DMINEXP
Minimal floating point exponent for double precision; smaller exponents are principally possible (up to -16383), but not supported in all math functions.
DSIGNIF
Number of mantissa bits for double precision.
FMAXEXP
Maximal floating point exponent for single precision.
FMAXPOWTWO
Maximal power of two in single precision.
FMINEXP
Minimal floating point exponent for single precision.
FSIGNIF
Number of mantissa bits for single precision.
HIBITI
The most significant bit mask for the int type.
HIBITL
The most significant bit mask for the long int type.
HIBITS
The most significant bit mask for the short int type.
LN_MAXDOUBLE
Natural logarithm of MAXDOUBLE.
LN_MINDOUBLE
Natural logarithm of MINDOUBLE.
MAXDOUBLE
Maximum floating point number for double precision (see notes about DMAXEXP).
MAXFLOAT
Maximum floating point number for single precision.
MAXINT
Maximum value which can be stored in an int variable.
MAXLONG
Maximum value which can be stored in a long int variable.
MAXSHORT
Maximum value which can be stored in a short int variable.
MINDOUBLE
Minimum floating point number for single precision (see notes about DMINEXP).
MINFLOAT
Minimum floating point number for single precision.

Predefined Types

bcd
Represents the internal organization of floating point numbers in the format recognized by the TIOS.
ti_float
An alias for the standard ANSI float type.

See also: limits.h, float.h


_DEXPLEN

#define _DEXPLEN 15

Number of exponent bits for double precision.


_EXPBASE

#define _EXPBASE 10

Exponent base used for floating point representation.


_FEXPLEN

#define _FEXPLEN 15

Number of exponent bits for single precision.


_IEEE

#define _IEEE 0

Boolean flag: tells that TI floats are not compatible with IEEE standard.


BITSPERBYTE

#define BITSPERBYTE 8

Number of bits per one byte.


DMAXEXP

#define DMAXEXP 999

Maximal floating point exponent for double precision; greater exponents are principally possible (up to 16383), but not supported in all math functions.


DMAXPOWTWO

#define DMAXPOWTWO 3321

Maximal power of two in double precision.


DMINEXP

#define DMINEXP (-999)

Minimal floating point exponent for double precision; smaller exponents are principally possible (up to -16383), but not supported in all math functions.


DSIGNIF

#define DSIGNIF 64

Number of mantissa bits for double precision.


FMAXEXP

#define FMAXEXP 999

Maximal floating point exponent for single precision.


FMAXPOWTWO

#define FMAXPOWTWO 3321

Maximal power of two in single precision.


FMINEXP

#define FMINEXP (-999)

Minimal floating point exponent for single precision.


FSIGNIF

#define FSIGNIF 56

Number of mantissa bits for single precision.


HIBITI

#define HIBITI 0x8000/0x80000000

The most significant bit mask for the int type.


HIBITL

#define HIBITL 0x80000000L

The most significant bit mask for the long int type.


HIBITS

#define HIBITS 0x8000

The most significant bit mask for the short int type.


LN_MAXDOUBLE

#define LN_MAXDOUBLE (2303.58509299)

Natural logarithm of MAXDOUBLE.


LN_MINDOUBLE

#define LN_MINDOUBLE (-2300.2825079)

Natural logarithm of MINDOUBLE.


MAXDOUBLE

#define MAXDOUBLE (9.999999999999999e999)

Maximum floating point number for double precision (see notes about DMAXEXP).


MAXFLOAT

#define MAXFLOAT (9.999999999999999e999)

Maximum floating point number for single precision.


MAXINT

#define MAXINT 0x7FFF/0x7FFFFFFF

Maximum value which can be stored in an int variable.


MAXLONG

#define MAXLONG 0x7FFFFFFFL

Maximum value which can be stored in a long int variable.


MAXSHORT

#define MAXSHORT 0x7FFF

Maximum value which can be stored in a short int variable.


MINDOUBLE

#define MINDOUBLE (1e-999)

Minimum floating point number for single precision (see notes about DMINEXP).


MINFLOAT

#define MINFLOAT (1e-999)

Minimum floating point number for single precision.


Return to the main index