qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] bcm2835_property: use cached values when queryi


From: Andrew Baumann
Subject: Re: [Qemu-devel] [PATCH] bcm2835_property: use cached values when querying framebuffer
Date: Fri, 22 Apr 2016 11:30:23 +0000

> From: Sylvain Garrigues [mailto:address@hidden
> Sent: Friday, 22 April 2016 13:27
> 
> Le 22 avr. 2016 à 13:22, Andrew Baumann
> <address@hidden> a écrit :
> >> +            stl_le_phys(&s->dma_as, value + 16, tmp_xres * tmp_yres
> >> + * (tmp_bpp >> 3));
> >
> > Personal style nit: I prefer * 8 rather than >> 3, because it's more 
> > immediately
> obvious what you're computing, a trivial optimisation for the compiler, and in
> this specific example wouldn't need the brackets to ensure the correct 
> operator
> precedence.
> >
> > But in any case,
> > Reviewed-by: Andrew Baumann <address@hidden>
> 
> 
> Thanks! It is actually / 8, but I used >> 3 to remain consistent with what I 
> read
> in hw/display/bcm2835_fb.c. Feel free to adapt.

Duh, yes sorry it's obviously /8. The _fb code was probably like that in the 
original version.

But I won't be merging this patch (hopefully Peter can do that?), so it's 
probably best if you make the tweak and resend with my Reviewed-by.

Andrew

reply via email to

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