about summary refs log tree commit diff
path: root/math/w_jnl.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-03-16 20:08:02 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-03-16 20:08:02 +0000
commitc36e1d2369f149a64c759f3ad6f4cc5a03b03b62 (patch)
treee08402c0a348536aedf71d15bc7c4de01089066c /math/w_jnl.c
parent11b90b9f504df5b2da91ce3a06c1657d99e4a95f (diff)
downloadglibc-c36e1d2369f149a64c759f3ad6f4cc5a03b03b62.tar.gz
glibc-c36e1d2369f149a64c759f3ad6f4cc5a03b03b62.tar.xz
glibc-c36e1d2369f149a64c759f3ad6f4cc5a03b03b62.zip
Disable Bessel function TLOSS errors in POSIX mode.
Diffstat (limited to 'math/w_jnl.c')
-rw-r--r--math/w_jnl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/math/w_jnl.c b/math/w_jnl.c
index 148817ff44..2028d488df 100644
--- a/math/w_jnl.c
+++ b/math/w_jnl.c
@@ -54,7 +54,10 @@ long double __jnl(int n, long double x)	/* wrapper jnl */
 #else
 	long double z;
 	z = __ieee754_jnl(n,x);
-	if(_LIB_VERSION == _IEEE_ || __isnanl(x) ) return z;
+	if (_LIB_VERSION == _IEEE_
+	    || _LIB_VERSION == _POSIX_
+	    || __isnanl(x))
+	  return z;
 	if(fabsl(x)>X_TLOSS) {
 	    return __kernel_standard((double)n,x,238); /* jn(|x|>X_TLOSS,n) */
 	} else
@@ -79,7 +82,7 @@ long double __ynl(int n, long double x)	/* wrapper ynl */
                     /* d = zero/(x-x); */
                     return __kernel_standard((double)n,x,213);
         }
-	if(x>X_TLOSS) {
+	if(x>X_TLOSS && _LIB_VERSION != _POSIX_) {
 	    return __kernel_standard((double)n,x,239); /* yn(x>X_TLOSS,n) */
 	} else
 	    return z;