mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-16 13:14:51 -04:00
--User changes
-Improve performance in the following variations: cpow2, dc_cube, julia3d, julia3dz, julian2, log_db, nblur, npolar, waffle, wavesn, xtrb. --Code changes -Rand range now uses multiply + shift rather than modulo.
This commit is contained in:
@ -174,7 +174,7 @@ static const char* RandFunctionString =
|
||||
"\n"
|
||||
"inline uint MwcNextRange(uint2* s, uint val)\n"
|
||||
"{\n"
|
||||
" return (val == 0) ? MwcNext(s) : (MwcNext(s) % val);\n"
|
||||
" return (val == 0) ? MwcNext(s) : (uint)(((ulong)MwcNext(s) * (ulong)val) >> 32);\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"inline real_t MwcNext01(uint2* s)\n"
|
||||
|
Reference in New Issue
Block a user