aboutsummaryrefslogtreecommitdiffstats
path: root/src/floatfns.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* No need to include <float.h> before "lisp.h",Paul Eggert1997-10-231-6/+4
| | | | as the latter no longer defines DBL_DIG.
* (emacs_rint): Define this,Richard M. Stallman1997-09-031-6/+10
| | | | | either as a function or as a macro for rint. (Fround, Ffround): Use emacs_rint, not rint directly.
* Include float.h before lisp.h.Richard M. Stallman1997-07-051-4/+6
|
* Whitespace change.Richard M. Stallman1997-02-011-1/+1
|
* [!HAVE_RINT] (rint): Convert macro to an actualKarl Heuer1997-01-251-4/+9
| | | | function, so we can take its address.
* (rounding_driver): New function for systematic support ofPaul Eggert1997-01-111-75/+107
| | | | | | | | | 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.
* <float.h>: Include if STDC_HEADERS.Paul Eggert1996-12-301-1/+34
| | | | | | (IEEE_FLOATING_POINT): New symbol. (Ffloor): Test for division by 0 only if ! IEEE_FLOATING_POINT. (fmod_float): New function.
* Replaced symbol BSD with BSD_SYSTEM.Karl Heuer1996-09-171-2/+2
|
* Comment change.Richard M. Stallman1996-09-161-1/+3
|
* (Qarith_error): Delete redundant definition.Karl Heuer1996-07-151-2/+0
|
* Update FSF's address in the preamble.Erik Naggum1996-01-151-1/+2
|
* (Fbessel_jn, Fbessel_yn): Harmonize arguments with documentation.Erik Naggum1996-01-091-10/+10
|
* Comment fixes.Karl Heuer1996-01-051-1/+1
|
* Fexpt): Doc fix.Richard M. Stallman1995-11-101-1/+1
|
* (BITS_PER_SHORT, BITS_PER_INT, BITS_PER_LONG):Karl Heuer1995-10-311-7/+0
| | | | Rename from SHORTBITS, INTBITS, LONGBITS.
* (Fexpt): Use EMACS_INT for integer calculation.Karl Heuer1995-07-171-2/+2
| | | | (Ffloor): Likewise.
* (Flogb): frexp needs a pointer to int, not EMACS_INT.Karl Heuer1995-05-201-2/+3
|
* (Flogb): Use EMACS_INT for `value'.Richard M. Stallman1995-04-071-1/+1
|
* (Fabs): Don't use XFASTINT when negative.Karl Heuer1994-10-061-1/+1
|
* (FLOAT_TO_INT, FLOAT_TO_INT2, Fexpt, Flogb, Ffloor): Use new accessor macrosKarl Heuer1994-10-041-5/+5
| | | | instead of calling XSET directly.
* (extract_float, Fexpt, Fabs, Ffloat, Fceiling, Ffloor, Fround, Ftruncate): UseKarl Heuer1994-09-271-15/+14
| | | | type test macros.
* (FLOAT_TO_INT, FLOAT_TO_INT2): Use EMACS_INT.Richard M. Stallman1994-09-171-4/+6
|
* Don't declare logb if it is a macro.Richard M. Stallman1994-05-111-2/+2
|
* Don't guard DOMAIN && SING && OVERFLOW check by an #ifndef MSDOS.Richard M. Stallman1994-05-061-2/+0
|
* Update copyright.Karl Heuer1994-05-041-1/+1
|
* [MSDOS]: Re-enable some #undef's.Karl Heuer1994-04-291-4/+1
|
* (logb): Test HPUX, not hpux.Richard M. Stallman1994-04-281-2/+2
|
* (FLOAT_TO_INT, FLOAT_TO_INT2, range_error2): New macros.Karl Heuer1994-03-161-8/+50
| | | | (ceiling, floor, round, truncate): Use them.
* (Flogb): Check for 0.0. Emulate logb if needed.Karl Heuer1994-03-151-11/+28
|
* (Fexpt): Delete extraneous `for' statement.Karl Heuer1994-03-121-1/+0
|
* (Fffloor, Ffceil, Ffround, Fftruncate): New functions.Richard M. Stallman1994-01-151-4/+2
| | | | (syms_of_floatfns): Turn them on.
* [MSDOS]: Don't define HAVE_MATHERR.Richard M. Stallman1994-01-081-1/+13
|
* Declare `logb' only if HAVE_LOGB is defined.Brian Fox1993-10-251-3/+3
|
* [hpux 7] (_MAXLDBL, _NMAXLDBL): New macro definitions.Richard M. Stallman1993-10-091-0/+10
|
* Include <config.h> instead of "config.h".Roland McGrath1993-09-101-1/+1
|
* (Flogb): Error at run time if not supported.Richard M. Stallman1993-08-131-1/+2
|
* (Flogb): Doc fix.Richard M. Stallman1993-08-121-1/+1
|
* (Fexpt): Use IN_FLOAT2.Richard M. Stallman1993-08-101-3/+3
|
* (Ffloor): Optional second operand specifies divisor, as in Common Lisp.Paul Eggert1993-08-101-15/+61
| | | | | (syms_of_floatfns): Invoke syms_of_floatfns even if LISP_FLOAT_TYPE isn't defined, since `(floor A B)' is now needed for integers.
* * config.h.in (HAVE_LOGB, HAVE_FREXP): Add #undefs for theJim Blandy1993-08-091-3/+7
| | | | | | configuration script to edit. * floatfns.c (Flogb): Use HAVE_LOGB and HAVE_FREXP, instead of assuming that all USG systems have FREXP.
* (Fexpt): New local `val' for making integer to return.Richard M. Stallman1993-06-121-3/+4
|
* Apply typo patches from Paul Eggert.Jim Blandy1993-06-091-2/+2
|
* (Fceiling): Fix spelling of "ceiling".Richard M. Stallman1993-06-071-1/+1
|
* [!FLOAT_CHECK_ERRNO] (IN_FLOAT): New definition.Richard M. Stallman1993-06-011-1/+2
| | | | (Flog): Fix argument of `log'.
* (logb): Don't declare if hpux.Richard M. Stallman1993-05-251-0/+2
|
* Fix typo in last change.Richard M. Stallman1993-05-241-1/+1
|
* [NO_MATHERR]: Undef HAVE_MATHERR.Richard M. Stallman1993-05-241-0/+4
|
* Updated copyright years.Jim Blandy1993-05-221-1/+1
|
* * floatfns.c (logb): Add extern declaration for this.Jim Blandy1993-03-151-4/+13
| | | | * floatfns.c (Flogb): Under SYSV, implement this using frexp.
* (Flogb): Fix arg names. Don't confuse Lisp_Object with integer.Richard M. Stallman1993-03-111-3/+4
|