#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"
#include "include/rp_gpu.h"
#include "rp.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"
static void sha1_transform (const u32 w0[4], const u32 w1[4], const u32 w2[4], const u32 w3[4], u32 digest[5])
{
u32 w0_t[4];
- w0_t[0] = swap_workaround (w0[0]);
- w0_t[1] = swap_workaround (w0[1]);
- w0_t[2] = swap_workaround (w0[2]);
- w0_t[3] = swap_workaround (w0[3]);
+ w0_t[0] = swap32 (w0[0]);
+ w0_t[1] = swap32 (w0[1]);
+ w0_t[2] = swap32 (w0[2]);
+ w0_t[3] = swap32 (w0[3]);
u32 w1_t[4];
- w1_t[0] = swap_workaround (w1[0]);
- w1_t[1] = swap_workaround (w1[1]);
- w1_t[2] = swap_workaround (w1[2]);
- w1_t[3] = swap_workaround (w1[3]);
+ w1_t[0] = swap32 (w1[0]);
+ w1_t[1] = swap32 (w1[1]);
+ w1_t[2] = swap32 (w1[2]);
+ w1_t[3] = swap32 (w1[3]);
u32 w2_t[4];
u32 w0_t[4];
- w0_t[0] = swap_workaround (w0[0]);
- w0_t[1] = swap_workaround (w0[1]);
- w0_t[2] = swap_workaround (w0[2]);
- w0_t[3] = swap_workaround (w0[3]);
+ w0_t[0] = swap32 (w0[0]);
+ w0_t[1] = swap32 (w0[1]);
+ w0_t[2] = swap32 (w0[2]);
+ w0_t[3] = swap32 (w0[3]);
u32 w1_t[4];
- w1_t[0] = swap_workaround (w1[0]);
- w1_t[1] = swap_workaround (w1[1]);
- w1_t[2] = swap_workaround (w1[2]);
- w1_t[3] = swap_workaround (w1[3]);
+ w1_t[0] = swap32 (w1[0]);
+ w1_t[1] = swap32 (w1[1]);
+ w1_t[2] = swap32 (w1[2]);
+ w1_t[3] = swap32 (w1[3]);
u32 w2_t[4];