[gegl: 15/25] sampler-nearest: const & restrict
- From: Nicolas Robidoux <nrobidoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl: 15/25] sampler-nearest: const & restrict
- Date: Sun, 25 Nov 2012 02:20:46 +0000 (UTC)
commit 6e962d45e97de8899a8762dd5f8685f9b99ee9d3
Author: Nicolas Robidoux <nrobidoux git gnome org>
Date: Sat Nov 24 09:19:13 2012 -0500
sampler-nearest: const & restrict
gegl/buffer/gegl-sampler-nearest.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler-nearest.c b/gegl/buffer/gegl-sampler-nearest.c
index 3b82c87..fd6d1b3 100644
--- a/gegl/buffer/gegl-sampler-nearest.c
+++ b/gegl/buffer/gegl-sampler-nearest.c
@@ -33,12 +33,12 @@ enum
};
static void
-gegl_sampler_nearest_get (GeglSampler *self,
- gdouble absolute_x,
- gdouble absolute_y,
- GeglMatrix2 *scale,
- void *output,
- GeglAbyssPolicy repeat_mode);
+gegl_sampler_nearest_get ( GeglSampler* restrict self,
+ const gdouble absolute_x,
+ const gdouble absolute_y,
+ GeglMatrix2 *scale,
+ void* restrict *output,
+ GeglAbyssPolicy repeat_mode);
G_DEFINE_TYPE (GeglSamplerNearest, gegl_sampler_nearest, GEGL_TYPE_SAMPLER)
@@ -66,12 +66,12 @@ gegl_sampler_nearest_init (GeglSamplerNearest *self)
}
void
-gegl_sampler_nearest_get (GeglSampler *self,
- gdouble absolute_x,
- gdouble absolute_y,
- GeglMatrix2 *scale,
- void *output,
- GeglAbyssPolicy repeat_mode)
+gegl_sampler_nearest_get ( GeglSampler* restrict self,
+ const gdouble absolute_x,
+ const gdouble absolute_y,
+ GeglMatrix2 *scale,
+ void* restrict *output,
+ GeglAbyssPolicy repeat_mode);
{
gfloat *sampler_bptr;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]