More fixes for general OpenCL platforms
[hashcat.git] / OpenCL / m03000_a3.cl
index c9f8482..9d0bee0 100644 (file)
 #define KXX_DECL  volatile
 #endif
 
+#ifdef IS_UNKNOWN
+#define KXX_DECL
+#endif
+
 #ifdef IS_NV
 
 #if CUDA_ARCH >= 500
@@ -898,7 +902,7 @@ static void s8 (const u32 a1, const u32 a2, const u32 a3, const u32 a4, const u3
 #endif
 #endif
 
-#ifdef IS_AMD
+#if defined IS_AMD || IS_UNKNOWN
 
 /*
  * Bitslice DES S-boxes making use of a vector conditional select operation
@@ -1484,6 +1488,10 @@ static void DES (const u32 K00, const u32 K01, const u32 K02, const u32 K03, con
   #pragma unroll
   #endif
 
+  #ifdef IS_UNKNOWN
+  #pragma unroll 1
+  #endif
+
   for (u32 i = 0; i < 2; i++)
   {
     if (i) KEYSET10 else KEYSET00