projects
/
hashcat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7b9157
)
Fix algorithms based on 64 bit datatypes for older NV cards
author
jsteube
<jens.steube@gmail.com>
Tue, 19 Jan 2016 20:27:39 +0000
(21:27 +0100)
committer
jsteube
<jens.steube@gmail.com>
Tue, 19 Jan 2016 20:27:39 +0000
(21:27 +0100)
OpenCL/types_ocl.c
patch
|
blob
|
history
diff --git
a/OpenCL/types_ocl.c
b/OpenCL/types_ocl.c
index
c68ab90
..
137f67e
100644
(file)
--- a/
OpenCL/types_ocl.c
+++ b/
OpenCL/types_ocl.c
@@
-282,6
+282,7
@@
static inline u32x rotl32 (const u32x a, const u32 n)
return rotate (a, n);
}
+#if CUDA_ARCH >= 350
static inline u64 rotr64 (const u64 a, const u32 n)
{
u32 il;
@@
-309,6
+310,12
@@
static inline u64 rotr64 (const u64 a, const u32 n)
return r;
}
+#else
+static inline u64 rotr64 (const u64 a, const u32 n)
+{
+ return rotate (a, (u64) 64 - n);
+}
+#endif
static inline u64 rotl64 (const u64 a, const u32 n)
{