Different results for uniform random number generation between D and Boost

FeepingCreature default_357-line at yahoo.de
Tue Jul 31 06:00:53 PDT 2012


Try comparing the mxcsr register. It controls rounding mode when using SSE ops (even the single-float ones).

Here's a good page that documents all the bits of the mxcsr: http://softpixel.com/~cwright/programming/simd/sse.php

The x87 equivalent is the control word; see http://www.website.masmforum.com/tutorials/fptute/fpuchap1.htm#cword (fstcw/fldcw).


More information about the Digitalmars-d mailing list