Files
ardupilot/libraries/AP_HAL
Thomas WatsonandPeter Barker 529bf321be AP_HAL: add test for snprintf and thus ftoa_engine behavior
Ensures subnormals aren't formatted grossly wrong nor cause hangs.

Reveals two additional bugs:

* The requested number of digits is not always produced.

* The precision isn't enough to distinguish every float.

Outputs from the (nominally) original assembly implementation running on
a real AVR (avr-gcc 7.3.0) are included. That implementation exhibits
none of these flaws so it's likely they have been introduced during the
C port.

Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2025-07-29 16:35:03 +09:00
..
…
2025-04-02 19:25:21 +11:00
…
…
…
…
…
…
…
2025-04-02 19:25:21 +11:00
…
…