[Gegl-developer] Question about the use of C99/gcc built-in math intrinsics within GEGL on gfloats
Sven Neumann
sven at gimp.org
Sat Sep 13 00:37:52 PDT 2008
Hi,
On Fri, 2008-09-12 at 19:45 -0400, Nicolas Robidoux wrote:
> There is another C99/gcc built-in with the potential to speed up code a lot: the restrict keyword.
>
> See:
>
> http://www.cellperformance.com/mike_acton/2006/05/demystifying_the_restrict_keyw.html
It looks like the restrict keyword could be easily wrapped into a macro
that evaluates to "restrict" on compilers that support it and to "" on
compilers where support for it is missing. So if we should decide that
it is too early for using C99 features, we could still use "restrict".
We just need to add a configure check for it. We could even suggest that
it is added to GLib as G_GNUC_RESTRICT.
Sven
More information about the Gegl-developer
mailing list