Commit 451b82df9707fdfca751f834dbc7895a071cd744

ckolivas 2012-02-10T14:42:47

Convert #if to #ifdef in diablo .cl.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/DiabloMiner120210.cl b/DiabloMiner120210.cl
index 3a5bcb8..9d1d24e 100644
--- a/DiabloMiner120210.cl
+++ b/DiabloMiner120210.cl
@@ -18,14 +18,14 @@
 
 typedef uint z;
 
-#if BITALIGN
+#ifdef BITALIGN
 #pragma OPENCL EXTENSION cl_amd_media_ops : enable
 #define Zrotr(a, b) amd_bitalign((z)a, (z)a, (z)(32 - b))
 #else
 #define Zrotr(a, b) rotate((z)a, (z)b)
 #endif
 
-#if BFI_INT
+#ifdef BFI_INT
 #define ZCh(a, b, c) amd_bytealign(a, b, c)
 #define ZMa(a, b, c) amd_bytealign((c ^ a), (b), (a))
 #else