From: Paul Clarke <pc@us.ibm.com>
To: Paul E Murphy <murphyp@linux.ibm.com>, libc-alpha@sourceware.org
Cc: tuliom@ascii.art.br
Subject: Re: [PATCH v2 4/6] [powerpc] libc_feholdsetround_noex_ppc_ctx: optimize FPSCR write
Date: Mon, 23 Sep 2019 17:54:00 -0000 [thread overview]
Message-ID: <5651ac5e-8b7e-3596-b7c9-617cae7dea3f@us.ibm.com> (raw)
In-Reply-To: <943be10e-497d-1066-42cf-12164c71ed28@linux.ibm.com>
Thanks for the review, Paul! Question...
On 9/23/19 10:54 AM, Paul E Murphy wrote:
> On 9/19/19 1:46 PM, Paul A. Clarke wrote:
>> libc_feholdsetround_noex_ppc_ctx currently does, basically:
> The listing reads awkwardly for me. I suggest a little cleanup. There is no need to post a new patch against my suggestion.
Here you say "listing", and there is a list (1-2-3) immediately below this text, and below you say "commit message", . Where would you like to see improvement? Happy to change, but it's hard for me to see what you're seeing. (And, of course, it's all perfectly clear to me since I wrote it! ;-)
>> 1. Read FPSCR, save to context.
>> 2. Create new FPSCR value: clear enables and set new rounding mode.
>> 3. Write new value to FPSCR.
>>
>> Since other bits just pass through, there is no need to write them.
>>
>> Instead, write just the changed values (enables and rounding mode),
>> which can be a bit more efficient.
>>
>> 2019-09-19 Paul A. Clarke <pc@us.ibm.com>
>>
>> Â Â Â Â * sysdeps/powerpc/fpu/fenv_private.h
>> Â Â Â Â (libc_feholdsetround_noex_ppc_ctx): Call fesetenv_mode instead
>> Â Â Â Â of fesetenv_register.
>> ---
>> v2: No change.
>>
>> Â sysdeps/powerpc/fpu/fenv_private.h | 2 +-
>> Â 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/sysdeps/powerpc/fpu/fenv_private.h b/sysdeps/powerpc/fpu/fenv_private.h
>> index 9496026..ade0bfa 100644
>> --- a/sysdeps/powerpc/fpu/fenv_private.h
>> +++ b/sysdeps/powerpc/fpu/fenv_private.h
>> @@ -142,7 +142,7 @@ libc_feholdsetround_noex_ppc_ctx (struct rm_ctx *ctx, int r)
>> Â Â Â if (__glibc_unlikely (new.l != old.l))
>> Â Â Â Â Â {
>> Â Â Â Â Â Â Â __TEST_AND_ENTER_NON_STOP (old.l, 0ULL);
>> -Â Â Â Â Â fesetenv_register (new.fenv);
>> +Â Â Â Â Â fesetenv_mode (new.fenv);
>> Â Â Â Â Â Â Â ctx->updated_status = true;
>> Â Â Â Â Â }
>> Â Â Â else
>>
>
> OK, with suggested cleanup to commit message.
>
> Reviewed-By: Paul E Murphy <murphyp@linux.ibm.com>
PC
next prev parent reply other threads:[~2019-09-23 17:54 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-19 18:46 [PATCH v2 0/6] Various FPSCR-related changes Paul A. Clarke
2019-09-19 18:46 ` [PATCH v2 1/6] [powerpc] fenv_private.h clean up Paul A. Clarke
2019-09-20 15:37 ` Paul E Murphy
2019-09-22 5:11 ` Paul Clarke
2019-09-23 14:58 ` Paul E Murphy
2019-09-19 18:47 ` [PATCH v2 2/6] [powerpc] No need to enter "Ignore Exceptions Mode" Paul A. Clarke
2019-09-23 15:16 ` Paul E Murphy
2019-09-19 18:47 ` [PATCH v2 5/6] [powerpc] __fesetround_inline optimizations Paul A. Clarke
2019-09-23 16:08 ` Paul E Murphy
2019-09-19 18:47 ` [PATCH v2 6/6] [powerpc] Rename fegetenv_status to fegetenv_control Paul A. Clarke
2019-09-23 16:21 ` Paul E Murphy
2019-09-23 17:48 ` Paul Clarke
2019-09-19 18:47 ` [PATCH v2 3/6] [powerpc] libc_feupdateenv_test: optimize FPSCR access Paul A. Clarke
2019-09-23 15:39 ` Paul E Murphy
2019-09-19 18:47 ` [PATCH v2 4/6] [powerpc] libc_feholdsetround_noex_ppc_ctx: optimize FPSCR write Paul A. Clarke
2019-09-23 15:55 ` Paul E Murphy
2019-09-23 17:54 ` Paul Clarke [this message]
2019-09-27 14:27 ` Paul E Murphy
2019-09-19 19:15 ` [PATCH v2 7/6] [powerpc] Rename fesetenv_mode to fesetenv_control Paul A. Clarke
2019-09-23 16:24 ` Paul E Murphy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5651ac5e-8b7e-3596-b7c9-617cae7dea3f@us.ibm.com \
--to=pc@us.ibm.com \
--cc=libc-alpha@sourceware.org \
--cc=murphyp@linux.ibm.com \
--cc=tuliom@ascii.art.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).