Changeset 1266543 in mainline for softfloat/include/sftypes.h


Ignore:
Timestamp:
2006-02-07T00:41:18Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1a030b8
Parents:
b7e65d4
Message:

32 bit float division added.
Some small bugs fixed.
Code cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • softfloat/include/sftypes.h

    rb7e65d4 r1266543  
    3838                __u32 sign:1;
    3939                __u32 exp:8;
    40                 __u32 mantisa:23;
     40                __u32 fraction:23;
    4141                #elif defined __LITTLE_ENDIAN__
    42                 __u32 mantisa:23;
     42                __u32 fraction:23;
    4343                __u32 exp:8;
    4444                __u32 sign:1;
     
    5757                __u64 sign:1;
    5858                __u64 exp:11;
    59                 __u64 mantisa:52;
     59                __u64 fraction:52;
    6060                #elif defined __LITTLE_ENDIAN__
    61                 __u64 mantisa:52;
     61                __u64 fraction:52;
    6262                __u64 exp:11;
    6363                __u64 sign:1;
     
    8282#define FLOAT64_INF 0x7FF0000000000000ll
    8383
    84 #define FLOAT32_MANTISA_SIZE 23
    85 #define FLOAT64_MANTISA_SIZE 52
     84#define FLOAT32_FRACTION_SIZE 23
     85#define FLOAT64_FRACTION_SIZE 52
    8686
    8787#define FLOAT32_HIDDEN_BIT_MASK 0x800000
Note: See TracChangeset for help on using the changeset viewer.