2.9
[glibc/nacl-glibc.git] / sysdeps / ieee754 / dbl-64 / mpsqrt.h
blob729d57af2ceaeee09c7b33770891e1a3c9e29cf3
1 /*
2 * IBM Accurate Mathematical Library
3 * Written by International Business Machines Corp.
4 * Copyright (C) 2001 Free Software Foundation, Inc.
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.
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.
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.
21 /******************************************************************/
22 /* */
23 /* MODULE_NAME:mpatan.h */
24 /* */
25 /* common data and variables prototype and definition */
26 /******************************************************************/
28 #ifndef MPSQRT_H
29 #define MPSQRT_H
31 #ifdef BIG_ENDI
32 static const number
33 /**/ one = {{0x3ff00000, 0x00000000} }, /* 1 */
34 /**/ halfrad = {{0x41600000, 0x00000000} }; /* 2**23 */
36 #else
37 #ifdef LITTLE_ENDI
38 static const number
39 /**/ one = {{0x00000000, 0x3ff00000} }, /* 1 */
40 /**/ halfrad = {{0x00000000, 0x41600000} }; /* 2**23 */
42 #endif
43 #endif
45 #define ONE one.d
46 #define HALFRAD halfrad.d
48 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,
49 4,4,4,4,4,4,4,4,4};
51 #endif