Changeset e591928 in mainline


Ignore:
Timestamp:
2006-03-16T11:04:52Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b81e7c6
Parents:
585819d
Message:

Softfloat warnings fixed.

Location:
softfloat/generic
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • softfloat/generic/comparison.c

    r585819d re591928  
    3333{       /* NaN : exp = 0xff and nonzero fraction */
    3434        return ((f.parts.exp==0xFF)&&(f.parts.fraction));
    35 };
     35}
    3636
    3737inline int isFloat64NaN(float64 d)
    3838{       /* NaN : exp = 0x7ff and nonzero fraction */
    3939        return ((d.parts.exp==0x7FF)&&(d.parts.fraction));
    40 };
     40}
    4141
    4242inline int isFloat32SigNaN(float32 f)
    4343{       /* SigNaN : exp = 0xff fraction = 0xxxxx..x (binary), where at least one x is nonzero */
    4444        return ((f.parts.exp==0xFF)&&(f.parts.fraction<0x400000)&&(f.parts.fraction));
    45 };
     45}
    4646
    4747inline int isFloat64SigNaN(float64 d)
    4848{       /* SigNaN : exp = 0x7ff fraction = 0xxxxx..x (binary), where at least one x is nonzero */
    4949        return ((d.parts.exp==0x7FF)&&(d.parts.fraction)&&(d.parts.fraction<0x8000000000000ll));
    50 };
     50}
    5151
    5252inline int isFloat32Infinity(float32 f)
    5353{
    5454        return ((f.parts.exp==0xFF)&&(f.parts.fraction==0x0));
    55 };
     55}
    5656
    5757inline int isFloat64Infinity(float64 d)
    5858{
    5959        return ((d.parts.exp==0x7FF)&&(d.parts.fraction==0x0));
    60 };
     60}
    6161
    6262inline int isFloat32Zero(float32 f)
  • softfloat/generic/conversion.c

    r585819d re591928  
    443443        int counter;
    444444        int32_t exp;
    445         int32_t j;
     445        uint32_t j;
    446446        float32 result;
    447447       
  • softfloat/generic/softfloat.c

    r585819d re591928  
    481481{
    482482/* TODO: */
    483 }
    484 
     483        float32 fa;
     484        fa.binary = FLOAT32_NAN;
     485        return fa.f;
     486}
     487
Note: See TracChangeset for help on using the changeset viewer.