mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
mac , mult routines
Lines# with '#' will be ignored, and an empty message aborts the commit.
This commit is contained in:
parent
a38762159c
commit
9b5d31ffc1
@ -9,12 +9,6 @@
|
||||
|
||||
#include <immintrin.h>
|
||||
|
||||
//#ifndef KNC_ONLY_STORES
|
||||
//#define _mm512_storenrngo_ps _mm512_store_ps // not present in AVX512
|
||||
//#define _mm512_storenrngo_pd _mm512_store_pd // not present in AVX512
|
||||
//#endif
|
||||
|
||||
|
||||
namespace Optimization {
|
||||
|
||||
struct Vsplat{
|
||||
@ -197,6 +191,15 @@ namespace Optimization {
|
||||
};
|
||||
|
||||
struct Mult{
|
||||
|
||||
inline void mac(__m512 &a, __m512 b, __m512 c){
|
||||
a= _mm512_fmadd_ps( b, c, a);
|
||||
}
|
||||
|
||||
inline void mac(__m512d &a, __m512d b, __m512d c){
|
||||
a= _mm512_fmadd_pd( b, c, a);
|
||||
}
|
||||
|
||||
// Real float
|
||||
inline __m512 operator()(__m512 a, __m512 b){
|
||||
return _mm512_mul_ps(a,b);
|
||||
|
Loading…
Reference in New Issue
Block a user