[gegl/samplers] lohalo: for loops -> do whiles
- From: Nicolas Robidoux <nrobidoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/samplers] lohalo: for loops -> do whiles
- Date: Sat, 25 Jun 2011 20:39:04 +0000 (UTC)
commit bdbb390cc636880ee41ab84b3225f720658b6986
Author: Nicolas Robidoux <nicolas robidoux gmail com>
Date: Sat Jun 25 16:38:58 2011 -0400
lohalo: for loops -> do whiles
gegl/buffer/gegl-sampler-lohalo.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler-lohalo.c b/gegl/buffer/gegl-sampler-lohalo.c
index 5a5aa48..a0d210b 100644
--- a/gegl/buffer/gegl-sampler-lohalo.c
+++ b/gegl/buffer/gegl-sampler-lohalo.c
@@ -185,9 +185,10 @@
/*
- * Macros for Knuth's floored division:
+ * Special case of of Knuth's floored division, that is:
+ *
+ * FLOORED_DIVISION(a,b) (((a) - ((a)<0 ? (b)-1 : 0)) / (b))
*/
-/* #define LOHALO_FLOORED_DIVISION(a,b) (((a) - ((a)<0 ? (b)-1 : 0)) / (b)) */
#define LOHALO_FLOORED_DIVISION_BY_2(a) (((a) - ((a)>=0 ? 0 : 1)) / 2)
/*
@@ -272,7 +273,7 @@ gegl_sampler_lohalo_class_init (GeglSamplerLohaloClass *klass)
* LBB-Nohalo component of the sampler. If you use something else for
* level 0, you need to change the code.
*/
-#define LOHALO_CONTEXT_RECT_SIZE (5)
+#define LOHALO_CONTEXT_RECT_SIZE (5)
#define LOHALO_CONTEXT_RECT_SHIFT (5)
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]