msun: Fix some old typos.
Seen in a posting from July 27 by "CM Graff" in musl-libc.
This commit is contained in:
parent
5854d71854
commit
50757b1452
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=342651
@ -32,7 +32,7 @@
|
|||||||
* 1. Compute and return log2(x) in two pieces:
|
* 1. Compute and return log2(x) in two pieces:
|
||||||
* log2(x) = w1 + w2,
|
* log2(x) = w1 + w2,
|
||||||
* where w1 has 113-53 = 60 bit trailing zeros.
|
* where w1 has 113-53 = 60 bit trailing zeros.
|
||||||
* 2. Perform y*log2(x) = n+y' by simulating muti-precision
|
* 2. Perform y*log2(x) = n+y' by simulating multi-precision
|
||||||
* arithmetic, where |y'|<=0.5.
|
* arithmetic, where |y'|<=0.5.
|
||||||
* 3. Return x**y = 2**n*exp(y'*log2)
|
* 3. Return x**y = 2**n*exp(y'*log2)
|
||||||
*
|
*
|
||||||
|
@ -52,7 +52,7 @@ __FBSDID("$FreeBSD$");
|
|||||||
* 64-bit precision 2
|
* 64-bit precision 2
|
||||||
* 113-bit precision 3
|
* 113-bit precision 3
|
||||||
* The actual value is the sum of them. Thus for 113-bit
|
* The actual value is the sum of them. Thus for 113-bit
|
||||||
* precison, one may have to do something like:
|
* precision, one may have to do something like:
|
||||||
*
|
*
|
||||||
* long double t,w,r_head, r_tail;
|
* long double t,w,r_head, r_tail;
|
||||||
* t = (long double)y[2] + (long double)y[1];
|
* t = (long double)y[2] + (long double)y[1];
|
||||||
|
Loading…
Reference in New Issue
Block a user