Associative arrays

Brian Schott via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Nov 9 17:32:03 PST 2015


On Tuesday, 10 November 2015 at 01:29:11 UTC, Brian Schott wrote:
> Yes. It's a hack that gives you a modulus without having to do 
> a modulus. It only works on powers of two.

http://graphics.stanford.edu/~seander/bithacks.html#ModulusDivisionEasy


More information about the Digitalmars-d-learn mailing list