[cairo] [cairo-commit] 4 commits - src/cairo-bentley-ottmann.c src/cairo-compiler-private.h src/cairo-path-stroke.c src/cairo-wideint.c src/cairo-wideint-private.h test/Makefile.am
Behdad Esfahbod
behdad at behdad.org
Mon Oct 6 08:50:08 PDT 2008
Chris Wilson wrote:
> New commits:
> commit c98c1cb5325bbc05c88ea350ff99d6eaf56fd339
> Author: Chris Wilson <chris at chris-wilson.co.uk>
> Date: Sun Oct 5 10:39:10 2008 +0100
>
> [wideint] Mark functions as pure
>
> Take advantage of the gcc function attribute 'pure', which tells gcc that
> the function result only depends upon its arguments and it has zero side
> effects (e.g. it does not clobber memory). This gives gcc greater
> opportunity to rearrange and optimize the wideint arithmetic.
Isn't in fact the 'const' attribute more appropriate?
behdad
More information about the cairo
mailing list