Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 26 Jan 2013 23:48:54 +0100
From: Lukas Odzioba <lukas.odzioba@...il.com>
To: john-dev@...ts.openwall.com
Subject: Re: Proposed optimizations to pwsafe

2013/1/26 Milen Rangelov <gat3way@...il.com>:
> Just a side note, I just had a look at your opencl pwsafe code and there are
> obvious optimizations that can be done. Some are minor, but the most
> important is the following. You have this:
>
>
> #define Ch(x, y, z) (z ^ (x & (y ^ z)))
> #define Maj(x, y, z) ((y & z) | (x & (y | z)))
>
> If you replace those by:
>
> #define Ch(x,y,z) (bitselect(z,y,x))
> #define Maj(x,y,z) (bitselect(y, x,(z^y)))

Yes I tried that a few days ago on my 5850 and didn't get any speedup.

Thanks for sharing.
Lukas

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.