projects
/
hashcat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de2074d
)
Fix types_ocl.c to solve issue https://github.com/hashcat/oclHashcat/issues/344
author
Jens Steube
<jens.steube@gmail.com>
Wed, 18 May 2016 07:35:51 +0000
(09:35 +0200)
committer
Jens Steube
<jens.steube@gmail.com>
Wed, 18 May 2016 07:35:51 +0000
(09:35 +0200)
OpenCL/types_ocl.c
patch
|
blob
|
history
diff --git
a/OpenCL/types_ocl.c
b/OpenCL/types_ocl.c
index
be492db
..
6104de6
100644
(file)
--- a/
OpenCL/types_ocl.c
+++ b/
OpenCL/types_ocl.c
@@
-597,7
+597,7
@@
inline u64x rotl64 (const u64x a, const u32 n)
inline u32x __bfe (const u32x a, const u32x b, const u32x c)
{
- #define BIT(x) (1 << (x))
+ #define BIT(x) ((u32x) (1u) << (x))
#define BIT_MASK(x) (BIT (x) - 1)
#define BFE(x,y,z) (((x) >> (y)) & BIT_MASK (z))
@@
-610,7
+610,7
@@
inline u32x __bfe (const u32x a, const u32x b, const u32x c)
inline u32 __bfe_S (const u32 a, const u32 b, const u32 c)
{
- #define BIT(x) (1 << (x))
+ #define BIT(x) (1u << (x))
#define BIT_MASK(x) (BIT (x) - 1)
#define BFE(x,y,z) (((x) >> (y)) & BIT_MASK (z))