Files
WLED/wled00
Damian Schneider a421a90e0a 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
2025-01-20 05:51:04 +01:00
..
2024-10-02 20:14:25 +02:00
2025-01-16 12:20:15 +00:00
2025-01-19 07:35:46 +01:00
2023-01-06 09:24:29 +01:00
2024-10-14 20:13:59 +02:00
2023-01-06 09:24:29 +01:00
2024-12-20 19:12:29 +01:00
2025-01-19 07:35:46 +01:00
2024-12-25 15:18:34 +01:00
2025-01-19 07:35:46 +01:00
2023-02-08 10:18:41 +01:00
2023-02-04 23:59:28 +01:00
2024-12-07 16:47:50 +01:00
2024-07-11 21:22:58 +02:00
2024-09-19 21:44:11 +02:00
2024-12-20 14:13:53 +01:00
2025-01-19 07:35:46 +01:00
2025-01-19 07:35:46 +01:00
2025-01-19 07:35:46 +01:00
2023-01-06 09:24:29 +01:00
2023-01-06 09:24:29 +01:00
2025-01-17 08:01:17 +01:00
2025-01-19 07:35:46 +01:00
2022-03-20 22:12:18 +01:00
2024-08-14 11:16:46 +02:00
2024-09-10 15:20:34 +02:00