+2001-11-26 Stephen L Moshier <moshier@mediaone.net>
+
+ * sysdeps/ieee754/ldbl-128/e_log10l.c (L102B): Fix typo in
+ initialization.
+
+ * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Remove
+ unused variables. Fix threshold for returning 1.0.
+
+ * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (neval, deval): Constify
+ argument.
+
+ * sysdeps/ieee754/ldbl-128/s_erfl.c (neval, deval): Likewise, and
+ remove unused variables.
+
+ * sysdeps/ieee754/ldbl-128/e_j0l.c (neval, deval): Likewise.
+
+ * sysdeps/ieee754/ldbl-128/e_j1l.c (neval, deval): Likewise, and
+ include local math header files.
+
2001-11-22 Andreas Jaeger <aj@suse.de>
* sysdeps/ieee754/ldbl-96/s_ilogbl.c (__ilogbl): Add brace to
{
long double t, w;
int32_t ex;
- u_int32_t mx, lx;
ieee854_long_double_shape_type u;
u.value = x;
{
t = __expm1l (u.value);
w = one + t;
- if (ex < 0x3fc60000) /* |x| < 2^-57 */
+ if (ex < 0x3fb80000) /* |x| < 2^-116 */
return w; /* cosh(tiny) = 1 */
return one + (t * t) / (w + w);
/* Evaluate P[n] x^n + P[n-1] x^(n-1) + ... + P[0] */
static long double
-neval (long double x, long double *p, int n)
+neval (long double x, const long double *p, int n)
{
long double y;
/* Evaluate x^n+1 + P[n] x^(n) + P[n-1] x^(n-1) + ... + P[0] */
static long double
-deval (long double x, long double *p, int n)
+deval (long double x, const long double *p, int n)
{
long double y;
/* Copyright 2001 by Stephen L. Moshier (moshier@na-net.onrl.gov). */
-extern long double fabsl (long double);
-extern long double cosl (long double);
-extern long double sinl (long double);
-extern long double sqrtl (long double);
-extern long double logl (long double);
+#include "math.h"
+#include "math_private.h"
/* 1 / sqrt(pi) */
static const long double ONEOSQPI = 5.6418958354775628694807945156077258584405E-1L;
/* Evaluate P[n] x^n + P[n-1] x^(n-1) + ... + P[0] */
static long double
-neval (long double x, long double *p, int n)
+neval (long double x, const long double *p, int n)
{
long double y;
/* Evaluate x^n+1 + P[n] x^(n) + P[n-1] x^(n-1) + ... + P[0] */
static long double
-deval (long double x, long double *p, int n)
+deval (long double x, const long double *p, int n)
{
long double y;
/* Evaluate P[n] x^n + P[n-1] x^(n-1) + ... + P[0] */
static long double
-neval (long double x, long double *p, int n)
+neval (long double x, const long double *p, int n)
{
long double y;
/* Evaluate x^n+1 + P[n] x^(n) + P[n-1] x^(n-1) + ... + P[0] */
static long double
-deval (long double x, long double *p, int n)
+deval (long double x, const long double *p, int n)
{
long double y;
/* Evaluate P[n] x^n + P[n-1] x^(n-1) + ... + P[0] */
static long double
-neval (long double x, long double *p, int n)
+neval (long double x, const long double *p, int n)
{
long double y;
/* Evaluate x^n+1 + P[n] x^(n) + P[n-1] x^(n-1) + ... + P[0] */
static long double
-deval (long double x, long double *p, int n)
+deval (long double x, const long double *p, int n)
{
long double y;
#endif
{
long double a, y, z;
- int32_t i, ix, sign, flag;
+ int32_t i, ix, sign;
ieee854_long_double_shape_type u;
u.value = x;
x;
#endif
{
- long double P, Q, s, y, z, p, r;
- int32_t i, ix, sign, flag;
+ long double y, z, p, r;
+ int32_t i, ix, sign;
ieee854_long_double_shape_type u;
u.value = x;