Print this page
5261 libm should stop using synonyms.h


   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  23  */
  24 /*
  25  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  26  * Use is subject to license terms.
  27  */
  28 
  29 #pragma weak powf = __powf
  30 
  31 #include "libm.h"
  32 #include "xpg6.h"       /* __xpg6 */
  33 #define _C99SUSv3_pow   _C99SUSv3_pow_treats_Inf_as_an_even_int
  34 
  35 #if defined(__i386) && !defined(__amd64)
  36 extern int __swapRP(int);
  37 #endif
  38 
  39 /* INDENT OFF */
  40 static const double
  41         ln2 = 6.93147180559945286227e-01,       /* 0x3fe62e42, 0xfefa39ef */
  42         invln2 = 1.44269504088896338700e+00,    /* 0x3ff71547, 0x652b82fe */
  43         dtwo = 2.0,
  44         done = 1.0,
  45         dhalf = 0.5,
  46         d32 = 32.0,
  47         d1_32 = 0.03125,
  48         A0 = 1.999999999813723303647511146995966439250e+0000,
  49         A1 = 6.666910817935858533770138657139665608610e-0001,




   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  23  */
  24 /*
  25  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  26  * Use is subject to license terms.
  27  */
  28 
  29 #pragma weak __powf = powf
  30 
  31 #include "libm.h"
  32 #include "xpg6.h"       /* __xpg6 */
  33 #define _C99SUSv3_pow   _C99SUSv3_pow_treats_Inf_as_an_even_int
  34 
  35 #if defined(__i386) && !defined(__amd64)
  36 extern int __swapRP(int);
  37 #endif
  38 
  39 /* INDENT OFF */
  40 static const double
  41         ln2 = 6.93147180559945286227e-01,       /* 0x3fe62e42, 0xfefa39ef */
  42         invln2 = 1.44269504088896338700e+00,    /* 0x3ff71547, 0x652b82fe */
  43         dtwo = 2.0,
  44         done = 1.0,
  45         dhalf = 0.5,
  46         d32 = 32.0,
  47         d1_32 = 0.03125,
  48         A0 = 1.999999999813723303647511146995966439250e+0000,
  49         A1 = 6.666910817935858533770138657139665608610e-0001,