FastLED 3.9.15
Loading...
Searching...
No Matches
align.h File Reference

Detailed Description

Alignment macros and utilities for FastLED.

Provides platform-independent alignment control with special handling for GCC 4.8.3 (Roger Clark STM32 core) and 8-bit AVR platforms. Also provides assume_aligned<N>(ptr) optimizer hint.

Definition in file align.h.

#include "fl/stl/cstddef.h"
#include "platforms/is_platform.h"
#include "fl/stl/noexcept.h"
+ Include dependency graph for align.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fl::aligned_ptr< T, N >
 

Namespaces

namespace  fl
 Base definition for an LED controller.
 

Macros

#define FL_ALIGN
 
#define FL_ALIGN_AS(T)
 
#define FL_ALIGN_AS_T(expr)
 
#define FL_ALIGN_BYTES   1
 
#define FL_ALIGN_MAX   alignas(max_align_t)
 
#define FL_ALIGNAS(N)
 

Functions

template<fl::size_t N, typename T>
const T * fl::assume_aligned (const T *ptr) FL_NOEXCEPT
 
template<fl::size_t N, typename T>
T * fl::assume_aligned (T *ptr) FL_NOEXCEPT