summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2022-03-28 16:39:12 -0400
committerJakob Kaivo <jkk@ung.org>2022-03-28 16:39:12 -0400
commit1ff08c03752688d8269d8d93113fcc74e6f52f02 (patch)
treedbfaf5598571f93e48ca4cb25375d522ae1dd849
parentc0ec26a98f6b2828d971cb2df88c3e7b7b96e858 (diff)
rename dbltobig() to big_fromd()
-rw-r--r--big.c2
-rw-r--r--big.h2
-rw-r--r--reduce.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/big.c b/big.c
index 8c96896..35f27b5 100644
--- a/big.c
+++ b/big.c
@@ -652,7 +652,7 @@ double big_tod(word x)
but is used without surrounding sto_/set)dbl() only in compare() */
/* entier */
-word dbltobig(double x)
+word big_fromd(double x)
{
word s = (x < 0);
word r = make(INT, 0, 0);
diff --git a/big.h b/big.h
index 3617d90..760944d 100644
--- a/big.h
+++ b/big.h
@@ -42,7 +42,7 @@ word bigtostr(word);
word bigtostr8(word);
word bigtostrx(word);
word bigxscan(char *,char *);
-word dbltobig(double);
+word big_fromd(double);
int isnat(word);
word strtobig(word,int);
diff --git a/reduce.c b/reduce.c
index 2d72394..6c61f9a 100644
--- a/reduce.c
+++ b/reduce.c
@@ -1933,7 +1933,7 @@ L3: if(arg1==NIL)lexfail(lastarg);
case READY(ENTIER_FN): /* floor */
UPLEFT;
if(tag[lastarg]==INT)simpl(lastarg);
- else simpl(dbltobig(get_dbl(lastarg)));
+ else simpl(big_fromd(get_dbl(lastarg)));
goto DONE;
case READY(LOG_FN): /* log */