qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] cleanup of ROUND_UP-like lines


From: Hu Tao
Subject: Re: [Qemu-devel] [PATCH] cleanup of ROUND_UP-like lines
Date: Wed, 2 Jul 2014 15:56:53 +0800
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Jul 01, 2014 at 02:42:43PM -0600, Eric Blake wrote:
> On 06/26/2014 09:50 PM, Hu Tao wrote:
> > On Thu, Jun 26, 2014 at 10:55:33AM -0600, Eric Blake wrote:
> >> On 06/26/2014 12:13 AM, Hu Tao wrote:
> >>> We already have ROUND_UP but there are similar macros and ROUND_UP-like
> >>> lines all around, replace them with ROUND_UP and clean up similar macros.
> >>>
> >>> Signed-off-by: Hu Tao <address@hidden>
> >>> ---
> >>
> >> All of these conversions are correct, so:
> >> Reviewed-by: Eric Blake <address@hidden>
> > 
> > Thanks for review!
> 
> >> tcg/ppc/tcg-target.c-#define FRAME_SIZE ((TCG_TARGET_CALL_STACK_OFFSET   \
> >> tcg/ppc/tcg-target.c-                     + TCG_STATIC_CALL_ARGS_SIZE    \
> >> tcg/ppc/tcg-target.c-                     + CPU_TEMP_BUF_SIZE            \
> >> tcg/ppc/tcg-target.c-                     + REG_SAVE_SIZE                \
> >> tcg/ppc/tcg-target.c-                     + TCG_TARGET_STACK_ALIGN - 1)  \
> >> tcg/ppc/tcg-target.c:                    & -TCG_TARGET_STACK_ALIGN)
> > 
> > How did you find this one? Your pattern below just shows the last line.
> 
> But the last line had the word ALIGN in it, so I looked at the context
> and found that it was indeed a rounding operation.
> 
> >> before I quit looking for more.  (I just manually read through
> >>  git grep '[^&]& [~-]'
> >> which has a lot of noise for non-rounding uses, but definitely found
> >> some missed cases)
> 
> Are you going to submit a v2?  As this does not appear to be a bug fix,
> and today is hard freeze, this is probably 2.2 material.

Yes. I'm fine it gets in after 2.1.

Regards,
Hu



reply via email to

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