Back to index

glibc  2.9
urem.h
Go to the documentation of this file.
00001 /*
00002  * IBM Accurate Mathematical Library
00003  * Written by International Business Machines Corp.
00004  * Copyright (C) 2001 Free Software Foundation, Inc.
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU Lesser General Public License as published by
00008  * the Free Software Foundation; either version 2.1 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00019  */
00020 
00021 /************************************************************************/
00022 /*  MODULE_NAME: urem.h                                                 */
00023 /*                                                                      */
00024 /*                                                                      */
00025 /*     common data and variables definition for BIG or LITTLE ENDIAN   */
00026 /************************************************************************/
00027 
00028 #ifndef UREM_H
00029 #define UREM_H
00030 
00031 #ifdef BIG_ENDI
00032 static const mynumber big = {{0x43380000, 0}},  /* 6755399441055744 */
00033                      t128 = {{0x47f00000, 0}},  /*  2^ 128          */
00034                     tm128 = {{0x37f00000, 0}},  /*  2^-128          */
00035                       ZERO = {{0, 0}},          /*  0.0             */
00036                      nZERO = {{0x80000000, 0}}, /* -0.0             */
00037                        NAN = {{0x7ff80000, 0}}, /*  NaN             */
00038                       nNAN = {{0xfff80000, 0}}; /* -NaN             */
00039 #else
00040 #ifdef LITTLE_ENDI
00041 static const mynumber big = {{0, 0x43380000}},  /* 6755399441055744 */
00042                      t128 = {{0, 0x47f00000}},  /*  2^ 128          */
00043                     tm128 = {{0, 0x37f00000}},  /*  2^-128          */
00044                       ZERO = {{0, 0}},          /*  0.0             */
00045                      nZERO = {{0, 0x80000000}}, /* -0.0             */
00046                        NAN = {{0, 0x7ff80000}}, /*  NaN             */
00047                       nNAN = {{0, 0xfff80000}}; /* -NaN             */
00048 #endif
00049 #endif
00050 
00051 #endif