qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] trivial: Simplify the spots that use TARGET_BIG_ENDIAN as a


From: Peter Maydell
Subject: Re: [PATCH] trivial: Simplify the spots that use TARGET_BIG_ENDIAN as a numeric value
Date: Thu, 7 Sep 2023 13:02:39 +0100

On Thu, 7 Sept 2023 at 12:35, Thomas Huth <thuth@redhat.com> wrote:
>
> TARGET_BIG_ENDIAN is *always* defined, either as 0 for little endian
> targets or as 1 for big endian targets. So we can use this as a value
> directly in places that need such a 0 or 1 for some reason, instead
> of taking a detour through an additional local variable or something
> similar.
>
> Suggested-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Thomas Huth <thuth@redhat.com>

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

thanks
-- PMM



reply via email to

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