flycast/core/oslib/oslib.h

25 lines
364 B
C
Raw Normal View History

2013-12-19 17:10:14 +00:00
#pragma once
2020-03-28 16:58:01 +00:00
#include "types.h"
2013-12-19 17:10:14 +00:00
void os_SetWindowText(const char* text);
double os_GetSeconds();
void os_DoEvents();
void os_CreateWindow();
void os_SetupInput();
2013-12-19 17:10:14 +00:00
#ifdef _MSC_VER
2013-12-19 17:10:14 +00:00
#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
{
#ifdef __GNUC__
2013-12-19 17:10:14 +00:00
return 31-__builtin_clz(v);
#else
unsigned long rv;
_BitScanReverse(&rv,v);
return rv;
#endif
}