Skip to content

Commit

Permalink
improvement to Ma thanks rethaw
Browse files Browse the repository at this point in the history
  • Loading branch information
m0mchil committed Jun 27, 2011
1 parent 96e58ea commit 3d43c4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phatk.cl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ __constant uint H[8] = {
#define Ch(x, y, z) amd_bytealign(x, y, z)

// Ma can also be implemented in terms of BFI_INT...
#define Ma(x, y, z) amd_bytealign((y), (x | z), (z & x))
#define Ma(x, y, z) amd_bytealign( (z^x), (y), (x) )
#else
#define Ch(x, y, z) (z ^ (x & (y ^ z)))
#define Ma(x, y, z) ((x & z) | (y & (x | z)))
Expand Down

0 comments on commit 3d43c4e

Please sign in to comment.