| 1 | /* |
| 2 | * IBM Accurate Mathematical Library |
| 3 | * Written by International Business Machines Corp. |
| 4 | * Copyright (C) 2001-2021 Free Software Foundation, Inc. |
| 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.1 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 Lesser 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, see <https://www.gnu.org/licenses/>. |
| 18 | */ |
| 19 | |
| 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 |
| 29 | |
| 30 | #ifdef BIG_ENDI |
| 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 */ |
| 35 | nZERO = {{0x80000000, 0}}; /* -0.0 */ |
| 36 | #else |
| 37 | #ifdef LITTLE_ENDI |
| 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 */ |
| 42 | nZERO = {{0, 0x80000000}}; /* -0.0 */ |
| 43 | #endif |
| 44 | #endif |
| 45 | |
| 46 | #endif |
| 47 | |