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