new handling of vector capabilities

This commit is contained in:
Martin Reinecke 2012-07-18 13:24:03 +02:00
parent 84547d9536
commit 4a05bef5d0
2 changed files with 2 additions and 24 deletions

View file

@ -32,9 +32,9 @@
#ifndef SHARP_VECUTIL_H
#define SHARP_VECUTIL_H
#if (defined (__AVX__) && (!defined (DISABLE_AVX)) && (!defined (DISABLE_SSE2)))
#if (defined (__AVX__))
#define VLEN 4
#elif (defined (__SSE2__) && (!defined (DISABLE_SSE2)))
#elif (defined (__SSE2__))
#define VLEN 2
#else
#define VLEN 1