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

Function memset_zero

src/fl/stl/isr/memcpy.h:141–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139/// @note Automatically selects word or byte writes based on alignment
140FL_OPTIMIZE_FUNCTION FL_IRAM FASTLED_FORCE_INLINE
141void memset_zero(u8* dest, size_t count) {
142 uintptr_t address = fl::ptr_to_int(dest);
143
144 if ((address % 4 == 0) && (count >= 4)) {
145 memset_zero_word(dest, count);
146 } else {
147 memset_zero_byte(dest, count);
148 }
149}
150
151} // namespace isr
152} // namespace fl

Callers 1

populateDmaBufferMethod · 0.85

Calls 3

ptr_to_intFunction · 0.85
memset_zero_wordFunction · 0.85
memset_zero_byteFunction · 0.85

Tested by

no test coverage detected