1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 07:11:34 -08:00
Commit graph

64 commits

Author SHA1 Message Date
Paul Eggert
2f2615421a No need to include <float.h> before "lisp.h",
as the latter no longer defines DBL_DIG.
1997-10-23 04:29:36 +00:00
Richard M. Stallman
dca6c9144c (emacs_rint): Define this,
either as a function or as a macro for rint.
(Fround, Ffround): Use emacs_rint, not rint directly.
1997-09-03 23:01:57 +00:00
Richard M. Stallman
523e929122 Include float.h before lisp.h. 1997-07-05 03:27:25 +00:00
Richard M. Stallman
1b65c68491 Whitespace change. 1997-02-01 01:39:11 +00:00
Karl Heuer
4b5878a8c6 [!HAVE_RINT] (rint): Convert macro to an actual
function, so we can take its address.
1997-01-25 09:50:25 +00:00
Paul Eggert
acbbacbe53 (rounding_driver): New function for systematic support of
2-argument rounding functions, so that `floor' isn't the only one
that supports 2 arguments.
(Fceiling, Ffloor, Fround, Ftruncate): Use it.
(ceiling2, floor2, round2, truncate2, double_identity): New functions.
(syms_of_floatfns): Define ceiling, round, and truncate even if
LISP_FLOAT_TYPE is not defined.
1997-01-11 17:44:06 +00:00
Paul Eggert
d137ae2faa <float.h>: Include if STDC_HEADERS.
(IEEE_FLOATING_POINT): New symbol.
(Ffloor): Test for division by 0 only if ! IEEE_FLOATING_POINT.
(fmod_float): New function.
1996-12-30 08:07:51 +00:00
Karl Heuer
6df54671fd Replaced symbol BSD with BSD_SYSTEM. 1996-09-17 03:43:54 +00:00
Richard M. Stallman
21876236fa Comment change. 1996-09-16 05:13:46 +00:00
Karl Heuer
41790b5a0b (Qarith_error): Delete redundant definition. 1996-07-15 23:53:58 +00:00
Erik Naggum
3b7ad313e0 Update FSF's address in the preamble. 1996-01-15 09:18:04 +00:00
Erik Naggum
3e67070281 (Fbessel_jn, Fbessel_yn): Harmonize arguments with documentation. 1996-01-09 00:32:16 +00:00
Karl Heuer
8e6208c5d2 Comment fixes. 1996-01-05 10:03:17 +00:00
Richard M. Stallman
4fd72a6a40 Fexpt): Doc fix. 1995-11-10 04:29:21 +00:00
Karl Heuer
68be917ded (BITS_PER_SHORT, BITS_PER_INT, BITS_PER_LONG):
Rename from SHORTBITS, INTBITS, LONGBITS.
1995-10-31 02:34:16 +00:00
Karl Heuer
9a51b24a03 (Fexpt): Use EMACS_INT for integer calculation.
(Ffloor): Likewise.
1995-07-17 22:18:04 +00:00
Karl Heuer
c8bf6cf336 (Flogb): frexp needs a pointer to int, not EMACS_INT. 1995-05-20 03:36:53 +00:00
Richard M. Stallman
a7bf3c5459 (Flogb): Use EMACS_INT for `value'. 1995-04-07 19:00:48 +00:00
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