Re: [PATCH v4 1/3] random: add rte_drand() function

2022-05-26 Thread Stephen Hemminger
On Thu, 26 May 2022 15:20:29 +0200 Mattias Rönnblom wrote: > On 2022-05-25 22:31, Stephen Hemminger wrote: > > The PIE code and other applications can benefit from having a > > fast way to get a random floating point value. This new function > > is equivalent to drand() in the standard library. >

Re: [PATCH v4 1/3] random: add rte_drand() function

2022-05-26 Thread Stephen Hemminger
On Thu, 26 May 2022 15:20:29 +0200 Mattias Rönnblom wrote: > > +#else > > + /* Slower method requiring floating point divide > > +* > > Do you know how much slower? I ran rand_perf_test on two of my systems. > >AMD 5900X Pi4 (ARM Cortex-A72) > IEEE754 version

Re: [PATCH v4 1/3] random: add rte_drand() function

2022-05-26 Thread Stephen Hemminger
On Thu, 26 May 2022 15:20:29 +0200 Mattias Rönnblom wrote: > > @@ -55,6 +58,9 @@ test_rand_perf_type(enum rand_type rand_type) > > case rand_type_64: > > sum += rte_rand(); > > break; > > + case rand_type_float: > > +

Re: [PATCH v4 1/3] random: add rte_drand() function

2022-05-26 Thread Mattias Rönnblom
On 2022-05-25 22:31, Stephen Hemminger wrote: The PIE code and other applications can benefit from having a fast way to get a random floating point value. This new function is equivalent to drand() in the standard library. Signed-off-by: Stephen Hemminger --- app/test/test_rand_perf.c

Re: [PATCH v4 1/3] random: add rte_drand() function

2022-05-26 Thread Ray Kinsella
Stephen Hemminger writes: > The PIE code and other applications can benefit from having a > fast way to get a random floating point value. This new function > is equivalent to drand() in the standard library. > > Signed-off-by: Stephen Hemminger > --- > app/test/test_rand_perf.c

[PATCH v4 1/3] random: add rte_drand() function

2022-05-25 Thread Stephen Hemminger
The PIE code and other applications can benefit from having a fast way to get a random floating point value. This new function is equivalent to drand() in the standard library. Signed-off-by: Stephen Hemminger --- app/test/test_rand_perf.c | 7 + doc/guides/rel_notes/release_22