From abf00ac8a2b4d71fec14344db166f427cbff9398 Mon Sep 17 00:00:00 2001 From: powturbo Date: Wed, 28 Jun 2017 17:18:43 +0200 Subject: [PATCH] Transform: Byte+Nibble Transpose/Shuffle --- transpose.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/transpose.c b/transpose.c index 3bf3af3..c069849 100644 --- a/transpose.c +++ b/transpose.c @@ -136,10 +136,11 @@ static inline uint64_t xgetbv (int ctr) { #elif defined(__i386__) || defined(__x86_64__) unsigned a, d; __asm("xgetbv" : "=a"(a),"=d"(d) : "c"(ctr) : ); + return (uint64_t)d << 32 | a; #else unsigned a=0, d=0; - #endif return (uint64_t)d << 32 | a; + #endif } static int _cpuiset;