Permalink
Browse files

Forgot to get these defined for MSVC

  • Loading branch information...
1 parent 1f29e97 commit 9b279974c192c3cd57dba958419514896ab9fe7b @floodyberry committed Jun 24, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 siphash_impl.h
View
@@ -11,6 +11,13 @@
typedef unsigned int uint32_t;
typedef unsigned __int64 uint64_t;
+
+ #if (_MSC_VER >= 1500)
+ #define __SSSE3__
+ #endif
+ #if (_MSC_VER > 1200) || defined(_mm_free)
+ #define __SSE2__
+ #endif
#else
#include <stdint.h>
#include <stdlib.h>
@@ -20,7 +27,7 @@
#define ROTL64(a,b) (((a)<<(b))|((a)>>(64-b)))
#define MM16 __attribute__((aligned(16)))
#endif
-
+
#if defined(__SSE2__)
#include <emmintrin.h>
typedef __m128i xmmi;

0 comments on commit 9b27997

Please sign in to comment.