[Bug manual/33752] Doc incorrectly says double and long double may not be distinct
Paul Zimmermann
Paul.Zimmermann@inria.fr
Sat Jan 3 07:18:49 GMT 2026
Hi Keith,
the new formulation is much clearer, thanks.
Reviewed-by: Paul Zimmermann <Paul.Zimmermann@inria.fr>
Happy New Year to everybody on this list!
Paul
> From: Keith Thompson <Keith.S.Thompson@gmail.com>
> Date: Fri, 2 Jan 2026 09:43:10 -0800
> Cc: Keith Thompson <Keith.S.Thompson@gmail.com>
>
> I submitted a documentation bug and patch:
> https://sourceware.org/bugzilla/show_bug.cgi?id=33752
>
> I was asked to send it to libc-alpha for proper review.
>
> The patch:
>
> commit ad55478fceac3dd4aa651eb20b97749b6df366d9 (HEAD ->
> long-double-is-distinct)
> Author: Keith Thompson <Keith.S.Thompson@gmail.com>
> Date: 2025-12-30 03:29:34 -0800
>
> long double and double are distinct types
>
> diff --git manual/math.texi manual/math.texi
> index fbabf37b48..074cf835e3 100644
> --- manual/math.texi
> +++ manual/math.texi
> @@ -50,8 +50,8 @@ situation. For most calculations, the @code{float}
> functions are the
> fastest. On the other hand, the @code{long double} functions have the
> highest precision. @code{double} is somewhere in between. It is
> usually wise to pick the narrowest type that can accommodate your data.
> -Not all machines have a distinct @code{long double} type; it may be the
> -same as @code{double}.
> +Not all machines have a @code{long double} type that's wider than
> +@code{double}, though they're still distinct types.
>
> @Theglibc{} also provides @code{_Float@var{N}} and
> @code{_Float@var{N}x} types. These types are defined in @w{ISO/IEC TS
>
>
> On Fri, Jan 2, 2026 at 6:20 AM adhemerval.zanella at linaro dot org
> <sourceware-bugzilla@sourceware.org> wrote:
> >
> > https://sourceware.org/bugzilla/show_bug.cgi?id=33752
> >
> > Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:
> >
> > What |Removed |Added
> > ----------------------------------------------------------------------------
> > CC| |adhemerval.zanella at linaro dot o
> > | |rg
> >
> > --- Comment #1 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
> > The patch look ok, could you send it to libc-alpha for proper review?
> >
> > --
> > You are receiving this mail because:
> > You reported the bug.
>
More information about the Libc-alpha
mailing list