mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 17:05:36 +00:00
b4fa217ab3cc1a9ab8bad267b577cc4d9a074165
Replace the linear bit-scanning loop in find_next_set_bit with __builtin_ctz (compiles to single-cycle NSAU on Xtensa). Also rename to find_lowest_set_bit and drop the unused start_bit parameter since all call sites pass 0. This eliminates the standalone find_next_set_bit function and replaces 3 function calls + loops in compute_color_mode_ with inline NSAU instructions.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
546 MiB
Languages
C++
60.1%
Python
39.3%
C
0.3%
JavaScript
0.2%
