From 04072a5e1f72fecc87e220abfc1fbaf60cb57f56 Mon Sep 17 00:00:00 2001 From: paboyle Date: Tue, 19 Apr 2016 15:15:34 -0700 Subject: [PATCH] Rotate is a temporary hack. Would like to merge ALL permutes as rotates of length 2, and make any rotate active over any subset of lane bits. This is hard, and requires general permute; current intrinsics mean this is only really possible for specific case by case encodings as presently performed. Intel could produce a general permute.. would help. IBM did it in VMX. --- lib/Simd.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Simd.h b/lib/Simd.h index 27a5ec46..de49cca7 100644 --- a/lib/Simd.h +++ b/lib/Simd.h @@ -47,6 +47,8 @@ Author: paboyle #define _MM_SELECT_FOUR_TWO (A,B,C,D) _MM_SELECT_EIGHT_TWO(0,0,0,0,A,B,C,D) #define _MM_SELECT_TWO_TWO (A,B) _MM_SELECT_FOUR_TWO(0,0,A,B) +#define RotateBit (0x100) + namespace Grid { typedef uint32_t Integer;