From eda3603bf3e41e4392476eccb153ac367e0a90a6 Mon Sep 17 00:00:00 2001
From: tevador <tevador@gmail.com>
Date: Tue, 8 Oct 2019 16:36:10 +0200
Subject: [PATCH] Undefine _mm_roti_epi64 if defined

---
 src/blake2/blamka-round-ssse3.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/blake2/blamka-round-ssse3.h b/src/blake2/blamka-round-ssse3.h
index 1fa5595..f2d3b5d 100644
--- a/src/blake2/blamka-round-ssse3.h
+++ b/src/blake2/blamka-round-ssse3.h
@@ -43,6 +43,10 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #include <intrin.h>
 #endif
 
+#ifdef _mm_roti_epi64 //clang defines it using the XOP instruction set
+#undef _mm_roti_epi64
+#endif
+
 #define r16                                                                    \
     (_mm_setr_epi8(2, 3, 4, 5, 6, 7, 0, 1, 10, 11, 12, 13, 14, 15, 8, 9))
 #define r24                                                                    \