1/* 2 * IBM Accurate Mathematical Library 3 * Written by International Business Machines Corp. 4 * Copyright (C) 2001 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, write to the Free Software 18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 */ 20 21/******************************************************************/ 22/* */ 23/* MODULE_NAME:uexp.h */ 24/* */ 25/* common data and variables prototype and definition */ 26/******************************************************************/ 27 28#ifndef UEXP_H 29#define UEXP_H 30 31#include "mydefs.h" 32 33const static double one = 1.0, zero = 0.0, hhuge = 1.0e300, tiny = 1.0e-300, 34err_0 = 1.000014, err_1 = 0.000016; 35const static int4 bigint = 0x40862002, 36 badint = 0x40876000,smallint = 0x3C8fffff; 37const static int4 hugeint = 0x7FFFFFFF, infint = 0x7ff00000; 38 39#ifdef BIG_ENDI 40const static mynumber inf = {{0x7FF00000, 0}}; /* inf */ 41const static mynumber t256 = {{0x4ff00000, 0}}; /* 2^256 */ 42 43const static mynumber ln_two1 = {{0x3FE62E42, 0xFEFA3800}};/*0.69314718055989033 */ 44const static mynumber ln_two2 = {{0x3D2EF357, 0x93C76730}};/*5.4979230187083712e-14*/ 45const static mynumber log2e = {{0x3FF71547, 0x652B82FE}};/* 1.4426950408889634 */ 46 47const static mynumber p2 = {{0x3FE00000, 0x000004DC}};/* 0.50000000000013811 */ 48const static mynumber p3 = {{0x3FC55555, 0x55555A0F}};/* 0.16666666666670024 */ 49 50const static mynumber three33 = {{0x42180000, 0}}; /* 25769803776 */ 51const static mynumber three51 = {{0x43380000, 0}}; /* 6755399441055744 */ 52 53#else 54#ifdef LITTLE_ENDI 55 const static mynumber inf = {{0, 0x7FF00000}}; /* inf */ 56 const static mynumber t256 = {{0, 0x4ff00000}}; /* 2^256 */ 57 58 const static mynumber ln_two1 = {{0xFEFA3800, 0x3FE62E42}};/*0.69314718055989033 */ 59 const static mynumber ln_two2 = {{0x93C76730, 0x3D2EF357}};/*5.4979230187083712e-14*/ 60 const static mynumber log2e = {{0x652B82FE, 0x3FF71547}};/* 1.4426950408889634 */ 61 62 const static mynumber p2 = {{0x000004DC, 0x3FE00000}};/* 0.50000000000013811 */ 63 const static mynumber p3 = {{0x55555A0F, 0x3FC55555}};/* 0.16666666666670024 */ 64 65 const static mynumber three33 = {{0, 0x42180000}}; /* 25769803776 */ 66 const static mynumber three51 = {{0, 0x43380000}}; /* 6755399441055744 */ 67 68#endif 69#endif 70#endif 71