Damian Schneider 532c9b762c replacement for fastled sqrt16() (#4426)
* added bitwise operation based sqrt16

- replacement for fastled, it is about 10% slower for numbers smaller 128 but faster for larger numbers. speed difference is irrelevant to WLED but it saves some flash.

* updated to 32bit, improved for typical WLED use

- making it 32bits allows for larger numbers
- added another initial condition check for medium sized numbers
- increased the "small number" optimization to larger numbers: the function is currently only used to calculate sqrt(x^2+y^2) which even for small segments is larger than the initially used 64, so optimizing for 1024 makes more sense, although the value is arbitrarily chosen
2026-01-17 12:18:35 +01:00
2021-06-14 01:58:12 +02:00
2022-11-09 17:59:31 +01:00
2025-11-23 17:18:10 +01:00
2020-06-22 00:09:00 +02:00
2024-10-03 20:12:28 +02:00
2025-11-24 00:40:12 +01:00
2024-03-23 22:51:40 +01:00

Welcome to WLED MoonModules!

image

MoonModules/WLED is a fork of wled/WLED which contains latest merge of v0.14 of WLED with additional features.

This fork is created by members of the Atuline/WLED team to make development against v0.14 possible while still preserving Atuline/WLED v0.13.x as a stable and supported version. The Atuline/WLED fork is also called WLED SR (Sound Reactive).

More info here: what-is-moonmodules

HTML tutorial Donations will be used to buy WLED related hardware, software or drinks shared with the contributors of this repo.

License

WLED-MM is licensed under the EUPL-1.2 or later. The official license text is available in 23 languages.

Contributing

We welcome contributions to this project! See contributing for more information.

We would like to have this repository in a polite and friendly atmosphere, so please be kind and respectful to others. For more details, look at Code of Conduct.

Disclaimer:

Using this software is the users responsibility as it is not bug free. Therefore contributors of this repo are not liable for anything including but not limited to spontaneous combustion of the entire led strip, the house and the inevitable heat death of the universe

Description
No description provided
Readme EUPL-1.2 67 MiB
Languages
C++ 81.2%
HTML 7.3%
JavaScript 5.5%
C 2.9%
Python 1.5%
Other 1.5%