Move files from include/ to OpenCL/ if they are used within kernels
[hashcat.git] / OpenCL / inc_comp_single.cl
diff --git a/OpenCL/inc_comp_single.cl b/OpenCL/inc_comp_single.cl
new file mode 100644 (file)
index 0000000..631a8bc
--- /dev/null
@@ -0,0 +1,12 @@
+if ((r0 == search[0])
+ && (r1 == search[1])
+ && (r2 == search[2])
+ && (r3 == search[3]))
+{
+  const u32 final_hash_pos = digests_offset + 0;
+
+  if (atomic_inc (&hashes_shown[final_hash_pos]) == 0)
+  {
+    mark_hash (plains_buf, d_return_buf, salt_pos, 0, final_hash_pos, gid, il_pos);
+  }
+}