diff --git a/newlib/ChangeLog b/newlib/ChangeLog index ea7ce926e..74495c317 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,68 @@ +2003-10-20 Bob Wilson + + * libc/locale/locale.c: Use double quotes in code. + * libc/locale/locale.tex: Likewise. + * libc/libc.texinfo: Hyphenate "floating-point". + * libc/machine/necv70/necv70.tex: Likewise. + * libc/stdio/sprintf.c: Likewise. + * libc/stdio/sscanf.c: Likewise. + * libc/stdlib/atof.c: Likewise. + * libc/stdlib/ldtoa.c: Fix comment typo. + * libc/stdlib/div.c: Use @ifnottex instead of @ifinfo. + * libc/stdlib/ldiv.c: Likewise. + * libm/common/s_expm1.c: Likewise. + * libm/common/s_ilogb.c: Hyphenate "floating-point". Use "nonzero". + * libm/common/s_infinity: Hyphenate "double- and single-precision". + * libm/common/s_nan.c: Likewise. Also correct the FUNCTION summary. + * libm/common/s_nextafter.c: Fix typo. Hyphenate "double-precision" + and "floating-point". + * libm/common/s_scalbn.c: Correct the FUNCTION summary. + * libm/math/e_pow.c: Fix comment typo. + * libm/math/math.tex: Hyphenate "single-precision" and "floating-point". + * libm/math/s_asinh.c: Use @ifnottex instead of @ifinfo. + * libm/math/s_atan.c: Likewise. + * libm/math/s_frexp.c: Likewise. Also use "nonzero". + * libm/math/s_isnan.c: Hyphenate "single-precision" and + "floating-point". Use "nonzero". + * libm/math/s_ldexp.c: Use @ifnottex instead of @ifinfo. + * libm/math/w_acos.c: Likewise. + * libm/math/w_acosh.c: Likewise. + * libm/math/w_asin.c: Likewise. + * libm/math/w_atan2.c: Likewise. + * libm/math/w_atanh.c: Likewise. + * libm/math/w_cosh.c: Likewise. + * libm/math/w_exp.c: Likewise. + * libm/math/w_exp2.c: Likewise. Add missing @end and missing @tex + version of 2^x in the description. + * libm/math/w_fmod.c: Use @ifnottex instead of @ifinfo. + * libm/math/w_gamma.c: Likewise. + * libm/math/w_hypot.c: Likewise. + * libm/math/w_j0.c: Likewise. + * libm/math/w_sinh.c: Likewise. + * libm/math/w_pow.c: Replace "exp1.0nt" with "exponent". + * libm/mathfp/mathfp.tex: Hyphenate "single-precision" and + "floating-point". + * libm/mathfp/e_acosh.c: Use @ifnottex instead of @ifinfo. + * libm/mathfp/e_atanh.c: Likewise. + * libm/mathfp/e_hypot.c: Likewise. + * libm/mathfp/er_lgamma.c: Likewise. + * libm/mathfp/s_acos.c: Likewise. + * libm/mathfp/s_asine.c: Likewise. + * libm/mathfp/s_asinh.c: Likewise. + * libm/mathfp/s_atan.c: Likewise. + * libm/mathfp/s_atan2.c: Likewise. + * libm/mathfp/s_atangent.c: Likewise. + * libm/mathfp/s_cosh.c: Likewise. + * libm/mathfp/s_exp.c: Likewise. + * libm/mathfp/s_fmod.c: Likewise. + * libm/mathfp/s_frexp.c: Likewise. Also use "nonzero". + * libm/mathfp/s_isnan.c: Hyphenate "single-precision" and + "floating-point". Use "nonzero". + * libm/math/s_pow.c: Replace "exp1.0nt" with "exponent". + * libm/mathfp/s_ldexp.c: Use @ifnottex instead of @ifinfo. + * libm/mathfp/s_sineh.c: Likewise. + * libm/mathfp/w_jn.c: Likewise. + 2003-10-15 Alexandre Oliva * Makefile.am: Add $(MAKE) comments to multido and multiclean diff --git a/newlib/libc/libc.texinfo b/newlib/libc/libc.texinfo index e12c5724d..b83ba3a64 100644 --- a/newlib/libc/libc.texinfo +++ b/newlib/libc/libc.texinfo @@ -36,7 +36,7 @@ University of California, Berkeley and its contributors. libc includes software developed by Martin Jackson, Graham Haley and Steve Chamberlain of Tadpole Technology and released to Cygnus. -libc uses floating point converstion software developed at AT&T, which +libc uses floating-point conversion software developed at AT&T, which includes this copyright information: The author of this software is David M. Gay. @@ -106,7 +106,7 @@ University of California, Berkeley and its contributors. @file{libc} includes software developed by Martin Jackson, Graham Haley and Steve Chamberlain of Tadpole Technology and released to Cygnus. -@file{libc} uses floating point conversion software developed at AT&T, +@file{libc} uses floating-point conversion software developed at AT&T, which includes this copyright information: @cartouche diff --git a/newlib/libc/locale/locale.c b/newlib/libc/locale/locale.c index 772f150fc..66c93d740 100644 --- a/newlib/libc/locale/locale.c +++ b/newlib/libc/locale/locale.c @@ -42,17 +42,17 @@ execution environment for international collating and formatting information; <> reports on the settings of the current locale. -This is a minimal implementation, supporting only the required <<``C''>> +This is a minimal implementation, supporting only the required <<"C">> value for <[locale]>; strings representing other locales are not honored unless MB_CAPABLE is defined in which case three new -extensions are allowed for LC_CTYPE or LC_MESSAGES only: <<''C-JIS''>>, -<<''C-EUCJP''>>, <<''C-SJIS''>>, or <<''C-ISO-8859-1''>>. (<<``''>> is +extensions are allowed for LC_CTYPE or LC_MESSAGES only: <<"C-JIS">>, +<<"C-EUCJP">>, <<"C-SJIS">>, or <<"C-ISO-8859-1">>. (<<"">> is also accepted; it represents the default locale -for an implementation, here equivalent to <<``C''>>.) +for an implementation, here equivalent to <<"C">>.) If you use <> as the <[locale]> argument, <> returns a pointer to the string representing the current locale (always -<<``C''>> in this implementation). The acceptable values for +<<"C">> in this implementation). The acceptable values for <[category]> are defined in `<>' as macros beginning with <<"LC_">>, but this implementation does not check the values you pass in the <[category]> argument. @@ -67,7 +67,7 @@ in effect. RETURNS <> returns either a pointer to a string naming the locale -currently in effect (always <<``C''>> for this implementation, or, if +currently in effect (always <<"C">> for this implementation, or, if the locale request cannot be honored, <>. <> returns a pointer to a structure of type <>, diff --git a/newlib/libc/locale/locale.tex b/newlib/libc/locale/locale.tex index 7958a98a2..20dc5d2bc 100644 --- a/newlib/libc/locale/locale.tex +++ b/newlib/libc/locale/locale.tex @@ -6,10 +6,10 @@ collating sequences and formatting conventions) that may be different depending on location or culture. The @code{"C"} locale is the only one defined in the ANSI C standard. -This is a minimal implementation, supporting only the required @code{``C''} +This is a minimal implementation, supporting only the required @code{"C"} value for locale; strings representing other locales are not -honored. (@code{``''} is also accepted; it represents the default locale -for an implementation, here equivalent to @code{``C''}. +honored. (@code{""} is also accepted; it represents the default locale +for an implementation, here equivalent to @code{"C"}. @file{locale.h} defines the structure @code{lconv} to collect the @@ -18,13 +18,13 @@ information on a locale, with the following fields: @table @code @item char *decimal_point The decimal point character used to format ``ordinary'' numbers (all -numbers except those referring to amounts of money). @code{``.''} in the +numbers except those referring to amounts of money). @code{"."} in the C locale. @item char *thousands_sep The character (if any) used to separate groups of digits, when formatting ordinary numbers. -@code{``''} in the C locale. +@code{""} in the C locale. @item char *grouping Specifications for how many digits to group (if any grouping is done at @@ -33,36 +33,36 @@ character in the string represents the number of digits for the next group, and a value of @code{0} (that is, the string's trailing @code{NULL}) means to continue grouping digits using the last value specified. Use @code{CHAR_MAX} to indicate that no further grouping is -desired. @code{``''} in the C locale. +desired. @code{""} in the C locale. @item char *int_curr_symbol The international currency symbol (first three characters), if any, and the character used to separate it from numbers. -@code{``''} in the C locale. +@code{""} in the C locale. @item char *currency_symbol The local currency symbol, if any. -@code{``''} in the C locale. +@code{""} in the C locale. @item char *mon_decimal_point The symbol used to delimit fractions in amounts of money. -@code{``''} in the C locale. +@code{""} in the C locale. @item char *mon_thousands_sep Similar to @code{thousands_sep}, but used for amounts of money. -@code{``''} in the C locale. +@code{""} in the C locale. @item char *mon_grouping Similar to @code{grouping}, but used for amounts of money. -@code{``''} in the C locale. +@code{""} in the C locale. @item char *positive_sign A string to flag positive amounts of money when formatting. -@code{``''} in the C locale. +@code{""} in the C locale. @item char *negative_sign A string to flag negative amounts of money when formatting. -@code{``''} in the C locale. +@code{""} in the C locale. @item char int_frac_digits The number of digits to display when formatting amounts of money to diff --git a/newlib/libc/machine/necv70/necv70.tex b/newlib/libc/machine/necv70/necv70.tex index be5397f44..9c1530411 100644 --- a/newlib/libc/machine/necv70/necv70.tex +++ b/newlib/libc/machine/necv70/necv70.tex @@ -1,8 +1,8 @@ @node machine,,syscalls,Top @chapter NEC V70 Specific Functions -The NEC V70 has machine instructions for fast IEEE floating point, -including operations normally provided by the library. +The NEC V70 has machine instructions for fast IEEE floating-point +arithmetic, including operations normally provided by the library. When you use the @file{/usr/include/fastmath.h} header file, the names of several library math functions are redefined to call the @@ -43,7 +43,7 @@ Also, the library provides true @code{float} entry points. The @code{fast_sinf} entry point really performs a @code{fsin.s} operation. Because of this, the instructions are only useful when using code compiled with an ANSI C compiler. The prototypes -and definitions for the floating point versions of the math library +and definitions for the floating-point versions of the math library routines are only defined if compiling a module with an ANSI C compiler. diff --git a/newlib/libc/stdio/sprintf.c b/newlib/libc/stdio/sprintf.c index 55d1a447f..b440fce18 100644 --- a/newlib/libc/stdio/sprintf.c +++ b/newlib/libc/stdio/sprintf.c @@ -250,24 +250,24 @@ DESCRIPTION o f prints a signed value of the form <<[-]9999.9999>>; takes - a floating point number + a floating-point number o e prints a signed value of the form <<[-]9.9999e[+|-]999>>; takes a - floating point number + floating-point number o E prints the same way as <>, but using <> to introduce the - exponent; takes a floating point number + exponent; takes a floating-point number o g prints a signed value in either <> or <> form, based on given value and precision---trailing zeros and the decimal point are - printed only if necessary; takes a floating point number + printed only if necessary; takes a floating-point number o G prints the same way as <>, but using <> for the exponent if an - exponent is needed; takes a floating point number + exponent is needed; takes a floating-point number o n stores (in the same object) a count of the characters written; diff --git a/newlib/libc/stdio/sscanf.c b/newlib/libc/stdio/sscanf.c index cab4de7e6..ca80c0e71 100644 --- a/newlib/libc/stdio/sscanf.c +++ b/newlib/libc/stdio/sscanf.c @@ -234,11 +234,11 @@ DESCRIPTION <<(int *arg)>>. o e, f, g - Read a floating point number into the corresponding <[arg]>: + Read a floating-point number into the corresponding <[arg]>: <<(float *arg)>>. o E, F, G - Read a floating point number into the corresponding <[arg]>: + Read a floating-point number into the corresponding <[arg]>: <<(double *arg)>>. o i diff --git a/newlib/libc/stdlib/atof.c b/newlib/libc/stdlib/atof.c index bba343cad..8497f6807 100644 --- a/newlib/libc/stdlib/atof.c +++ b/newlib/libc/stdlib/atof.c @@ -25,7 +25,7 @@ DESCRIPTION <> converts the initial portion of a string to a <>. The functions parse the character string <[s]>, -locating a substring which can be converted to a floating point +locating a substring which can be converted to a floating-point value. The substring must match the format: . [+|-]<[digits]>[.][<[digits]>][(e|E)[+|-]<[digits]>] The substring converted is the longest initial diff --git a/newlib/libc/stdlib/div.c b/newlib/libc/stdlib/div.c index 2c070dec7..816c3fb3c 100644 --- a/newlib/libc/stdlib/div.c +++ b/newlib/libc/stdlib/div.c @@ -19,9 +19,9 @@ Divide @tex $n/d$, @end tex -@ifinfo +@ifnottex <[n]>/<[d]>, -@end ifinfo +@end ifnottex returning quotient and remainder as two integers in a structure <>. RETURNS diff --git a/newlib/libc/stdlib/ldiv.c b/newlib/libc/stdlib/ldiv.c index 054b33837..d7508f1c5 100644 --- a/newlib/libc/stdlib/ldiv.c +++ b/newlib/libc/stdlib/ldiv.c @@ -19,9 +19,9 @@ Divide @tex $n/d$, @end tex -@ifinfo +@ifnottex <[n]>/<[d]>, -@end ifinfo +@end ifnottex returning quotient and remainder as two long integers in a structure <>. RETURNS diff --git a/newlib/libc/stdlib/ldtoa.c b/newlib/libc/stdlib/ldtoa.c index 80e8750a4..7af35d5e8 100644 --- a/newlib/libc/stdlib/ldtoa.c +++ b/newlib/libc/stdlib/ldtoa.c @@ -44,7 +44,7 @@ void _IO_ldtostr(long double *, char *, int, int, char); /* Maximum exponent digits - base 10 */ #define MAX_EXP_DIGITS 5 -/* Control structure for long doublue conversion including rounding precision values. +/* Control structure for long double conversion including rounding precision values. * rndprc can be set to 80 (if NE=6), 64, 56, 53, or 24 bits. */ typedef struct diff --git a/newlib/libm/common/s_expm1.c b/newlib/libm/common/s_expm1.c index c857c32f2..12c88f16b 100644 --- a/newlib/libm/common/s_expm1.c +++ b/newlib/libm/common/s_expm1.c @@ -35,9 +35,9 @@ TRAD_SYNOPSIS DESCRIPTION <> and <> calculate the exponential of <[x]> and subtract 1, that is, - @ifinfo + @ifnottex e raised to the power <[x]> minus 1 (where e - @end ifinfo + @end ifnottex @tex $e^x - 1$ (where $e$ @end tex diff --git a/newlib/libm/common/s_ilogb.c b/newlib/libm/common/s_ilogb.c index 4e3e69f12..00dfef633 100644 --- a/newlib/libm/common/s_ilogb.c +++ b/newlib/libm/common/s_ilogb.c @@ -13,7 +13,7 @@ /* FUNCTION - <>, <>---get exponent of floating point number + <>, <>---get exponent of floating-point number INDEX ilogb INDEX @@ -35,7 +35,7 @@ TRAD_SYNOPSIS DESCRIPTION - All non zero, normal numbers can be described as <[m]> * + All nonzero, normal numbers can be described as <[m]> * 2**<[p]>. <> and <> examine the argument <[val]>, and return <[p]>. The functions <> and <> are similar to <> and <>, but also @@ -44,7 +44,7 @@ DESCRIPTION RETURNS <> and <> return the power of two used to form the -floating point argument. If <[val]> is <<0>>, they return <<- +floating-point argument. If <[val]> is <<0>>, they return <<- INT_MAX>> (<> is defined in limits.h). If <[val]> is infinite, or NaN, they return <>. diff --git a/newlib/libm/common/s_infinity.c b/newlib/libm/common/s_infinity.c index 6508216bd..9f9cbebee 100644 --- a/newlib/libm/common/s_infinity.c +++ b/newlib/libm/common/s_infinity.c @@ -25,8 +25,8 @@ TRAD_SYNOPSIS DESCRIPTION <> and <> return the special number IEEE - infinity in double and single precision arithmetic - respectivly. + infinity in double- and single-precision arithmetic + respectively. QUICKREF infinity - pure diff --git a/newlib/libm/common/s_nan.c b/newlib/libm/common/s_nan.c index a7d4dadf8..7ff4ef73e 100644 --- a/newlib/libm/common/s_nan.c +++ b/newlib/libm/common/s_nan.c @@ -5,7 +5,7 @@ /* FUNCTION - <>, <>---representation of infinity + <>, <>---representation of ``Not a Number'' INDEX nan @@ -25,7 +25,7 @@ TRAD_SYNOPSIS DESCRIPTION <> and <> return an IEEE NaN (Not a Number) in - double and single precision arithmetic respectivly. The + double- and single-precision arithmetic respectively. The argument is currently disregarded. QUICKREF diff --git a/newlib/libm/common/s_nextafter.c b/newlib/libm/common/s_nextafter.c index 82eb8e3ed..3a7fa3fec 100644 --- a/newlib/libm/common/s_nextafter.c +++ b/newlib/libm/common/s_nextafter.c @@ -38,7 +38,7 @@ TRAD_SYNOPSIS DESCRIPTION -<> returns the double) precision floating point number +<> returns the double-precision floating-point number closest to <[val]> in the direction toward <[dir]>. <> performs the same operation in single precision. For example, <> returns the smallest positive number which is diff --git a/newlib/libm/common/s_scalbn.c b/newlib/libm/common/s_scalbn.c index e06767042..5edf6b766 100644 --- a/newlib/libm/common/s_scalbn.c +++ b/newlib/libm/common/s_scalbn.c @@ -13,7 +13,7 @@ /* FUNCTION -<>, <>---scale by integer +<>, <>---scale by power of two INDEX scalbn INDEX diff --git a/newlib/libm/math/e_pow.c b/newlib/libm/math/e_pow.c index 55b5f7f5b..56c7980ef 100644 --- a/newlib/libm/math/e_pow.c +++ b/newlib/libm/math/e_pow.c @@ -18,7 +18,7 @@ * 1. Compute and return log2(x) in two pieces: * log2(x) = w1 + w2, * where w1 has 53-24 = 29 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. * 3. Return x**y = 2**n*exp(y'*log2) * diff --git a/newlib/libm/math/math.tex b/newlib/libm/math/math.tex index c6035deae..0b1e596fb 100644 --- a/newlib/libm/math/math.tex +++ b/newlib/libm/math/math.tex @@ -102,7 +102,7 @@ In X/Open mode, @code{errno} is set correctly, and @code{matherr} is called, but warning message are not printed. In SVID mode, functions which overflow return 3.40282346638528860e+38, -the maximum single precision floating point value, rather than infinity. +the maximum single-precision floating-point value, rather than infinity. Also, @code{errno} is set correctly, @code{matherr} is called, and, if @code{matherr} returns 0, warning messages are printed for some errors. For example, by default @samp{log(-1.0)} writes this message on standard diff --git a/newlib/libm/math/s_asinh.c b/newlib/libm/math/s_asinh.c index 958b71f82..b7e173c79 100644 --- a/newlib/libm/math/s_asinh.c +++ b/newlib/libm/math/s_asinh.c @@ -36,9 +36,9 @@ TRAD_SYNOPSIS DESCRIPTION <> calculates the inverse hyperbolic sine of <[x]>. <> is defined as -@ifinfo +@ifnottex . sgn(<[x]>) * log(abs(<[x]>) + sqrt(1+<[x]>*<[x]>)) -@end ifinfo +@end ifnottex @tex $$sign(x) \times ln\Bigl(|x| + \sqrt{1+x^2}\Bigr)$$ @end tex diff --git a/newlib/libm/math/s_atan.c b/newlib/libm/math/s_atan.c index b1410ecca..c52a09dd0 100644 --- a/newlib/libm/math/s_atan.c +++ b/newlib/libm/math/s_atan.c @@ -41,9 +41,9 @@ DESCRIPTION <> is identical to <>, save that it operates on <>. RETURNS -@ifinfo +@ifnottex <> returns a value in radians, in the range of -pi/2 to pi/2. -@end ifinfo +@end ifnottex @tex <> returns a value in radians, in the range of $-\pi/2$ to $\pi/2$. @end tex diff --git a/newlib/libm/math/s_frexp.c b/newlib/libm/math/s_frexp.c index aaa36068a..5a396c7a1 100644 --- a/newlib/libm/math/s_frexp.c +++ b/newlib/libm/math/s_frexp.c @@ -36,17 +36,17 @@ TRAD_SYNOPSIS DESCRIPTION - All non zero, normal numbers can be described as <[m]> * 2**<[p]>. + All nonzero, normal numbers can be described as <[m]> * 2**<[p]>. <> represents the double <[val]> as a mantissa <[m]> and a power of two <[p]>. The resulting mantissa will always be greater than or equal to <<0.5>>, and less than <<1.0>> (as long as <[val]> is nonzero). The power of two will be stored in <<*>><[exp]>. -@ifinfo +@ifnottex <[m]> and <[p]> are calculated so that <[val]> is <[m]> times <<2>> to the power <[p]>. -@end ifinfo +@end ifnottex @tex <[m]> and <[p]> are calculated so that $ val = m \times 2^p $. diff --git a/newlib/libm/math/s_isnan.c b/newlib/libm/math/s_isnan.c index 5d83fc043..0338cfe47 100644 --- a/newlib/libm/math/s_isnan.c +++ b/newlib/libm/math/s_isnan.c @@ -55,7 +55,7 @@ TRAD_SYNOPSIS DESCRIPTION - These functions provide information on the floating point + These functions provide information on the floating-point argument supplied. There are five major number formats - @@ -63,13 +63,13 @@ DESCRIPTION o zero a number which contains all zero bits. o subnormal - Is used to represent number with a zero exponent, but a non zero fraction. + Is used to represent number with a zero exponent, but a nonzero fraction. o normal A number with an exponent, and a fraction o infinity A number with an all 1's exponent and a zero fraction. o NAN - A number with an all 1's exponent and a non zero fraction. + A number with an all 1's exponent and a nonzero fraction. o- @@ -79,7 +79,7 @@ DESCRIPTION The <>, <> and <> perform the same operations as their <>, <> and <> - counterparts, but on single precision floating point numbers. + counterparts, but on single-precision floating-point numbers. QUICKREF isnan - pure diff --git a/newlib/libm/math/s_ldexp.c b/newlib/libm/math/s_ldexp.c index ccf7171b1..e5d45633d 100644 --- a/newlib/libm/math/s_ldexp.c +++ b/newlib/libm/math/s_ldexp.c @@ -39,9 +39,9 @@ TRAD_SYNOPSIS DESCRIPTION <> calculates the value -@ifinfo +@ifnottex <[val]> times 2 to the power <[exp]>. -@end ifinfo +@end ifnottex @tex $val\times 2^{exp}$. @end tex diff --git a/newlib/libm/math/w_acos.c b/newlib/libm/math/w_acos.c index c9ca99c40..0a4823f3d 100644 --- a/newlib/libm/math/w_acos.c +++ b/newlib/libm/math/w_acos.c @@ -44,9 +44,9 @@ DESCRIPTION its calculations on <>. RETURNS - @ifinfo + @ifnottex <> and <> return values in radians, in the range of 0 to pi. - @end ifinfo + @end ifnottex @tex <> and <> return values in radians, in the range of <<0>> to $\pi$. @end tex diff --git a/newlib/libm/math/w_acosh.c b/newlib/libm/math/w_acosh.c index 4120d7b12..022c5c6ee 100644 --- a/newlib/libm/math/w_acosh.c +++ b/newlib/libm/math/w_acosh.c @@ -37,9 +37,9 @@ TRAD_SYNOPSIS DESCRIPTION <> calculates the inverse hyperbolic cosine of <[x]>. <> is defined as -@ifinfo +@ifnottex . log(<[x]> + sqrt(<[x]>*<[x]>-1)) -@end ifinfo +@end ifnottex @tex $$ln\Bigl(x + \sqrt{x^2-1}\Bigr)$$ @end tex diff --git a/newlib/libm/math/w_asin.c b/newlib/libm/math/w_asin.c index f6cb271d3..b146dfd9b 100644 --- a/newlib/libm/math/w_asin.c +++ b/newlib/libm/math/w_asin.c @@ -46,9 +46,9 @@ returning floats. You can modify error handling for these routines using <>. RETURNS -@ifinfo +@ifnottex <> returns values in radians, in the range of -pi/2 to pi/2. -@end ifinfo +@end ifnottex @tex <> returns values in radians, in the range of $-\pi/2$ to $\pi/2$. @end tex diff --git a/newlib/libm/math/w_atan2.c b/newlib/libm/math/w_atan2.c index 91742c72b..25eb1617e 100644 --- a/newlib/libm/math/w_atan2.c +++ b/newlib/libm/math/w_atan2.c @@ -40,9 +40,9 @@ DESCRIPTION <> computes the inverse tangent (arc tangent) of <[y]>/<[x]>. <> produces the correct result even for angles near -@ifinfo +@ifnottex pi/2 or -pi/2 -@end ifinfo +@end ifnottex @tex $\pi/2$ or $-\pi/2$ @end tex @@ -53,9 +53,9 @@ $\pi/2$ or $-\pi/2$ RETURNS <> and <> return a value in radians, in the range of -@ifinfo +@ifnottex -pi to pi. -@end ifinfo +@end ifnottex @tex $-\pi$ to $\pi$. @end tex diff --git a/newlib/libm/math/w_atanh.c b/newlib/libm/math/w_atanh.c index b89d4f025..07fd45962 100644 --- a/newlib/libm/math/w_atanh.c +++ b/newlib/libm/math/w_atanh.c @@ -43,9 +43,9 @@ RETURNS <> and <> return the calculated value. If - @ifinfo + @ifnottex |<[x]>| - @end ifinfo + @end ifnottex @tex $|x|$ @end tex @@ -53,9 +53,9 @@ RETURNS the result is a NaN. A <> is reported. If - @ifinfo + @ifnottex |<[x]>| - @end ifinfo + @end ifnottex @tex $|x|$ @end tex diff --git a/newlib/libm/math/w_cosh.c b/newlib/libm/math/w_cosh.c index 7b38dcb08..ab046f6ed 100644 --- a/newlib/libm/math/w_cosh.c +++ b/newlib/libm/math/w_cosh.c @@ -33,9 +33,9 @@ DESCRIPTION <> computes the hyperbolic cosine of the argument <[x]>. <)>> is defined as - @ifinfo + @ifnottex . (exp(x) + exp(-x))/2 - @end ifinfo + @end ifnottex @tex $${(e^x + e^{-x})} \over 2$$ @end tex diff --git a/newlib/libm/math/w_exp.c b/newlib/libm/math/w_exp.c index ae792a846..eb36390c2 100644 --- a/newlib/libm/math/w_exp.c +++ b/newlib/libm/math/w_exp.c @@ -34,9 +34,9 @@ TRAD_SYNOPSIS DESCRIPTION <> and <> calculate the exponential of <[x]>, that is, - @ifinfo + @ifnottex e raised to the power <[x]> (where e - @end ifinfo + @end ifnottex @tex $e^x$ (where $e$ @end tex diff --git a/newlib/libm/math/w_exp2.c b/newlib/libm/math/w_exp2.c index 5a0c6edb8..ed0bc39e9 100644 --- a/newlib/libm/math/w_exp2.c +++ b/newlib/libm/math/w_exp2.c @@ -34,8 +34,12 @@ TRAD_SYNOPSIS DESCRIPTION <> and <> calculate 2 ^ <[x]>, that is, - @ifinfo + @ifnottex 2 raised to the power <[x]>. + @end ifnottex + @tex + $2^x$ + @end tex You can use the (non-ANSI) function <> to specify error handling for these functions. diff --git a/newlib/libm/math/w_fmod.c b/newlib/libm/math/w_fmod.c index b6b36cb76..47d1dd081 100644 --- a/newlib/libm/math/w_fmod.c +++ b/newlib/libm/math/w_fmod.c @@ -39,9 +39,9 @@ remainder of <[x]>/<[y]> (<[x]> modulo <[y]>). RETURNS The <> function returns the value -@ifinfo +@ifnottex <[x]>-<[i]>*<[y]>, -@end ifinfo +@end ifnottex @tex $x-i\times y$, @end tex diff --git a/newlib/libm/math/w_gamma.c b/newlib/libm/math/w_gamma.c index 358a493df..fad40496d 100644 --- a/newlib/libm/math/w_gamma.c +++ b/newlib/libm/math/w_gamma.c @@ -76,9 +76,9 @@ $\mit ln\bigl(\Gamma(x)\bigr)$, the natural logarithm of the gamma function of <[x]>. The gamma function (<))>>) is a generalization of factorial, and retains the property that -@ifinfo +@ifnottex <> is equivalent to <>. -@end ifinfo +@end ifnottex @tex $\mit \Gamma(N)\equiv N\times\Gamma(N-1)$. @end tex @@ -87,10 +87,10 @@ quickly. <> is defined as @tex $\mit ln\bigl(\Gamma(x)\bigr)$ rather than simply $\mit \Gamma(x)$ @end tex -@ifinfo +@ifnottex the natural log of the gamma function, rather than the gamma function itself, -@end ifinfo +@end ifnottex to extend the useful range of results representable. The sign of the result is returned in the global variable <>, diff --git a/newlib/libm/math/w_hypot.c b/newlib/libm/math/w_hypot.c index 318853d56..203bf0982 100644 --- a/newlib/libm/math/w_hypot.c +++ b/newlib/libm/math/w_hypot.c @@ -36,9 +36,9 @@ DESCRIPTION @tex $\sqrt{x^2+y^2}$ @end tex - @ifinfo + @ifnottex <*<[x]> + <[y]>*<[y]>)>> - @end ifinfo + @end ifnottex between the origin (0,0) and a point represented by the Cartesian coordinates (<[x]>,<[y]>). <> differs only in the type of its arguments and result. diff --git a/newlib/libm/math/w_j0.c b/newlib/libm/math/w_j0.c index 4f0790842..2bf663316 100644 --- a/newlib/libm/math/w_j0.c +++ b/newlib/libm/math/w_j0.c @@ -91,10 +91,10 @@ float <[x]>; DESCRIPTION The Bessel functions are a family of functions that solve the differential equation -@ifinfo +@ifnottex . 2 2 2 . x y'' + xy' + (x - p )y = 0 -@end ifinfo +@end ifnottex @tex $$x^2{d^2y\over dx^2} + x{dy\over dx} + (x^2-p^2)y = 0$$ @end tex diff --git a/newlib/libm/math/w_pow.c b/newlib/libm/math/w_pow.c index 3df099a17..d54cd3adb 100644 --- a/newlib/libm/math/w_pow.c +++ b/newlib/libm/math/w_pow.c @@ -35,7 +35,7 @@ TRAD_SYNOPSIS float <[x]>, <[y]>; DESCRIPTION - <> and <> calculate <[x]> raised to the exp1.0nt <[y]>. + <> and <> calculate <[x]> raised to the exponent <[y]>. @tex (That is, $x^y$.) @end tex diff --git a/newlib/libm/math/w_sinh.c b/newlib/libm/math/w_sinh.c index 02a388862..72e0ef51e 100644 --- a/newlib/libm/math/w_sinh.c +++ b/newlib/libm/math/w_sinh.c @@ -37,9 +37,9 @@ TRAD_SYNOPSIS DESCRIPTION <> computes the hyperbolic sine of the argument <[x]>. Angles are specified in radians. <>(<[x]>) is defined as - @ifinfo + @ifnottex . (exp(<[x]>) - exp(-<[x]>))/2 - @end ifinfo + @end ifnottex @tex $${e^x - e^{-x}}\over 2$$ @end tex diff --git a/newlib/libm/mathfp/e_acosh.c b/newlib/libm/mathfp/e_acosh.c index a48420304..c2bf52890 100644 --- a/newlib/libm/mathfp/e_acosh.c +++ b/newlib/libm/mathfp/e_acosh.c @@ -26,9 +26,9 @@ TRAD_SYNOPSIS DESCRIPTION <> calculates the inverse hyperbolic cosine of <[x]>. <> is defined as -@ifinfo +@ifnottex . log(<[x]> + sqrt(<[x]>*<[x]>-1)) -@end ifinfo +@end ifnottex @tex $$ln\Bigl(x + \sqrt{x^2-1}\Bigr)$$ @end tex diff --git a/newlib/libm/mathfp/e_atanh.c b/newlib/libm/mathfp/e_atanh.c index 1ab311df4..fb233e5d4 100644 --- a/newlib/libm/mathfp/e_atanh.c +++ b/newlib/libm/mathfp/e_atanh.c @@ -44,9 +44,9 @@ RETURNS <> and <> return the calculated value. If - @ifinfo + @ifnottex |<[x]>| - @end ifinfo + @end ifnottex @tex $|x|$ @end tex @@ -54,9 +54,9 @@ RETURNS the result is a NaN. A <> is reported. If - @ifinfo + @ifnottex |<[x]>| - @end ifinfo + @end ifnottex @tex $|x|$ @end tex diff --git a/newlib/libm/mathfp/e_hypot.c b/newlib/libm/mathfp/e_hypot.c index d93263ea4..713aa77c2 100644 --- a/newlib/libm/mathfp/e_hypot.c +++ b/newlib/libm/mathfp/e_hypot.c @@ -36,9 +36,9 @@ DESCRIPTION @tex $\sqrt{x^2+y^2}$ @end tex - @ifinfo + @ifnottex <*<[x]> + <[y]>*<[y]>)>> - @end ifinfo + @end ifnottex between the origin (0,0) and a point represented by the Cartesian coordinates (<[x]>,<[y]>). <> differs only in the type of its arguments and result. diff --git a/newlib/libm/mathfp/er_lgamma.c b/newlib/libm/mathfp/er_lgamma.c index 8b754764d..65d60026e 100644 --- a/newlib/libm/mathfp/er_lgamma.c +++ b/newlib/libm/mathfp/er_lgamma.c @@ -76,9 +76,9 @@ $\mit ln\bigl(\Gamma(x)\bigr)$, the natural logarithm of the gamma function of <[x]>. The gamma function (<))>>) is a generalization of factorial, and retains the property that -@ifinfo +@ifnottex <> is equivalent to <>. -@end ifinfo +@end ifnottex @tex $\mit \Gamma(N)\equiv N\times\Gamma(N-1)$. @end tex @@ -87,10 +87,10 @@ quickly. <> is defined as @tex $\mit ln\bigl(\Gamma(x)\bigr)$ rather than simply $\mit \Gamma(x)$ @end tex -@ifinfo +@ifnottex the natural log of the gamma function, rather than the gamma function itself, -@end ifinfo +@end ifnottex to extend the useful range of results representable. The sign of the result is returned in the global variable <>, diff --git a/newlib/libm/mathfp/mathfp.tex b/newlib/libm/mathfp/mathfp.tex index e7f897a97..6286405a0 100644 --- a/newlib/libm/mathfp/mathfp.tex +++ b/newlib/libm/mathfp/mathfp.tex @@ -102,7 +102,7 @@ In X/Open mode, @code{errno} is set correctly, and @code{matherr} is called, but warning message are not printed. In SVID mode, functions which overflow return 3.40282346638528860e+38, -the maximum single precision floating point value, rather than infinity. +the maximum single-precision floating-point value, rather than infinity. Also, @code{errno} is set correctly, @code{matherr} is called, and, if @code{matherr} returns 0, warning messages are printed for some errors. For example, by default @samp{log(-1.0)} writes this message on standard diff --git a/newlib/libm/mathfp/s_acos.c b/newlib/libm/mathfp/s_acos.c index e03344e7d..88d59372d 100644 --- a/newlib/libm/mathfp/s_acos.c +++ b/newlib/libm/mathfp/s_acos.c @@ -34,10 +34,10 @@ DESCRIPTION its calculations on <>. RETURNS - @ifinfo + @ifnottex <> and <> return values in radians, in the range of 0 to pi . - @end ifinfo + @end ifnottex @tex <> and <> return values in radians, in the range of <<0>> t o $\pi$. diff --git a/newlib/libm/mathfp/s_asine.c b/newlib/libm/mathfp/s_asine.c index efc0a8130..89a2bed5e 100644 --- a/newlib/libm/mathfp/s_asine.c +++ b/newlib/libm/mathfp/s_asine.c @@ -62,9 +62,9 @@ Arguments to <> and <> must be in the range @minus{}1 to 1. than taking and returning floats. RETURNS -@ifinfo +@ifnottex <> and <> return values in radians, in the range of -pi/2 to pi/2. -@end ifinfo +@end ifnottex @tex <> and <> return values in radians, in the range of $-\pi/2$ to $\pi/2$. @end tex diff --git a/newlib/libm/mathfp/s_asinh.c b/newlib/libm/mathfp/s_asinh.c index 43b9d49fa..d70cc61db 100644 --- a/newlib/libm/mathfp/s_asinh.c +++ b/newlib/libm/mathfp/s_asinh.c @@ -36,9 +36,9 @@ TRAD_SYNOPSIS DESCRIPTION <> calculates the inverse hyperbolic sine of <[x]>. <> is defined as -@ifinfo +@ifnottex . sgn(<[x]>) * log(abs(<[x]>) + sqrt(1+<[x]>*<[x]>)) -@end ifinfo +@end ifnottex @tex $$sign(x) \times ln\Bigl(|x| + \sqrt{1+x^2}\Bigr)$$ @end tex diff --git a/newlib/libm/mathfp/s_atan.c b/newlib/libm/mathfp/s_atan.c index b8e633e3d..a5a818979 100644 --- a/newlib/libm/mathfp/s_atan.c +++ b/newlib/libm/mathfp/s_atan.c @@ -30,9 +30,9 @@ DESCRIPTION <> is identical to <>, save that it operates on <>. RETURNS -@ifinfo +@ifnottex <> returns a value in radians, in the range of -pi/2 to pi/2. -@end ifinfo +@end ifnottex @tex <> returns a value in radians, in the range of $-\pi/2$ to $\pi/2$. @end tex diff --git a/newlib/libm/mathfp/s_atan2.c b/newlib/libm/mathfp/s_atan2.c index d73a6efc0..60034b3ad 100644 --- a/newlib/libm/mathfp/s_atan2.c +++ b/newlib/libm/mathfp/s_atan2.c @@ -29,9 +29,9 @@ DESCRIPTION <> computes the inverse tangent (arc tangent) of <[y]>/<[x]>. <> produces the correct result even for angles near -@ifinfo +@ifnottex pi/2 or -pi/2 -@end ifinfo +@end ifnottex @tex $\pi/2$ or $-\pi/2$ @end tex @@ -42,9 +42,9 @@ $\pi/2$ or $-\pi/2$ RETURNS <> and <> return a value in radians, in the range of -@ifinfo +@ifnottex -pi to pi. -@end ifinfo +@end ifnottex @tex $-\pi$ to $\pi$. @end tex diff --git a/newlib/libm/mathfp/s_atangent.c b/newlib/libm/mathfp/s_atangent.c index c6f3c9bd6..981e1c822 100644 --- a/newlib/libm/mathfp/s_atangent.c +++ b/newlib/libm/mathfp/s_atangent.c @@ -55,10 +55,10 @@ DESCRIPTION <> is identical to <>, save that it operates on <>. RETURNS -@ifinfo +@ifnottex <> returns a value in radians, in the range of -pi/2 to pi/2. <> returns a value in radians, in the range of -pi/2 to pi/2. -@end ifinfo +@end ifnottex @tex <> returns a value in radians, in the range of $-\pi/2$ to $\pi/2$. <> returns a value in radians, in the range of $-\pi/2$ to $\pi/2$. diff --git a/newlib/libm/mathfp/s_cosh.c b/newlib/libm/mathfp/s_cosh.c index 6550e9ce7..24b542092 100644 --- a/newlib/libm/mathfp/s_cosh.c +++ b/newlib/libm/mathfp/s_cosh.c @@ -23,9 +23,9 @@ DESCRIPTION <> computes the hyperbolic cosine of the argument <[x]>. <)>> is defined as - @ifinfo + @ifnottex . (exp(x) + exp(-x))/2 - @end ifinfo + @end ifnottex @tex $${(e^x + e^{-x})} \over 2$$ @end tex diff --git a/newlib/libm/mathfp/s_exp.c b/newlib/libm/mathfp/s_exp.c index 8c7f723fe..e70699b06 100644 --- a/newlib/libm/mathfp/s_exp.c +++ b/newlib/libm/mathfp/s_exp.c @@ -30,9 +30,9 @@ TRAD_SYNOPSIS DESCRIPTION <> and <> calculate the exponential of <[x]>, that is, - @ifinfo + @ifnottex e raised to the power <[x]> (where e - @end ifinfo + @end ifnottex @tex $e^x$ (where $e$ @end tex diff --git a/newlib/libm/mathfp/s_fmod.c b/newlib/libm/mathfp/s_fmod.c index 3af7300da..ec86376af 100644 --- a/newlib/libm/mathfp/s_fmod.c +++ b/newlib/libm/mathfp/s_fmod.c @@ -39,9 +39,9 @@ remainder of <[x]>/<[y]> (<[x]> modulo <[y]>). RETURNS The <> function returns the value -@ifinfo +@ifnottex <[x]>-<[i]>*<[y]>, -@end ifinfo +@end ifnottex @tex $x-i\times y$, @end tex diff --git a/newlib/libm/mathfp/s_frexp.c b/newlib/libm/mathfp/s_frexp.c index 6145c472f..08611e9a7 100644 --- a/newlib/libm/mathfp/s_frexp.c +++ b/newlib/libm/mathfp/s_frexp.c @@ -26,17 +26,17 @@ TRAD_SYNOPSIS DESCRIPTION - All non zero, normal numbers can be described as <[m]> * 2**<[p]>. + All nonzero, normal numbers can be described as <[m]> * 2**<[p]>. <> represents the double <[val]> as a mantissa <[m]> and a power of two <[p]>. The resulting mantissa will always be greater than or equal to <<0.5>>, and less than <<1.0>> (as long as <[val]> is nonzero). The power of two will be stored in <<*>><[exp]>. -@ifinfo +@ifnottex <[m]> and <[p]> are calculated so that <[val]> is <[m]> times <<2>> to the power <[p]>. -@end ifinfo +@end ifnottex @tex <[m]> and <[p]> are calculated so that $ val = m \times 2^p $. diff --git a/newlib/libm/mathfp/s_isnan.c b/newlib/libm/mathfp/s_isnan.c index 776baa239..03cfeee59 100644 --- a/newlib/libm/mathfp/s_isnan.c +++ b/newlib/libm/mathfp/s_isnan.c @@ -46,7 +46,7 @@ TRAD_SYNOPSIS DESCRIPTION - These functions provide information on the floating point + These functions provide information on the floating-point argument supplied. There are five major number formats - @@ -54,14 +54,14 @@ DESCRIPTION o zero a number which contains all zero bits. o subnormal - Is used to represent number with a zero exponent, but a non zero fract + Is used to represent number with a zero exponent, but a nonzero fract ion. o normal A number with an exponent, and a fraction o infinity A number with an all 1's exponent and a zero fraction. o NAN - A number with an all 1's exponent and a non zero fraction. + A number with an all 1's exponent and a nonzero fraction. o- @@ -71,7 +71,7 @@ ion. The <>, <> and <> perform the same operations as their <>, <> and <> - counterparts, but on single precision floating point numbers. + counterparts, but on single-precision floating-point numbers. QUICKREF isnan - pure @@ -92,7 +92,7 @@ QUICKREF * isnan * * Input: - * x - pointer to a floating point value + * x - pointer to a floating-point value * * Output: * An integer that indicates if the number is NaN. diff --git a/newlib/libm/mathfp/s_ldexp.c b/newlib/libm/mathfp/s_ldexp.c index 97d8a3ba5..5ce2710ac 100644 --- a/newlib/libm/mathfp/s_ldexp.c +++ b/newlib/libm/mathfp/s_ldexp.c @@ -28,9 +28,9 @@ TRAD_SYNOPSIS DESCRIPTION <> calculates the value -@ifinfo +@ifnottex <[val]> times 2 to the power <[exp]>. -@end ifinfo +@end ifnottex @tex $val\times 2^{exp}$. @end tex diff --git a/newlib/libm/mathfp/s_pow.c b/newlib/libm/mathfp/s_pow.c index b4b6c8958..3514510d0 100644 --- a/newlib/libm/mathfp/s_pow.c +++ b/newlib/libm/mathfp/s_pow.c @@ -24,7 +24,7 @@ TRAD_SYNOPSIS float <[x]>, <[y]>; DESCRIPTION - <> and <> calculate <[x]> raised to the exp1.0nt <[y]>. + <> and <> calculate <[x]> raised to the exponent <[y]>. @tex (That is, $x^y$.) @end tex diff --git a/newlib/libm/mathfp/s_sineh.c b/newlib/libm/mathfp/s_sineh.c index 6b3480d73..6f5e208b0 100644 --- a/newlib/libm/mathfp/s_sineh.c +++ b/newlib/libm/mathfp/s_sineh.c @@ -44,16 +44,16 @@ DESCRIPTION <> and <> compute the hyperbolic sine or cosine of the argument <[x]>. Angles are specified in radians. <>(<[x]>) is defined as - @ifinfo + @ifnottex . (exp(<[x]>) - exp(-<[x]>))/2 - @end ifinfo + @end ifnottex @tex $${e^x - e^{-x}}\over 2$$ @end tex <> is defined as - @ifinfo + @ifnottex . (exp(<[x]>) - exp(-<[x]>))/2 - @end ifinfo + @end ifnottex @tex $${e^x + e^{-x}}\over 2$$ @end tex diff --git a/newlib/libm/mathfp/w_jn.c b/newlib/libm/mathfp/w_jn.c index 6806f01d9..bd7878104 100644 --- a/newlib/libm/mathfp/w_jn.c +++ b/newlib/libm/mathfp/w_jn.c @@ -91,10 +91,10 @@ float <[x]>; DESCRIPTION The Bessel functions are a family of functions that solve the differential equation -@ifinfo +@ifnottex . 2 2 2 . x y'' + xy' + (x - p )y = 0 -@end ifinfo +@end ifnottex @tex $$x^2{d^2y\over dx^2} + x{dy\over dx} + (x^2-p^2)y = 0$$ @end tex