summaryrefslogtreecommitdiff
path: root/src/cpu.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-01-02 08:55:32 +0000
committerrubidium <rubidium@openttd.org>2014-01-02 08:55:32 +0000
commite76d294c1084bdb5c57465f0382b2171e3c3ba4f (patch)
treef8c0ed37fa9dc2b0aaff55f53d54efa8b2e28a90 /src/cpu.h
parent52c942b17723999bff3416ff67f33b84b06e0986 (diff)
downloadopenttd-e76d294c1084bdb5c57465f0382b2171e3c3ba4f.tar.xz
(svn r26197) -Add: wrappers around cpuid
Diffstat (limited to 'src/cpu.h')
-rw-r--r--src/cpu.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cpu.h b/src/cpu.h
index 528c87076..8ea95f5bb 100644
--- a/src/cpu.h
+++ b/src/cpu.h
@@ -18,4 +18,11 @@
*/
uint64 ottd_rdtsc();
+/**
+ * Get the CPUID information from the CPU.
+ * @param info The retrieved info. All zeros on architectures without CPUID.
+ * @param type The information this instruction should retrieve.
+ */
+void ottd_cpuid(int info[4], int type);
+
#endif /* CPU_H */