[git commit] bc: yet another library shrink

Denys Vlasenko vda.linux at googlemail.com
Fri Dec 14 10:00:23 UTC 2018


commit: https://git.busybox.net/busybox/commit/?id=fc9d26902ba30340d1eef2153cc5823a53e72919
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

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 at googlemail.com>
---
 miscutils/bc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/miscutils/bc.c b/miscutils/bc.c
index dd2d7f22c..f0c323d93 100644
--- a/miscutils/bc.c
+++ b/miscutils/bc.c
@@ -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){"


More information about the busybox-cvs mailing list