diff --git a/upptst/Random/Random.cpp b/upptst/Random/Random.cpp new file mode 100644 index 000000000..3feb47c15 --- /dev/null +++ b/upptst/Random/Random.cpp @@ -0,0 +1,15 @@ +#include + +using namespace Upp; + +CONSOLE_APP_MAIN +{ + SeedRandom(); + + double x = 0; + for(int i = 0; i < 10000000; i++) { + x += Randomf(); +// DDUMP(Randomf()); + } + DDUMP(x); +} diff --git a/upptst/Random/Random.upp b/upptst/Random/Random.upp new file mode 100644 index 000000000..0bff77a8c --- /dev/null +++ b/upptst/Random/Random.upp @@ -0,0 +1,9 @@ +uses + Core; + +file + Random.cpp; + +mainconfig + "" = "SSE2"; + diff --git a/upptst/Random/init b/upptst/Random/init new file mode 100644 index 000000000..26ff0a8cc --- /dev/null +++ b/upptst/Random/init @@ -0,0 +1,4 @@ +#ifndef _Random_icpp_init_stub +#define _Random_icpp_init_stub +#include "Core/init" +#endif