Offer a new define to avoid int64 conversions#221
Conversation
|
Firstly thank you for this library! I am using it on an ARM Cortex M7 MCU with hardfloat support, compiling with GCC 13 and using the following defines: I noticed in the elf dump the following functions Which uses int_fast64_t intermediates and converts them back to floating_point_t. This existing code allows for more precision when printing I suspect many people choose this library for the exact same reason so this flag would be appreciated. It is completely opt-in so no existing behavior changes. |
The new define PRINTF_AVOID_INT64_TO_FLOAT_CONVERSION when combined with PRINTF_USE_DOUBLE_INTERNALLY ensures that int64 to float conversions are not performed.
1dd6a87 to
0117c30
Compare
The new define PRINTF_AVOID_INT64_TO_FLOAT_CONVERSION when combined with PRINTF_USE_DOUBLE_INTERNALLY ensures that int64 to float conversions are not performed.