mirror of
https://github.com/paboyle/Grid.git
synced 2026-10-20 06:13:17 +01:00
Added single threaded version of the derivative for the Ls vectorised DWF
This commit is contained in:
1 parent
01480da0a8
commit
b812d5e39c
11 files changed
+307
-135
No files matched your search
@@ -386,6 +386,19 @@ class Grid_simd {
|
||||
}
|
||||
}
|
||||
|
||||
///////////////////////////////
|
||||
// Getting single lanes
|
||||
///////////////////////////////
|
||||
inline Scalar_type getlane(int lane) {
|
||||
return ((Scalar_type*)&v)[lane];
|
||||
}
|
||||
|
||||
inline void putlane(const Scalar_type &S, int lane){
|
||||
((Scalar_type*)&v)[lane] = S;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}; // end of Grid_simd class definition
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user