Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Commit

Permalink
Adding bitless's hack
Browse files Browse the repository at this point in the history
  • Loading branch information
Diablo-D3 committed Jun 27, 2011
1 parent c4ed37f commit ae16718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/DiabloMiner.cl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ typedef uint z;
#pragma OPENCL EXTENSION cl_amd_media_ops : enable
#define Zrotr(a, b) amd_bitalign((z)a, (z)a, (z)(32 - b))
#define Ch(a, b, c) amd_bytealign(a, b, c)
#define Ma(a, b, c) amd_bytealign((b), (a | c), (c & a))
#define Ma(a, b, c) amd_bytealign((c ^ a), (b), (a))
#else
#define Zrotr(a, b) rotate((z)a, (z)b)
#define Ch(a, b, c) (c ^ (a & (b ^ c)))
Expand Down

0 comments on commit ae16718

Please sign in to comment.