Imported Upstream version 1.0
[platform/upstream/mpc.git] / tests / conj.dat
1 # Data file for mpc_conj.
2 #
3 # Copyright (C) 2008, 2012 INRIA
4 #
5 # This file is part of GNU MPC.
6 #
7 # GNU MPC is free software; you can redistribute it and/or modify it under
8 # the terms of the GNU Lesser General Public License as published by the
9 # Free Software Foundation; either version 3 of the License, or (at your
10 #o ption) any later version.
11 #
12 # GNU MPC is distributed in the hope that it will be useful, but WITHOUT ANY
13 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
15 # more details.
16 #
17 # You should have received a copy of the GNU Lesser General Public License
18 # along with this program. If not, see http://www.gnu.org/licenses/ .
19 #
20 # The line format respects the parameter order in function prototype as
21 # follow:
22 #
23 # INEX_RE  INEX_IM  PREC_ROP_RE  ROP_RE  PREC_ROP_IM  ROP_IM  PREC_OP_RE  OP_RE  PREC_OP_IM  OP_IM  RND_RE  RND_IM
24 #
25 # see sin.dat for precisions
26
27 # special values (following ISO C99 standard)
28 0 0 53 -inf 53 +inf    53 -inf 53 -inf  N N
29 0 0 53 -inf 53   +1    53 -inf 53   -1  N N
30 0 0 53 -inf 53   +0    53 -inf 53   -0  N N
31 0 0 53 -inf 53   -0    53 -inf 53   +0  N N
32 0 0 53 -inf 53   -1    53 -inf 53   +1  N N
33 0 0 53 -inf 53 -inf    53 -inf 53 +inf  N N
34 0 0 53 -inf 53  nan    53 -inf 53  nan  N N
35 0 0 53   -1 53 +inf    53   -1 53 -inf  N N
36 0 0 53   -1 53   +0    53   -1 53   -0  N N
37 0 0 53   -1 53   -0    53   -1 53   +0  N N
38 0 0 53   -1 53 -inf    53   -1 53 +inf  N N
39 0 0 53   -1 53  nan    53   -1 53  nan  N N
40 0 0 53   -0 53 +inf    53   -0 53 -inf  N N
41 0 0 53   -0 53   +1    53   -0 53   -1  N N
42 0 0 53   -0 53   +0    53   -0 53   -0  N N
43 0 0 53   -0 53   -0    53   -0 53   +0  N N
44 0 0 53   -0 53   -1    53   -0 53   +1  N N
45 0 0 53   -0 53 -inf    53   -0 53 +inf  N N
46 0 0 53   -0 53  nan    53   -0 53  nan  N N
47 0 0 53   +0 53 +inf    53   +0 53 -inf  N N
48 0 0 53   +0 53   +1    53   +0 53   -1  N N
49 0 0 53   +0 53   +0    53   +0 53   -0  N N
50 0 0 53   +0 53   -0    53   +0 53   +0  N N
51 0 0 53   +0 53   -1    53   +0 53   +1  N N
52 0 0 53   +0 53 -inf    53   +0 53 +inf  N N
53 0 0 53   +0 53  nan    53   +0 53  nan  N N
54 0 0 53   +1 53 +inf    53   +1 53 -inf  N N
55 0 0 53   +1 53   +0    53   +1 53   -0  N N
56 0 0 53   +1 53   -0    53   +1 53   +0  N N
57 0 0 53   +1 53 -inf    53   +1 53 +inf  N N
58 0 0 53   +1 53  nan    53   +1 53  nan  N N
59 0 0 53 +inf 53 +inf    53 +inf 53 -inf  N N
60 0 0 53 +inf 53   +1    53 +inf 53   -1  N N
61 0 0 53 +inf 53   +0    53 +inf 53   -0  N N
62 0 0 53 +inf 53   -0    53 +inf 53   +0  N N
63 0 0 53 +inf 53   -1    53 +inf 53   +1  N N
64 0 0 53 +inf 53 -inf    53 +inf 53 +inf  N N
65 0 0 53 +inf 53  nan    53 +inf 53  nan  N N
66 0 0 53  nan 53 +inf    53  nan 53 -inf  N N
67 0 0 53  nan 53   +1    53  nan 53   -1  N N
68 0 0 53  nan 53   +0    53  nan 53   -0  N N
69 0 0 53  nan 53   -0    53  nan 53   +0  N N
70 0 0 53  nan 53   -1    53  nan 53   +1  N N
71 0 0 53  nan 53 -inf    53  nan 53 +inf  N N
72 0 0 53  nan 53  nan    53  nan 53  nan  N N
73
74 # pure real argument
75 0 0 53  0x123456789abcdep+52  2 -0    53  0x123456789abcdep+52 17 +0 N N
76 0 0 53 -0x123456789abcdep+52  3 -0    54 -0x123456789abcdep+52 16 +0 Z N
77 0 0 53  0x123456789abcdep+52  4 +0    55  0x123456789abcdep+52 15 -0 U N
78 0 0 53 -0x123456789abcdep+52  5 +0    56 -0x123456789abcdep+52 14 -0 D N
79 0 0 53  0x123456789abcdep+52  6 -0    57  0x123456789abcdep+52 13 +0 Z Z
80 0 0 53 -0x123456789abcdep+52  7 -0    58 -0x123456789abcdep+52 12 +0 U Z
81 0 0 53  0x123456789abcdep+52  8 +0    59  0x123456789abcdep+52 11 -0 D Z
82 0 0 53 -0x123456789abcdep+52  9 +0    60 -0x123456789abcdep+52 10 -0 N Z
83 0 0 53  0x123456789abcdep+52 10 -0    61  0x123456789abcdep+52  9 +0 U U
84 0 0 53 -0x123456789abcdep+52 11 -0    62 -0x123456789abcdep+52  8 +0 D U
85 0 0 53  0x123456789abcdep+52 12 +0    63  0x123456789abcdep+52  7 -0 N U
86 0 0 53 -0x123456789abcdep+52 13 +0    64 -0x123456789abcdep+52  6 -0 Z U
87 0 0 53  0x123456789abcdep+52 14 -0    65  0x123456789abcdep+52  5 +0 D D
88 0 0 53 -0x123456789abcdep+52 15 -0    66 -0x123456789abcdep+52  4 +0 N D
89 0 0 53  0x123456789abcdep+52 16 +0    67  0x123456789abcdep+52  3 -0 Z D
90 0 0 53 -0x123456789abcdep+52 17 +0    68 -0x123456789abcdep+52  2 -0 U D
91
92 # pure imaginary argument
93 0 0 53 +0 53 -0x123456789abcdep+52    53 +0 53  0x123456789abcdep+52 N N
94 0 0 53 -0 53 -0x123456789abcdep+52    51 -0 54  0x123456789abcdep+52 Z N
95 0 0 53 +0 53  0x123456789abcdep+52    49 +0 55 -0x123456789abcdep+52 U N
96 0 0 53 -0 53  0x123456789abcdep+52    47 -0 56 -0x123456789abcdep+52 D N
97 0 0 53 +0 53 -0x123456789abcdep+52    45 +0 57  0x123456789abcdep+52 Z Z
98 0 0 53 -0 53 -0x123456789abcdep+52    43 -0 58  0x123456789abcdep+52 U Z
99 0 0 53 +0 53  0x123456789abcdep+52    41 +0 59 -0x123456789abcdep+52 D Z
100 0 0 53 -0 53  0x123456789abcdep+52    39 -0 60 -0x123456789abcdep+52 N Z
101 0 0 53 +0 53 -0x123456789abcdep+52    37 +0 61  0x123456789abcdep+52 U U
102 0 0 53 -0 53 -0x123456789abcdep+52    35 -0 62  0x123456789abcdep+52 D U
103 0 0 53 +0 53  0x123456789abcdep+52    33 +0 63 -0x123456789abcdep+52 N U
104 0 0 53 -0 53  0x123456789abcdep+52    31 -0 64 -0x123456789abcdep+52 Z U
105 0 0 53 +0 53 -0x123456789abcdep+52    29 +0 65  0x123456789abcdep+52 D D
106 0 0 53 -0 53 -0x123456789abcdep+52    27 -0 66  0x123456789abcdep+52 N D
107 0 0 53 +0 53  0x123456789abcdep+52    25 +0 67 -0x123456789abcdep+52 Z D
108 0 0 53 -0 53  0x123456789abcdep+52    23 -0 68 -0x123456789abcdep+52 U D
109
110 # non-exact return values
111 - - 2 4 2 -8  3 5 3 7 N N
112 - + 2 4 2 -6  3 5 3 7 D U
113 + - 2 6 2 -8  3 5 3 7 U D
114 - + 2 4 2 -6  3 5 3 7 Z Z