Merge from mainline
[official-gcc.git] / libgcc-math / dbl-64 / mpexp.h
blob7ca9f6e32f0ed29310967e64f68fba0fd3ad3db4
1 /*
2 * IBM Accurate Mathematical Library
3 * Written by International Business Machines Corp.
4 * Copyright (C) 2001 Free Software Foundation, Inc.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; either version 2.1 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 /******************************************************************/
22 /* */
23 /* MODULE_NAME:mpexp.h */
24 /* */
25 /* common data and variables prototype and definition */
26 /******************************************************************/
28 #ifndef MPEXP_H
29 #define MPEXP_H
31 #ifdef BIG_ENDI
32 static const number
33 twomm1[33] = { /* 2**-m1 */
34 /**/ {{0x00000000, 0x00000000} }, /* 0 */
35 /**/ {{0x00000000, 0x00000000} }, /* 0 */
36 /**/ {{0x00000000, 0x00000000} }, /* 0 */
37 /**/ {{0x00000000, 0x00000000} }, /* 0 */
38 /**/ {{0x3ee00000, 0x00000000} }, /* 2**-17 */
39 /**/ {{0x3e800000, 0x00000000} }, /* 2**-23 */
40 /**/ {{0x3e800000, 0x00000000} }, /* 2**-23 */
41 /**/ {{0x3e300000, 0x00000000} }, /* 2**-28 */
42 /**/ {{0x3e400000, 0x00000000} }, /* 2**-27 */
43 /**/ {{0x3d900000, 0x00000000} }, /* 2**-38 */
44 /**/ {{0x3d500000, 0x00000000} }, /* 2**-42 */
45 /**/ {{0x3d800000, 0x00000000} }, /* 2**-39 */
46 /**/ {{0x3d400000, 0x00000000} }, /* 2**-43 */
47 /**/ {{0x3d000000, 0x00000000} }, /* 2**-47 */
48 /**/ {{0x3d400000, 0x00000000} }, /* 2**-43 */
49 /**/ {{0x3d000000, 0x00000000} }, /* 2**-47 */
50 /**/ {{0x3cd00000, 0x00000000} }, /* 2**-50 */
51 /**/ {{0x3c900000, 0x00000000} }, /* 2**-54 */
52 /**/ {{0x3c600000, 0x00000000} }, /* 2**-57 */
53 /**/ {{0x3c300000, 0x00000000} }, /* 2**-60 */
54 /**/ {{0x3bf00000, 0x00000000} }, /* 2**-64 */
55 /**/ {{0x3bc00000, 0x00000000} }, /* 2**-67 */
56 /**/ {{0x3b800000, 0x00000000} }, /* 2**-71 */
57 /**/ {{0x3b500000, 0x00000000} }, /* 2**-74 */
58 /**/ {{0x3bb00000, 0x00000000} }, /* 2**-68 */
59 /**/ {{0x3b800000, 0x00000000} }, /* 2**-71 */
60 /**/ {{0x3b500000, 0x00000000} }, /* 2**-74 */
61 /**/ {{0x3b200000, 0x00000000} }, /* 2**-77 */
62 /**/ {{0x3b900000, 0x00000000} }, /* 2**-70 */
63 /**/ {{0x3b600000, 0x00000000} }, /* 2**-73 */
64 /**/ {{0x3b300000, 0x00000000} }, /* 2**-76 */
65 /**/ {{0x3b100000, 0x00000000} }, /* 2**-78 */
66 /**/ {{0x3ae00000, 0x00000000} }, /* 2**-81 */
68 static const number
69 nn[9]={ /* n */
70 /**/ {{0x00000000, 0x00000000} }, /* 0 */
71 /**/ {{0x3ff00000, 0x00000000} }, /* 1 */
72 /**/ {{0x40000000, 0x00000000} }, /* 2 */
73 /**/ {{0x40080000, 0x00000000} }, /* 3 */
74 /**/ {{0x40100000, 0x00000000} }, /* 4 */
75 /**/ {{0x40140000, 0x00000000} }, /* 5 */
76 /**/ {{0x40180000, 0x00000000} }, /* 6 */
77 /**/ {{0x401c0000, 0x00000000} }, /* 7 */
78 /**/ {{0x40200000, 0x00000000} }, /* 8 */
81 #else
82 #ifdef LITTLE_ENDI
83 static const number
84 twomm1[33] = { /* 2**-m1 */
85 /**/ {{0x00000000, 0x00000000} }, /* 0 */
86 /**/ {{0x00000000, 0x00000000} }, /* 0 */
87 /**/ {{0x00000000, 0x00000000} }, /* 0 */
88 /**/ {{0x00000000, 0x00000000} }, /* 0 */
89 /**/ {{0x00000000, 0x3ee00000} }, /* 2**-17 */
90 /**/ {{0x00000000, 0x3e800000} }, /* 2**-23 */
91 /**/ {{0x00000000, 0x3e800000} }, /* 2**-23 */
92 /**/ {{0x00000000, 0x3e300000} }, /* 2**-28 */
93 /**/ {{0x00000000, 0x3e400000} }, /* 2**-27 */
94 /**/ {{0x00000000, 0x3d900000} }, /* 2**-38 */
95 /**/ {{0x00000000, 0x3d500000} }, /* 2**-42 */
96 /**/ {{0x00000000, 0x3d800000} }, /* 2**-39 */
97 /**/ {{0x00000000, 0x3d400000} }, /* 2**-43 */
98 /**/ {{0x00000000, 0x3d000000} }, /* 2**-47 */
99 /**/ {{0x00000000, 0x3d400000} }, /* 2**-43 */
100 /**/ {{0x00000000, 0x3d000000} }, /* 2**-47 */
101 /**/ {{0x00000000, 0x3cd00000} }, /* 2**-50 */
102 /**/ {{0x00000000, 0x3c900000} }, /* 2**-54 */
103 /**/ {{0x00000000, 0x3c600000} }, /* 2**-57 */
104 /**/ {{0x00000000, 0x3c300000} }, /* 2**-60 */
105 /**/ {{0x00000000, 0x3bf00000} }, /* 2**-64 */
106 /**/ {{0x00000000, 0x3bc00000} }, /* 2**-67 */
107 /**/ {{0x00000000, 0x3b800000} }, /* 2**-71 */
108 /**/ {{0x00000000, 0x3b500000} }, /* 2**-74 */
109 /**/ {{0x00000000, 0x3bb00000} }, /* 2**-68 */
110 /**/ {{0x00000000, 0x3b800000} }, /* 2**-71 */
111 /**/ {{0x00000000, 0x3b500000} }, /* 2**-74 */
112 /**/ {{0x00000000, 0x3b200000} }, /* 2**-77 */
113 /**/ {{0x00000000, 0x3b900000} }, /* 2**-70 */
114 /**/ {{0x00000000, 0x3b600000} }, /* 2**-73 */
115 /**/ {{0x00000000, 0x3b300000} }, /* 2**-76 */
116 /**/ {{0x00000000, 0x3b100000} }, /* 2**-78 */
117 /**/ {{0x00000000, 0x3ae00000} }, /* 2**-81 */
119 static const number
120 nn[9]={ /* n */
121 /**/ {{0x00000000, 0x00000000} }, /* 0 */
122 /**/ {{0x00000000, 0x3ff00000} }, /* 1 */
123 /**/ {{0x00000000, 0x40000000} }, /* 2 */
124 /**/ {{0x00000000, 0x40080000} }, /* 3 */
125 /**/ {{0x00000000, 0x40100000} }, /* 4 */
126 /**/ {{0x00000000, 0x40140000} }, /* 5 */
127 /**/ {{0x00000000, 0x40180000} }, /* 6 */
128 /**/ {{0x00000000, 0x401c0000} }, /* 7 */
129 /**/ {{0x00000000, 0x40200000} }, /* 8 */
132 #endif
133 #endif
135 #endif