Annotation of cci/usr/include/FP.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * General definitions of the floating point stuff on Power 6/32.
        !             3:  * The floating point format definition is:
        !             4:  *
        !             5:  *             S    (exp-128)
        !             6:  *         (-1)  * 2          * F
        !             7:  *
        !             8:  *     Where exp is the exponent field and F is the binary
        !             9:  *     mantissa following it, including the hidden bit.
        !            10:  *     The hidden bit actually is 1/2, so F is known to
        !            11:  *     satisfy the range:
        !            12:  *             1/2 <= F < 1
        !            13:  */
        !            14: 
        !            15: typedef struct {
        !            16:        unsigned        sign:1;
        !            17:        unsigned        exponent:8;
        !            18:        unsigned        mantissa:23;
        !            19: } sp_format;
        !            20: 
        !            21: typedef struct {
        !            22:        unsigned        sign:1;
        !            23:        unsigned        exponent:8;
        !            24:        unsigned        mantissa:23;
        !            25:        unsigned        mantissa_lst;
        !            26: } dp_format;
        !            27: 
        !            28: #define        EXP_BIAS        128             /* Exponent bias */
        !            29: #define SIGN_BIT       0x80000000      /* S bit mask */
        !            30: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.