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 Sat, 2008-09-13 at 09:37 +0200, Sven Neumann wrote:

> It looks like the restrict keyword could be easily wrapped into a macro

The following code seems to do the trick. It introduces G_GNUC_RESTRICT,
which is actually in the GLib namespace. But I hope that we can convince
the GLib developers that it makes sense to add it. At some point we
could then remove our definition:


#ifndef G_GNUC_RESTRICT

#if defined (__GNUC__) && (__GNUC__ >= 4)
#define G_GNUC_RESTRICT __restrict__
#else
#define G_GNUC_RESTRICT
#endif

#endif


I haven't yet tested if this works and how much of a difference it
makes. If I find time later I might try if it helps to optimize some
common code paths in GIMP.


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