Last change
on this file since 713 was
693,
checked in by guerin, 9 years ago
|
remove last references to giet_shr_printf()
|
File size:
711 bytes
|
Line | |
---|
1 | #ifndef UTILS_H |
---|
2 | #define UTILS_H |
---|
3 | |
---|
4 | #include <stdio.h> |
---|
5 | |
---|
6 | |
---|
7 | |
---|
8 | extern volatile int run_threads; |
---|
9 | extern volatile long heap_inited; |
---|
10 | |
---|
11 | extern unsigned int nclusters_x; |
---|
12 | extern unsigned int nclusters_y; |
---|
13 | extern unsigned int procs_per_cluster; |
---|
14 | |
---|
15 | |
---|
16 | #define printf(...) giet_tty_printf(__VA_ARGS__) |
---|
17 | |
---|
18 | extern const char *optarg; |
---|
19 | |
---|
20 | int getopt (int argc, char *const *argv, const char *optstring); |
---|
21 | void exit (int status); |
---|
22 | void clusterXY (int tid, unsigned int *cx, unsigned int *cy); |
---|
23 | void *ocean_malloc (unsigned long s, int tid); |
---|
24 | unsigned int getLpid (); |
---|
25 | |
---|
26 | /** pseudo fprintf **/ |
---|
27 | typedef char FILE; |
---|
28 | extern FILE *stdout; |
---|
29 | extern FILE *stderr; |
---|
30 | #define fprintf(prologue, ...) printf("%s", prologue); \ |
---|
31 | printf(__VA_ARGS__); |
---|
32 | |
---|
33 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.