10SN/A/*
29330SN/A * IBM Accurate Mathematical Library
30SN/A * Written by International Business Machines Corp.
40SN/A * Copyright (C) 2001 Free Software Foundation, Inc.
50SN/A *
60SN/A * This program is free software; you can redistribute it and/or modify
72362SN/A * it under the terms of the GNU Lesser General Public License as published by
80SN/A * the Free Software Foundation; either version 2.1 of the License, or
92362SN/A * (at your option) any later version.
100SN/A *
110SN/A * This program is distributed in the hope that it will be useful,
120SN/A * but WITHOUT ANY WARRANTY; without even the implied warranty of
130SN/A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
140SN/A * GNU Lesser General Public License for more details.
150SN/A *
160SN/A * You should have received a copy of the GNU Lesser General Public License
170SN/A * along with this program; if not, write to the Free Software
180SN/A * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
190SN/A */
200SN/A
212362SN/A/******************************************************************/
222362SN/A/*                                                                */
232362SN/A/* MODULE_NAME:mpatan.h                                           */
240SN/A/*                                                                */
250SN/A/* common data and variables prototype and definition             */
260SN/A/******************************************************************/
270SN/A
280SN/A#ifndef MPSQRT_H
290SN/A#define MPSQRT_H
3013629Savstepan
310SN/A#ifdef BIG_ENDI
320SN/A  static const number
330SN/A/**/ one            = {{0x3ff00000, 0x00000000} }, /* 1      */
340SN/A/**/ halfrad        = {{0x41600000, 0x00000000} }; /* 2**23  */
350SN/A
360SN/A#else
370SN/A#ifdef LITTLE_ENDI
380SN/A  static const number
390SN/A/**/ one            = {{0x00000000, 0x3ff00000} }, /* 1      */
400SN/A/**/ halfrad        = {{0x00000000, 0x41600000} }; /* 2**23  */
410SN/A
420SN/A#endif
430SN/A#endif
440SN/A
450SN/A#define  ONE       one.d
460SN/A#define  HALFRAD   halfrad.d
470SN/A
480SN/A  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,
490SN/A                             4,4,4,4,4,4,4,4,4};
500SN/A
510SN/A#endif
520SN/A