1 /* Primitive operations on floating point for GNU Emacs Lisp interpreter.
2 Copyright (C) 1988, 1992 Free Software Foundation, Inc.
4 This file is part of GNU Emacs.
6 GNU Emacs is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
11 GNU Emacs is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Emacs; see the file COPYING. If not, write to
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
21 /* ANSI C requires only these float functions:
22 acos, asin, atan, atan2, ceil, cos, cosh, exp, fabs, floor, fmod,
23 frexp, ldexp, log, log10, modf, pow, sin, sinh, sqrt, tan, tanh.
25 Define HAVE_INVERSE_HYPERBOLIC if you have acosh, asinh, and atanh.
26 Define HAVE_CBRT if you have cbrt.
27 Define HAVE_RINT if you have rint.
28 If you don't define these, then the appropriate routines will be simulated.
30 Define HAVE_MATHERR if on a system supporting the SysV matherr callback.
31 (This should happen automatically.)
33 Define FLOAT_CHECK_ERRNO if the float library routines set errno.
34 This has no effect if HAVE_MATHERR is defined.
36 Define FLOAT_CATCH_SIGILL if the float library routines signal SIGILL.
37 (What systems actually do this? Please let us know.)
39 Define FLOAT_CHECK_DOMAIN if the float library doesn't handle errors by
40 either setting errno, or signalling SIGFPE/SIGILL. Otherwise, domain and
41 range checking will happen before calling the float routines. This has
42 no effect if HAVE_MATHERR is defined (since matherr will be called when
43 a domain error occurs.)
50 #include "syssignal.h"
52 Lisp_Object Qarith_error
;
54 #ifdef LISP_FLOAT_TYPE
58 /* These declarations are omitted on some systems, like Ultrix. */
59 extern double logb ();
61 #if defined(DOMAIN) && defined(SING) && defined(OVERFLOW)
62 /* If those are defined, then this is probably a `matherr' machine. */
69 # ifdef FLOAT_CHECK_ERRNO
70 # undef FLOAT_CHECK_ERRNO
72 # ifdef FLOAT_CHECK_DOMAIN
73 # undef FLOAT_CHECK_DOMAIN
77 #ifndef NO_FLOAT_CHECK_ERRNO
78 #define FLOAT_CHECK_ERRNO
81 #ifdef FLOAT_CHECK_ERRNO
87 /* Avoid traps on VMS from sinh and cosh.
88 All the other functions set errno instead. */
93 #define cosh(x) ((exp(x)+exp(-x))*0.5)
94 #define sinh(x) ((exp(x)-exp(-x))*0.5)
98 #define rint(x) (floor((x)+0.5))
101 static SIGTYPE
float_error ();
103 /* Nonzero while executing in floating point.
104 This tells float_error what to do. */
108 /* If an argument is out of range for a mathematical function,
109 here is the actual argument value to use in the error message. */
111 static Lisp_Object float_error_arg
, float_error_arg2
;
113 static char *float_error_fn_name
;
115 /* Evaluate the floating point expression D, recording NUM
116 as the original argument for error messages.
117 D is normally an assignment expression.
118 Handle errors which may result in signals or may set errno.
120 Note that float_error may be declared to return void, so you can't
121 just cast the zero after the colon to (SIGTYPE) to make the types
124 #ifdef FLOAT_CHECK_ERRNO
125 #define IN_FLOAT(d, name, num) \
127 float_error_arg = num; \
128 float_error_fn_name = name; \
129 in_float = 1; errno = 0; (d); in_float = 0; \
132 case EDOM: domain_error (float_error_fn_name, float_error_arg); \
133 case ERANGE: range_error (float_error_fn_name, float_error_arg); \
134 default: arith_error (float_error_fn_name, float_error_arg); \
137 #define IN_FLOAT2(d, name, num, num2) \
139 float_error_arg = num; \
140 float_error_arg2 = num2; \
141 float_error_fn_name = name; \
142 in_float = 1; errno = 0; (d); in_float = 0; \
145 case EDOM: domain_error (float_error_fn_name, float_error_arg); \
146 case ERANGE: range_error (float_error_fn_name, float_error_arg); \
147 default: arith_error (float_error_fn_name, float_error_arg); \
151 #define IN_FLOAT2(d, name, num, num2) (in_float = 1, (d), in_float = 0)
154 #define arith_error(op,arg) \
155 Fsignal (Qarith_error, Fcons (build_string ((op)), Fcons ((arg), Qnil)))
156 #define range_error(op,arg) \
157 Fsignal (Qrange_error, Fcons (build_string ((op)), Fcons ((arg), Qnil)))
158 #define domain_error(op,arg) \
159 Fsignal (Qdomain_error, Fcons (build_string ((op)), Fcons ((arg), Qnil)))
160 #define domain_error2(op,a1,a2) \
161 Fsignal (Qdomain_error, Fcons (build_string ((op)), Fcons ((a1), Fcons ((a2), Qnil))))
163 /* Extract a Lisp number as a `double', or signal an error. */
169 CHECK_NUMBER_OR_FLOAT (num
, 0);
171 if (XTYPE (num
) == Lisp_Float
)
172 return XFLOAT (num
)->data
;
173 return (double) XINT (num
);
176 /* Trig functions. */
178 DEFUN ("acos", Facos
, Sacos
, 1, 1, 0,
179 "Return the inverse cosine of ARG.")
181 register Lisp_Object arg
;
183 double d
= extract_float (arg
);
184 #ifdef FLOAT_CHECK_DOMAIN
185 if (d
> 1.0 || d
< -1.0)
186 domain_error ("acos", arg
);
188 IN_FLOAT (d
= acos (d
), "acos", arg
);
189 return make_float (d
);
192 DEFUN ("asin", Fasin
, Sasin
, 1, 1, 0,
193 "Return the inverse sine of ARG.")
195 register Lisp_Object arg
;
197 double d
= extract_float (arg
);
198 #ifdef FLOAT_CHECK_DOMAIN
199 if (d
> 1.0 || d
< -1.0)
200 domain_error ("asin", arg
);
202 IN_FLOAT (d
= asin (d
), "asin", arg
);
203 return make_float (d
);
206 DEFUN ("atan", Fatan
, Satan
, 1, 1, 0,
207 "Return the inverse tangent of ARG.")
209 register Lisp_Object arg
;
211 double d
= extract_float (arg
);
212 IN_FLOAT (d
= atan (d
), "atan", arg
);
213 return make_float (d
);
216 DEFUN ("cos", Fcos
, Scos
, 1, 1, 0,
217 "Return the cosine of ARG.")
219 register Lisp_Object arg
;
221 double d
= extract_float (arg
);
222 IN_FLOAT (d
= cos (d
), "cos", arg
);
223 return make_float (d
);
226 DEFUN ("sin", Fsin
, Ssin
, 1, 1, 0,
227 "Return the sine of ARG.")
229 register Lisp_Object arg
;
231 double d
= extract_float (arg
);
232 IN_FLOAT (d
= sin (d
), "sin", arg
);
233 return make_float (d
);
236 DEFUN ("tan", Ftan
, Stan
, 1, 1, 0,
237 "Return the tangent of ARG.")
239 register Lisp_Object arg
;
241 double d
= extract_float (arg
);
243 #ifdef FLOAT_CHECK_DOMAIN
245 domain_error ("tan", arg
);
247 IN_FLOAT (d
= sin (d
) / c
, "tan", arg
);
248 return make_float (d
);
251 #if 0 /* Leave these out unless we find there's a reason for them. */
253 DEFUN ("bessel-j0", Fbessel_j0
, Sbessel_j0
, 1, 1, 0,
254 "Return the bessel function j0 of ARG.")
256 register Lisp_Object arg
;
258 double d
= extract_float (arg
);
259 IN_FLOAT (d
= j0 (d
), "bessel-j0", arg
);
260 return make_float (d
);
263 DEFUN ("bessel-j1", Fbessel_j1
, Sbessel_j1
, 1, 1, 0,
264 "Return the bessel function j1 of ARG.")
266 register Lisp_Object arg
;
268 double d
= extract_float (arg
);
269 IN_FLOAT (d
= j1 (d
), "bessel-j1", arg
);
270 return make_float (d
);
273 DEFUN ("bessel-jn", Fbessel_jn
, Sbessel_jn
, 2, 2, 0,
274 "Return the order N bessel function output jn of ARG.\n\
275 The first arg (the order) is truncated to an integer.")
277 register Lisp_Object arg1
, arg2
;
279 int i1
= extract_float (arg1
);
280 double f2
= extract_float (arg2
);
282 IN_FLOAT (f2
= jn (i1
, f2
), "bessel-jn", arg1
);
283 return make_float (f2
);
286 DEFUN ("bessel-y0", Fbessel_y0
, Sbessel_y0
, 1, 1, 0,
287 "Return the bessel function y0 of ARG.")
289 register Lisp_Object arg
;
291 double d
= extract_float (arg
);
292 IN_FLOAT (d
= y0 (d
), "bessel-y0", arg
);
293 return make_float (d
);
296 DEFUN ("bessel-y1", Fbessel_y1
, Sbessel_y1
, 1, 1, 0,
297 "Return the bessel function y1 of ARG.")
299 register Lisp_Object arg
;
301 double d
= extract_float (arg
);
302 IN_FLOAT (d
= y1 (d
), "bessel-y0", arg
);
303 return make_float (d
);
306 DEFUN ("bessel-yn", Fbessel_yn
, Sbessel_yn
, 2, 2, 0,
307 "Return the order N bessel function output yn of ARG.\n\
308 The first arg (the order) is truncated to an integer.")
310 register Lisp_Object arg1
, arg2
;
312 int i1
= extract_float (arg1
);
313 double f2
= extract_float (arg2
);
315 IN_FLOAT (f2
= yn (i1
, f2
), "bessel-yn", arg1
);
316 return make_float (f2
);
321 #if 0 /* Leave these out unless we see they are worth having. */
323 DEFUN ("erf", Ferf
, Serf
, 1, 1, 0,
324 "Return the mathematical error function of ARG.")
326 register Lisp_Object arg
;
328 double d
= extract_float (arg
);
329 IN_FLOAT (d
= erf (d
), "erf", arg
);
330 return make_float (d
);
333 DEFUN ("erfc", Ferfc
, Serfc
, 1, 1, 0,
334 "Return the complementary error function of ARG.")
336 register Lisp_Object arg
;
338 double d
= extract_float (arg
);
339 IN_FLOAT (d
= erfc (d
), "erfc", arg
);
340 return make_float (d
);
343 DEFUN ("log-gamma", Flog_gamma
, Slog_gamma
, 1, 1, 0,
344 "Return the log gamma of ARG.")
346 register Lisp_Object arg
;
348 double d
= extract_float (arg
);
349 IN_FLOAT (d
= lgamma (d
), "log-gamma", arg
);
350 return make_float (d
);
353 DEFUN ("cube-root", Fcube_root
, Scube_root
, 1, 1, 0,
354 "Return the cube root of ARG.")
356 register Lisp_Object arg
;
358 double d
= extract_float (arg
);
360 IN_FLOAT (d
= cbrt (d
), "cube-root", arg
);
363 IN_FLOAT (d
= pow (d
, 1.0/3.0), "cube-root", arg
);
365 IN_FLOAT (d
= -pow (-d
, 1.0/3.0), "cube-root", arg
);
367 return make_float (d
);
372 DEFUN ("exp", Fexp
, Sexp
, 1, 1, 0,
373 "Return the exponential base e of ARG.")
375 register Lisp_Object arg
;
377 double d
= extract_float (arg
);
378 #ifdef FLOAT_CHECK_DOMAIN
379 if (d
> 709.7827) /* Assume IEEE doubles here */
380 range_error ("exp", arg
);
382 return make_float (0.0);
385 IN_FLOAT (d
= exp (d
), "exp", arg
);
386 return make_float (d
);
389 DEFUN ("expt", Fexpt
, Sexpt
, 2, 2, 0,
390 "Return the exponential X ** Y.")
392 register Lisp_Object arg1
, arg2
;
396 CHECK_NUMBER_OR_FLOAT (arg1
, 0);
397 CHECK_NUMBER_OR_FLOAT (arg2
, 0);
398 if ((XTYPE (arg1
) == Lisp_Int
) && /* common lisp spec */
399 (XTYPE (arg2
) == Lisp_Int
)) /* don't promote, if both are ints */
400 { /* this can be improved by pre-calculating */
401 int acc
, x
, y
; /* some binary powers of x then acumulating */
402 /* these, therby saving some time. -wsr */
412 acc
= (y
& 1) ? -1 : 1;
424 y
= (unsigned)y
>> 1;
427 XSET (x
, Lisp_Int
, acc
);
430 f1
= (XTYPE (arg1
) == Lisp_Float
) ? XFLOAT (arg1
)->data
: XINT (arg1
);
431 f2
= (XTYPE (arg2
) == Lisp_Float
) ? XFLOAT (arg2
)->data
: XINT (arg2
);
432 /* Really should check for overflow, too */
433 if (f1
== 0.0 && f2
== 0.0)
435 #ifdef FLOAT_CHECK_DOMAIN
436 else if ((f1
== 0.0 && f2
< 0.0) || (f1
< 0 && f2
!= floor(f2
)))
437 domain_error2 ("expt", arg1
, arg2
);
439 IN_FLOAT (f1
= pow (f1
, f2
), "expt", arg1
);
440 return make_float (f1
);
443 DEFUN ("log", Flog
, Slog
, 1, 2, 0,
444 "Return the natural logarithm of ARG.\n\
445 If second optional argument BASE is given, return log ARG using that base.")
447 register Lisp_Object arg
, base
;
449 double d
= extract_float (arg
);
451 #ifdef FLOAT_CHECK_DOMAIN
453 domain_error2 ("log", arg
, base
);
456 IN_FLOAT (d
= log (d
), "log", arg
);
459 double b
= extract_float (base
);
461 #ifdef FLOAT_CHECK_DOMAIN
462 if (b
<= 0.0 || b
== 1.0)
463 domain_error2 ("log", arg
, base
);
466 IN_FLOAT2 (d
= log10 (d
), "log", arg
, base
);
468 IN_FLOAT2 (d
= log (arg
) / log (b
), "log", arg
, base
);
470 return make_float (d
);
473 DEFUN ("log10", Flog10
, Slog10
, 1, 1, 0,
474 "Return the logarithm base 10 of ARG.")
476 register Lisp_Object arg
;
478 double d
= extract_float (arg
);
479 #ifdef FLOAT_CHECK_DOMAIN
481 domain_error ("log10", arg
);
483 IN_FLOAT (d
= log10 (d
), "log10", arg
);
484 return make_float (d
);
487 DEFUN ("sqrt", Fsqrt
, Ssqrt
, 1, 1, 0,
488 "Return the square root of ARG.")
490 register Lisp_Object arg
;
492 double d
= extract_float (arg
);
493 #ifdef FLOAT_CHECK_DOMAIN
495 domain_error ("sqrt", arg
);
497 IN_FLOAT (d
= sqrt (d
), "sqrt", arg
);
498 return make_float (d
);
501 #if 0 /* Not clearly worth adding. */
503 DEFUN ("acosh", Facosh
, Sacosh
, 1, 1, 0,
504 "Return the inverse hyperbolic cosine of ARG.")
506 register Lisp_Object arg
;
508 double d
= extract_float (arg
);
509 #ifdef FLOAT_CHECK_DOMAIN
511 domain_error ("acosh", arg
);
513 #ifdef HAVE_INVERSE_HYPERBOLIC
514 IN_FLOAT (d
= acosh (d
), "acosh", arg
);
516 IN_FLOAT (d
= log (d
+ sqrt (d
*d
- 1.0)), "acosh", arg
);
518 return make_float (d
);
521 DEFUN ("asinh", Fasinh
, Sasinh
, 1, 1, 0,
522 "Return the inverse hyperbolic sine of ARG.")
524 register Lisp_Object arg
;
526 double d
= extract_float (arg
);
527 #ifdef HAVE_INVERSE_HYPERBOLIC
528 IN_FLOAT (d
= asinh (d
), "asinh", arg
);
530 IN_FLOAT (d
= log (d
+ sqrt (d
*d
+ 1.0)), "asinh", arg
);
532 return make_float (d
);
535 DEFUN ("atanh", Fatanh
, Satanh
, 1, 1, 0,
536 "Return the inverse hyperbolic tangent of ARG.")
538 register Lisp_Object arg
;
540 double d
= extract_float (arg
);
541 #ifdef FLOAT_CHECK_DOMAIN
542 if (d
>= 1.0 || d
<= -1.0)
543 domain_error ("atanh", arg
);
545 #ifdef HAVE_INVERSE_HYPERBOLIC
546 IN_FLOAT (d
= atanh (d
), "atanh", arg
);
548 IN_FLOAT (d
= 0.5 * log ((1.0 + d
) / (1.0 - d
)), "atanh", arg
);
550 return make_float (d
);
553 DEFUN ("cosh", Fcosh
, Scosh
, 1, 1, 0,
554 "Return the hyperbolic cosine of ARG.")
556 register Lisp_Object arg
;
558 double d
= extract_float (arg
);
559 #ifdef FLOAT_CHECK_DOMAIN
560 if (d
> 710.0 || d
< -710.0)
561 range_error ("cosh", arg
);
563 IN_FLOAT (d
= cosh (d
), "cosh", arg
);
564 return make_float (d
);
567 DEFUN ("sinh", Fsinh
, Ssinh
, 1, 1, 0,
568 "Return the hyperbolic sine of ARG.")
570 register Lisp_Object arg
;
572 double d
= extract_float (arg
);
573 #ifdef FLOAT_CHECK_DOMAIN
574 if (d
> 710.0 || d
< -710.0)
575 range_error ("sinh", arg
);
577 IN_FLOAT (d
= sinh (d
), "sinh", arg
);
578 return make_float (d
);
581 DEFUN ("tanh", Ftanh
, Stanh
, 1, 1, 0,
582 "Return the hyperbolic tangent of ARG.")
584 register Lisp_Object arg
;
586 double d
= extract_float (arg
);
587 IN_FLOAT (d
= tanh (d
), "tanh", arg
);
588 return make_float (d
);
592 DEFUN ("abs", Fabs
, Sabs
, 1, 1, 0,
593 "Return the absolute value of ARG.")
595 register Lisp_Object arg
;
597 CHECK_NUMBER_OR_FLOAT (arg
, 0);
599 if (XTYPE (arg
) == Lisp_Float
)
600 IN_FLOAT (arg
= make_float (fabs (XFLOAT (arg
)->data
)), "abs", arg
);
601 else if (XINT (arg
) < 0)
602 XSETINT (arg
, - XFASTINT (arg
));
607 DEFUN ("float", Ffloat
, Sfloat
, 1, 1, 0,
608 "Return the floating point number equal to ARG.")
610 register Lisp_Object arg
;
612 CHECK_NUMBER_OR_FLOAT (arg
, 0);
614 if (XTYPE (arg
) == Lisp_Int
)
615 return make_float ((double) XINT (arg
));
616 else /* give 'em the same float back */
620 DEFUN ("logb", Flogb
, Slogb
, 1, 1, 0,
621 "Returns the integer not greater than the base 2 log of the magnitude of ARG.\n\
622 This is the same as the exponent of a float.")
628 double f
= extract_float (arg
);
634 IN_FLOAT (frexp (f
, &exp
), "logb", arg
);
635 XSET (val
, Lisp_Int
, exp
-1);
638 IN_FLOAT (value
= logb (f
), "logb", arg
);
639 XSET (val
, Lisp_Int
, value
);
645 /* the rounding functions */
647 DEFUN ("ceiling", Fceiling
, Sceiling
, 1, 1, 0,
648 "Return the smallest integer no less than ARG. (Round toward +inf.)")
650 register Lisp_Object arg
;
652 CHECK_NUMBER_OR_FLOAT (arg
, 0);
654 if (XTYPE (arg
) == Lisp_Float
)
655 IN_FLOAT (XSET (arg
, Lisp_Int
, ceil (XFLOAT (arg
)->data
)), "celing", arg
);
660 DEFUN ("floor", Ffloor
, Sfloor
, 1, 1, 0,
661 "Return the largest integer no greater than ARG. (Round towards -inf.)")
663 register Lisp_Object arg
;
665 CHECK_NUMBER_OR_FLOAT (arg
, 0);
667 if (XTYPE (arg
) == Lisp_Float
)
668 IN_FLOAT (XSET (arg
, Lisp_Int
, floor (XFLOAT (arg
)->data
)), "floor", arg
);
673 DEFUN ("round", Fround
, Sround
, 1, 1, 0,
674 "Return the nearest integer to ARG.")
676 register Lisp_Object arg
;
678 CHECK_NUMBER_OR_FLOAT (arg
, 0);
680 if (XTYPE (arg
) == Lisp_Float
)
681 /* Screw the prevailing rounding mode. */
682 IN_FLOAT (XSET (arg
, Lisp_Int
, rint (XFLOAT (arg
)->data
)), "round", arg
);
687 DEFUN ("truncate", Ftruncate
, Struncate
, 1, 1, 0,
688 "Truncate a floating point number to an int.\n\
689 Rounds the value toward zero.")
691 register Lisp_Object arg
;
693 CHECK_NUMBER_OR_FLOAT (arg
, 0);
695 if (XTYPE (arg
) == Lisp_Float
)
696 XSET (arg
, Lisp_Int
, (int) XFLOAT (arg
)->data
);
702 /* It's not clear these are worth adding. */
704 DEFUN ("fceiling", Ffceiling
, Sfceiling
, 1, 1, 0,
705 "Return the smallest integer no less than ARG, as a float.\n\
706 \(Round toward +inf.\)")
708 register Lisp_Object arg
;
710 double d
= extract_float (arg
);
711 IN_FLOAT (d
= ceil (d
), "fceiling", arg
);
712 return make_float (d
);
715 DEFUN ("ffloor", Fffloor
, Sffloor
, 1, 1, 0,
716 "Return the largest integer no greater than ARG, as a float.\n\
717 \(Round towards -inf.\)")
719 register Lisp_Object arg
;
721 double d
= extract_float (arg
);
722 IN_FLOAT (d
= floor (d
), "ffloor", arg
);
723 return make_float (d
);
726 DEFUN ("fround", Ffround
, Sfround
, 1, 1, 0,
727 "Return the nearest integer to ARG, as a float.")
729 register Lisp_Object arg
;
731 double d
= extract_float (arg
);
732 IN_FLOAT (d
= rint (XFLOAT (arg
)->data
), "fround", arg
);
733 return make_float (d
);
736 DEFUN ("ftruncate", Fftruncate
, Sftruncate
, 1, 1, 0,
737 "Truncate a floating point number to an integral float value.\n\
738 Rounds the value toward zero.")
740 register Lisp_Object arg
;
742 double d
= extract_float (arg
);
744 IN_FLOAT (d
= floor (d
), "ftruncate", arg
);
746 IN_FLOAT (d
= ceil (d
), arg
);
747 return make_float (d
);
751 #ifdef FLOAT_CATCH_SIGILL
757 fatal_error_signal (signo
);
762 #else /* not BSD4_1 */
763 sigsetmask (SIGEMPTYMASK
);
764 #endif /* not BSD4_1 */
766 /* Must reestablish handler each time it is called. */
767 signal (SIGILL
, float_error
);
772 Fsignal (Qarith_error
, Fcons (float_error_arg
, Qnil
));
775 /* Another idea was to replace the library function `infnan'
776 where SIGILL is signaled. */
778 #endif /* FLOAT_CATCH_SIGILL */
787 /* Not called from emacs-lisp float routines; do the default thing. */
789 if (!strcmp (x
->name
, "pow"))
793 = Fcons (build_string (x
->name
),
794 Fcons (make_float (x
->arg1
),
795 ((!strcmp (x
->name
, "log") || !strcmp (x
->name
, "pow"))
796 ? Fcons (make_float (x
->arg2
), Qnil
)
800 case DOMAIN
: Fsignal (Qdomain_error
, args
); break;
801 case SING
: Fsignal (Qsingularity_error
, args
); break;
802 case OVERFLOW
: Fsignal (Qoverflow_error
, args
); break;
803 case UNDERFLOW
: Fsignal (Qunderflow_error
, args
); break;
804 default: Fsignal (Qarith_error
, args
); break;
806 return (1); /* don't set errno or print a message */
808 #endif /* HAVE_MATHERR */
812 #ifdef FLOAT_CATCH_SIGILL
813 signal (SIGILL
, float_error
);
833 defsubr (&Sbessel_y0
);
834 defsubr (&Sbessel_y1
);
835 defsubr (&Sbessel_yn
);
836 defsubr (&Sbessel_j0
);
837 defsubr (&Sbessel_j1
);
838 defsubr (&Sbessel_jn
);
841 defsubr (&Slog_gamma
);
842 defsubr (&Scube_root
);
843 defsubr (&Sfceiling
);
846 defsubr (&Sftruncate
);
860 defsubr (&Struncate
);
863 #else /* not LISP_FLOAT_TYPE */
871 #endif /* not LISP_FLOAT_TYPE */