[PATCH v2 1/2] cmdline: add floating point support

Burakov, Anatoly anatoly.burakov at intel.com
Wed May 7 11:02:21 CEST 2025


On 5/6/2025 3:38 PM, Bruce Richardson wrote:
> On Tue, May 06, 2025 at 02:08:18PM +0100, Anatoly Burakov wrote:
>> Add support for parsing floating point numbers in cmdline library, as well
>> as unit tests for the new functionality. The parser supports single and
>> double precision floats, and will understand decimal fractions as well as
>> scientific notation.
>>
>> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
>> ---
>>   app/test/test_cmdline_num.c     | 201 +++++++++++++++++++++++-
>>   lib/cmdline/cmdline_parse_num.c | 261 ++++++++++++++++++++++++++++++++
>>   lib/cmdline/cmdline_parse_num.h |   4 +-
>>   3 files changed, 462 insertions(+), 4 deletions(-)
>>
> This is great to see, thanks. Can you also look to add support to
> buildtools/dpdk-cmdline-gen.py script, to make it possible to use this from
> a cmdline list file as with many of our sample apps?
> 
> /Bruce

Good call, will do!

(also probably needs a doc update somewhere, so i'll see if I can add 
that too)

-- 
Thanks,
Anatoly


More information about the dev mailing list