FastLED 3.9.15
Loading...
Searching...
No Matches

◆ benchU16x16_4()

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

Definition at line 1209 of file AutoResearchSimd.h.

1209 {
1210 fl::u16x16 a0(1.5f), a1(2.3f), a2(0.7f), a3(3.1f);
1211 fl::u16x16 b0(0.5f), b1(1.2f), b2(2.0f), b3(0.9f);
1213 uint32_t t0 = micros();
1214 for (int i = 0; i < iters; i++) {
1215 a0 = op(a0, b0); a1 = op(a1, b1);
1216 a2 = op(a2, b2); a3 = op(a3, b3);
1217 b0 = a0 + bump; b1 = a1 + bump;
1218 b2 = a2 + bump; b3 = a3 + bump;
1219 }
1220 uint32_t t1 = micros();
1221 g_bench_sink = static_cast<uint32_t>(a0.raw());
1222 return static_cast<int64_t>(t1 - t0);
1223}
static constexpr FASTLED_FORCE_INLINE u16x16 from_raw(u32 raw) FL_NOEXCEPT
Definition u16x16.h:53
static volatile uint32_t g_bench_sink

References fl::u16x16::from_raw(), g_bench_sink, and fl::micros().

Referenced by runMultiplyBenchmark().

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