News for hackers. Stuff that matters.
Re:Higher Quality Random Floats by bee_rider on Wednesday October 18, 2023 @11:19AM (#37929908)
Yeah, I think a good general guideline is that if you see a bunch of divisions like that, the author did it intentionally (to avoid overflow or subnormals).

Anyway, I wonder if the optimization even helps at all. Either way the critical path is a division and two multiplications. That seems like the sort of thing that, between SIMD an OoO execution, a modern CPU ought to be able to work out, haha.

No promises but I’d want to benchmark it before caring.

There are no comments on this comment yet.