51 lines
714 B
C
51 lines
714 B
C
|
|
||
|
/* vim: set filetype=c ts=8 noexpandtab: */
|
||
|
|
||
|
#include "common.h"
|
||
|
|
||
|
__declspec(naked)
|
||
|
void __stdcall RangeList__ctor(struct CRangeList *this)
|
||
|
{
|
||
|
_asm {
|
||
|
pop eax
|
||
|
pop ecx
|
||
|
push eax
|
||
|
mov eax, 0x45F2D0
|
||
|
jmp eax
|
||
|
}
|
||
|
}
|
||
|
|
||
|
__declspec(naked)
|
||
|
void __stdcall RangeList__dtor(struct CRangeList *this)
|
||
|
{
|
||
|
_asm {
|
||
|
pop eax
|
||
|
pop ecx
|
||
|
push eax
|
||
|
mov eax, 0x45F300
|
||
|
jmp eax
|
||
|
}
|
||
|
}
|
||
|
|
||
|
__declspec(naked)
|
||
|
int __stdcall BPlusTree__IsEmpty(void *this)
|
||
|
{
|
||
|
_asm {
|
||
|
pop eax
|
||
|
pop ecx
|
||
|
push eax
|
||
|
mov eax, 0x45B570
|
||
|
jmp eax
|
||
|
}
|
||
|
}
|
||
|
|
||
|
int RaknetTimeNS_IsBigger(
|
||
|
struct CRaknetTimeNS isbigger,
|
||
|
struct CRaknetTimeNS than)
|
||
|
{
|
||
|
if (isbigger.hi32 > than.hi32) {
|
||
|
return 1;
|
||
|
}
|
||
|
return isbigger.hi32 == than.hi32 && isbigger.lo32 > than.lo32;
|
||
|
}
|