mbox

[v4,0/3] introduce random floating point function

Message ID 20220525203123.277180-1-stephen@networkplumber.org (mailing list archive)
Headers

Message

Stephen Hemminger May 25, 2022, 8:31 p.m. UTC
  Introduce a new random number function to get a floating
point value. Then use it to fix PIE scheduler.

v4
   - use slower divide method in rte_drand() if library
     does not have ieee754 (FreeBSD and Windows?)
   - fix some typos

v3
   - rename to rte_drand() and other review feedback
   - fix warnings with some compilers in test code

Stephen Hemminger (3):
  random: add rte_drand() function
  rte_pie: remove unnecessary floating point
  rte_pie: fix incorrect floating point math

 app/test/test_rand_perf.c              |  7 +++++
 doc/guides/rel_notes/release_22_07.rst |  5 ++++
 lib/eal/common/rte_random.c            | 41 ++++++++++++++++++++++++++
 lib/eal/include/rte_random.h           | 18 +++++++++++
 lib/eal/meson.build                    |  3 ++
 lib/eal/version.map                    |  1 +
 lib/sched/rte_pie.h                    |  7 ++---
 7 files changed, 77 insertions(+), 5 deletions(-)