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

Detailed Description

Integer mapping functions between different integer sizes.

This file provides the generic int_scale<FROM, TO>() template function and deprecated legacy named functions that delegate to it for backward compatibility.

Definition in file intmap.h.

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

Go to the source code of this file.

Namespaces

namespace  fl
 Base definition for an LED controller.
 

Functions

u32 fl::map16_to_32 (u16 x) FL_NOEXCEPT
 
u8 fl::map16_to_8 (u16 x) FL_NOEXCEPT
 
u16 fl::map32_to_16 (u32 x) FL_NOEXCEPT
 
u8 fl::map32_to_8 (u32 x) FL_NOEXCEPT
 
u16 fl::map8_to_16 (u8 x) FL_NOEXCEPT
 
u32 fl::map8_to_32 (u8 x) FL_NOEXCEPT
 
i32 fl::smap16_to_32 (i16 x) FL_NOEXCEPT
 Use int_scale<int16_t, int32_t>() instead.
 
i8 fl::smap16_to_8 (i16 x) FL_NOEXCEPT
 Use int_scale<int16_t, int8_t>() instead.
 
i16 fl::smap32_to_16 (i32 x) FL_NOEXCEPT
 Use int_scale<int32_t, int16_t>() instead.
 
i8 fl::smap32_to_8 (i32 x) FL_NOEXCEPT
 Use int_scale<int32_t, int8_t>() instead.
 
i16 fl::smap8_to_16 (i8 x) FL_NOEXCEPT
 Use int_scale<int8_t, int16_t>() instead.
 
i32 fl::smap8_to_32 (i8 x) FL_NOEXCEPT
 Use int_scale<int8_t, int32_t>() instead.