mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-01 05:46:06 -04:00
--Bug fixes
-Fix some recently changed calls to fma(). --Code changes -Update version to 1.0.0.16.
This commit is contained in:
@ -179,7 +179,7 @@ static const char* RandFunctionString =
|
||||
"\n"
|
||||
"inline real_t MwcNext01(uint2* s)\n"
|
||||
"{\n"
|
||||
" return MwcNext(s) * (1.0 / 4294967296.0);\n"
|
||||
" return MwcNext(s) * (real_t)(1.0 / 4294967296.0);\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"inline real_t MwcNextFRange(uint2* s, real_t lower, real_t upper)\n"
|
||||
@ -191,7 +191,7 @@ static const char* RandFunctionString =
|
||||
"inline real_t MwcNextNeg1Pos1(uint2* s)\n"
|
||||
"{\n"
|
||||
" real_t f = (real_t)MwcNext(s) / (real_t)UINT_MAX;\n"
|
||||
" return fma(f, 2.0, -1.0);\n"
|
||||
" return fma(f, (real_t)2.0, (real_t)-1.0);\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"inline real_t MwcNext0505(uint2* s)\n"
|
||||
|
Reference in New Issue
Block a user