summaryrefslogtreecommitdiff
path: root/nacl/cpucycles/amd64cpuinfo.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-07-02 09:53:34 -0400
committerirungentoo <irungentoo@gmail.com>2013-07-02 09:53:34 -0400
commite2967396ac73cb7410787886cdaf072a184ffc49 (patch)
tree527a74d25a4a0705fc641994fd35bfab22662034 /nacl/cpucycles/amd64cpuinfo.h
parent8928c817df345f29aa0b194743595aa11bd6a8ba (diff)
Added NaCl crypto library.
Diffstat (limited to 'nacl/cpucycles/amd64cpuinfo.h')
-rw-r--r--nacl/cpucycles/amd64cpuinfo.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/nacl/cpucycles/amd64cpuinfo.h b/nacl/cpucycles/amd64cpuinfo.h
new file mode 100644
index 00000000..8f858ae7
--- /dev/null
+++ b/nacl/cpucycles/amd64cpuinfo.h
@@ -0,0 +1,27 @@
1/*
2cpucycles amd64cpuinfo.h version 20100803
3D. J. Bernstein
4Public domain.
5*/
6
7#ifndef CPUCYCLES_amd64cpuinfo_h
8#define CPUCYCLES_amd64cpuinfo_h
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14extern long long cpucycles_amd64cpuinfo(void);
15extern long long cpucycles_amd64cpuinfo_persecond(void);
16
17#ifdef __cplusplus
18}
19#endif
20
21#ifndef cpucycles_implementation
22#define cpucycles_implementation "amd64cpuinfo"
23#define cpucycles cpucycles_amd64cpuinfo
24#define cpucycles_persecond cpucycles_amd64cpuinfo_persecond
25#endif
26
27#endif