Usermode/libc - Misc unused change in printf %f
authorJohn Hodge (sonata) <[email protected]>
Wed, 8 May 2013 06:53:45 +0000 (14:53 +0800)
committerJohn Hodge (sonata) <[email protected]>
Wed, 8 May 2013 06:53:45 +0000 (14:53 +0800)
Usermode/Libraries/libc.so_src/printf.c

index bf07de4..adbe98e 100644 (file)
@@ -473,13 +473,13 @@ int expand_double(double num, uint64_t *Significand, int16_t *Exponent, int *Sig
 //     printf("%llx %i %i %llx\n", *bit_rep, (int)*SignIsNeg, (int)*Exponent, *Significand);
 
        // Subnormals
-       if( *Exponent == -1023 && *Significand != 0 )
+       if( *Exponent == -0x3FF && *Significand != 0 )
                return 1;
        // Infinity
-       if( *Exponent == 0x800 && *Significand == 0)
+       if( *Exponent == 0x400 && *Significand == 0)
                return 2;
        // NaNs
-       if( *Exponent == 0x800 && *Significand != 0)
+       if( *Exponent == 0x400 && *Significand != 0)
                return 3;
 
        return 0;

UCC git Repository :: git.ucc.asn.au