FastLED 3.9.15
Loading...
Searching...
No Matches
integer_math.h File Reference
#include "fl/stl/stdint.h"
+ Include dependency graph for integer_math.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.
 
namespace  fl::gfx
 
namespace  fl::gfx::detail
 ============================================================================
 

Functions

fl::i32 fl::gfx::detail::isqrt32_ceil (fl::i32 n)
 Integer square root using Newton iteration Computes ceil(sqrt(n)) for positive integers More accurate than digit-by-digit for the ceiling case.
 
fl::i32 fl::gfx::detail::isqrt32_floor (fl::i32 n)
 Integer square root using digit-by-digit algorithm Computes floor(sqrt(n)) for positive integers Uses only shifts, adds, and comparisons — no division.