diff options
author | Jakob Kaivo <jkk@ung.org> | 2022-03-28 16:35:55 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2022-03-28 16:35:55 -0400 |
commit | 84695a80b3704b18568d159f150f8435b8646114 (patch) | |
tree | 8e6061fe4429ca1f31a9393fb855bee587bf9e60 | |
parent | fba0a90c7d18a2350d3a5f5da1d9b47c7763d557 (diff) |
rename bigplus() to big_add()
-rw-r--r-- | big.c | 4 | ||||
-rw-r--r-- | big.h | 2 | ||||
-rw-r--r-- | reduce.c | 4 |
3 files changed, 5 insertions, 5 deletions
@@ -429,7 +429,7 @@ word big_negate(word x) return make(INT, SIGNBIT | hd[x], tl[x]); } -word bigplus(word x, word y) +word big_add(word x, word y) { if (big_is_positive(x)) { if (big_is_positive(y)) { @@ -513,7 +513,7 @@ word bigtimes(word x, word y) word s = big_is_negative(y); for (word n = 0, d = digit0(y); y; n++, d = digit(y)) { if (d) { - r = bigplus(r, big__shift(n, big__stimes(x, d))); + r = big_add(r, big__shift(n, big__stimes(x, d))); } y = rest(y); @@ -32,7 +32,7 @@ word big_divide(word, word); word big_remainder(word,word); word big_negate(word); word bigoscan(char *,char *); -word bigplus(word,word); +word big_add(word,word); word bigpow(word,word); word bigscan(char *); void bigsetup(void); @@ -2045,7 +2045,7 @@ L3: if(arg1==NIL)lexfail(lastarg); setdbl(e,get_dbl(arg1)+force_dbl(lastarg)); else if(tag[lastarg]==DOUBLE) setdbl(e,big_tod(arg1)+get_dbl(lastarg)); - else simpl(bigplus(arg1,lastarg)); + else simpl(big_add(arg1,lastarg)); goto DONE; case READY(MINUS): @@ -2275,7 +2275,7 @@ word x,y; return(sto_dbl(get_dbl(x)+force_dbl(y))); if(tag[y]==DOUBLE) return(sto_dbl(big_tod(x)+get_dbl(y))); - return(bigplus(x,y)); + return(big_add(x,y)); } void fn_error(s) |