Commit 51fc44d6 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

no automatic vectorization.


Former-commit-id: 22d30250f61285eb8310540229860c3ea06400c1
parent 1705ca01
......@@ -27,7 +27,7 @@
#define VEC_MACRO(elcount, type) __attribute__((vector_size((elcount)*sizeof(type)))) type
/* So what will the vector size be? */
#ifdef __AVX__
#ifdef NO__AVX__
#define VECTORIZE
#define VEC_SIZE 8
#define VEC_FLOAT __m256
......@@ -54,7 +54,7 @@
#define vec_dbl_ftoi(a) _mm256_cvttpd_epi32(a)
#define vec_dbl_fmin(a,b) _mm256_min_pd(a,b)
#define vec_dbl_fmax(a,b) _mm256_max_pd(a,b)
#elif defined( __SSE2__ )
#elif defined( NO__SSE2__ )
#define VECTORIZE
#define VEC_SIZE 4
#define VEC_FLOAT __m128
......@@ -84,23 +84,10 @@
#else
#define VEC_SIZE 4
#endif
// #ifdef __AVX__
// #define VEC_SIZE 8
// #define VEC_FLOAT VEC_MACRO(8,float)
// #define VEC_DOUBLE VEC_MACRO(4,double)
// #define VECTORIZE
// #elif defined(__SSE2__)
// #define VEC_SIZE 4
// #define VEC_FLOAT VEC_MACRO(4,float)
// #define VEC_DOUBLE VEC_MACRO(2,double)
// #define VECTORIZE
// #endif
/* Define the composite types for element access. */
#ifdef VECTORIZE
typedef union {
// VEC_MACRO(VEC_SIZE,float) v;
// VEC_MACRO(VEC_SIZE,int) m;
VEC_FLOAT v;
VEC_DBL vd;
VEC_INT m;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment