Skip to content

Commit

Permalink
Keccak: header tweaks that make it build on SSE2, AVX or XOP. Maybe n…
Browse files Browse the repository at this point in the history
…ot 100%

but does work. Emits wads of warnings on AVX and XOP though, and AVX is not
faster than SSE2.
  • Loading branch information
magnumripper committed Apr 17, 2013
1 parent e632531 commit 1fd965b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/KeccakF-1600-opt64-settings.h
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#include "arch.h"

#if defined(__AVX__)
#define UseXOP
#elif defined(__XOP__)
#if defined(__XOP__)
#define UseXOP
#elif defined(__AVX__)
#define UseSSE
#elif defined(__SSE2__)
//#define UseSSE
#define UseBebigokimisa
#else
#define UseBebigokimisa
#endif

#define Unrolling 24
#define UseBebigokimisa
//#define UseBebigokimisa
//#define UseSSE
//#define UseOnlySIMD64
//#define UseMMX
Expand Down
3 changes: 2 additions & 1 deletion src/rawKeccak_512_fmt_plug.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
* based on rawMD4_fmt.c code, with trivial changes by groszek.
*/

#include <string.h>

#include "arch.h"
#include "params.h"
#include "common.h"
#include "formats.h"
#include <string.h>
#include "options.h"
#include "KeccakF-1600-interface.h"
#include "KeccakNISTInterface.h"
Expand Down

0 comments on commit 1fd965b

Please sign in to comment.