(a % UInt32) where a is a UInt64
On Fri, Oct 23, 2015 at 5:12 PM, Damien <damien.d...@gmail.com> wrote: > How do I cast a UInt64 to a UInt32, discarding the extra bits, and with no > error checking (so it can work inside @simd loops)? > > There are algorithms that require this, eg. > http://www.pcg-random.org/download.html