Files
WLED_MM_Infinity/wled00
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
..
2026-01-12 23:03:39 +01:00
2026-01-12 19:26:40 +01:00
2025-01-10 12:49:46 +01:00
2025-11-16 15:28:57 +01:00
2025-02-21 20:40:16 +00:00
2025-12-20 17:13:52 +01:00
2026-01-06 19:02:45 +01:00
2025-12-16 23:26:26 +01:00
2025-11-20 23:49:26 +01:00
2023-03-22 16:31:07 +01:00
2026-01-09 17:38:02 +01:00
2025-11-29 21:26:24 +01:00
2025-11-29 21:26:24 +01:00
2024-06-26 22:07:18 +02:00
2024-11-07 13:32:45 -05:00
2025-01-16 13:07:43 +01:00
2024-05-04 02:15:44 +02:00
2023-01-06 09:24:29 +01:00
2023-01-06 09:24:29 +01:00
2024-04-05 15:10:38 -04:00
2025-10-25 00:53:25 +02:00
2022-03-20 22:12:18 +01:00
2025-12-20 23:55:59 +01:00
2026-01-15 11:38:55 +01:00
2025-12-20 23:55:59 +01:00