aboutsummaryrefslogtreecommitdiffstats
path: root/test/mppa/lib
diff options
context:
space:
mode:
authorCyril SIX <cyril.six@kalray.eu>2018-04-17 15:33:14 +0200
committerCyril SIX <cyril.six@kalray.eu>2018-04-17 15:33:14 +0200
commit1b8cf73abc25b1bb167db770a622704f0d672691 (patch)
tree50582ad9bde220947d3b30d3262d314fb27bb554 /test/mppa/lib
parenteb1e1c79fa3fc882b68c67d781f7b64e74e00828 (diff)
downloadcompcert-kvx-1b8cf73abc25b1bb167db770a622704f0d672691.tar.gz
compcert-kvx-1b8cf73abc25b1bb167db770a622704f0d672691.zip
MPPA - added merge sort + corrected bug in insertion + testing them together
Diffstat (limited to 'test/mppa/lib')
-rw-r--r--test/mppa/lib/prng.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/mppa/lib/prng.c b/test/mppa/lib/prng.c
index dfa97834..c902cc3e 100644
--- a/test/mppa/lib/prng.c
+++ b/test/mppa/lib/prng.c
@@ -9,11 +9,13 @@
static uint64_t current;
void srand(uint64_t seed){
- seed = current;
+ //seed = current;
+ current=100;
}
uint64_t randlong(void){
- return (current = MULTIPLIER * current + INCREMENT);
+ //return (current = MULTIPLIER * current + INCREMENT);
+ return current--;
}
#ifdef __UNIT_TEST_PRNG__