FastLED 3.10.8
Loading...
Searching...
No Matches

◆ benchS16x16_4()

template<typename Op>
int64_t autoresearch::simd_check::benchS16x16_4 ( int iters,
Op op )
inline

Definition at line 1152 of file AutoResearchSimd.h.

1152 {
1153 fl::s16x16 a0(1.5f), a1(2.3f), a2(0.7f), a3(3.1f);
1154 fl::s16x16 b0(0.5f), b1(1.2f), b2(2.0f), b3(0.9f);
1156 uint32_t t0 = micros();
1157 for (int i = 0; i < iters; i++) {
1158 a0 = op(a0, b0); a1 = op(a1, b1);
1159 a2 = op(a2, b2); a3 = op(a3, b3);
1160 b0 = a0 + bump; b1 = a1 + bump;
1161 b2 = a2 + bump; b3 = a3 + bump;
1162 }
1163 uint32_t t1 = micros();
1164 simdBenchmarkState().sink = static_cast<uint32_t>(a0.raw());
1165 return static_cast<int64_t>(t1 - t0);
1166}
static constexpr FASTLED_FORCE_INLINE s16x16 from_raw(i32 raw) FL_NO_EXCEPT
Definition s16x16.h:56
SimdBenchmarkState & simdBenchmarkState()
fl::u32 uint32_t
Definition stdint.h:218

References fl::s16x16::from_raw(), fl::micros(), simdBenchmarkState(), and autoresearch::simd_check::SimdBenchmarkState::sink.

Referenced by runMultiplyBenchmark().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: