e0e907c4d6b37f6391bfa95ad2f56db1fb91f454
[kopensolaris-gnu/glibc.git] / sysdeps / ieee754 / dbl-64 / mpa2.h
1
2 /*
3  * IBM Accurate Mathematical Library
4  * Copyright (c) International Business Machines Corp., 2001
5  *
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 of the License, or
9  * (at your option) any later version.
10  *
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 General Public License for more details.
15  *
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.
19  */
20 /**************************************************************************/
21 /*                                                                        */
22 /* MODULE_NAME:mpa2.h                                                     */
23 /*                                                                        */
24 /*                                                                        */
25 /*   variables prototype and definition   according to type of processor  */
26 /*   types definition                                                     */
27 /**************************************************************************/
28
29 #ifndef MPA2_H
30 #define MPA2_H
31
32
33 #ifdef BIG_ENDI
34 static const number
35 /**/ radix          = {{0x41700000, 0x00000000} }, /* 2**24  */
36 /**/ radixi         = {{0x3e700000, 0x00000000} }, /* 2**-24 */
37 /**/ cutter         = {{0x44b00000, 0x00000000} }, /* 2**76  */
38 /**/ zero           = {{0x00000000, 0x00000000} }, /*  0     */
39 /**/ one            = {{0x3ff00000, 0x00000000} }, /*  1     */
40 /**/ mone           = {{0xbff00000, 0x00000000} }, /* -1     */
41 /**/ two            = {{0x40000000, 0x00000000} }, /*  2     */
42 /**/ two5           = {{0x40400000, 0x00000000} }, /* 2**5   */
43 /**/ two10          = {{0x40900000, 0x00000000} }, /* 2**10  */
44 /**/ two18          = {{0x41100000, 0x00000000} }, /* 2**18  */
45 /**/ two19          = {{0x41200000, 0x00000000} }, /* 2**19  */
46 /**/ two23          = {{0x41600000, 0x00000000} }, /* 2**23  */
47 /**/ two52          = {{0x43300000, 0x00000000} }, /* 2**52  */
48 /**/ two57          = {{0x43800000, 0x00000000} }, /* 2**57  */
49 /**/ two71          = {{0x44600000, 0x00000000} }, /* 2**71  */
50 /**/ twom1032       = {{0x00000400, 0x00000000} }; /* 2**-1032 */
51
52 #else
53 #ifdef LITTLE_ENDI
54 static const number
55 /**/ radix          = {{0x00000000, 0x41700000} }, /* 2**24  */
56 /**/ radixi         = {{0x00000000, 0x3e700000} }, /* 2**-24 */
57 /**/ cutter         = {{0x00000000, 0x44b00000} }, /* 2**76  */
58 /**/ zero           = {{0x00000000, 0x00000000} }, /*  0     */
59 /**/ one            = {{0x00000000, 0x3ff00000} }, /*  1     */
60 /**/ mone           = {{0x00000000, 0xbff00000} }, /* -1     */
61 /**/ two            = {{0x00000000, 0x40000000} }, /*  2     */
62 /**/ two5           = {{0x00000000, 0x40400000} }, /* 2**5   */
63 /**/ two10          = {{0x00000000, 0x40900000} }, /* 2**10  */
64 /**/ two18          = {{0x00000000, 0x41100000} }, /* 2**18  */
65 /**/ two19          = {{0x00000000, 0x41200000} }, /* 2**19  */
66 /**/ two23          = {{0x00000000, 0x41600000} }, /* 2**23  */
67 /**/ two52          = {{0x00000000, 0x43300000} }, /* 2**52  */
68 /**/ two57          = {{0x00000000, 0x43800000} }, /* 2**57  */
69 /**/ two71          = {{0x00000000, 0x44600000} }, /* 2**71  */
70 /**/ twom1032       = {{0x00000000, 0x00000400} }; /* 2**-1032 */
71
72 #endif
73 #endif
74
75 #define  RADIX     radix.d
76 #define  RADIXI    radixi.d
77 #define  CUTTER    cutter.d
78 #define  ZERO      zero.d
79 #define  ONE       one.d
80 #define  MONE      mone.d
81 #define  TWO       two.d
82 #define  TWO5      two5.d
83 #define  TWO10     two10.d
84 #define  TWO18     two18.d
85 #define  TWO19     two19.d
86 #define  TWO23     two23.d
87 #define  TWO52     two52.d
88 #define  TWO57     two57.d
89 #define  TWO71     two71.d
90 #define  TWOM1032  twom1032.d
91
92
93 #endif