diff options
| author | Paul Eggert | 2018-08-01 18:53:31 -0700 |
|---|---|---|
| committer | Paul Eggert | 2018-08-01 19:01:51 -0700 |
| commit | d216d7d248199aa6c99cd642116717c5b301ae6d (patch) | |
| tree | 687b9efadbb87fa1095fb0a2e0569e625856e15a /etc | |
| parent | 2f37ecaefcc61b0bf389f1c1eb3ac1b15105f056 (diff) | |
| download | emacs-d216d7d248199aa6c99cd642116717c5b301ae6d.tar.gz emacs-d216d7d248199aa6c99cd642116717c5b301ae6d.zip | |
Substitute a <ieee754.h> on hosts lacking it
* .gitignore: Add lib/ieee754.h.
* admin/merge-gnulib (GNULIB_MODULES): Add ieee754-h.
* configure.ac: Remove ieee754.h check, as Gnulib now does that.
* etc/NEWS: Mention this.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* lib/ieee754.in.h, m4/ieee754-h.m4: New files, from Gnulib.
* src/lisp.h (IEEE_FLOATING_POINT): Now a macro so that it
can be used in #if.
* src/lread.c, src/print.c: Include <ieee754.h> if
IEEE_FLOATING_POINT, not if HAVE_IEEE754_H.
* src/lread.c (string_to_number):
* src/print.c (float_to_string):
Process NaNs only on IEEE hosts, and assume <ieee754.h>
in that case.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -880,9 +880,9 @@ Formerly, some of these functions ignored signs and significands of | |||
| 880 | NaNs. Now, all these functions treat NaN signs and significands as | 880 | NaNs. Now, all these functions treat NaN signs and significands as |
| 881 | significant. For example, (eql 0.0e+NaN -0.0e+NaN) now returns nil | 881 | significant. For example, (eql 0.0e+NaN -0.0e+NaN) now returns nil |
| 882 | because the two NaNs have different signs; formerly it returned t. | 882 | because the two NaNs have different signs; formerly it returned t. |
| 883 | Also, on platforms that have <ieee754.h> Emacs now reads and prints | 883 | Also, Emacs now reads and prints NaN significands; e.g., if X is a |
| 884 | NaN significands; e.g., if X is a NaN, (format "%s" X) now returns | 884 | NaN, (format "%s" X) now returns "0.0e+NaN", "1.0e+NaN", etc., |
| 885 | "0.0e+NaN", "1.0e+NaN", etc., depending on X's significand. | 885 | depending on X's significand. |
| 886 | 886 | ||
| 887 | +++ | 887 | +++ |
| 888 | ** The function 'make-string' accepts an additional optional argument. | 888 | ** The function 'make-string' accepts an additional optional argument. |