Re: bin/144306: Nasty bug in jn(3)

看板FB_bugs作者時間16年前 (2010/02/26 12:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/6 (看更多)
This patch fixes the problem. Index: e_jn.c =================================================================== --- e_jn.c (revision 204219) +++ e_jn.c (working copy) @@ -200,7 +200,12 @@ } } } - b = (t*__ieee754_j0(x)/b); + z = __ieee754_j0(x); + w = __ieee754_j1(x); + if (fabs(z) >= fabs(w)) + b = (t*z/b); + else + b = (t*w/a); } } if(sgn==1) return -b; else return b; -- Steve http://troutmask.apl.washington.edu/~kargl/ _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
文章代碼(AID): #1BXqx3be (FB_bugs)
文章代碼(AID): #1BXqx3be (FB_bugs)