Files
PX4-Autopilot/src
Julian Oes 7b40898cff perf(rc): use lroundf for the S.Bus scaling
The S.Bus scale constants are float, so lround promoted the argument to
double and pulled soft-double code into FPU-less targets like the IO.
lroundf rounds the same float value identically (checked exhaustively over
all encode and decode inputs) and saves 1104 B on the IO.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Julian Oes <julian@oes.ch>
2026-11-20 12:08:09 +13:00
..