[PATCH v2 1/2] cmdline: add floating point support
Bruce Richardson
bruce.richardson at intel.com
Tue May 6 15:38:41 CEST 2025
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
More information about the dev
mailing list