Commit 0fd1b39c authored by BRAMAS Berenger's avatar BRAMAS Berenger

add intrsec sse functions

parent e697742c
#ifndef FSSE_HPP
#define FSSE_HPP
#include <xmmintrin.h> // SSE
#include <emmintrin.h> //SSE2
#include <pmmintrin.h> //SSE3
#include <tmmintrin.h> //SSSE3
#include <smmintrin.h> // SSE4
#ifdef __INTEL_COMPILER
__m128d& operator+=(const __m128d& v1, const __m128d& v2){
return (v1 = _mm_add_pd(v1, v2));
}
__m128d& operator-=(const __m128d& v1, const __m128d& v2){
return (v1 = _mm_sub_pd(v1, v2));
}
__m128d& operator*=(const __m128d& v1, const __m128d& v2){
return (v1 = _mm_mul_pd(v1, v2));
}
__m128d& operator/=(const __m128d& v1, const __m128d& v2){
return (v1 = _mm_div_pd(v1, v2));
}
__m128d operator+(const __m128d& v1, const __m128d& v2){
return _mm_add_pd(v1, v2);
}
__m128d operator-(const __m128d& v1, const __m128d& v2){
return _mm_sub_pd(v1, v2);
}
__m128d operator*(const __m128d& v1, const __m128d& v2){
return _mm_mul_pd(v1, v2);
}
__m128d operator/(const __m128d& v1, const __m128d& v2){
return _mm_div_pd(v1, v2);
}
#endif
#endif // FSSE_HPP
Markdown is supported
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