]>
Commit | Line | Data |
---|---|---|
e4d82761 UD |
1 | /* |
2 | * IBM Accurate Mathematical Library | |
c6c6dd48 | 3 | * Written by International Business Machines Corp. |
04277e02 | 4 | * Copyright (C) 2001-2019 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 | |
cc7375ce | 8 | * the Free Software Foundation; either version 2.1 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 UD |
15 | * |
16 | * You should have received a copy of the GNU Lesser General Public License | |
5a82c748 | 17 | * along with this program; if not, see <https://www.gnu.org/licenses/>. |
e4d82761 | 18 | */ |
c6c6dd48 | 19 | |
e4d82761 UD |
20 | /************************************************************************/ |
21 | /* MODULE_NAME: urem.h */ | |
22 | /* */ | |
23 | /* */ | |
24 | /* common data and variables definition for BIG or LITTLE ENDIAN */ | |
25 | /************************************************************************/ | |
26 | ||
27 | #ifndef UREM_H | |
28 | #define UREM_H | |
50944bca | 29 | |
e4d82761 | 30 | #ifdef BIG_ENDI |
50944bca UD |
31 | static const mynumber big = {{0x43380000, 0}}, /* 6755399441055744 */ |
32 | t128 = {{0x47f00000, 0}}, /* 2^ 128 */ | |
33 | tm128 = {{0x37f00000, 0}}, /* 2^-128 */ | |
34 | ZERO = {{0, 0}}, /* 0.0 */ | |
a1cbf437 | 35 | nZERO = {{0x80000000, 0}}; /* -0.0 */ |
e4d82761 UD |
36 | #else |
37 | #ifdef LITTLE_ENDI | |
50944bca UD |
38 | static const mynumber big = {{0, 0x43380000}}, /* 6755399441055744 */ |
39 | t128 = {{0, 0x47f00000}}, /* 2^ 128 */ | |
40 | tm128 = {{0, 0x37f00000}}, /* 2^-128 */ | |
41 | ZERO = {{0, 0}}, /* 0.0 */ | |
a1cbf437 | 42 | nZERO = {{0, 0x80000000}}; /* -0.0 */ |
e4d82761 UD |
43 | #endif |
44 | #endif | |
45 | ||
46 | #endif |