[gegl] lohalo: for loops -> do whiles
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] lohalo: for loops -> do whiles
- Date: Fri, 1 Jul 2011 03:38:42 +0000 (UTC)
commit e4e0e5967b2ad227ad131963216ebcc711f2fb66
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]