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


Ignore:
Timestamp:
2006-01-22T15:51:00Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bff16dd
Parents:
4a5abddd
Message:

Added function for 64bit subtraction.
Fixed bug in recognizing signaling and quiet NaNs.
Some 64-bit add and sub testing done.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • softfloat/include/sftypes.h

    r4a5abddd ra96c570  
    7474
    7575/* For recognizing NaNs or infinity use isFloat32NaN and is Float32Inf, comparing with this constants is not sufficient */
    76 #define FLOAT32_NAN 0x7F800001
    77 #define FLOAT32_SIGNAN 0x7FC00000
     76#define FLOAT32_NAN 0x7FC00001
     77#define FLOAT32_SIGNAN 0x7F800001
    7878#define FLOAT32_INF 0x7F800000
     79
     80#define FLOAT64_NAN 0x7FF8000000000001ll
     81#define FLOAT64_SIGNAN 0x7FF0000000000001ll
     82#define FLOAT64_INF 0x7FF0000000000000ll
    7983
    8084#define FLOAT32_MANTISA_SIZE 23
     
    8589
    8690#define FLOAT32_MAX_EXPONENT 0xFF
    87 #define FLOAT64_MAX_EXPONENT 0x8FF
     91#define FLOAT64_MAX_EXPONENT 0x7FF
    8892
    8993#define FLOAT32_BIAS 0x7F
Note: See TracChangeset for help on using the changeset viewer.