Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 0fd1b39c authored by BRAMAS Berenger's avatar BRAMAS Berenger
Browse files

add intrsec sse functions

parent e697742c
No related branches found
No related tags found
No related merge requests found
#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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment