Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ values(M) — OpenDesktop 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

Intro(S)

math(M)


 values(M)                     06 January 1993                      values(M)


 Name

    values - machine-dependent values

 Syntax

    #include <values.h>

 Description

    This file contains a set of manifest constants, conditionally defined for
    particular processor architectures.

    The model assumed for integers is binary representation (ones or twos
    complement), where the sign is represented by the value of the high-order
    bit.

    BITS(type)          The number of bits in a specified type (for example,
                        int).

    HIBITS              The value of a short integer with only the high-order
                        bit set (in most implementations, 0x8000).

    HIBITL              The value of a long integer with only the high-order
                        bit set (in most implementations, 0x80000000).

    HIBITI              The value of a regular integer with only the high-
                        order bit set (usually the same as HIBITS or HIBITL).

    MAXSHORT            The maximum value of a signed short integer (in most
                        implementations, 0x7FFF = 32767).

    MAXLONG             The maximum value of a signed long integer (in most
                        implementations, 0x7FFFFFFF = 2147483647).

    MAXINT              The maximum value of a signed regular integer (usu-
                        ally the same as MAXSHORT or MAXLONG).

    MAXFLOAT
    LNMAXFLOAT         The maximum value of a single-precision floating-
                        point number, and its natural logarithm.

    MAXDOUBLE
    LNMAXDOUBLE        The maximum value of a double-precision floating-
                        point number, and its natural logarithm.

    MINFLOAT
    LNMINFLOAT         The minimum positive value of a single-precision
                        floating-point number, and its natural logarithm.

    MINDOUBLE
    LNMINDOUBLE        The minimum positive value of a double-precision
                        floating-point number, and its natural logarithm.

    FSIGNIF             The number of significant bits in the mantissa of a
                        single-precision floating-point number.

    DSIGNIF             The number of significant bits in the mantissa of a
                        double-precision floating-point number.

 See also

    Intro(S), math(M)

 Standards conformance

    values is conformant with:

    X/Open Portability Guide, Issue 3, 1989.


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026