diff options
-rw-r--r-- | miscutils/bc.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c index f0c323d93..547af8eaf 100644 --- a/miscutils/bc.c +++ b/miscutils/bc.c | |||
@@ -7213,16 +7213,13 @@ static const char bc_lib[] ALIGN1 = { | |||
7213 | "\n" "return(r/1)" | 7213 | "\n" "return(r/1)" |
7214 | "\n" "}" | 7214 | "\n" "}" |
7215 | "\n" "define s(x){" | 7215 | "\n" "define s(x){" |
7216 | "\n" "auto b,s,r,n,a,q,i" | 7216 | "\n" "auto b,s,r,a,q,i" |
7217 | "\n" "if(x<0)return(-s(-x))" | ||
7217 | "\n" "b=ibase" | 7218 | "\n" "b=ibase" |
7218 | "\n" "ibase=A" | 7219 | "\n" "ibase=A" |
7219 | "\n" "s=scale" | 7220 | "\n" "s=scale" |
7220 | "\n" "scale=1.1*s+2" | 7221 | "\n" "scale=1.1*s+2" |
7221 | "\n" "a=a(1)" | 7222 | "\n" "a=a(1)" |
7222 | "\n" "if(x<0){" | ||
7223 | "\n" "n=1" | ||
7224 | "\n" "x=-x" | ||
7225 | "\n" "}" | ||
7226 | "\n" "scale=0" | 7223 | "\n" "scale=0" |
7227 | "\n" "q=(x/a+2)/4" | 7224 | "\n" "q=(x/a+2)/4" |
7228 | "\n" "x-=4*q*a" | 7225 | "\n" "x-=4*q*a" |
@@ -7236,7 +7233,6 @@ static const char bc_lib[] ALIGN1 = { | |||
7236 | "\n" "}" | 7233 | "\n" "}" |
7237 | "\n" "scale=s" | 7234 | "\n" "scale=s" |
7238 | "\n" "ibase=b" | 7235 | "\n" "ibase=b" |
7239 | "\n" "if(n)r=-r" | ||
7240 | "\n" "return(r/1)" | 7236 | "\n" "return(r/1)" |
7241 | "\n" "}" | 7237 | "\n" "}" |
7242 | "\n" "define c(x){" | 7238 | "\n" "define c(x){" |