Subversion Repositories HelenOS-historic

Rev

Rev 732 | Rev 804 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 732 Rev 734
Line 130... Line 130...
130
/** Add two Float64 numbers with same signs
130
/** Add two Float64 numbers with same signs
131
 */
131
 */
132
float64 addFloat64(float64 a, float64 b)
132
float64 addFloat64(float64 a, float64 b)
133
{
133
{
134
    int expdiff;
134
    int expdiff;
-
 
135
    __u32 exp1, exp2;
135
    __u64 exp1, exp2, mant1, mant2;
136
    __u64 mant1, mant2;
136
   
137
   
137
    expdiff = a.parts.exp - b.parts.exp;
138
    expdiff = a.parts.exp - b.parts.exp;
138
    if (expdiff < 0) {
139
    if (expdiff < 0) {
139
        if (isFloat64NaN(b)) {
140
        if (isFloat64NaN(b)) {
140
            //TODO: fix SigNaN
141
            //TODO: fix SigNaN