Changeset a96c570 in mainline for softfloat/generic/comparison.c


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/generic/comparison.c

    r4a5abddd ra96c570  
    4141
    4242inline int isFloat32SigNaN(float32 f)
    43 {       /* SigNaN : exp = 0xff mantisa = 1xxxxx..x (binary), where at least one x is nonzero */
    44         return ((f.parts.exp==0xFF)&&(f.parts.mantisa>0x400000));
     43{       /* SigNaN : exp = 0xff mantisa = 0xxxxx..x (binary), where at least one x is nonzero */
     44        return ((f.parts.exp==0xFF)&&(f.parts.mantisa<0x400000)&&(f.parts.mantisa));
    4545};
    4646
    4747inline int isFloat64SigNaN(float64 d)
    48 {       /* SigNaN : exp = 0x7ff mantisa = 1xxxxx..x (binary), where at least one x is nonzero */
    49         return ((d.parts.exp==0x7FF)&&(d.parts.mantisa>0x8000000000000ll));
     48{       /* SigNaN : exp = 0x7ff mantisa = 0xxxxx..x (binary), where at least one x is nonzero */
     49        return ((d.parts.exp==0x7FF)&&(d.parts.mantisa)&&(d.parts.mantisa<0x8000000000000ll));
    5050};
    5151
Note: See TracChangeset for help on using the changeset viewer.