qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/3] ppc: fix comment typo "iff" in translate.c


From: Andrew Randrianasulu
Subject: Re: [PATCH 2/3] ppc: fix comment typo "iff" in translate.c
Date: Thu, 13 Mar 2025 08:07:06 +0300

Ah, this is something new for me! thanks


чт, 13 мар. 2025 г., 07:20 Josh Juran <jjuran@gmail.com>:
On Mar 12, 2025, at 9:29 PM, Andrew Randrianasulu <randrianasulu@gmail.com> wrote:

> ---
> target/ppc/translate.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/target/ppc/translate.c b/target/ppc/translate.c
> index 80638ab535..fc5276254a 100644
> --- a/target/ppc/translate.c
> +++ b/target/ppc/translate.c
> @@ -209,7 +209,7 @@ struct DisasContext {
> #define DISAS_CHAIN        DISAS_TARGET_2  /* lookup next tb, pc updated */
> #define DISAS_CHAIN_UPDATE DISAS_TARGET_3  /* lookup next tb, pc stale */
>
> -/* Return true iff byteswap is needed in a scalar memop */
> +/* Return true if byteswap is needed in a scalar memop */
> static inline bool need_byteswap(const DisasContext *ctx)
> {
> #if TARGET_BIG_ENDIAN
> --
> 2.47.1

This is much more likely to be intended than an error — “iff” is established short-hand for “if and only if”.

Cheers,
Josh


reply via email to

[Prev in Thread] Current Thread [Next in Thread]