Back to index

glibc  2.9
mpa2.h
Go to the documentation of this file.
00001 
00002 /*
00003  * IBM Accurate Mathematical Library
00004  * Written by International Business Machines Corp.
00005  * Copyright (C) 2001 Free Software Foundation, Inc.
00006  *
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU Lesser General Public License as published by
00009  * the Free Software Foundation; either version 2.1 of the License, or
00010  * (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00020  */
00021 
00022 /**************************************************************************/
00023 /*                                                                        */
00024 /* MODULE_NAME:mpa2.h                                                     */
00025 /*                                                                        */
00026 /*                                                                        */
00027 /*   variables prototype and definition   according to type of processor  */
00028 /*   types definition                                                     */
00029 /**************************************************************************/
00030 
00031 #ifndef MPA2_H
00032 #define MPA2_H
00033 
00034 
00035 #ifdef BIG_ENDI
00036 static const number
00037  radix          = {{0x41700000, 0x00000000} }, /* 2**24  */
00038  radixi         = {{0x3e700000, 0x00000000} }, /* 2**-24 */
00039  cutter         = {{0x44b00000, 0x00000000} }, /* 2**76  */
00040  zero           = {{0x00000000, 0x00000000} }, /*  0     */
00041  one            = {{0x3ff00000, 0x00000000} }, /*  1     */
00042  mone           = {{0xbff00000, 0x00000000} }, /* -1     */
00043  two            = {{0x40000000, 0x00000000} }, /*  2     */
00044  two5           = {{0x40400000, 0x00000000} }, /* 2**5   */
00045  two10          = {{0x40900000, 0x00000000} }, /* 2**10  */
00046  two18          = {{0x41100000, 0x00000000} }, /* 2**18  */
00047  two19          = {{0x41200000, 0x00000000} }, /* 2**19  */
00048  two23          = {{0x41600000, 0x00000000} }, /* 2**23  */
00049  two52          = {{0x43300000, 0x00000000} }, /* 2**52  */
00050  two57          = {{0x43800000, 0x00000000} }, /* 2**57  */
00051  two71          = {{0x44600000, 0x00000000} }, /* 2**71  */
00052  twom1032       = {{0x00000400, 0x00000000} }; /* 2**-1032 */
00053 
00054 #else
00055 #ifdef LITTLE_ENDI
00056 static const number
00057  radix          = {{0x00000000, 0x41700000} }, /* 2**24  */
00058  radixi         = {{0x00000000, 0x3e700000} }, /* 2**-24 */
00059  cutter         = {{0x00000000, 0x44b00000} }, /* 2**76  */
00060  zero           = {{0x00000000, 0x00000000} }, /*  0     */
00061  one            = {{0x00000000, 0x3ff00000} }, /*  1     */
00062  mone           = {{0x00000000, 0xbff00000} }, /* -1     */
00063  two            = {{0x00000000, 0x40000000} }, /*  2     */
00064  two5           = {{0x00000000, 0x40400000} }, /* 2**5   */
00065  two10          = {{0x00000000, 0x40900000} }, /* 2**10  */
00066  two18          = {{0x00000000, 0x41100000} }, /* 2**18  */
00067  two19          = {{0x00000000, 0x41200000} }, /* 2**19  */
00068  two23          = {{0x00000000, 0x41600000} }, /* 2**23  */
00069  two52          = {{0x00000000, 0x43300000} }, /* 2**52  */
00070  two57          = {{0x00000000, 0x43800000} }, /* 2**57  */
00071  two71          = {{0x00000000, 0x44600000} }, /* 2**71  */
00072  twom1032       = {{0x00000000, 0x00000400} }; /* 2**-1032 */
00073 
00074 #endif
00075 #endif
00076 
00077 #define  RADIX     radix.d
00078 #define  RADIXI    radixi.d
00079 #define  CUTTER    cutter.d
00080 #define  ZERO      zero.d
00081 #define  ONE       one.d
00082 #define  MONE      mone.d
00083 #define  TWO       two.d
00084 #define  TWO5      two5.d
00085 #define  TWO10     two10.d
00086 #define  TWO18     two18.d
00087 #define  TWO19     two19.d
00088 #define  TWO23     two23.d
00089 #define  TWO52     two52.d
00090 #define  TWO57     two57.d
00091 #define  TWO71     two71.d
00092 #define  TWOM1032  twom1032.d
00093 
00094 
00095 #endif