[gegl/samplers] clearer minmod comments in gegl-sampler-lohalo.c
- From: Nicolas Robidoux <nrobidoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/samplers] clearer minmod comments in gegl-sampler-lohalo.c
- Date: Sat, 18 Jun 2011 15:06:57 +0000 (UTC)
commit 9c5b00cceb02cc9ce089ba35ed8ee6aa85377812
Author: Nicolas Robidoux <nicolas robidoux gmail com>
Date: Sat Jun 18 11:06:52 2011 -0400
clearer minmod comments in gegl-sampler-lohalo.c
gegl/buffer/gegl-sampler-lohalo.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler-lohalo.c b/gegl/buffer/gegl-sampler-lohalo.c
index ebda3e9..111e7e9 100644
--- a/gegl/buffer/gegl-sampler-lohalo.c
+++ b/gegl/buffer/gegl-sampler-lohalo.c
@@ -110,7 +110,7 @@
* branch is taken when a=0 (or when a=b), which is why the above
* versions are not as effective for images with regions with constant
* pixel values (or regions with pixel values which vary linearly or
- * bilinearly).
+ * bilinearly, since we apply minmod to pairs of slopes).
*
* The following versions are more suitable for images with flat
* (constant) colour areas, since a, which is a pixel difference, will
@@ -126,7 +126,7 @@
* ( (a_times_b)>=0. ? ( (a_times_a)<=(a_times_b) ? (a) : (b) ) : 0. )
*
* The first variants of both versions, which add one multiplication,
- * may be faster for compilers which replace nested "conditional
+ * may be faster with a compiler that replaces nested "conditional
* moves" by branches.
*/
#define LOHALO_MINMOD(a,b,a_times_a,a_times_b) \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]