annotate tests/test-fmal-ieee.c @ 17149:a49df7b88261

errno: port to LynxOS 178 2.2.2 Problem reported by Joel Brobecker in <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>. * doc/posix-headers/errno.texi (errno.h): Document this. * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros. * lib/strerror-override.c, lib/strerror-override.h (strerror_override): Supply a string for EILSEQ. * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
author Paul Eggert <eggert@cs.ucla.edu>
date Thu, 01 Nov 2012 15:29:14 -0700
parents 6b6140f8e50d
children e542fd46ad6f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16453
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Test of fmal() function.
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 Copyright (C) 2012 Free Software Foundation, Inc.
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 This program is free software: you can redistribute it and/or modify
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 it under the terms of the GNU General Public License as published by
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 the Free Software Foundation; either version 3 of the License, or
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 (at your option) any later version.
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 This program is distributed in the hope that it will be useful,
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 GNU General Public License for more details.
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 You should have received a copy of the GNU General Public License
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 #include <config.h>
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 #include <math.h>
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 #include "isnanl-nolibm.h"
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 #include "infinity.h"
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 #include "nan.h"
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 #include "macros.h"
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 #undef INFINITY
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 #undef NAN
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 #define DOUBLE long double
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 #define ISNAN isnanl
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 #define INFINITY Infinityl ()
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 #define NAN NaNl ()
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 #define L_(literal) literal##L
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 #define FMA fmal
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 #include "test-fma-ieee.h"
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37 int
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
38 main ()
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
39 {
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
40 test_function ();
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
41
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
42 return 0;
6b6140f8e50d Tests for module 'fmal-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
43 }