samedi 24 avril 2021

Seeded Random Uniform float generator using SIMD?

I need a seeded random uniform distribution generator (in range [0, 1]) that can be coded using SIMD built with -march=nocona.

Xorshift https://en.wikipedia.org/wiki/Xorshift or Hash https://github.com/skeeto/hash-prospector seems good, but works with uint32/64, which are not well suited to translate in single (float) precision (due to conversion).

what would you suggest? it must be 32x4 vectorized, uniform spaced in range 0-1, seeded and quite fast.

Note: I'll use it to make white noise audio signal.




Aucun commentaire:

Enregistrer un commentaire