#define DGST_R3 1
#include "include/kernel_functions.c"
-#include "types_ocl.c"
-#include "common.c"
+#include "OpenCL/types_ocl.c"
+#include "OpenCL/common.c"
-#define COMPARE_S "check_single_comp4.c"
-#define COMPARE_M "check_multi_comp4.c"
+#define COMPARE_S "OpenCL/check_single_comp4.c"
+#define COMPARE_M "OpenCL/check_multi_comp4.c"
// no unicode yet
* sha1
*/
- w0_t[0] = swap_workaround (w0_t[0]);
- w0_t[1] = swap_workaround (w0_t[1]);
- w0_t[2] = swap_workaround (w0_t[2]);
- w0_t[3] = swap_workaround (w0_t[3]);
- w1_t[0] = swap_workaround (w1_t[0]);
- w1_t[1] = swap_workaround (w1_t[1]);
- w1_t[2] = swap_workaround (w1_t[2]);
- w1_t[3] = swap_workaround (w1_t[3]);
- w2_t[0] = swap_workaround (w2_t[0]);
- w2_t[1] = swap_workaround (w2_t[1]);
- w2_t[2] = swap_workaround (w2_t[2]);
- w2_t[3] = swap_workaround (w2_t[3]);
- w3_t[0] = swap_workaround (w3_t[0]);
- w3_t[1] = swap_workaround (w3_t[1]);
- //w3_t[2] = swap_workaround (w3_t[2]);
- //w3_t[3] = swap_workaround (w3_t[3]);
+ w0_t[0] = swap32 (w0_t[0]);
+ w0_t[1] = swap32 (w0_t[1]);
+ w0_t[2] = swap32 (w0_t[2]);
+ w0_t[3] = swap32 (w0_t[3]);
+ w1_t[0] = swap32 (w1_t[0]);
+ w1_t[1] = swap32 (w1_t[1]);
+ w1_t[2] = swap32 (w1_t[2]);
+ w1_t[3] = swap32 (w1_t[3]);
+ w2_t[0] = swap32 (w2_t[0]);
+ w2_t[1] = swap32 (w2_t[1]);
+ w2_t[2] = swap32 (w2_t[2]);
+ w2_t[3] = swap32 (w2_t[3]);
+ w3_t[0] = swap32 (w3_t[0]);
+ w3_t[1] = swap32 (w3_t[1]);
+ //w3_t[2] = swap32 (w3_t[2]);
+ //w3_t[3] = swap32 (w3_t[3]);
u32 a = SHA1M_A;
u32 b = SHA1M_B;
* sha1
*/
- w0_t[0] = swap_workaround (w0_t[0]);
- w0_t[1] = swap_workaround (w0_t[1]);
- w0_t[2] = swap_workaround (w0_t[2]);
- w0_t[3] = swap_workaround (w0_t[3]);
- w1_t[0] = swap_workaround (w1_t[0]);
- w1_t[1] = swap_workaround (w1_t[1]);
- w1_t[2] = swap_workaround (w1_t[2]);
- w1_t[3] = swap_workaround (w1_t[3]);
- w2_t[0] = swap_workaround (w2_t[0]);
- w2_t[1] = swap_workaround (w2_t[1]);
- w2_t[2] = swap_workaround (w2_t[2]);
- w2_t[3] = swap_workaround (w2_t[3]);
- w3_t[0] = swap_workaround (w3_t[0]);
- w3_t[1] = swap_workaround (w3_t[1]);
- //w3_t[2] = swap_workaround (w3_t[2]);
- //w3_t[3] = swap_workaround (w3_t[3]);
+ w0_t[0] = swap32 (w0_t[0]);
+ w0_t[1] = swap32 (w0_t[1]);
+ w0_t[2] = swap32 (w0_t[2]);
+ w0_t[3] = swap32 (w0_t[3]);
+ w1_t[0] = swap32 (w1_t[0]);
+ w1_t[1] = swap32 (w1_t[1]);
+ w1_t[2] = swap32 (w1_t[2]);
+ w1_t[3] = swap32 (w1_t[3]);
+ w2_t[0] = swap32 (w2_t[0]);
+ w2_t[1] = swap32 (w2_t[1]);
+ w2_t[2] = swap32 (w2_t[2]);
+ w2_t[3] = swap32 (w2_t[3]);
+ w3_t[0] = swap32 (w3_t[0]);
+ w3_t[1] = swap32 (w3_t[1]);
+ //w3_t[2] = swap32 (w3_t[2]);
+ //w3_t[3] = swap32 (w3_t[3]);
u32 a = SHA1M_A;
u32 b = SHA1M_B;