From 47ce755193d18704ffaf9dc3e5953dd6966f1db1 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 25 Mar 2021 15:14:25 -0400 Subject: Save 27 bytes --- taipan.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'taipan.c') diff --git a/taipan.c b/taipan.c index d1cb8ed..d7aa888 100644 --- a/taipan.c +++ b/taipan.c @@ -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+!": -- cgit v1.2.3