Changeset 681

Show
Ignore:
Timestamp:
05/02/08 08:36:05 (8 months ago)
Author:
Don Clugston
Message:

Bugfix(typo) for issubnormal() on non-X86 systems.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/phobos/std/math.d

    r667 r681  
    15991599    alias floatTraits!(real) F; 
    16001600    static if (real.mant_dig == 53) { // double 
    1601         return isSubnormal(cast(double)x); 
    1602     } else static if (real.mant_dig == 113) { // quadruple         
     1601        return issubnormal(cast(double)x); 
     1602    } else static if (real.mant_dig == 113) { // quadruple 
    16031603        ushort e = F.EXPMASK & (cast(ushort *)&x)[F.EXPPOS_SHORT]; 
    16041604        long*   ps = cast(long *)&x; 
     
    16111611        return (pe[F.EXPPOS_SHORT] & F.EXPMASK) == 0 && *ps > 0; 
    16121612    } else { // double double 
    1613         return isSubnormal(cast(double*)(&x)[MANTISSA_MSB]); 
    1614     } 
    1615 
    1616  
     1613        return issubnormal((cast(double*)&x)[MANTISSA_MSB]); 
     1614    } 
     1615
    16171616unittest 
    16181617{