libm: Correct some typos in source code comments

- s/modfied/modified/
- s/minimun/minimum/

While here, fix some mandoc warnings:

- whitespace at end of input line
- unusual Xr punctuation
- missing comma before name

Obtained from:	NetBSD
MFC after:	5 days
This commit is contained in:
Gordon Bergling 2022-09-03 19:14:02 +02:00
parent ad052eb076
commit a52f4499ae
14 changed files with 19 additions and 19 deletions

View file

@ -46,7 +46,7 @@ ENTRY(ceil)
orw $0x0800,%dx /* round towards +oo */
andw $0xfbff,%dx
movw %dx,-8(%ebp)
fldcw -8(%ebp) /* load modfied control word */
fldcw -8(%ebp) /* load modified control word */
fldl 8(%ebp); /* round */
frndint

View file

@ -18,7 +18,7 @@ ENTRY(ceilf)
orw $0x0800,%dx /* round towards +oo */
andw $0xfbff,%dx
movw %dx,-8(%ebp)
fldcw -8(%ebp) /* load modfied control word */
fldcw -8(%ebp) /* load modified control word */
flds 8(%ebp); /* round */
frndint

View file

@ -16,7 +16,7 @@ ENTRY(ceill)
orw $0x0800,%dx /* round towards +oo */
andw $0xfbff,%dx
movw %dx,-8(%ebp)
fldcw -8(%ebp) /* load modfied control word */
fldcw -8(%ebp) /* load modified control word */
fldt 8(%ebp) /* round */
frndint

View file

@ -46,7 +46,7 @@ ENTRY(floor)
orw $0x0400,%dx /* round towards -oo */
andw $0xf7ff,%dx
movw %dx,-8(%ebp)
fldcw -8(%ebp) /* load modfied control word */
fldcw -8(%ebp) /* load modified control word */
fldl 8(%ebp); /* round */
frndint

View file

@ -18,7 +18,7 @@ ENTRY(floorf)
orw $0x0400,%dx /* round towards -oo */
andw $0xf7ff,%dx
movw %dx,-8(%ebp)
fldcw -8(%ebp) /* load modfied control word */
fldcw -8(%ebp) /* load modified control word */
flds 8(%ebp); /* round */
frndint

View file

@ -16,7 +16,7 @@ ENTRY(floorl)
orw $0x0400,%dx /* round towards -oo */
andw $0xf7ff,%dx
movw %dx,-8(%ebp)
fldcw -8(%ebp) /* load modfied control word */
fldcw -8(%ebp) /* load modified control word */
fldt 8(%ebp) /* round */
frndint

View file

@ -15,7 +15,7 @@ ENTRY(trunc)
movw -4(%ebp),%dx
orw $0x0c00,%dx /* round towards -oo */
movw %dx,-8(%ebp)
fldcw -8(%ebp) /* load modfied control word */
fldcw -8(%ebp) /* load modified control word */
fldl 8(%ebp) /* round */
frndint

View file

@ -15,7 +15,7 @@ ENTRY(truncf)
movw -4(%ebp),%dx
orw $0x0c00,%dx /* round towards -oo */
movw %dx,-8(%ebp)
fldcw -8(%ebp) /* load modfied control word */
fldcw -8(%ebp) /* load modified control word */
flds 8(%ebp) /* round */
frndint

View file

@ -15,7 +15,7 @@ ENTRY(truncl)
movw -4(%ebp),%dx
orw $0x0c00,%dx /* round towards -oo */
movw %dx,-8(%ebp)
fldcw -8(%ebp) /* load modfied control word */
fldcw -8(%ebp) /* load modified control word */
fldt 8(%ebp) /* round */
frndint

View file

@ -29,7 +29,7 @@
.Os
.Sh NAME
.Nm clog ,
.Nm clogf ,
.Nm clogf
and
.Nm clogl
.Nd complex natural logarithm functions

View file

@ -60,7 +60,7 @@ and
functions returns
.Fn cos "\(*p \(mu x" .
If \*(Bax\*(Ba \*(Ge 2^(p - 1)
where p is the floating\(enpoint precision of
where p is the floating\(enpoint precision of
.Ar x ,
then the returned value is 1 and it has no significance.
.Sh SPECIAL VALUES
@ -103,7 +103,7 @@ These functions conform to
IEEE Std 754\(tm\(en2008 ,
\(dqIEEE Standard for Floating-Point Arithmetic\(dq
and to
ISO/IEC TS 18661-4 ,
ISO/IEC TS 18661-4 ,
\(dqInformation technology \(em Programming languages, their environments,
and system software interfaces \(em Floating\(enpoint extensions for
C\(dq \(em Part 4: Supplementary functions.

View file

@ -60,7 +60,7 @@ and
functions returns
.Fn sin "\(*p \(mu x" .
If \*(Bax\*(Ba \*(Ge 2^(p - 1)
where p is the floating\(enpoint precision of
where p is the floating\(enpoint precision of
.Ar x ,
then the returned value is \*(Pm0 and it has no significance.
.Sh SPECIAL VALUES
@ -95,7 +95,7 @@ These functions conform to
IEEE Std 754\(tm\(en2008 ,
\(dqIEEE Standard for Floating-Point Arithmetic\(dq
and to
ISO/IEC TS 18661-4 ,
ISO/IEC TS 18661-4 ,
\(dqInformation technology \(em Programming languages, their environments,
and system software interfaces \(em Floating\(enpoint extensions for
C\(dq \(em Part 4: Supplementary functions.

View file

@ -49,7 +49,7 @@ The
and
.Fn tanpil
functions compute the tangent of
.Fa "\(*p \(mu x"
.Fa "\(*p \(mu x"
and measure angles in half-cycles.
.Sh RETURN VALUES
The
@ -60,7 +60,7 @@ and
functions returns
.Fn tan "\(*p \(mu x" .
If \*(Bax\*(Ba \*(Ge 2^(p - 1)
where p is the floating\(enpoint precision of
where p is the floating\(enpoint precision of
.Ar x ,
then the returned value is \*(Pm0 and it has no significance.
.Sh SPECIAL VALUES
@ -89,7 +89,7 @@ return an \*(Na and raises an FE_INVALID exception.
.Xr math 3 ,
.Xr sin 3 ,
.Xr sinpi 3 ,
.Xr tan 3 ,
.Xr tan 3
.Sh AUTHORS
The half\(encycle trignometric functions were written by
.An Steven G. Kargl Aq Mt kargl@FreeBSD.org .
@ -98,7 +98,7 @@ These functions conform to
IEEE Std 754\(tm\(en2008 ,
\(dqIEEE Standard for Floating-Point Arithmetic\(dq
and to
ISO/IEC TS 18661-4 ,
ISO/IEC TS 18661-4 ,
\(dqInformation technology \(em Programming languages, their environments,
and system software interfaces \(em Floating\(enpoint extensions for
C\(dq \(em Part 4: Supplementary functions.

View file

@ -27,7 +27,7 @@ __FBSDID("$FreeBSD$");
* = log(6.3*5.3) + lgamma(5.3)
* = log(6.3*5.3*4.3*3.3*2.3) + lgamma(2.3)
* 2. Polynomial approximation of lgamma around its
* minimun ymin=1.461632144968362245 to maintain monotonicity.
* minimum ymin=1.461632144968362245 to maintain monotonicity.
* On [ymin-0.23, ymin+0.27] (i.e., [1.23164,1.73163]), use
* Let z = x-ymin;
* lgamma(x) = -1.214862905358496078218 + z^2*poly(z)