]> Savannah Git Hosting - gnulib.git/commitdiff
nan: New module.
authorBruno Haible <bruno@clisp.org>
Thu, 12 Oct 2023 18:59:58 +0000 (20:59 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 12 Oct 2023 18:59:58 +0000 (20:59 +0200)
* lib/nan.h: Renamed from tests/nan.h. Change double-inclusion guard.
* modules/nan: New file.
* modules/*-tests: Depend on this module instead of embedding
tests/nan.h.

123 files changed:
ChangeLog
lib/nan.h [new file with mode: 0644]
modules/cbrt-ieee-tests
modules/cbrtf-ieee-tests
modules/cbrtl-ieee-tests
modules/ceil-ieee-tests
modules/ceil-tests
modules/ceilf-ieee-tests
modules/ceilf-tests
modules/ceill-ieee-tests
modules/ceill-tests
modules/exp-ieee-tests
modules/exp2-ieee-tests
modules/exp2f-ieee-tests
modules/exp2l-ieee-tests
modules/expf-ieee-tests
modules/expl-ieee-tests
modules/expm1-ieee-tests
modules/expm1f-ieee-tests
modules/expm1l-ieee-tests
modules/fabs-ieee-tests
modules/fabsf-ieee-tests
modules/fabsl-ieee-tests
modules/floor-ieee-tests
modules/floor-tests
modules/floorf-ieee-tests
modules/floorf-tests
modules/floorl-ieee-tests
modules/floorl-tests
modules/fma-ieee-tests
modules/fma-tests
modules/fmaf-ieee-tests
modules/fmaf-tests
modules/fmal-ieee-tests
modules/fmal-tests
modules/fmod-ieee-tests
modules/fmodf-ieee-tests
modules/fmodl-ieee-tests
modules/frexp-ieee-tests
modules/frexp-nolibm-tests
modules/frexp-tests
modules/frexpf-ieee-tests
modules/frexpf-tests
modules/frexpl-ieee-tests
modules/frexpl-nolibm-tests
modules/frexpl-tests
modules/hypot-ieee-tests
modules/hypotf-ieee-tests
modules/hypotl-ieee-tests
modules/ilogb-tests
modules/ilogbf-tests
modules/ilogbl-tests
modules/isfinite-tests
modules/isinf-tests
modules/isnan-tests
modules/isnand-nolibm-tests
modules/isnand-tests
modules/isnanf-nolibm-tests
modules/isnanf-tests
modules/isnanl-nolibm-tests
modules/isnanl-tests
modules/ldexp-ieee-tests
modules/ldexp-tests
modules/ldexpf-ieee-tests
modules/ldexpf-tests
modules/ldexpl-ieee-tests
modules/ldexpl-tests
modules/log-ieee-tests
modules/log10-ieee-tests
modules/log10f-ieee-tests
modules/log10l-ieee-tests
modules/log1p-ieee-tests
modules/log1pf-ieee-tests
modules/log1pl-ieee-tests
modules/log2-ieee-tests
modules/log2f-ieee-tests
modules/log2l-ieee-tests
modules/logb-ieee-tests
modules/logbf-ieee-tests
modules/logbl-ieee-tests
modules/logf-ieee-tests
modules/logl-ieee-tests
modules/modf-ieee-tests
modules/modff-ieee-tests
modules/modfl-ieee-tests
modules/nan [new file with mode: 0644]
modules/remainder-ieee-tests
modules/remainderf-ieee-tests
modules/remainderl-ieee-tests
modules/rint-ieee-tests
modules/rint-tests
modules/rintf-ieee-tests
modules/rintf-tests
modules/rintl-ieee-tests
modules/rintl-tests
modules/round-ieee-tests
modules/round-tests
modules/roundf-ieee-tests
modules/roundf-tests
modules/roundl-ieee-tests
modules/roundl-tests
modules/signbit-tests
modules/snprintf-posix-tests
modules/sprintf-posix-tests
modules/sqrt-ieee-tests
modules/sqrtf-ieee-tests
modules/sqrtl-ieee-tests
modules/stdio-tests
modules/totalorder-tests
modules/totalorderf-tests
modules/totalorderl-tests
modules/trunc-ieee-tests
modules/trunc-tests
modules/truncf-ieee-tests
modules/truncf-tests
modules/truncl-ieee-tests
modules/truncl-tests
modules/vasnprintf-posix-tests
modules/vasnwprintf-posix-tests
modules/vasprintf-posix-tests
modules/vsnprintf-posix-tests
modules/vsprintf-posix-tests
tests/nan.h [deleted file]

index 22205096a3563d799aea58005def9a56fabe56ad..9014954a2f4e569c159927f3eb089e842df04ed0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2023-10-12  Bruno Haible  <bruno@clisp.org>
+
+       nan: New module.
+       * lib/nan.h: Renamed from tests/nan.h. Change double-inclusion guard.
+       * modules/nan: New file.
+       * modules/*-tests: Depend on this module instead of embedding
+       tests/nan.h.
+
 2023-10-11  Bruno Haible  <bruno@clisp.org>
 
        unictype/category-and-not: Add more tests.
diff --git a/lib/nan.h b/lib/nan.h
new file mode 100644 (file)
index 0000000..4cb5635
--- /dev/null
+++ b/lib/nan.h
@@ -0,0 +1,91 @@
+/* Macros for quiet not-a-number.
+   Copyright (C) 2007-2023 Free Software Foundation, Inc.
+
+   This program is free software: you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation, either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
+
+#ifndef _GL_NAN_H
+#define _GL_NAN_H
+
+
+/* IBM z/OS supports both hexadecimal and IEEE floating-point formats. The
+   former does not support NaN and its isnan() implementation returns zero
+   for all values.  */
+#if defined __MVS__ && defined __IBMC__ && !defined __BFP__
+# error "NaN is not supported with IBM's hexadecimal floating-point format; please re-compile with -qfloat=ieee"
+#endif
+
+/* NaNf () returns a 'float' not-a-number.  */
+
+/* The Compaq (ex-DEC) C 6.4 compiler and the Microsoft MSVC 9 compiler choke
+   on the expression 0.0 / 0.0.  The IBM XL C compiler on z/OS complains.
+   PGI 16.10 complains.  */
+#if (defined __DECC || defined _MSC_VER \
+     || (defined __MVS__ && defined __IBMC__)   \
+     || defined __PGI)
+static float
+NaNf ()
+{
+  static float zero = 0.0f;
+  return zero / zero;
+}
+#else
+# define NaNf() (0.0f / 0.0f)
+#endif
+
+
+/* NaNd () returns a 'double' not-a-number.  */
+
+/* The Compaq (ex-DEC) C 6.4 compiler and the Microsoft MSVC 9 compiler choke
+   on the expression 0.0 / 0.0.  The IBM XL C compiler on z/OS complains.
+   PGI 16.10 complains.  */
+#if (defined __DECC || defined _MSC_VER \
+     || (defined __MVS__ && defined __IBMC__)   \
+     || defined __PGI)
+static double
+NaNd ()
+{
+  static double zero = 0.0;
+  return zero / zero;
+}
+#else
+# define NaNd() (0.0 / 0.0)
+#endif
+
+
+/* NaNl () returns a 'long double' not-a-number.  */
+
+/* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
+   runtime type conversion.
+   The Microsoft MSVC 9 compiler chokes on the expression 0.0L / 0.0L.
+   The IBM XL C compiler on z/OS complains.
+   PGI 16.10 complains.  */
+#ifdef __sgi
+static long double NaNl ()
+{
+  double zero = 0.0;
+  return zero / zero;
+}
+#elif defined _MSC_VER || (defined __MVS__ && defined __IBMC__) || defined __PGI
+static long double
+NaNl ()
+{
+  static long double zero = 0.0L;
+  return zero / zero;
+}
+#else
+# define NaNl() (0.0L / 0.0L)
+#endif
+
+
+#endif /* _GL_NAN_H */
index a61339974e0093b9eef826dbdf4669915e8807e9..5d716b70fb9e2fc41f726ae7932c85832674325c 100644 (file)
@@ -3,12 +3,12 @@ tests/test-cbrt-ieee.c
 tests/test-cbrt-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnand-nolibm
 float
+nan
 signbit
 
 configure.ac:
index abf8e0a4b0981c9b697cb47c14902031d4278ac1..d7eb527802122078b1ddeebd32c25043c689a903 100644 (file)
@@ -3,12 +3,12 @@ tests/test-cbrtf-ieee.c
 tests/test-cbrt-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanf-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 82a55cc5a33068fcdce60b5f1cf8de659bd91082..89f28a25433da204d3be43ed2d9d18acc046a851 100644 (file)
@@ -3,12 +3,12 @@ tests/test-cbrtl-ieee.c
 tests/test-cbrt-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanl-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 48b852830da24cb9629880c9984660bd7bb03507..d34057a7c676fac61e8a9a292476181004b7cd24 100644 (file)
@@ -2,12 +2,12 @@ Files:
 tests/test-ceil-ieee.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnand-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 4051d1c25602e99dc4ea2605898ca11e8dba4ae0..bc52dffc5f9428dc6e1cc058a2327d71863cde6f 100644 (file)
@@ -3,13 +3,13 @@ tests/test-ceil1.c
 tests/test-ceil2.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 
 Depends-on:
 float
 isnand-nolibm
+nan
 stdbool
 stdint
 
index 33e7be7906470a4ed94595b0ad4f5f95da9c53d9..b1ef54e411bbf7219fd4a251400d44fcdd38f622 100644 (file)
@@ -2,12 +2,12 @@ Files:
 tests/test-ceilf-ieee.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanf-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 6ead40244ea41b7d9de45f44979f7cb04e9bb357..70ca713a1652140ca5aaed619af16148c74cf328 100644 (file)
@@ -3,13 +3,13 @@ tests/test-ceilf1.c
 tests/test-ceilf2.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 
 Depends-on:
 float
 isnanf-nolibm
+nan
 stdbool
 stdint
 
index 1ac70b36a46c28fd85ed64143b81cf1bd85d059a..d02cdf0457531ed66efa90d71341a7dcd9c0ac62 100644 (file)
@@ -2,13 +2,13 @@ Files:
 tests/test-ceill-ieee.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 fpucw
 isnanl-nolibm
 float
+nan
 signbit
 
 configure.ac:
index d6176c835134181d9279360e86cdcec47038fc64..d6d0b1a6cb96d5a9b47ac47e8996016a12cee41c 100644 (file)
@@ -2,7 +2,6 @@ Files:
 tests/test-ceill.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 
@@ -10,6 +9,7 @@ Depends-on:
 fpucw
 isnanl-nolibm
 float
+nan
 
 configure.ac:
 
index e36415476c6c6dd59ee390b9d3e752fc9b46213e..91cd4d140b928822e3d06f7c371dc6761fe7f81e 100644 (file)
@@ -3,12 +3,12 @@ tests/test-exp-ieee.c
 tests/test-exp-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnand-nolibm
 float
+nan
 signbit
 
 configure.ac:
index a2d6c573086f7667c5275008b078a115e8117abc..406040df8c23a61031ff72117fe35de7f1bdbc16 100644 (file)
@@ -3,12 +3,12 @@ tests/test-exp2-ieee.c
 tests/test-exp2-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnand-nolibm
 float
+nan
 signbit
 
 configure.ac:
index cbbb0dda8671770b09e946f909abdaea6e6392c0..e131e5bfbe09de42de9c3cb3391b64e7f0c71a1a 100644 (file)
@@ -3,12 +3,12 @@ tests/test-exp2f-ieee.c
 tests/test-exp2-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanf-nolibm
 float
+nan
 signbit
 
 configure.ac:
index e76503a69e15dcf525d2e2f146a2ea72ba565201..f36238b27bd6ee1119813a55425a002bf166f89d 100644 (file)
@@ -3,12 +3,12 @@ tests/test-exp2l-ieee.c
 tests/test-exp2-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanl-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 582824cc7e33a9ea00085be551f5bc520d6d5497..0f07c3be5a9716db75a532833b8542f9b962c5a4 100644 (file)
@@ -3,12 +3,12 @@ tests/test-expf-ieee.c
 tests/test-exp-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanf-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 53b4ae87f96f24d682736453cf482631e776fe1e..478fe068f62b46a004a10c6428d9a7df2b1c4ee9 100644 (file)
@@ -3,12 +3,12 @@ tests/test-expl-ieee.c
 tests/test-exp-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanl-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 4569a7b76c46972fe3f67ff05923ecfe33b10655..984c8190fe7fab576296a0d63bab39de450823ae 100644 (file)
@@ -3,12 +3,12 @@ tests/test-expm1-ieee.c
 tests/test-expm1-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnand-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 4c64b333a3bc7e507cd73dfd5987b52d2127f4da..c961d0f8ae243e0b0fd0ee7e46f175cc5b702000 100644 (file)
@@ -3,12 +3,12 @@ tests/test-expm1f-ieee.c
 tests/test-expm1-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanf-nolibm
 float
+nan
 signbit
 
 configure.ac:
index f0f3029d014b4dbca88069765fa29daeda3ba7fc..334a15cb531a981bbbd1ba11d8608cfbad62fb10 100644 (file)
@@ -3,12 +3,12 @@ tests/test-expm1l-ieee.c
 tests/test-expm1-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanl-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 4c638c10134b2ab25e324a16364ba81eddefab23..5068d2c23626fc2286bff4f4cf995c529e74e2ea 100644 (file)
@@ -3,12 +3,12 @@ tests/test-fabs-ieee.c
 tests/test-fabs-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnand-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 93baaf81e124401736e038b997633035101519f6..40c534d586a7c4020ad1b5134fe554f4fdf0ebf0 100644 (file)
@@ -3,12 +3,12 @@ tests/test-fabsf-ieee.c
 tests/test-fabs-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanf-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 339c478612cadbc8096c4ee7ec387f74849ec635..c408f9f2d7a4ce0b5a626c59cc4e1dab27056672 100644 (file)
@@ -3,12 +3,12 @@ tests/test-fabsl-ieee.c
 tests/test-fabs-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanl-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 2bedce03e38d6e351cbcf88e3d5a5fa66bc808d8..e67cc38cc6c69568e0c9b3316cee45d2820bee0b 100644 (file)
@@ -2,12 +2,12 @@ Files:
 tests/test-floor-ieee.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnand-nolibm
 float
+nan
 signbit
 
 configure.ac:
index c57c3c9eccbe6fc667da5e2fb6c25dc07bdb5025..3cdb2146405b4f017497aa4bc4fbbc78c3a4f526 100644 (file)
@@ -3,13 +3,13 @@ tests/test-floor1.c
 tests/test-floor2.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 
 Depends-on:
 float
 isnand-nolibm
+nan
 stdbool
 stdint
 
index 3f84817d87db1ed0edf46cf10fe268fc1ddd1f67..67cd2cab4017556b6076f5ade7adc40a4f407abf 100644 (file)
@@ -2,12 +2,12 @@ Files:
 tests/test-floorf-ieee.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanf-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 8e7004368831e01d6f06aa61e13e8df097d3af54..b819eccd0eba41a1f77b2bb15cd1b167b0b5e5de 100644 (file)
@@ -3,13 +3,13 @@ tests/test-floorf1.c
 tests/test-floorf2.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 
 Depends-on:
 float
 isnanf-nolibm
+nan
 stdbool
 stdint
 
index 6b976abc4334be936884e41f02459c0e68493bb8..9e011ea4abedf12520a5b34aec5eaf1c30b6f123 100644 (file)
@@ -2,13 +2,13 @@ Files:
 tests/test-floorl-ieee.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 fpucw
 isnanl-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 68ef0f56a5b717990c1e7f2b72eb061d991b6320..6342f4c7a6b0f65a6b07007b0755892149c2f325 100644 (file)
@@ -2,7 +2,6 @@ Files:
 tests/test-floorl.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 
@@ -10,6 +9,7 @@ Depends-on:
 fpucw
 isnanl-nolibm
 float
+nan
 
 configure.ac:
 
index 13ac84e1ce7d6fe210d1b647612348d8d5774810..94343268b1c49728f4933c216188080159564753 100644 (file)
@@ -2,11 +2,11 @@ Files:
 tests/test-fma-ieee.c
 tests/test-fma-ieee.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnand-nolibm
+nan
 
 configure.ac:
 
index b1fbc7e34657a355937b18c5ae33bff18f646388..0a39f08ef5d8d0389deb6c548812a414869ab0e0 100644 (file)
@@ -4,7 +4,6 @@ tests/test-fma1.h
 tests/test-fma2.c
 tests/test-fma2.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 lib/float+.h
@@ -13,6 +12,7 @@ Depends-on:
 float
 isnand-nolibm
 ldexp
+nan
 
 configure.ac:
 
index c08140623dcab6280ac773536a8b36133ef9b1e3..4f10c7909927e33ece9bf10673cfd25353e93ba0 100644 (file)
@@ -2,11 +2,11 @@ Files:
 tests/test-fmaf-ieee.c
 tests/test-fma-ieee.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanf-nolibm
+nan
 
 configure.ac:
 
index aa7fd8dadf2993abfadc95a34821d02cc3355b01..6d5af9ae4eaf2dde3e4baef410b3c123988c168d 100644 (file)
@@ -4,7 +4,6 @@ tests/test-fma1.h
 tests/test-fmaf2.c
 tests/test-fma2.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 lib/float+.h
@@ -13,6 +12,7 @@ Depends-on:
 float
 isnanf-nolibm
 ldexpf
+nan
 
 configure.ac:
 
index 38897ca949fcee41c95511a2fdefc30b69460e29..2ae806a3447ee1a08a2cf91539422cf212af43d6 100644 (file)
@@ -2,11 +2,11 @@ Files:
 tests/test-fmal-ieee.c
 tests/test-fma-ieee.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanl-nolibm
+nan
 
 configure.ac:
 
index 5f04dc4375f1353e1d61d10d46049aa42c45028e..af97c39dc36f09101a7912e081385789743cd0a4 100644 (file)
@@ -4,7 +4,6 @@ tests/test-fma1.h
 tests/test-fmal2.c
 tests/test-fma2.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 lib/float+.h
@@ -14,6 +13,7 @@ float
 fpucw
 isnanl-nolibm
 ldexpl
+nan
 
 configure.ac:
 
index 1f5634d3d307f86c68e1aa3a8e738936efc2e592..7d576273703425af7439012de793e0cfa58dcd5d 100644 (file)
@@ -3,12 +3,12 @@ tests/test-fmod-ieee.c
 tests/test-fmod-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnand-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 61bbce90d93cadc2c04cc7a3b7c6e1bebc50cf02..5bac69b84ed0bfda58bfb7e3cb198b597644e416 100644 (file)
@@ -3,12 +3,12 @@ tests/test-fmodf-ieee.c
 tests/test-fmod-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanf-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 2ac20eb13f11143371e79ffb1f81f0b9378c75ba..7534033ce65d4d2814deb9b511eef59fc9090f90 100644 (file)
@@ -3,12 +3,12 @@ tests/test-fmodl-ieee.c
 tests/test-fmod-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanl-nolibm
 float
+nan
 signbit
 
 configure.ac:
index c055d525ab11ec64fb3cfdaf55da29bbdc5d45b2..391ad51d5c66eb5849a7dace42dbf8009ee8d9f2 100644 (file)
@@ -3,12 +3,12 @@ tests/test-frexp-ieee.c
 tests/test-frexp-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnand-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 39e81590ee08ddd8a8f29a09769c3928224043a1..333ff3e8690030cb832f320cb450d6790e0c7ee7 100644 (file)
@@ -3,13 +3,13 @@ tests/test-frexp.c
 tests/test-frexp.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 tests/randomd.c
 
 Depends-on:
 isnand-nolibm
+nan
 signbit
 
 configure.ac:
index 0d957f28c074d7772c9436050b7f0093806bc259..7e327cbc77f434ebbe5827ceed09bb95e21a37e2 100644 (file)
@@ -3,13 +3,13 @@ tests/test-frexp.c
 tests/test-frexp.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 tests/randomd.c
 
 Depends-on:
 isnand-nolibm
+nan
 signbit
 
 configure.ac:
index 19fb494a754629b064b35ede00a4490658367320..89cc669cbd92484adef6c74d2922187f4563f70a 100644 (file)
@@ -3,12 +3,12 @@ tests/test-frexpf-ieee.c
 tests/test-frexp-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanf-nolibm
 float
+nan
 signbit
 
 configure.ac:
index c7bfbed6c15f5d87d6256929cd23f1497910168b..7d92de13b7c1cecc5b9b87007c018c432d0aa9f4 100644 (file)
@@ -3,13 +3,13 @@ tests/test-frexpf.c
 tests/test-frexp.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 tests/randomf.c
 
 Depends-on:
 isnanf-nolibm
+nan
 signbit
 
 configure.ac:
index bd19689617a4547ffb1e962b4ec562c297475ea6..77e56b84effe8e4ce04cbf1603d77d9df500147b 100644 (file)
@@ -3,12 +3,12 @@ tests/test-frexpl-ieee.c
 tests/test-frexp-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanl-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 7f5d547779ec8878b876c7a912a46daa472e5061..a3ae1bed455ac674b36e5e5222a1351c7e1e1b65 100644 (file)
@@ -3,7 +3,6 @@ tests/test-frexpl.c
 tests/test-frexp.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 tests/randoml.c
@@ -12,6 +11,7 @@ Depends-on:
 fpucw
 isnanl-nolibm
 signbit
+nan
 
 configure.ac:
 
index 2c0f99ed1b2b2746d2553a7fb993bc754161100b..6fd1abd09612ae81a641a9d1fe0f669dd0cfcb99 100644 (file)
@@ -3,7 +3,6 @@ tests/test-frexpl.c
 tests/test-frexp.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 tests/randoml.c
@@ -13,6 +12,7 @@ fpucw
 isnanl-nolibm
 signbit
 float
+nan
 
 configure.ac:
 
index 1fb7f3e40edf5bd0c81abf197950e91b412f35a9..9568c03d1ee0cd39b02bf7fa5f91ccdd1f8e1cd3 100644 (file)
@@ -3,12 +3,12 @@ tests/test-hypot-ieee.c
 tests/test-hypot-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnand-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 2296636574641b6226c27c23c875f27e0c873abe..43fea67e307887b96c79ee83b438761a80fb362e 100644 (file)
@@ -3,12 +3,12 @@ tests/test-hypotf-ieee.c
 tests/test-hypot-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanf-nolibm
 float
+nan
 signbit
 
 configure.ac:
index dc7bf7756b914b4e977341b3368751f036c2f3cf..7bc00a2b3ca4763fe4b31bd3906873c6cae1366d 100644 (file)
@@ -3,12 +3,12 @@ tests/test-hypotl-ieee.c
 tests/test-hypot-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanl-nolibm
 float
+nan
 signbit
 
 configure.ac:
index cb3eab542b6255c26da006109498be21ebe676b8..6ad236f71f2fe4f6b3291c93d4ea9bbd94867909 100644 (file)
@@ -3,12 +3,12 @@ tests/test-ilogb.c
 tests/test-ilogb.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 tests/randomd.c
 
 Depends-on:
+nan
 
 configure.ac:
 
index fca042a76d069bc64de7aee7bee459820797a825..05accc540f2bca453499d08cdad8694e9e1d4efa 100644 (file)
@@ -3,12 +3,12 @@ tests/test-ilogbf.c
 tests/test-ilogb.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 tests/randomf.c
 
 Depends-on:
+nan
 
 configure.ac:
 
index af350d2878611fbd738c9ea9fb26c4f1b78d6189..a098b0a8d15c774aa12728682e4cd41cb00f2fd0 100644 (file)
@@ -3,12 +3,12 @@ tests/test-ilogbl.c
 tests/test-ilogb.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 tests/randoml.c
 
 Depends-on:
+nan
 
 configure.ac:
 
index bf7964648b70c164a64c50f7fee96c0de8f9674f..16f4c8d187f39ff13fd611dcce37e6272c45ec5f 100644 (file)
@@ -1,7 +1,6 @@
 Files:
 tests/test-isfinite.c
 tests/infinity.h
-tests/nan.h
 tests/snan.h
 tests/macros.h
 m4/exponentf.m4
@@ -10,6 +9,7 @@ m4/exponentl.m4
 
 Depends-on:
 float
+nan
 
 configure.ac:
 gl_FLOAT_EXPONENT_LOCATION
index fb958d74eabacc30e207f55ea0cb212adff9d636..caf77a88f920294dd215b7f9923395a4d18a3ae3 100644 (file)
@@ -1,7 +1,6 @@
 Files:
 tests/test-isinf.c
 tests/infinity.h
-tests/nan.h
 tests/snan.h
 tests/macros.h
 m4/exponentf.m4
@@ -10,6 +9,7 @@ m4/exponentl.m4
 
 Depends-on:
 float
+nan
 
 configure.ac:
 gl_FLOAT_EXPONENT_LOCATION
index 06ebb721563784288cc198cd16720535bee3106a..8da13c2349674c89f2e1bd548c731563ccb514fe 100644 (file)
@@ -2,7 +2,6 @@ Files:
 tests/test-isnan.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/snan.h
 tests/macros.h
 m4/exponentf.m4
@@ -11,6 +10,7 @@ m4/exponentl.m4
 
 Depends-on:
 float
+nan
 
 configure.ac:
 gl_FLOAT_EXPONENT_LOCATION
index c8d92f3a75ccc7d3c1f5b2a6450a570d3784232a..b4fa23e9d92728b10a071bd3b2b8f8045f8f1f85 100644 (file)
@@ -3,12 +3,12 @@ tests/test-isnand-nolibm.c
 tests/test-isnand.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/snan.h
 tests/macros.h
 m4/exponentd.m4
 
 Depends-on:
+nan
 
 configure.ac:
 gl_DOUBLE_EXPONENT_LOCATION
index 30a2c6f9e6b328fdbfb09d8d7e3fbb75c26da7ef..82f4d2e1dcc404ce53ecd33c28f48d57b3a19858 100644 (file)
@@ -3,12 +3,12 @@ tests/test-isnand.c
 tests/test-isnand.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/snan.h
 tests/macros.h
 m4/exponentd.m4
 
 Depends-on:
+nan
 
 configure.ac:
 gl_DOUBLE_EXPONENT_LOCATION
index acd8bd34bcac68d6534cc4ff0fce13b6165cdbcd..6dece6e5d955420887093d25e1f000e6b87a4517 100644 (file)
@@ -3,12 +3,12 @@ tests/test-isnanf-nolibm.c
 tests/test-isnanf.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/snan.h
 tests/macros.h
 m4/exponentf.m4
 
 Depends-on:
+nan
 
 configure.ac:
 gl_FLOAT_EXPONENT_LOCATION
index c094c02a37b0a861462d09df7fe866ca5740a448..464618c2f98f8612ea95ab647ebef03b898a6b71 100644 (file)
@@ -3,12 +3,12 @@ tests/test-isnanf.c
 tests/test-isnanf.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/snan.h
 tests/macros.h
 m4/exponentf.m4
 
 Depends-on:
+nan
 
 configure.ac:
 gl_FLOAT_EXPONENT_LOCATION
index 58a0f51fa17500f6d1c048a104c36a521785efd7..88a4ddfc9c4f3ea39b8eac41fe4ca9cf7ffd36ed 100644 (file)
@@ -3,13 +3,13 @@ tests/test-isnanl-nolibm.c
 tests/test-isnanl.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/snan.h
 tests/macros.h
 m4/exponentl.m4
 
 Depends-on:
 float
+nan
 
 configure.ac:
 gl_LONG_DOUBLE_EXPONENT_LOCATION
index 5a2d880c3fcbf83ca78472b107eaad6f944a2b31..24ea78471e078f98d754b8b91e799458b0666f4b 100644 (file)
@@ -3,13 +3,13 @@ tests/test-isnanl.c
 tests/test-isnanl.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/snan.h
 tests/macros.h
 m4/exponentl.m4
 
 Depends-on:
 float
+nan
 
 configure.ac:
 gl_LONG_DOUBLE_EXPONENT_LOCATION
index 83bd51b7674853169eb40bf81177772b7137cfc0..c8799bc7f48518948e22e2f628d23ac85bc089e2 100644 (file)
@@ -3,12 +3,12 @@ tests/test-ldexp-ieee.c
 tests/test-ldexp-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnand-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 2db1a43a97fa51022d858373d76863756bd2463a..153f3356ac1c21a4468da35e9088a3916ab757bf 100644 (file)
@@ -3,7 +3,6 @@ tests/test-ldexp.c
 tests/test-ldexp.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 tests/randomd.c
@@ -12,6 +11,7 @@ Depends-on:
 isnand-nolibm
 signbit
 float
+nan
 
 configure.ac:
 
index be1add9659f6bc3f6a68dc967aab60e20f9ff1b2..7679569ca3645eac77b32c501a7e3b498a35a3fe 100644 (file)
@@ -3,12 +3,12 @@ tests/test-ldexpf-ieee.c
 tests/test-ldexp-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanf-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 80ee90d6d6a20b41db53406fbaeff49c6aeb8a93..5ed0f380068ee91eef7475abb8995626caaf6424 100644 (file)
@@ -3,7 +3,6 @@ tests/test-ldexpf.c
 tests/test-ldexp.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 tests/randomf.c
@@ -12,6 +11,7 @@ Depends-on:
 isnanf-nolibm
 signbit
 float
+nan
 
 configure.ac:
 
index f8461319b6060ce6292dc3d100e36abd299fda43..85a4bc363a1dab7fe6f6015ad9b8e6197298ca46 100644 (file)
@@ -3,12 +3,12 @@ tests/test-ldexpl-ieee.c
 tests/test-ldexp-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanl-nolibm
 float
+nan
 signbit
 
 configure.ac:
index c160d4068622ea88cadb476a2cbb0c35958b9076..e50f1c6424a0c33ff9009ab4cbbda2585cd8de9d 100644 (file)
@@ -3,7 +3,6 @@ tests/test-ldexpl.c
 tests/test-ldexp.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 tests/randoml.c
@@ -13,6 +12,7 @@ fpucw
 isnanl-nolibm
 signbit
 float
+nan
 
 configure.ac:
 
index 0debcea9e4f262d0574598d6c2af4671857cc9d8..efe54b10102d41451db40d7acc1108e3be5d465d 100644 (file)
@@ -3,12 +3,12 @@ tests/test-log-ieee.c
 tests/test-log-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnand-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 147d53d74b0331cab90cbf6d95b7cd9d92e1a257..e8a324d77ffc9c42e5520f216e6ef47332a1b84a 100644 (file)
@@ -3,12 +3,12 @@ tests/test-log10-ieee.c
 tests/test-log10-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnand-nolibm
 float
+nan
 signbit
 
 configure.ac:
index dc81a669821b7acf7b66c0389420c465466c0207..6f6ef15bb88e15dd8545d884061598ef635ba035 100644 (file)
@@ -3,12 +3,12 @@ tests/test-log10f-ieee.c
 tests/test-log10-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanf-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 9b19f3c403c70b17daeeae8ecaaf97f57256a0d9..0f84dc394cbbbcb948f04ab2e1b9ebd196a34270 100644 (file)
@@ -3,12 +3,12 @@ tests/test-log10l-ieee.c
 tests/test-log10-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanl-nolibm
 float
+nan
 signbit
 
 configure.ac:
index dea76b485a4ad4dad9c4963938104a4a0e04409e..a7f2a21c0aabbb4cabed67e69abb3927626a3c9b 100644 (file)
@@ -3,12 +3,12 @@ tests/test-log1p-ieee.c
 tests/test-log1p-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnand-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 5eca5eb1bd3c77d042b2d48eb0cf5391e1bc49c4..ed67ba6513e3d6d9844cb226bdd4bc10aec4330d 100644 (file)
@@ -3,12 +3,12 @@ tests/test-log1pf-ieee.c
 tests/test-log1p-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanf-nolibm
 float
+nan
 signbit
 
 configure.ac:
index d283656e044f07b5967f8147a31e7469272926ab..64179fb2fd13cff72777c310af3740d9b8f1a198 100644 (file)
@@ -3,12 +3,12 @@ tests/test-log1pl-ieee.c
 tests/test-log1p-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanl-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 8178a4d940288301ad1e5a011f8c20918848bc2e..5a9b91bf691087608545e2338fdea041e5e40f84 100644 (file)
@@ -3,12 +3,12 @@ tests/test-log2-ieee.c
 tests/test-log2-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnand-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 8900a2c3495a1ea0f4d88518cf54366e7b30a843..b9be57e4575cc526c879b56fe553613364c0a965 100644 (file)
@@ -3,12 +3,12 @@ tests/test-log2f-ieee.c
 tests/test-log2-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanf-nolibm
 float
+nan
 signbit
 
 configure.ac:
index e6a472371de4b4e531b960b0fc2ccd0e4e215a5d..46c1100d383fd406b0af854b67074f4c715e2a2b 100644 (file)
@@ -3,12 +3,12 @@ tests/test-log2l-ieee.c
 tests/test-log2-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanl-nolibm
 float
+nan
 signbit
 
 configure.ac:
index c12b2cbd8c7b3a80f50c28c81cf79d3890462a89..3c6b33802ce27a36f80b8c0e81a2535c6e9db0b7 100644 (file)
@@ -3,12 +3,12 @@ tests/test-logb-ieee.c
 tests/test-logb-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnand-nolibm
 float
+nan
 signbit
 
 configure.ac:
index fa55cc5aec29ae3ca50e1ce0755caec36b2bbd29..98fdb474c477551cf1d1d08a106bbaf97e9607e1 100644 (file)
@@ -3,12 +3,12 @@ tests/test-logbf-ieee.c
 tests/test-logb-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanf-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 87f2156ea2ab8e279ea391a361b31841a4befb29..bf35787602918e71f34202b3bd22f29c1d3568bf 100644 (file)
@@ -3,12 +3,12 @@ tests/test-logbl-ieee.c
 tests/test-logb-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanl-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 71c515ac009e5b9bb443cc37fa96e6d54e068fbe..82b6c0f3a01c98c0ad97e1d45f2ebd52deb64fbd 100644 (file)
@@ -3,12 +3,12 @@ tests/test-logf-ieee.c
 tests/test-log-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanf-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 28962c4e5743b0a0b4c9412280f8f01eb9b80714..916ae0d20d5eba8d9898e9d99e7c9476b15a4eea 100644 (file)
@@ -3,12 +3,12 @@ tests/test-logl-ieee.c
 tests/test-log-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanl-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 3dc596980b625befe50eeab7213b24bfe799e58d..575a48502d92898bb865256261a3372d7c6e8d6f 100644 (file)
@@ -3,12 +3,12 @@ tests/test-modf-ieee.c
 tests/test-modf-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnand-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 17063a5356bb3af50967d29bceda3a6330389fe6..bfc9278516ec067d6a6c5e7eb9319fdd87f8b9ab 100644 (file)
@@ -3,12 +3,12 @@ tests/test-modff-ieee.c
 tests/test-modf-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanf-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 2bf16fee178f053a0ed7cdd2986a5561a7e9a67b..d20023ba7dd30f8041402e3d2a02770fa160fc16 100644 (file)
@@ -3,12 +3,12 @@ tests/test-modfl-ieee.c
 tests/test-modf-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanl-nolibm
 float
+nan
 signbit
 
 configure.ac:
diff --git a/modules/nan b/modules/nan
new file mode 100644 (file)
index 0000000..18165c0
--- /dev/null
@@ -0,0 +1,23 @@
+Description:
+Macros for quiet not-a-number.
+
+Files:
+lib/nan.h
+
+Depends-on:
+
+configure.ac:
+
+Makefile.am:
+lib_SOURCES += nan.h
+
+Include:
+"nan.h"
+
+Link:
+
+License:
+GPL
+
+Maintainer:
+all
index 867e0f768f9ff0813ea8329cb9892001d8a7f87f..da095403283fd96c80d019110d088919feb3bf8f 100644 (file)
@@ -3,12 +3,12 @@ tests/test-remainder-ieee.c
 tests/test-remainder-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnand-nolibm
 float
+nan
 signbit
 
 configure.ac:
index acda164199d37c331de04238e828e4a8e9b34649..7ab236ebd4f57205f6a60117a5a11c0be3979dab 100644 (file)
@@ -3,12 +3,12 @@ tests/test-remainderf-ieee.c
 tests/test-remainder-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanf-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 1ebbcc30666e410ac4047eead8ef2d8609d04faf..1e4cab433778b5c2ae7e599fc6bc7fca45515885 100644 (file)
@@ -3,12 +3,12 @@ tests/test-remainderl-ieee.c
 tests/test-remainder-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanl-nolibm
 float
+nan
 signbit
 
 configure.ac:
index ff17f28d73d5ed539df1df5646d8d68eef46290b..3bf94eb48f03f5b24164eddcf15a6a0f43a2b245 100644 (file)
@@ -3,12 +3,12 @@ tests/test-rint-ieee.c
 tests/test-rint-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnand-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 1b0232f760f8aa3eb32d4423b066207bcf580dfb..108d3cf936e71633d2140cdaae84429c777ec9cc 100644 (file)
@@ -3,13 +3,13 @@ tests/test-rint.c
 tests/test-rint.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 tests/randomd.c
 
 Depends-on:
 isnand-nolibm
+nan
 
 configure.ac:
 
index 87ae29c0dd7926dba24104cd5397975483e52499..ab8b83a7651cd388aefb2ae9a703affcc20f1773 100644 (file)
@@ -3,12 +3,12 @@ tests/test-rintf-ieee.c
 tests/test-rint-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanf-nolibm
 float
+nan
 signbit
 
 configure.ac:
index d72ce79167a01dbece89215d89e830d46ce94fa2..96d236c33e67b141d09a3d4870973b24bc428796 100644 (file)
@@ -3,13 +3,13 @@ tests/test-rintf.c
 tests/test-rint.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 tests/randomf.c
 
 Depends-on:
 isnanf-nolibm
+nan
 
 configure.ac:
 
index bc5dfa9a74162d755c16aa4ee52fa82f08b7b4d8..a74e6ea3ebdd2d6e68a2f028bc333ab68b580d8e 100644 (file)
@@ -3,12 +3,12 @@ tests/test-rintl-ieee.c
 tests/test-rint-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanl-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 32dd4b42572c1da213a0c4d675b070e156403528..576fffcc4b15ab9d808bdff2c970be35b26f6d70 100644 (file)
@@ -3,7 +3,6 @@ tests/test-rintl.c
 tests/test-rint.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 tests/randoml.c
@@ -12,6 +11,7 @@ Depends-on:
 fpucw
 isnanl-nolibm
 float
+nan
 
 configure.ac:
 
index f74d57bfa43c78616118f1abf6c0c995ce9c986c..1aca2fcbe5084f09aac40b7b76a00e88f6cafb8a 100644 (file)
@@ -2,12 +2,12 @@ Files:
 tests/test-round-ieee.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnand-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 6a0de71cf7850893c14f151d38b83a04ac5e8521..358ddacfbe66f83b683fa2918a281c38f80cef30 100644 (file)
@@ -3,13 +3,13 @@ tests/test-round1.c
 tests/test-round2.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 
 Depends-on:
 assert-h
 isnand-nolibm
+nan
 stdbool
 stdint
 
index 1d283adb29d3e601555a75647620cac61e8343dc..5721f8156ccf5034affb1599b4ece76ba07f8d46 100644 (file)
@@ -2,12 +2,12 @@ Files:
 tests/test-roundf-ieee.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanf-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 29f06e45c2b591dcb4c8818da2c2f4cca45938a0..6638dc3ed8be90c6f7948c07ddc0af7988f0b296 100644 (file)
@@ -4,7 +4,6 @@ tests/test-round2.c
 tests/test-roundf2.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 
@@ -13,6 +12,7 @@ assert-h
 ceilf
 floorf
 isnanf-nolibm
+nan
 stdbool
 stdint
 
index fe624ba8e296eb58f64534978bd4cc27d20ac62e..40885dcf8e987d0ff80e57e23452b47cbd30fe86 100644 (file)
@@ -2,12 +2,12 @@ Files:
 tests/test-roundl-ieee.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanl-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 7e7aca3b98bb8788f957cb1480b7762665343d46..3d61ca1cf8e1b56c3b4ce880661bd8b711862a38 100644 (file)
@@ -2,7 +2,6 @@ Files:
 tests/test-roundl.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 
@@ -10,6 +9,7 @@ Depends-on:
 fpucw
 isnanl-nolibm
 float
+nan
 
 configure.ac:
 
index 3b3ef9b6b6290a1f0b8075f501db212efd888a37..6e414ea4f267cd72c0fcc2a47d98cb5fbdb7f641 100644 (file)
@@ -2,7 +2,6 @@ Files:
 tests/test-signbit.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/qnan.h
 tests/snan.h
 tests/macros.h
@@ -12,6 +11,7 @@ m4/exponentl.m4
 
 Depends-on:
 float
+nan
 
 configure.ac:
 AC_REQUIRE([gl_FLOAT_EXPONENT_LOCATION])
index 0f7257e6484e9c8e7c32cca845123609b5345c0f..9369b6337383563273c3e545cdf53e0c4ff31ae7 100644 (file)
@@ -4,13 +4,13 @@ tests/test-snprintf-posix.h
 tests/test-snprintf.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 
 Depends-on:
 stdint
 float
+nan
 
 configure.ac:
 AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
index ba23199a07c83b49a2bf17ddb22cec39d3042f2e..ff6b4163cc05f3d9f4568906b6c5605667267311 100644 (file)
@@ -3,13 +3,13 @@ tests/test-sprintf-posix.c
 tests/test-sprintf-posix.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 
 Depends-on:
 stdint
 float
+nan
 
 configure.ac:
 AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
index aaeb544151291c9f45ca9b938e0583a1b72397d3..21c89cbde8484a105afea3a97275db1c71ef7226 100644 (file)
@@ -3,12 +3,12 @@ tests/test-sqrt-ieee.c
 tests/test-sqrt-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnand-nolibm
 float
+nan
 signbit
 
 configure.ac:
index c1b88f61723e932cd972add0d6d7e47da53cfdf0..2c130fb86e792ea33dea2190484aebd5b4d8b699 100644 (file)
@@ -3,12 +3,12 @@ tests/test-sqrtf-ieee.c
 tests/test-sqrt-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanf-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 85141fa9f001a8db5044236f1401b258b51bddb2..6e5dbe9884c6adc727dabb3f134b1d2f6ebe06b0 100644 (file)
@@ -3,12 +3,12 @@ tests/test-sqrtl-ieee.c
 tests/test-sqrt-ieee.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanl-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 84199d5aa32715e3989417c22d12a6e3b3a3a9d4..f0dc1d054f540590ed08fe7c5e192cac34e5b401 100644 (file)
@@ -1,6 +1,5 @@
 Files:
 tests/test-stdio.c
-tests/nan.h
 tests/qnan.h
 tests/snan.h
 tests/macros.h
@@ -8,6 +7,7 @@ m4/exponentd.m4
 
 Depends-on:
 assert-h
+nan
 stdio-c++-tests
 fgetc-tests
 fputc-tests
index 43eff42e7afdb46e7c6221f24270e60b3bf9f4c4..6bddc21593b9cc3dd3082500a295d8749b42652f 100644 (file)
@@ -2,11 +2,11 @@ Files:
 tests/test-totalorder.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/qnan.h
 tests/macros.h
 
 Depends-on:
+nan
 signbit
 
 configure.ac:
index 581e3e8cc27628dd40da7e00359554993845a209..688536be81a0216885534a6aaa1bb426d7e26ae8 100644 (file)
@@ -3,11 +3,11 @@ tests/test-totalorderf.c
 tests/test-totalorder.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/qnan.h
 tests/macros.h
 
 Depends-on:
+nan
 signbit
 
 configure.ac:
index c443fcc525fc082a93172074c04ba37fa507bec8..1502a9d5ce4abd39bada12e4a815f23a930af34f 100644 (file)
@@ -3,11 +3,11 @@ tests/test-totalorderl.c
 tests/test-totalorder.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/qnan.h
 tests/macros.h
 
 Depends-on:
+nan
 signbit
 
 configure.ac:
index 3299a7bbf02b96055b9400a2a62ee8b878a1bbd6..5a7919879a9d09d1e91f1e3859a3d9817e0cdffa 100644 (file)
@@ -2,12 +2,12 @@ Files:
 tests/test-trunc-ieee.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnand-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 1ec87d7c5783cdcdbfe5604c728e0304a83814f3..8822e797ac2370a3979baeeda5416feb3c735c81 100644 (file)
@@ -3,13 +3,13 @@ tests/test-trunc1.c
 tests/test-trunc2.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 
 Depends-on:
 float
 isnand-nolibm
+nan
 stdbool
 stdint
 
index edb3b1333c2ddd3b1459f0210455c65240acfc70..1595d6cdf0d6ecebb7e5d01ef61ebbe4118771c8 100644 (file)
@@ -2,12 +2,12 @@ Files:
 tests/test-truncf-ieee.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 isnanf-nolibm
 float
+nan
 signbit
 
 configure.ac:
index 1c847e7bfc121bc0b015ce1beddeed8553ac2533..be5623a398b2efd1a918de6df762121f429bbd93 100644 (file)
@@ -3,13 +3,13 @@ tests/test-truncf1.c
 tests/test-truncf2.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 
 Depends-on:
 float
 isnanf-nolibm
+nan
 stdbool
 stdint
 
index 478e9b144855bccd9e85cd0fecf638b2f5720c38..8b33cd45ff8afff95a1caa8966cd60f704101fc2 100644 (file)
@@ -2,13 +2,13 @@ Files:
 tests/test-truncl-ieee.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 fpucw
 isnanl-nolibm
 float
+nan
 signbit
 
 configure.ac:
index f6b7dd3944125f2e6b97c07dfb2641b5cdbddb23..466f8c97d5bcaadca6b3c20639ae1e8409928c33 100644 (file)
@@ -2,7 +2,6 @@ Files:
 tests/test-truncl.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 
@@ -10,6 +9,7 @@ Depends-on:
 fpucw
 isnanl-nolibm
 float
+nan
 
 configure.ac:
 
index b9aabe665fbdc2787fea3f9f8cf316e450115de9..4880abff4377a706beb6e3f2addbf707ddba132c 100644 (file)
@@ -5,7 +5,6 @@ tests/test-vasnprintf-posix2.c
 tests/test-vasnprintf-posix3.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 m4/locale-fr.m4
 m4/codeset.m4
@@ -13,6 +12,7 @@ m4/codeset.m4
 Depends-on:
 stdint
 float
+nan
 setlocale
 
 configure.ac:
index 4a693a1b98de21144f474f23b632a1d5b769b01e..ec90686c936458ae989039d74a844db0296ae448 100644 (file)
@@ -5,7 +5,6 @@ tests/test-vasnwprintf-posix2.c
 tests/test-vasnwprintf-posix3.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 m4/musl.m4
 m4/locale-fr.m4
@@ -14,6 +13,7 @@ m4/codeset.m4
 Depends-on:
 stdint
 float
+nan
 setlocale
 wcscmp
 wcsspn
index ae486a7672fd8ee344ff24d8131af268bcf5dda1..144a1922757026d2ff052cb3edd97dffdfc5fd05 100644 (file)
@@ -2,12 +2,12 @@ Files:
 tests/test-vasprintf-posix.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/macros.h
 
 Depends-on:
 stdint
 float
+nan
 
 configure.ac:
 AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
index 645c581cb379aeeb837c9cae0b6f4157b399f24e..4e1b497b7b74dda7d138a8fc7a58ab8dca31438b 100644 (file)
@@ -4,13 +4,13 @@ tests/test-snprintf-posix.h
 tests/test-vsnprintf.c
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 
 Depends-on:
 stdint
 float
+nan
 
 configure.ac:
 AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
index c8c8bafaf0d5cb8850e409820c52f179b1e8afe5..05483d9f467981b2f08c72778e84f5644b88ae09 100644 (file)
@@ -3,13 +3,13 @@ tests/test-vsprintf-posix.c
 tests/test-sprintf-posix.h
 tests/minus-zero.h
 tests/infinity.h
-tests/nan.h
 tests/signature.h
 tests/macros.h
 
 Depends-on:
 stdint
 float
+nan
 
 configure.ac:
 AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
diff --git a/tests/nan.h b/tests/nan.h
deleted file mode 100644 (file)
index 3ba41d8..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-/* Macros for quiet not-a-number.
-   Copyright (C) 2007-2023 Free Software Foundation, Inc.
-
-   This program is free software: you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation, either version 3 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
-
-#ifndef _TESTS_NAN_H
-#define _TESTS_NAN_H
-
-
-/* IBM z/OS supports both hexadecimal and IEEE floating-point formats. The
-   former does not support NaN and its isnan() implementation returns zero
-   for all values.  */
-#if defined __MVS__ && defined __IBMC__ && !defined __BFP__
-# error "NaN is not supported with IBM's hexadecimal floating-point format; please re-compile with -qfloat=ieee"
-#endif
-
-/* NaNf () returns a 'float' not-a-number.  */
-
-/* The Compaq (ex-DEC) C 6.4 compiler and the Microsoft MSVC 9 compiler choke
-   on the expression 0.0 / 0.0.  The IBM XL C compiler on z/OS complains.
-   PGI 16.10 complains.  */
-#if (defined __DECC || defined _MSC_VER \
-     || (defined __MVS__ && defined __IBMC__)   \
-     || defined __PGI)
-static float
-NaNf ()
-{
-  static float zero = 0.0f;
-  return zero / zero;
-}
-#else
-# define NaNf() (0.0f / 0.0f)
-#endif
-
-
-/* NaNd () returns a 'double' not-a-number.  */
-
-/* The Compaq (ex-DEC) C 6.4 compiler and the Microsoft MSVC 9 compiler choke
-   on the expression 0.0 / 0.0.  The IBM XL C compiler on z/OS complains.
-   PGI 16.10 complains.  */
-#if (defined __DECC || defined _MSC_VER \
-     || (defined __MVS__ && defined __IBMC__)   \
-     || defined __PGI)
-static double
-NaNd ()
-{
-  static double zero = 0.0;
-  return zero / zero;
-}
-#else
-# define NaNd() (0.0 / 0.0)
-#endif
-
-
-/* NaNl () returns a 'long double' not-a-number.  */
-
-/* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
-   runtime type conversion.
-   The Microsoft MSVC 9 compiler chokes on the expression 0.0L / 0.0L.
-   The IBM XL C compiler on z/OS complains.
-   PGI 16.10 complains.  */
-#ifdef __sgi
-static long double NaNl ()
-{
-  double zero = 0.0;
-  return zero / zero;
-}
-#elif defined _MSC_VER || (defined __MVS__ && defined __IBMC__) || defined __PGI
-static long double
-NaNl ()
-{
-  static long double zero = 0.0L;
-  return zero / zero;
-}
-#else
-# define NaNl() (0.0L / 0.0L)
-#endif
-
-
-#endif /* _TESTS_NAN_H */