Commit b34e483e9639fe3073a49651fe8ec2263e26e911

ckolivas 2012-02-04T09:52:26

Fix phatk kernel not working on non-bitalign capable devices (Nvidia, older ATI).

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/phatk120203.cl b/phatk120203.cl
index ebb0bd2..fa358bb 100644
--- a/phatk120203.cl
+++ b/phatk120203.cl
@@ -83,6 +83,7 @@ __constant uint H[8] = {
 #else // BITALIGN
 	#define Ch(x, y, z) (z ^ (x & (y ^ z)))
 	#define Ma(x, y, z) ((x & z) | (y & (x | z)))
+	#define rot(x, y) rotate((u)x, (u)y)
 	#define rotr(x, y) rotate((u)x, (u)(32-y))
 #endif