mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-22 06:05:33 -06:00
.upptst
git-svn-id: svn://ultimatepp.org/upp/trunk@4438 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
c831236753
commit
8f03c15616
3 changed files with 28 additions and 0 deletions
15
upptst/Random/Random.cpp
Normal file
15
upptst/Random/Random.cpp
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
#include <Core/Core.h>
|
||||||
|
|
||||||
|
using namespace Upp;
|
||||||
|
|
||||||
|
CONSOLE_APP_MAIN
|
||||||
|
{
|
||||||
|
SeedRandom();
|
||||||
|
|
||||||
|
double x = 0;
|
||||||
|
for(int i = 0; i < 10000000; i++) {
|
||||||
|
x += Randomf();
|
||||||
|
// DDUMP(Randomf());
|
||||||
|
}
|
||||||
|
DDUMP(x);
|
||||||
|
}
|
||||||
9
upptst/Random/Random.upp
Normal file
9
upptst/Random/Random.upp
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
uses
|
||||||
|
Core;
|
||||||
|
|
||||||
|
file
|
||||||
|
Random.cpp;
|
||||||
|
|
||||||
|
mainconfig
|
||||||
|
"" = "SSE2";
|
||||||
|
|
||||||
4
upptst/Random/init
Normal file
4
upptst/Random/init
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#ifndef _Random_icpp_init_stub
|
||||||
|
#define _Random_icpp_init_stub
|
||||||
|
#include "Core/init"
|
||||||
|
#endif
|
||||||
Loading…
Add table
Add a link
Reference in a new issue