bc: yet another library shrink
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 14 Dec 2018 10:00:23 +0000 (11:00 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 14 Dec 2018 10:00:23 +0000 (11:00 +0100)
function                                             old     new   delta
bc_lib                                              1604    1596      -8
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-8)               Total: -8 bytes
   text    data     bss     dec     hex filename
 980160     485    7296  987941   f1325 busybox_old
 980152     485    7296  987933   f131d busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/bc.c

index dd2d7f22c09da42ed86573f00465a1f4e1d6beaa..f0c323d93ce8ac1dd7c610c0052a22c8bef2d106 100644 (file)
@@ -7236,7 +7236,7 @@ static const char bc_lib[] ALIGN1 = {
 "\n"           "}"
 "\n"           "scale=s"
 "\n"           "ibase=b"
-"\n"           "if(n)return(-r/1)"
+"\n"           "if(n)r=-r"
 "\n"           "return(r/1)"
 "\n"   "}"
 "\n"   "define c(x){"