Fix a long-standing bug in k_rem_pio2(), which led to large errors when

tanf() was called with big arguments close to multiples of pi/2.

Reported by:	ucbtest via bde
This commit is contained in:
das 2005-04-05 23:27:47 +00:00
parent 0cf2f68921
commit bb5d9cb768

View File

@ -88,7 +88,7 @@ recompute:
iq[jz-1] -= i<<(8-q0);
ih = iq[jz-1]>>(7-q0);
}
else if(q0==0) ih = iq[jz-1]>>8;
else if(q0==0) ih = iq[jz-1]>>7;
else if(z>=(float)0.5) ih=2;
if(ih>0) { /* q > 0.5 */