values.h File

Purpose

Defines machine-dependent values.

Description

The /usr/include/values.h file contains a set of constants that are conditionally defined for particular processor architectures. The model for integers is assumed to be a ones or twos complement binary representation, in which the sign is represented by the value of the high-order bit.

Item Description
BITS(type) Number of bits in the specified data type
HIBITS Short integer with only the high-order bit set (0x8000)
HIBITL Long integer with only the high-order bit set (0x80000000)
HIBITI Regular integer with only the high-order bit set (same as the HIBITL value)
MAXSHORT Maximum value of a signed short integer (0x7FFF = 32,767)
MAXLONG Maximum value of a signed long integer (0x7FFFFFFF = 2,147,483,647)
MAXINT Maximum value of a signed regular integer (same as the MAXLONG value)
MAXFLOAT Maximum value of a single-precision floating-point number
MAXDOUBLE Maximum value of a double-precision floating-point number
LN_MAXDOUBLE Natural logarithm of the MAXDOUBLE value
MINFLOAT Minimum positive value of a single-precision floating-point number
MINDOUBLE Minimum positive value of a double-precision floating-point number
FSIGNIF Number of significant bits in the mantissa of a single-precision floating-point number
DSIGNIF Number of significant bits in the mantissa of a double-precision floating-point number
FMAXEXP Maximum exponent of a single-precision floating-point number
DMAXEXP Maximum exponent of a double-precision floating-point number
FMINEXP Minimum exponent of a single-precision floating-point number
DMINEXP Minimum exponent of a double-precision floating-point number
FMAXPOWTWO Largest power of two that can be exactly represented as a single-precision floating-point number
DMAXPOWTWO Largest power of two that can be exactly represented as a double-precision floating-point number