aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-12-14 10:10:37 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-12-14 10:10:37 +0100
commitc06537d9bbeb5d7ad0e310ce7f345699e3cfc90d (patch)
tree3456bdd98154e48fb5927c6ff4c2d80c2e0d5ba8
parent203210e2535e7543e415b052e1d7182f3ca32959 (diff)
downloadbusybox-c06537d9bbeb5d7ad0e310ce7f345699e3cfc90d.tar.gz
bc: shrink internal library yet more
function old new delta bc_lib 1609 1604 -5 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-5) Total: -5 bytes text data bss dec hex filename 980165 485 7296 987946 f132a busybox_old 980160 485 7296 987941 f1325 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--miscutils/bc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c
index 8befc8e3f..dd2d7f22c 100644
--- a/miscutils/bc.c
+++ b/miscutils/bc.c
@@ -7302,7 +7302,7 @@ static const char bc_lib[] ALIGN1 = {
"\n" "a=(x^n)/2^n/a"
"\n" "r=v=1"
"\n" "f=-x*x/4"
-"\n" "scale=scale+length(a)-scale(a)"
+"\n" "scale+=length(a)-scale(a)"
"\n" "for(i=1;v;++i){"
"\n" "v=v*f/i/(n+i)"
"\n" "r+=v"