Karl Heuer
db37cb3732
(Fabs): Don't use XFASTINT when negative.
1994-10-06 22:38:08 +00:00
Karl Heuer
e0cb2a68a0
(FLOAT_TO_INT, FLOAT_TO_INT2, Fexpt, Flogb, Ffloor): Use new accessor macros
...
instead of calling XSET directly.
1994-10-04 12:06:28 +00:00
Karl Heuer
207a45c169
(extract_float, Fexpt, Fabs, Ffloat, Fceiling, Ffloor, Fround, Ftruncate): Use
...
type test macros.
1994-09-27 03:01:14 +00:00
Richard M. Stallman
7936dcdb52
(FLOAT_TO_INT, FLOAT_TO_INT2): Use EMACS_INT.
1994-09-17 00:31:05 +00:00
Richard M. Stallman
7a4720e25a
Don't declare logb if it is a macro.
1994-05-11 00:17:44 +00:00
Richard M. Stallman
7240919a30
Don't guard DOMAIN && SING && OVERFLOW check by an #ifndef MSDOS.
1994-05-06 18:14:02 +00:00
Karl Heuer
3a22ee3595
Update copyright.
1994-05-04 02:41:09 +00:00
Karl Heuer
6ba93f9d7b
[MSDOS]: Re-enable some #undef's.
1994-04-29 23:16:43 +00:00
Richard M. Stallman
3c60251582
(logb): Test HPUX, not hpux.
1994-04-28 19:37:53 +00:00
Karl Heuer
81a63ccc73
(FLOAT_TO_INT, FLOAT_TO_INT2, range_error2): New macros.
...
(ceiling, floor, round, truncate): Use them.
1994-03-16 06:14:56 +00:00
Karl Heuer
6694b327c4
(Flogb): Check for 0.0. Emulate logb if needed.
1994-03-15 03:16:05 +00:00
Karl Heuer
8d8c0f4114
(Fexpt): Delete extraneous `for' statement.
1994-03-12 04:16:49 +00:00
Richard M. Stallman
892ed7e0d3
(Fffloor, Ffceil, Ffround, Fftruncate): New functions.
...
(syms_of_floatfns): Turn them on.
1994-01-15 13:28:24 +00:00
Richard M. Stallman
a3fc523600
[MSDOS]: Don't define HAVE_MATHERR.
1994-01-08 09:16:45 +00:00
Brian Fox
32085e8e56
Declare `logb' only if HAVE_LOGB is defined.
1993-10-25 04:54:54 +00:00
Richard M. Stallman
4cd7a37326
[hpux 7] (_MAXLDBL, _NMAXLDBL): New macro definitions.
1993-10-09 21:51:36 +00:00
Roland McGrath
18160b98ce
Include <config.h> instead of "config.h".
1993-09-10 06:15:46 +00:00
Richard M. Stallman
d3fc9c800d
(Flogb): Error at run time if not supported.
1993-08-13 00:46:48 +00:00
Richard M. Stallman
1a3ac8b9d2
(Flogb): Doc fix.
1993-08-12 22:07:47 +00:00
Richard M. Stallman
28d849dbb8
(Fexpt): Use IN_FLOAT2.
1993-08-10 05:47:49 +00:00
Paul Eggert
fc2157cb0f
(Ffloor): Optional second operand specifies divisor, as in Common Lisp.
...
(syms_of_floatfns): Invoke syms_of_floatfns even if LISP_FLOAT_TYPE
isn't defined, since `(floor A B)' is now needed for integers.
1993-08-10 04:14:17 +00:00
Jim Blandy
6d3c6adbdf
* config.h.in (HAVE_LOGB, HAVE_FREXP): Add #undefs for the
...
configuration script to edit.
* floatfns.c (Flogb): Use HAVE_LOGB and HAVE_FREXP, instead of
assuming that all USG systems have FREXP.
1993-08-09 06:04:14 +00:00
Richard M. Stallman
4be1d46088
(Fexpt): New local `val' for making integer to return.
1993-06-12 07:19:24 +00:00
Jim Blandy
eb8c3be94e
Apply typo patches from Paul Eggert.
1993-06-09 11:59:12 +00:00
Richard M. Stallman
63a81d888e
(Fceiling): Fix spelling of "ceiling".
1993-06-07 18:29:07 +00:00
Richard M. Stallman
f8131ed22d
[!FLOAT_CHECK_ERRNO] (IN_FLOAT): New definition.
...
(Flog): Fix argument of `log'.
1993-06-01 20:29:48 +00:00
Richard M. Stallman
bbc4efeba0
(logb): Don't declare if hpux.
1993-05-25 20:41:49 +00:00
Richard M. Stallman
c0f0a4a2c3
Fix typo in last change.
1993-05-24 17:45:04 +00:00
Richard M. Stallman
f89182a25c
[NO_MATHERR]: Undef HAVE_MATHERR.
1993-05-24 17:44:10 +00:00
Jim Blandy
c6c5df7f76
Updated copyright years.
1993-05-22 21:34:42 +00:00
Jim Blandy
c26406fef2
* floatfns.c (logb): Add extern declaration for this.
...
* floatfns.c (Flogb): Under SYSV, implement this using frexp.
1993-03-15 20:17:07 +00:00
Richard M. Stallman
5bf5416601
(Flogb): Fix arg names. Don't confuse Lisp_Object with integer.
1993-03-11 07:25:50 +00:00
Richard M. Stallman
6628c5eaa0
(Flogb): Fix use of IN_FLOAT.
1993-03-11 07:22:49 +00:00
Jim Blandy
340176df06
* floatfns.c (Flogb): Undo the change of Feb 22.
1993-03-11 07:13:24 +00:00
Richard M. Stallman
4b6baf5f45
(FLOAT_CHECK_ERRNO): Define unless NO_FLOAT_CHECK_ERRNO.
...
Changes from Lucid:
(HAVE_MATHERR, FLOAT_CHECK_ERRNO, FLOAT_CATCH_SIGILL): New parm macros.
(FLOAT_CHECK_DOMAIN, HAVE_RINT): New parm macros.
(HAVE_INVERSE_HYPERBOLIC, HAVE_CBRT): New parm macros.
[!HAVE_RINT]: Define rint as macro.
(IN_FLOAT): Major rewrite; several alternate versions.
(IN_FLOAT2): New macro.
(arith_error, range_error, domain_error, domain_error2): New macros.
(Facos, Fasin, Fatan, Fcos, Fsin, Ftan, Fexp, Fexpt, Flog): Changed.
(Flog10, Fsqrt, Fabs, Ffloat, Flogb): Changed.
(Ffloor, Fceiling, Fround, Ftruncate): Changed.
(Fcube_root): Renamed from Fcbrt.
(matherr): New function.
(float_error): Only if FLOAT_CATCH_SIGILL.
1993-03-10 05:33:40 +00:00
Jim Blandy
f8d830994a
* floatfns.c (Flogb): Always implement this by calling Flog, even
...
on non-USG systems, which supposedly have a logb function.
(Fround): Always implement this by calling floor, even on systems
that have rint.
* floatfns.c (IN_FLOAT): Make this work properly when SIGTYPE is void.
1993-02-22 14:41:26 +00:00
Jim Blandy
c2e42adb64
* floatfns.c (Flog): Fix unescaped newline in string.
...
* frame.c (Fnext_frame): Same.
* textprop.c (Fprevious_single_property_change): Same.
(syms_of_textprop): Same, for DEFVAR for
`interval_balance_threshold'.
1992-12-24 06:16:01 +00:00
Jim Blandy
1cee204565
* floatfns.c (Flog): Don't forget to declare the BASE argument a
...
Lisp_Object.
* floatfns.c (Fexpt): Don't return the value of the XSET function
call; that's not guaranteed to be the value assigned.
1992-10-31 05:19:58 +00:00
Jim Blandy
56abb480f7
* floatfns.c (Fexpm1, Flog1p): Function removed; it's not widely
...
available, and hardly vital.
(syms_of_floatfns): Adjusted appropriately.
* floatfns.c (Flog): Accept optional second arg, being the base
for the logarithm.
[USG] (Flogb): Define this in terms of Flog.
1992-08-19 06:26:13 +00:00
Richard M. Stallman
706ac90d20
entered into RCS
1992-06-07 01:50:14 +00:00
Richard M. Stallman
c2d4ea7421
*** empty log message ***
1992-06-04 04:22:08 +00:00
Jim Blandy
e065a56e2d
*** empty log message ***
1992-05-10 18:15:10 +00:00
Jim Blandy
32676c085c
*** empty log message ***
1992-05-01 06:20:46 +00:00
Jim Blandy
4746118aca
*** empty log message ***
1992-04-24 08:11:54 +00:00
Jim Blandy
265a9e559d
*** empty log message ***
1992-01-13 21:48:08 +00:00
Mike Rowan
b70021f430
Initial revision
1990-09-27 21:17:59 +00:00