Hy all, I'm new here and pretty new with this bitcoin thing.
I tried to modify phatk kernel as explained and I was able to speed up my mining as all of you.
Really don't know when and how this amd_bytealign function is called, anyway I think it should be better to write it as follows
#define Ma(x, y, z) amd_bytealign(((z) ^ (x)), (y), (x))
That said, I took a look at the rest of the phatk kernel and found what seems to be a sintax error. In my file it's on line 74:
#define r1(x) ((rot(x],15)^rot(x,13)^((x)>>10U)))
Mmmm... that poor and lonely square bracket... rewrite it as follows
#define r1(x) ((rot(x,15)^rot(x,13)^((x)>>10U)))
These modifications did not speed up my mining power but it seems that my rejecteds almost halved.
If this helps you as well, donations are obviously welcome

1CbRmFAYrGYhzQibmE5A1CWMp7srFT4upy
Krypta