Back to index

glibc  2.9
mpsqrt.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 /*                                                                */
00023 /* MODULE_NAME:mpatan.h                                           */
00024 /*                                                                */
00025 /* common data and variables prototype and definition             */
00026 /******************************************************************/
00027 
00028 #ifndef MPSQRT_H
00029 #define MPSQRT_H
00030 
00031 #ifdef BIG_ENDI
00032   static const number
00033  one            = {{0x3ff00000, 0x00000000} }, /* 1      */
00034  halfrad        = {{0x41600000, 0x00000000} }; /* 2**23  */
00035 
00036 #else
00037 #ifdef LITTLE_ENDI
00038   static const number
00039  one            = {{0x00000000, 0x3ff00000} }, /* 1      */
00040  halfrad        = {{0x00000000, 0x41600000} }; /* 2**23  */
00041 
00042 #endif
00043 #endif
00044 
00045 #define  ONE       one.d
00046 #define  HALFRAD   halfrad.d
00047 
00048   static const int mp[33] = {0,0,0,0,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,
00049                              4,4,4,4,4,4,4,4,4};
00050 
00051 #endif