This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] powerpc: Cleanup fenv_private.h
- From: "Tulio Magno Quites Machado Filho" <tuliom at linux dot vnet dot ibm dot com>
- To: "Paul E. Murphy" <murphyp at sourceware dot org>, "libc-alpha\@sourceware.org" <libc-alpha at sourceware dot org>
- Cc:
- Date: Fri, 21 Oct 2016 18:23:40 -0200
- Subject: Re: [PATCH] powerpc: Cleanup fenv_private.h
- Authentication-results: sourceware.org; auth=none
- References: <cffe19b8-a09a-fadb-7dd3-ef5088d58556@linux.vnet.ibm.com>
"Paul E. Murphy" <murphyp@linux.vnet.ibm.com> writes:
> Tested on ppc64le, with results before and after.
>
> ---8<---
> Some of the masks are wrong, and the naming is confusing.
>
> There are two basic cases we really care about:
>
> 1. Stacking a new rounding mode when running certain
> sections of code, and pausing exception handling.
>
> 2. Likewise, but discarding any exceptions which occur
> while running under the new rounding mode.
>
> libc_feholdexcept_setround_ppc_ctx has been removed as it basically
> does the same thing as libc_feholdsetround_ppc_ctx but also clearing
> any sticky bits. The restore behavior is what differentiates these
> two cases as the SET_RESTORE_ROUND{,_NOEX} macros will either merge
> or discard all exceptions occurring during scope of their usage.
>
> Likewise, there are a number of routines to swap, replace,
> or merge FP environments. This change reduces much of
> the common and sometimes wrong code.
LGTM.
I'm pushing it.
Thanks!
--
Tulio Magno