[python-dtcwt] 145/497: opencl: remove unused code in kernel

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:05:58 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/sid
in repository python-dtcwt.

commit 8e6a5ceebc75485f4b1522dfc185b704c5514ba1
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date:   Thu Nov 7 13:01:53 2013 +0000

    opencl: remove unused code in kernel
---
 dtcwt/opencl/lowlevel.py | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/dtcwt/opencl/lowlevel.py b/dtcwt/opencl/lowlevel.py
index 85ae6db..cfbce4f 100644
--- a/dtcwt/opencl/lowlevel.py
+++ b/dtcwt/opencl/lowlevel.py
@@ -347,10 +347,6 @@ int4 reflect(int4 x, int4 x_min, int4 x_max)
     int4 rng_by_2 = 2 * rng;
     int4 mod = (x - x_min) % rng_by_2;
     int4 normed_mod = select(mod, mod + rng_by_2, mod < 0);
-
-    int4 y1 = convert_int4(abs((x - x_min) % (x_max - x_min))) + x_min;
-    int4 y2 = convert_int4(abs((x_max - x - 1) % (x_max - x_min))) + x_min;
-    int4 y3 = convert_int4(abs((x - x_min) % (2 * (x_max - x_min))) + x_min) >= x_max;
     return select(normed_mod, rng_by_2 - normed_mod - (int4)(1,1,1,1), normed_mod >= rng) + x_min;
 }
 '''

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-dtcwt.git



More information about the debian-science-commits mailing list