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.
>
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
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:
> > +
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
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
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
6 matches
Mail list logo