From 8f03c15616cb7d9c60b6775f638037f422d08677 Mon Sep 17 00:00:00 2001 From: cxl Date: Wed, 18 Jan 2012 18:23:29 +0000 Subject: [PATCH] .upptst git-svn-id: svn://ultimatepp.org/upp/trunk@4438 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- upptst/Random/Random.cpp | 15 +++++++++++++++ upptst/Random/Random.upp | 9 +++++++++ upptst/Random/init | 4 ++++ 3 files changed, 28 insertions(+) create mode 100644 upptst/Random/Random.cpp create mode 100644 upptst/Random/Random.upp create mode 100644 upptst/Random/init 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