Hi, Tom,

> -----Original Message-----
> From: Tomas Carnecky [mailto:[email protected]]
> Sent: Wednesday, August 11, 2010 6:23 PM
> To: Cui, Hunk
> Cc: [email protected]
> Subject: Re: what is the effect of RADEON_ALIGN (macros) in
ATI-driver?
> 
> On 8/11/10 12:03 PM, Cui, Hunk wrote:
> >     But I'm confused by the code, not really sure of the calculate:
> > YDstPitch = (width + 31) & ~31; & UVDstPitch = ((width >> 1) + 15) &
> > ~15;
> 
> '(variable + X) & ~X' is a common idiom to align the variable to the
> next multiple of (X+1).

        Thank you for your hints, Could you give more explanation and
some example to describe it? :)
        I need more info about this. :)

Thanks,
Hunk Cui

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to