mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-26 16:18:31 +00:00
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:
parent
50860ac0ee
commit
46691dfbe7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144690
@ -88,7 +88,7 @@ twon8 = 3.9062500000e-03; /* 0x3b800000 */
|
||||
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user