Import Upstream version 0.8.2
[platform/upstream/mpc.git] / tests / abs.dat
1 # Data file for mpc_abs.
2 #
3 # Copyright (C) 2008 Philippe Th\'eveny
4 #
5 # This file is part of the MPC Library.
6 #
7 # The MPC Library is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU Lesser General Public License as published by
9 # the Free Software Foundation; either version 2.1 of the License, or (at your
10 # option) any later version.
11 #
12 # The MPC Library is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 # or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
15 # License for more details.
16 #
17 # You should have received a copy of the GNU Lesser General Public License
18 # along with the MPC Library; see the file COPYING.LIB.  If not, write to
19 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
20 # MA 02111-1307, USA.
21 #
22 # The line format respects the parameter order in function prototype as
23 # follow:
24 #
25 # INEX PREC_ROP  ROP  PREC_ROP_IM  ROP_IM  PREC_OP_RE  OP_RE  PREC_OP_IM  OP_IM  RND
26 #
27 # where op = op_re + i * op_im,
28 # rop is ROP rounded to nearest to the precision of PREC_ROP
29 # op_re is OP_RE rounded to nearest to the precision of PREC_OP_RE
30 # op_im is OP_IM rounded to nearest to the precision of PREC_OP_IM
31 # ROP is checked against abs(op) rounded to the precision PREC_ROP
32 # in the direction RND
33 # INEX is the ternary value with the following notation:
34 # "?" ternary value not checked
35 # "+" if ROP is greater than the exact mathematical result
36 # "0" if ROP is exactly the mathematical result
37 # "-" if ROP is less than the exact mathematical result
38 # rounding modes notation:
39 # "N" is rounding to nearest
40 # "Z" is rounding towards zero
41 # "U" is rounding towards plus infinity
42 # "D" is rounding towards minus infinity
43 # Use prefixes "0b" for values in base two, "0x" for values in base sixteen,
44 #   no prefix for value in base ten.
45 # In all bases, "nan" is NaN, "inf" is infinity;
46 # The sign of the result is checked with "+inf", "-inf", "-0", or "+0".
47
48 # special values (following ISO C99 standard)
49 0 53 +inf     53 -inf 53 -inf N
50 0 53 +inf     53 -inf 53   -1 N
51 0 53 +inf     53 -inf 53   -0 N
52 0 53 +inf     53 -inf 53   +0 N
53 0 53 +inf     53 -inf 53   +1 N
54 0 53 +inf     53 -inf 53 +inf N
55 0 53 +inf     53 -inf 53  nan N
56 0 53 +inf     53   -1 53 -inf N
57 0 53 +inf     53   -1 53 +inf N
58 0 53  nan     53   -1 53  nan N
59 0 53 +inf     53   -0 53 -inf N
60 0 53   +0     53   -0 53   -0 N
61 0 53   +0     53   -0 53   +0 N
62 0 53 +inf     53   -0 53 +inf N
63 0 53  nan     53   -0 53  nan N
64 0 53 +inf     53   +0 53 -inf N
65 0 53   +0     53   +0 53   -0 N
66 0 53   +0     53   +0 53   +0 N
67 0 53 +inf     53   +0 53 +inf N
68 0 53  nan     53   +0 53  nan N
69 0 53 +inf     53   +1 53 -inf N
70 0 53 +inf     53   +1 53 +inf N
71 0 53  nan     53   +1 53  nan N
72 0 53 +inf     53 +inf 53 -inf N
73 0 53 +inf     53 +inf 53   -1 N
74 0 53 +inf     53 +inf 53   -0 N
75 0 53 +inf     53 +inf 53   +0 N
76 0 53 +inf     53 +inf 53   +1 N
77 0 53 +inf     53 +inf 53 +inf N
78 0 53 +inf     53 +inf 53  nan N
79 0 53 +inf     53  nan 53 -inf N
80 0 53  nan     53  nan 53   -1 N
81 0 53  nan     53  nan 53   -0 N
82 0 53  nan     53  nan 53   +0 N
83 0 53  nan     53  nan 53   +1 N
84 0 53 +inf     53  nan 53 +inf N
85 0 53  nan     53  nan 53  nan N
86