diff options
-rw-r--r-- | big.c | 6 | ||||
-rw-r--r-- | big.h | 2 | ||||
-rw-r--r-- | reduce.c | 2 | ||||
-rw-r--r-- | rules.y | 2 | ||||
-rw-r--r-- | y.tab.c | 2 |
5 files changed, 7 insertions, 7 deletions
@@ -417,7 +417,7 @@ long long big_toll(word x) return (sign ? -n : n); } -word bignegate(word x) +word big_negate(word x) { if (bigzero(x)) { return x; @@ -518,7 +518,7 @@ word bigtimes(word x, word y) y = rest(y); } - return (s != big_is_negative(x) ? bignegate(r) : r); + return (s != big_is_negative(x) ? big_negate(r) : r); } /* may assume y~=0 */ @@ -586,7 +586,7 @@ word big_remainder(word x, word y) } } - return (s1 ? bignegate(bd.rem) : bd.rem); + return (s1 ? big_negate(bd.rem) : bd.rem); } /* NB - above have entier based handling of signed cases (as Miranda) in @@ -30,7 +30,7 @@ double big_log10(word); int big_compare(word,word); word big_divide(word, word); word big_remainder(word,word); -word bignegate(word); +word big_negate(word); word bigoscan(char *,char *); word bigplus(word,word); word bigpow(word,word); @@ -1856,7 +1856,7 @@ L3: if(arg1==NIL)lexfail(lastarg); case READY(NEG): /* NEG x => -x, if x is a number */ UPLEFT; - if(tag[lastarg]==INT)simpl(bignegate(lastarg)); + if(tag[lastarg]==INT)simpl(big_negate(lastarg)); else setdbl(e,-get_dbl(lastarg)); goto DONE; @@ -1270,7 +1270,7 @@ v1: = { /* if(tag[$2]==DOUBLE) $$ = cons(CONST,sto_dbl(-get_dbl($2))); else */ if(tag[$2]==INT) - $$ = cons(CONST,bignegate($2)); else + $$ = cons(CONST,big_negate($2)); else syntax("inappropriate use of \"-\" in pattern\n"); }| v2 INFIXNAME v1 = { $$ = ap2($2,$1,$3); }| @@ -3078,7 +3078,7 @@ case 231: { /* if(tag[$2]==DOUBLE) $$ = cons(CONST,sto_dbl(-get_dbl($2))); else */ if(tag[yystack.l_mark[0]]==INT) - yyval = cons(CONST,bignegate(yystack.l_mark[0])); else + yyval = cons(CONST,big_negate(yystack.l_mark[0])); else syntax("inappropriate use of \"-\" in pattern\n"); } break; case 232: |