This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 13/13] Use GCC builtins for copysign functions if desired.
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Stefan Liebler <stli at linux dot ibm dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Mon, 2 Dec 2019 21:00:29 +0000
- Subject: Re: [PATCH 13/13] Use GCC builtins for copysign functions if desired.
- Ironport-sdr: mK0244sbTXFLo3Y4CyXtFoqM3yX8K/EYsOSPEg1uuYUXya6714QRSBz5Fh039wLmRahP5tEXQQ g9Bb115Gd6FmfxlIw6Fs6LVhuWRwhyKcEQDbThK4FHOOktGsUVIgZc7B/wbZ3nOc3itaBC0rIn AfQlbCIgeB4llF0pB9ytv5X3GqbMSKPaGpqc463X3Pjp2VsyqAnX6HFi4VgZ2/dEi+NW9BjuOe xXeCGoY1A6S2tu/3Eg3rsjhXVrn0L5NbyohuaSkdI2GQKn7JQKvtvLUVXwUtdGGhPgjM6IKLwf 2Nk=
- Ironport-sdr: MsF6LISXnN/K0j3jwtaI1SGtLyya5xtypX7AEnI+H4N8DCcx/eu8KyMY6JdZwd3TLbS+j2kDj7 tFaEgMaYRD+fclVADflGQdyI/LdA3C2VDk6e6L5LnRZip+nyWdd9KL9OOXRez+VTAcyTX8WgB/ e+t6MxsTyfbdmG3Z8XM4CRJCPgk3cY2gv8BTUvqyzqcZ4g0jorDaC6igvYzbP4Sdfi2Gd9s5Qs 3Wp8vkpWscFGWakfYP4o7KVDsUJR0L56ft+1HHcKbbTayyHAaCNXfVRfyUcAra4ID4y2cFYCaL wuw=
- References: <1575297977-2589-1-git-send-email-stli@linux.ibm.com> <1575297977-2589-14-git-send-email-stli@linux.ibm.com>
On Mon, 2 Dec 2019, Stefan Liebler wrote:
> This patch is using the corresponding GCC builtin for copysignf, copysign,
> copysignl and copysignf128 if the USE_FUNCTION_BUILTIN macros are defined to one
> in math-use-builtins.h.
I believe this is always safe for these implementations (the only case
where GCC might not expand copysign functions inline is copysignl for IBM
long double, in the soft-float case).
--
Joseph S. Myers
joseph@codesourcery.com