summaryrefslogtreecommitdiff
path: root/nacl/cpucycles/monotoniccpuinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'nacl/cpucycles/monotoniccpuinfo.h')
-rw-r--r--nacl/cpucycles/monotoniccpuinfo.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/nacl/cpucycles/monotoniccpuinfo.h b/nacl/cpucycles/monotoniccpuinfo.h
new file mode 100644
index 00000000..d4ba7ea8
--- /dev/null
+++ b/nacl/cpucycles/monotoniccpuinfo.h
@@ -0,0 +1,27 @@
1/*
2cpucycles monotoniccpuinfo.h version 20100804
3D. J. Bernstein
4Public domain.
5*/
6
7#ifndef CPUCYCLES_monotoniccpuinfo_h
8#define CPUCYCLES_monotoniccpuinfo_h
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14extern long long cpucycles_monotoniccpuinfo(void);
15extern long long cpucycles_monotoniccpuinfo_persecond(void);
16
17#ifdef __cplusplus
18}
19#endif
20
21#ifndef cpucycles_implementation
22#define cpucycles_implementation "monotoniccpuinfo"
23#define cpucycles cpucycles_monotoniccpuinfo
24#define cpucycles_persecond cpucycles_monotoniccpuinfo_persecond
25#endif
26
27#endif