aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/lustre-convertible-en-2cgc
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-05-13 11:57:45 +0200
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-05-13 11:57:45 +0200
commit3db72104ad5664ed320253a342e1b26ad2f7da28 (patch)
tree7d1424c3b66d6b89a090f389ec5de4f73f0a9f3b /test/monniaux/lustre-convertible-en-2cgc
parentb1b7a68222ada09b8dfaf9a5dbe2306b5fc44684 (diff)
downloadcompcert-kvx-3db72104ad5664ed320253a342e1b26ad2f7da28.tar.gz
compcert-kvx-3db72104ad5664ed320253a342e1b26ad2f7da28.zip
new example + moved random number generator to common files
Diffstat (limited to 'test/monniaux/lustre-convertible-en-2cgc')
-rw-r--r--test/monniaux/lustre-convertible-en-2cgc/convertible_main_loop.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/monniaux/lustre-convertible-en-2cgc/convertible_main_loop.c b/test/monniaux/lustre-convertible-en-2cgc/convertible_main_loop.c
index 9aa52cad..9646b39f 100644
--- a/test/monniaux/lustre-convertible-en-2cgc/convertible_main_loop.c
+++ b/test/monniaux/lustre-convertible-en-2cgc/convertible_main_loop.c
@@ -8,6 +8,7 @@
#include <stdint.h>
#include "convertible_main.h"
#include "../clock.h"
+#include "../dm_random.c"
/* MACROS DEFINITIONS ****************/
#ifndef TT
@@ -23,12 +24,6 @@
/* set this macro for testing output clocks */
#endif
-static uint32_t dm_random_uint32(void) {
- static uint32_t current=UINT32_C(0xDEADBEEF);
- current = ((uint64_t) current << 6) % UINT32_C(4294967291);
- return current;
-}
-
/* Standard Input procedures **************/
_boolean _get_bool(char* n){
return dm_random_uint32() & 1;