diff options
author | B. Watson <yalhcru@gmail.com> | 2021-03-25 15:14:25 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2021-03-25 15:14:25 -0400 |
commit | 47ce755193d18704ffaf9dc3e5953dd6966f1db1 (patch) | |
tree | 9fe93ec785dd26062459563c008db5db4194a1d9 /taipan.c | |
parent | ea2d5014ade974ca99678d3aac36ebd4c8e4d8c6 (diff) | |
download | taipan-47ce755193d18704ffaf9dc3e5953dd6966f1db1.tar.gz |
Save 27 bytes
Diffstat (limited to 'taipan.c')
-rw-r--r-- | taipan.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -616,10 +616,19 @@ void cprintfancy_big(bignump b) { big_copy(tmp, b); + /* This is gross, but it saves 13 bytes here, plus another + 14 because we can remove big_negate from bigfloat.s. */ +#if BIGNUM == BIGFLOAT + if(tmp[0] & 0x80) { + cputc('-'); + tmp[0] ^= 0x80; + } +#else if(big_cmp(tmp, big0) < 0) { cputc('-'); big_negate(tmp); } +#endif if(big_cmp(tmp, big1T) >= 0) { // inverse "1 Trillion+!": |