Re: Question about the use of C99/gcc built-in math intrinsics within GEGL on gfloats

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
Gegl-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gegl-developer

[Index of Archives]     [Yosemite News]     [Yosemite Photos]     [gtk]     [GIMP Users]     [KDE]     [Gimp's Home]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux