X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=fltpoint.c;h=fa1eb41ad9c78af887a63b444f099a4ecf184d95;hp=1de5d0ac42a3cd5d53aae63beabf0e1eec17e9e8;hb=9153334781cd2e23750f4dc002e847606c07a1f0;hpb=81c752326a21408c84f98a18aed065491a88b779 diff --git a/fltpoint.c b/fltpoint.c index 1de5d0a..fa1eb41 100644 --- a/fltpoint.c +++ b/fltpoint.c @@ -72,7 +72,7 @@ uint32_t FloatToIEEE754(float f) // [+0.5, +1)) and base-2 exponent // d = mantissa * (2 ^ exponent) *exactly* for FLT_RADIX=2 // Also, since we want the mantissa to be non-inverted (2's complemented), - // we make sure to pass in a positive number (floats/doubles are not 2's + // we make sure to pass in a positive number (floats/doubles are *not* 2's // complemented) as we already captured the sign bit above. int32_t exponent; float mantissa = frexpf((f < 0 ? -f : f), &exponent); @@ -111,7 +111,7 @@ uint64_t DoubleToIEEE754(double d) // and base-2 exponent // d = mantissa * (2 ^ exponent) *exactly* for FLT_RADIX=2 // Also, since we want the mantissa to be non-inverted (2's complemented), - // we make sure to pass in a positive number (floats/doubles are not 2's + // we make sure to pass in a positive number (floats/doubles are *not* 2's // complemented) as we already captured the sign bit above. double mantissa = frexp((d < 0 ? -d : d), &exponent);