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

◆ memcpy_16()

FL_OPTIMIZE_FUNCTION FL_IRAM FASTLED_FORCE_INLINE void fl::isr::memcpy_16 ( u16 *FL_RESTRICT_PARAM dst,
const u16 *FL_RESTRICT_PARAM src,
size_t count )

ISR-optimized 16-bit block copy for 2-byte aligned memory.

Parameters
dstDestination pointer (must be 2-byte aligned)
srcSource pointer (must be 2-byte aligned)
countNumber of 16-bit words to copy (NOT bytes)
Note
Only call with 2-byte aligned pointers and valid count

Definition at line 46 of file memcpy.h.

48 {
49 for (size_t i = 0; i < count; i++) {
50 dst[i] = src[i];
51 }
52}

References FL_RESTRICT_PARAM.

Referenced by memcpy().

+ Here is the caller graph for this function: