FastLED 3.9.15
Loading...
Searching...
No Matches
memmove.h
Go to the documentation of this file.
1#pragma once
2
3#include "platforms/is_platform.h"
4#include "fl/stl/compiler_control.h" // FL_NO_INLINE
5
12
13#if defined(FL_IS_AVR) || defined(FASTLED_DOXYGEN)
14extern "C" {
15void * memmove8( void * dst, const void * src, fl::u16 num );
16void * memcpy8 ( void * dst, const void * src, fl::u16 num ) FL_NO_INLINE;
17void * memset8 ( void * ptr, fl::u8 value, fl::u16 num ) FL_NO_INLINE ;
18}
19#else
20#include "fl/stl/cstring.h"
21// on non-AVR platforms, these names just call standard libc.
22#define memmove8 memmove
23#define memcpy8 fl::memcpy
24#define memset8 fl::memset
25#endif
26
void * memcpy8(void *dst, const void *src, fl::u16 num) FL_NO_INLINE
Faster alternative to memcpy() on AVR.
void * memmove8(void *dst, const void *src, fl::u16 num)
Faster alternative to memmove() on AVR.
void * memset8(void *ptr, fl::u8 value, fl::u16 num) FL_NO_INLINE
Faster alternative to memset() on AVR.
unsigned char u8
Definition stdint.h:131
#define FL_NO_INLINE