aboutsummaryrefslogtreecommitdiffstats
path: root/src/floatfns.c
diff options
context:
space:
mode:
authorRichard M. Stallman1994-01-15 13:28:24 +0000
committerRichard M. Stallman1994-01-15 13:28:24 +0000
commit892ed7e0d3c49081ddf785daca2a9b486b6ce21e (patch)
tree24227e80cba3b9fc6830b157986567b6f10a5b29 /src/floatfns.c
parent25ab68afb8ba0d34dd868208e4fe19ea4a2f8cc7 (diff)
downloademacs-892ed7e0d3c49081ddf785daca2a9b486b6ce21e.tar.gz
emacs-892ed7e0d3c49081ddf785daca2a9b486b6ce21e.zip
(Fffloor, Ffceil, Ffround, Fftruncate): New functions.
(syms_of_floatfns): Turn them on.
Diffstat (limited to 'src/floatfns.c')
-rw-r--r--src/floatfns.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/floatfns.c b/src/floatfns.c
index 733746a4578..0e54fdee2a5 100644
--- a/src/floatfns.c
+++ b/src/floatfns.c
@@ -780,7 +780,6 @@ Rounds the value toward zero.")
780 return arg; 780 return arg;
781} 781}
782 782
783#if 0
784/* It's not clear these are worth adding. */ 783/* It's not clear these are worth adding. */
785 784
786DEFUN ("fceiling", Ffceiling, Sfceiling, 1, 1, 0, 785DEFUN ("fceiling", Ffceiling, Sfceiling, 1, 1, 0,
@@ -811,7 +810,7 @@ DEFUN ("fround", Ffround, Sfround, 1, 1, 0,
811 register Lisp_Object arg; 810 register Lisp_Object arg;
812{ 811{
813 double d = extract_float (arg); 812 double d = extract_float (arg);
814 IN_FLOAT (d = rint (XFLOAT (arg)->data), "fround", arg); 813 IN_FLOAT (d = rint (d), "fround", arg);
815 return make_float (d); 814 return make_float (d);
816} 815}
817 816
@@ -828,7 +827,6 @@ Rounds the value toward zero.")
828 IN_FLOAT (d = ceil (d), "ftruncate", arg); 827 IN_FLOAT (d = ceil (d), "ftruncate", arg);
829 return make_float (d); 828 return make_float (d);
830} 829}
831#endif
832 830
833#ifdef FLOAT_CATCH_SIGILL 831#ifdef FLOAT_CATCH_SIGILL
834static SIGTYPE 832static SIGTYPE
@@ -930,11 +928,11 @@ syms_of_floatfns ()
930 defsubr (&Serfc); 928 defsubr (&Serfc);
931 defsubr (&Slog_gamma); 929 defsubr (&Slog_gamma);
932 defsubr (&Scube_root); 930 defsubr (&Scube_root);
931#endif
933 defsubr (&Sfceiling); 932 defsubr (&Sfceiling);
934 defsubr (&Sffloor); 933 defsubr (&Sffloor);
935 defsubr (&Sfround); 934 defsubr (&Sfround);
936 defsubr (&Sftruncate); 935 defsubr (&Sftruncate);
937#endif
938 defsubr (&Sexp); 936 defsubr (&Sexp);
939 defsubr (&Sexpt); 937 defsubr (&Sexpt);
940 defsubr (&Slog); 938 defsubr (&Slog);