mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-08-08 07:09:52 +00:00
initial commit. This is icculus version 5542b94cae02a6333845854bbbd1abe0a259f1a4
This commit is contained in:
commit
3096eaf5e2
2519 changed files with 816064 additions and 0 deletions
24
ExternalLibs/iprof/prof_win32.h
Normal file
24
ExternalLibs/iprof/prof_win32.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
#ifndef Prof_INC_PROF_WIN32_H
|
||||
#define Prof_INC_PROF_WIN32_H
|
||||
|
||||
typedef __int64 Prof_Int64;
|
||||
|
||||
#ifdef __cplusplus
|
||||
inline
|
||||
#elif _MSC_VER >= 1200
|
||||
__forceinline
|
||||
#else
|
||||
static
|
||||
#endif
|
||||
void Prof_get_timestamp(Prof_Int64 *result)
|
||||
{
|
||||
__asm {
|
||||
rdtsc;
|
||||
mov ebx, result
|
||||
mov [ebx], eax
|
||||
mov [ebx+4], edx
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue