]>
Commit | Line | Data |
---|---|---|
e4d82761 UD |
1 | /* |
2 | * IBM Accurate Mathematical Library | |
c6c6dd48 RM |
3 | * Written by International Business Machines Corp. |
4 | * Copyright (C) 2001 Free Software Foundation, Inc. | |
e4d82761 UD |
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 | |
50944bca | 8 | * the Free Software Foundation; either version 2 of the License, or |
e4d82761 | 9 | * (at your option) any later version. |
50944bca | 10 | * |
e4d82761 UD |
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 | |
c6c6dd48 | 14 | * GNU Lesser General Public License for more details. |
e4d82761 | 15 | * |
c6c6dd48 | 16 | * You should have received a copy of the GNU Lesser General Public License |
e4d82761 | 17 | * along with this program; if not, write to the Free Software |
50944bca | 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
e4d82761 | 19 | */ |
c6c6dd48 | 20 | |
e4d82761 UD |
21 | /******************************************************************/ |
22 | /* */ | |
23 | /* MODULE_NAME:mpatan.h */ | |
24 | /* */ | |
25 | /* common data and variables prototype and definition */ | |
26 | /******************************************************************/ | |
27 | ||
28 | #ifndef MPSQRT_H | |
29 | #define MPSQRT_H | |
30 | ||
31 | #ifdef BIG_ENDI | |
32 | static const number | |
50944bca UD |
33 | /**/ one = {{0x3ff00000, 0x00000000} }, /* 1 */ |
34 | /**/ halfrad = {{0x41600000, 0x00000000} }; /* 2**23 */ | |
e4d82761 UD |
35 | |
36 | #else | |
37 | #ifdef LITTLE_ENDI | |
38 | static const number | |
50944bca UD |
39 | /**/ one = {{0x00000000, 0x3ff00000} }, /* 1 */ |
40 | /**/ halfrad = {{0x00000000, 0x41600000} }; /* 2**23 */ | |
e4d82761 UD |
41 | |
42 | #endif | |
43 | #endif | |
44 | ||
45 | #define ONE one.d | |
46 | #define HALFRAD halfrad.d | |
47 | ||
48 | static const int mp[33] = {0,0,0,0,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4, | |
49 | 4,4,4,4,4,4,4,4,4}; | |
50 | ||
51 | #endif |