annotate tests/test-fma2.c @ 17593:d1e383af69e2

manywarnings: remove -Wmudflap * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since it is no longer supported in gcc-4.9-to-be.
author Jim Meyering <meyering@fb.com>
date Thu, 02 Jan 2014 16:55:04 -0800
parents 344018b6e5d7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16039
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Test of fma().
17587
344018b6e5d7 maint: update copyright
Eric Blake <eblake@redhat.com>
parents: 17249
diff changeset
2 Copyright (C) 2011-2014 Free Software Foundation, Inc.
16039
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 This program is free software: you can redistribute it and/or modify
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 it under the terms of the GNU General Public License as published by
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 the Free Software Foundation; either version 3 of the License, or
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 (at your option) any later version.
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 This program is distributed in the hope that it will be useful,
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 GNU General Public License for more details.
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 You should have received a copy of the GNU General Public License
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 /* Written by Bruno Haible <bruno@clisp.org>, 2011. */
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 #include <config.h>
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 #include <math.h>
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 #include "float+.h"
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 #include "infinity.h"
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 #include "macros.h"
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 #undef INFINITY
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 #define DOUBLE double
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 #define LDEXP ldexp
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 const int MIN_EXP = DBL_MIN_EXP; /* for gdb */
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 #define MIN_EXP DBL_MIN_EXP
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 const int MAX_EXP = DBL_MAX_EXP; /* for gdb */
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 #define MAX_EXP DBL_MAX_EXP
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 const int MANT_BIT = DBL_MANT_BIT; /* for gdb */
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 #define MANT_BIT DBL_MANT_BIT
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37 #define INFINITY Infinityd ()
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
38 #define L_(literal) literal
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
39 #include "test-fma2.h"
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
40
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
41 int
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
42 main ()
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
43 {
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
44 test_function (fma);
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
45
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
46 return 0;
ae7cb951d5b4 Tests for module 'fma'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
47 }