qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] vpc: fix beX_to_cpu() and cpu_to_beX() confusio


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH] vpc: fix beX_to_cpu() and cpu_to_beX() confusion
Date: Thu, 25 Sep 2014 09:43:23 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Am 23.09.2014 um 11:40 hat Stefan Hajnoczi geschrieben:
> The beX_to_cpu() and cpu_to_beX() functions perform the same operation -
> they do a byteswap if the host CPU endianness is little-endian or a
> nothing otherwise.
> 
> The point of two names for the same operation is that it documents which
> direction the data is being converted.  This makes it clear whether the
> data is suitable for CPU processing or in its external representation.
> 
> This patch fixes incorrect beX_to_cpu()/cpu_to_beX() usage.
> 
> Signed-off-by: Stefan Hajnoczi <address@hidden>

Thanks, applied to the block branch.

Kevin



reply via email to

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