Skip to content

Commit 48e06cb

Browse files
authored
Update instruction on explicit shifts for RISC-V boards
Clarified the recommendation for using explicit shifts on RISC-V and ESP8266 boards.
1 parent 94e67c4 commit 48e06cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/cpp.instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ On RISC-V targets (ESP32-C3/C6/P4) and ESP8266, prefer explicit bit-shifts for p
461461
Always use unsigned operands for right shifts; signed right-shift is implementation-defined.
462462

463463
<!-- HUMAN_ONLY_START -->
464-
On RISC-V-based boards (ESP32-C3, ESP32-C6, ESP32-C5) explicit shifts can be beneficial.
464+
Explicit shifts can be beneficial on RISC-V-based boards (ESP32-C3, ESP32-C6, ESP32-C5) and on ESP8266 boards.
465465
```cpp
466466
position >> 3 // instead of position / 8
467467
(255U - rate) >> 1 // instead of (255 - rate) / 2

0 commit comments

Comments
 (0)