mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-02 21:14:32 +00:00 
			
		
		
		
	checked performance of new vector libaries.
Added check for c++11 support on the configure.ac
This commit is contained in:
		@@ -4,7 +4,7 @@
 | 
			
		||||
 | 
			
		||||
  Using intrinsics
 | 
			
		||||
*/
 | 
			
		||||
// Time-stamp: <2015-05-22 15:51:24 neo>
 | 
			
		||||
// Time-stamp: <2015-05-22 18:58:27 neo>
 | 
			
		||||
//----------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
#include <immintrin.h>
 | 
			
		||||
@@ -307,9 +307,7 @@ namespace Optimization {
 | 
			
		||||
    conv.v = b;
 | 
			
		||||
    switch (perm){
 | 
			
		||||
      // 8x32 bits=>3 permutes
 | 
			
		||||
    case 2: 
 | 
			
		||||
      conv.f = _mm256_shuffle_ps(conv.f,conv.f,_MM_SHUFFLE(2,3,0,1)); 
 | 
			
		||||
      break;
 | 
			
		||||
    case 2: conv.f = _mm256_shuffle_ps(conv.f,conv.f,_MM_SHUFFLE(2,3,0,1)); break;
 | 
			
		||||
    case 1: conv.f = _mm256_shuffle_ps(conv.f,conv.f,_MM_SHUFFLE(1,0,3,2)); break;
 | 
			
		||||
    case 0: conv.f = _mm256_permute2f128_ps(conv.f,conv.f,0x01); break;
 | 
			
		||||
    default: assert(0); break;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user