]> code.delx.au - gnu-emacs/commitdiff
(Fffloor, Ffceil, Ffround, Fftruncate): New functions.
authorRichard M. Stallman <rms@gnu.org>
Sat, 15 Jan 1994 13:28:24 +0000 (13:28 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 15 Jan 1994 13:28:24 +0000 (13:28 +0000)
(syms_of_floatfns): Turn them on.

src/floatfns.c

index 733746a45780d213cac71fdb05a8142ddbf255c7..0e54fdee2a5c354eef2bbdeafd175b0b9bb10a87 100644 (file)
@@ -780,7 +780,6 @@ Rounds the value toward zero.")
   return arg;
 }
 \f
-#if 0
 /* It's not clear these are worth adding.  */
 
 DEFUN ("fceiling", Ffceiling, Sfceiling, 1, 1, 0,
@@ -811,7 +810,7 @@ DEFUN ("fround", Ffround, Sfround, 1, 1, 0,
      register Lisp_Object arg;
 {
   double d = extract_float (arg);
-  IN_FLOAT (d = rint (XFLOAT (arg)->data), "fround", arg);
+  IN_FLOAT (d = rint (d), "fround", arg);
   return make_float (d);
 }
 
@@ -828,7 +827,6 @@ Rounds the value toward zero.")
     IN_FLOAT (d = ceil (d), "ftruncate", arg);
   return make_float (d);
 }
-#endif
 \f
 #ifdef FLOAT_CATCH_SIGILL
 static SIGTYPE
@@ -930,11 +928,11 @@ syms_of_floatfns ()
   defsubr (&Serfc);
   defsubr (&Slog_gamma);
   defsubr (&Scube_root);
+#endif
   defsubr (&Sfceiling);
   defsubr (&Sffloor);
   defsubr (&Sfround);
   defsubr (&Sftruncate);
-#endif
   defsubr (&Sexp);
   defsubr (&Sexpt);
   defsubr (&Slog);