#define _MD5_
-#include "include/constants.h"
-#include "include/kernel_vendor.h"
+#include "inc_hash_constants.h"
+#include "inc_vendor.cl"
#define DGST_R0 0
#define DGST_R1 1
#define DGST_R2 2
#define DGST_R3 3
-#include "include/kernel_functions.c"
-#include "OpenCL/types_ocl.c"
-#include "OpenCL/common.c"
+#include "inc_hash_functions.cl"
+#include "inc_types.cl"
+#include "inc_common.cl"
-#define COMPARE_S "OpenCL/check_single_comp4.c"
-#define COMPARE_M "OpenCL/check_multi_comp4.c"
+#define COMPARE_S "inc_comp_single.cl"
+#define COMPARE_M "inc_comp_multi.cl"
__constant u32 padding[8] =
{
__local u32 *ptr = (__local u32 *) rc4_key->S;
+ #ifdef _unroll
#pragma unroll
+ #endif
for (u32 i = 0; i < 64; i++)
{
*ptr++ = v; v += a;
u32 j = 0;
+ #ifdef _unroll
#pragma unroll
+ #endif
for (u32 i = 0; i < 16; i++)
{
u32 idx = i * 16;
u8 rc4_next_16 (__local RC4_KEY *rc4_key, u8 i, u8 j, const u32 in[4], u32 out[4])
{
+ #ifdef _unroll
#pragma unroll
+ #endif
for (u32 k = 0; k < 4; k++)
{
u32 xor4 = 0;