[PATCH v4] stdlib: Implement C2Y uabs, ulabs, ullabs and uimaxabs
Florian Weimer
fweimer@redhat.com
Thu Apr 3 09:45:53 GMT 2025
* Lenard Mollenkopf:
> diff --git a/manual/arith.texi b/manual/arith.texi
> index 034d9d2ba5..4b8584d487 100644
> --- a/manual/arith.texi
> +++ b/manual/arith.texi
> @@ -1233,25 +1233,33 @@ whose imaginary part is @var{y}, the absolute value is @w{@code{sqrt
>
> @pindex math.h
> @pindex stdlib.h
> -Prototypes for @code{abs}, @code{labs} and @code{llabs} are in @file{stdlib.h};
> -@code{imaxabs} is declared in @file{inttypes.h};
> +Prototypes for @code{abs}, @code{labs}, @code{llabs},
> +@code{uabs}, @code{ulabs} and @code{ullabs} are in @file{stdlib.h};
> +@code{imaxabs} and @code{uimaxabs} are declared in @file{inttypes.h};
> the @code{fabs} functions are declared in @file{math.h};
> the @code{cabs} functions are declared in @file{complex.h}.
>
> @deftypefun int abs (int @var{number})
> @deftypefunx {long int} labs (long int @var{number})
> @deftypefunx {long long int} llabs (long long int @var{number})
> +@deftypefunx unsigned int uabs (int @var{number})
I believe that too needs to be {unsigned int} .
> +@deftypefunx {unsigned long int} ulabs (long int @var{number})
> +@deftypefunx {unsigned long long int} ullabs (long long int @var{number})
> @deftypefunx intmax_t imaxabs (intmax_t @var{number})
> +@deftypefunx uintmax_t uimaxabs (intmax_t @var{number})
Rest looks okay to me.
Thanks,
Florian
More information about the Libc-alpha
mailing list