[cairo] RFC: helper macros for rect -> box conversions

Chris Wilson chris at chris-wilson.co.uk
Wed Dec 16 07:04:58 PST 2015


On Wed, Dec 16, 2015 at 03:57:19PM +0100, Enrico Weigelt, metux IT consult wrote:
> Hi folks,
> 
> I've seem lots of places where rects are converted to boxes.
> 
> Should we introduce some helper macros / inline functions,
> which later can also be optimized in arch-specific way
> (eg. vector ops) ?
> 
> 
> Maybe something like this ?

Looks good.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the cairo mailing list