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


_______________________________________________
Gegl-developer mailing list
[email protected]
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gegl-developer

Reply via email to