Research Article
Inastemp: A Novel Intrinsics-as-Template Library for Portable SIMD-Vectorization
Code 6
Inastemp example using the SSE4 Inastemp class (not generic).
(1) void aFunction(const double input, double output)āā// ptr a pointer not aligned | (2) InaVecSSE4<double> sse4_9 = 9.0; | (3) const InaVecSSE4<double> result = 4.5 + sse4_9 InaVecSSE4<double>(input); | (4) result.storeInArray(output); | (5) |
|