progminer zano miner fork https://github.com/hyle-team/progminer
This commit is contained in:
19
zano/libethash-cuda/fnv.cuh
Normal file
19
zano/libethash-cuda/fnv.cuh
Normal file
@@ -0,0 +1,19 @@
|
||||
#define FNV_PRIME 0x01000193
|
||||
|
||||
#define fnv(x, y) ((x)*FNV_PRIME ^ (y))
|
||||
|
||||
DEV_INLINE uint4 fnv4(uint4 a, uint4 b)
|
||||
{
|
||||
uint4 c;
|
||||
c.x = a.x * FNV_PRIME ^ b.x;
|
||||
c.y = a.y * FNV_PRIME ^ b.y;
|
||||
c.z = a.z * FNV_PRIME ^ b.z;
|
||||
c.w = a.w * FNV_PRIME ^ b.w;
|
||||
return c;
|
||||
}
|
||||
|
||||
DEV_INLINE uint32_t fnv_reduce(uint4 v)
|
||||
{
|
||||
return fnv(fnv(fnv(v.x, v.y), v.z), v.w);
|
||||
}
|
||||
|
Reference in New Issue
Block a user