MCPcopy Create free account
hub / github.com/FastLED/FastLED / fill_test_data

Function fill_test_data

tests/fl/gfx/blur.cpp:257–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255// ── Benchmark ────────────────────────────────────────────────────────────
256
257static void fill_test_data(CRGB *pixels, int n) {
258 for (int i = 0; i < n; ++i) {
259 pixels[i] = CRGB(static_cast<uint8_t>(i * 37 + 17),
260 static_cast<uint8_t>(i * 59 + 31),
261 static_cast<uint8_t>(i * 83 + 47));
262 }
263}
264
265template <typename Func>
266#ifdef NDEBUG

Callers 3

run_benchmarkFunction · 0.85
run_benchmark_blur_onlyFunction · 0.85
blur.cppFile · 0.85

Calls 1

CRGBClass · 0.50

Tested by

no test coverage detected