2013-12-19 17:10:14 +00:00
|
|
|
#pragma once
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
void os_SetWindowText(const char* text);
|
|
|
|
void os_MakeExecutable(void* ptr, u32 sz);
|
|
|
|
double os_GetSeconds();
|
|
|
|
|
|
|
|
void os_DoEvents();
|
|
|
|
void os_CreateWindow();
|
2018-08-20 11:36:34 +00:00
|
|
|
void os_SetupInput();
|
2013-12-19 17:10:14 +00:00
|
|
|
void WriteSample(s16 right, s16 left);
|
|
|
|
|
|
|
|
#if BUILD_COMPILER==COMPILER_VC
|
|
|
|
#include <intrin.h>
|
|
|
|
#endif
|
|
|
|
|
2015-05-16 08:04:30 +00:00
|
|
|
u32 static INLINE bitscanrev(u32 v)
|
2013-12-19 17:10:14 +00:00
|
|
|
{
|
|
|
|
#if (BUILD_COMPILER==COMPILER_GCC)
|
|
|
|
return 31-__builtin_clz(v);
|
|
|
|
#else
|
|
|
|
unsigned long rv;
|
|
|
|
_BitScanReverse(&rv,v);
|
|
|
|
return rv;
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
//FIX ME
|
2014-07-24 13:54:04 +00:00
|
|
|
#define __assume(x)
|
|
|
|
|
2018-08-20 11:36:34 +00:00
|
|
|
void os_DebugBreak();
|