janwas
a3696c0b91
lib/sysdep: clean up by moving OS and cpu-arch folders into "os" and "arch" folders This was SVN commit r6162.
30 lines
802 B
C
30 lines
802 B
C
/**
|
|
* =========================================================================
|
|
* File : amd64_asm.h
|
|
* Project : 0 A.D.
|
|
* Description : interface to various AMD64 functions (written in asm)
|
|
* =========================================================================
|
|
*/
|
|
|
|
// license: GPL; see lib/license.txt
|
|
|
|
#ifndef INCLUDED_AMD64_ASM
|
|
#define INCLUDED_AMD64_ASM
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct x86_x64_CpuidRegs;
|
|
extern void CALL_CONV amd64_asm_cpuid(x86_x64_CpuidRegs* reg);
|
|
|
|
extern intptr_t CALL_CONV amd64_CAS(volatile uintptr_t *location, uintptr_t expected, uintptr_t newValue);
|
|
|
|
extern void CALL_CONV amd64_AtomicAdd(volatile intptr_t *location, intptr_t increment);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // #ifndef INCLUDED_AMD64_ASM
|