@brief Check if a pointer is aligned to a specific byte boundary @param ptr Pointer to check @param alignment Alignment requirement in bytes (must be power of 2) @return true if aligned, false otherwise
| 20 | /// @param alignment Alignment requirement in bytes (must be power of 2) |
| 21 | /// @return true if aligned, false otherwise |
| 22 | FASTLED_FORCE_INLINE bool is_aligned(const void* ptr, size_t alignment) { |
| 23 | return (fl::ptr_to_int(ptr) & (alignment - 1)) == 0; |
| 24 | } |
| 25 | |
| 26 | /// @brief ISR-optimized 32-bit block copy for 4-byte aligned memory |
| 27 | /// @param dst Destination pointer (must be 4-byte aligned) |
nothing calls this directly
no test coverage detected