annotate tests/test-ldexpf-ieee.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
16443
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Test of ldexpf() function.
17587
344018b6e5d7 maint: update copyright
Eric Blake <eblake@redhat.com>
parents: 17249
diff changeset
2 Copyright (C) 2012-2014 Free Software Foundation, Inc.
16443
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 This program is free software: you can redistribute it and/or modify
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 it under the terms of the GNU General Public License as published by
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 the Free Software Foundation; either version 3 of the License, or
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 (at your option) any later version.
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 This program is distributed in the hope that it will be useful,
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 GNU General Public License for more details.
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 You should have received a copy of the GNU General Public License
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 #include <config.h>
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 #include <math.h>
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 #include "isnanf-nolibm.h"
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 #include "minus-zero.h"
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 #include "infinity.h"
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 #include "nan.h"
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 #include "macros.h"
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 #undef INFINITY
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 #undef NAN
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 #define DOUBLE float
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 #define ISNAN isnanf
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 #define INFINITY Infinityf ()
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 #define NAN NaNf ()
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 #define L_(literal) literal##f
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 #define MINUS_ZERO minus_zerof
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 #define LDEXP ldexpf
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37 #include "test-ldexp-ieee.h"
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
38
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
39 int
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
40 main ()
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
41 {
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
42 test_function ();
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
43
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
44 return 0;
fc58a132e1b4 Tests for module 'ldexpf-ieee'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
45 }