qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Cédric Le Goater" <clg@kaod.org>
To: Michael Tokarev <mjt@tls.msk.ru>,
	qemu-ppc@nongnu.org, qemu-devel@nongnu.org
Cc: Daniel Henrique Barboza <danielhb413@gmail.com>,
	Nicholas Piggin <npiggin@gmail.com>,
	Markus Armbruster <armbru@redhat.com>
Subject: Re: [PATCH] target/ppc: Rename variables to avoid local variable shadowing in VUPKPX
Date: Sat, 23 Sep 2023 17:59:35 +0200	[thread overview]
Message-ID: <f74e6a0a-b78f-8924-6abf-42cbad6c69eb@kaod.org> (raw)
In-Reply-To: <26ec2024-d022-eb3d-8d50-37f9219fc597@tls.msk.ru>

On 9/23/23 10:25, Michael Tokarev wrote:
> 23.09.2023 10:12, Cédric Le Goater:
> 
>> --- a/target/ppc/int_helper.c
>> +++ b/target/ppc/int_helper.c
>> @@ -2022,11 +2022,11 @@ void helper_vsum4ubs(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b)
>>           for (i = 0; i < ARRAY_SIZE(r->u32); i++) {                      \
>>               uint16_t e = b->u16[hi ? i : i + 4];                        \
>>               uint8_t a = (e >> 15) ? 0xff : 0;                           \
>> -            uint8_t r = (e >> 10) & 0x1f;                               \
>> +            uint8_t _r = (e >> 10) & 0x1f;                              \
>>               uint8_t g = (e >> 5) & 0x1f;                                \
>> -            uint8_t b = e & 0x1f;                                       \
>> +            uint8_t _b = e & 0x1f;                                      \
> 
> I'd suggest to rename all of them here to have the same pattern.  Maybe.. :)

or maybe use the field names from the ISA : VRT,VRA,VRB ?

C.





  reply	other threads:[~2023-09-23 16:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-23  7:12 [PATCH] target/ppc: Rename variables to avoid local variable shadowing in VUPKPX Cédric Le Goater
2023-09-23  8:25 ` Michael Tokarev
2023-09-23 15:59   ` Cédric Le Goater [this message]
2023-09-29  8:00     ` Markus Armbruster
2023-09-29  8:28       ` Cédric Le Goater

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=f74e6a0a-b78f-8924-6abf-42cbad6c69eb@kaod.org \
    --to=clg@kaod.org \
    --cc=armbru@redhat.com \
    --cc=danielhb413@gmail.com \
    --cc=mjt@tls.msk.ru \
    --cc=npiggin@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    /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 NNTP newsgroup(s).