This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Fix docs for scalbn* and scalbl* functions
- From: Mark H Weaver <mhw at netris dot org>
- To: libc-alpha at sourceware dot org
- Cc: Roland McGrath <roland at hack dot frob dot com>
- Date: Fri, 22 Mar 2013 17:32:18 -0400
- Subject: [PATCH] Fix docs for scalbn* and scalbl* functions
Roland McGrath <roland@hack.frob.com> writes:
> Do you think this will be your only contribution to libc?
> If not, then please get your copyright papers in order and
> get yourself set up to do your own commits.
Sorry for the delay. My copyright papers are now in order.
Here's an updated patch. I've verified that these new prototypes are
correct by compiling a test program that includes <math.h>.
Any objections?
Mark
2013-03-22 Mark H Weaver <mhw@netris.org>
* manual/arith.texi (Normalization Functions): Fix prototypes for
scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
diff --git a/manual/arith.texi b/manual/arith.texi
index faf25cc..d060ff9 100644
--- a/manual/arith.texi
+++ b/manual/arith.texi
@@ -1260,26 +1260,26 @@ The @code{scalb} function is the BSD name for @code{ldexp}.
@comment math.h
@comment BSD
-@deftypefun {long long int} scalbn (double @var{x}, int @var{n})
+@deftypefun double scalbn (double @var{x}, int @var{n})
@comment math.h
@comment BSD
-@deftypefunx {long long int} scalbnf (float @var{x}, int @var{n})
+@deftypefunx float scalbnf (float @var{x}, int @var{n})
@comment math.h
@comment BSD
-@deftypefunx {long long int} scalbnl (long double @var{x}, int @var{n})
+@deftypefunx {long double} scalbnl (long double @var{x}, int @var{n})
@code{scalbn} is identical to @code{scalb}, except that the exponent
@var{n} is an @code{int} instead of a floating-point number.
@end deftypefun
@comment math.h
@comment BSD
-@deftypefun {long long int} scalbln (double @var{x}, long int @var{n})
+@deftypefun double scalbln (double @var{x}, long int @var{n})
@comment math.h
@comment BSD
-@deftypefunx {long long int} scalblnf (float @var{x}, long int @var{n})
+@deftypefunx float scalblnf (float @var{x}, long int @var{n})
@comment math.h
@comment BSD
-@deftypefunx {long long int} scalblnl (long double @var{x}, long int @var{n})
+@deftypefunx {long double} scalblnl (long double @var{x}, long int @var{n})
@code{scalbln} is identical to @code{scalb}, except that the exponent
@var{n} is a @code{long int} instead of a floating-point number.
@end deftypefun