mirror of
https://github.com/holub/mame
synced 2025-04-29 03:20:50 +03:00
Hopefully fix Visual Studio compile. (nw)
This commit is contained in:
parent
6c8cdef998
commit
ecbe137ed9
@ -19,26 +19,6 @@
|
|||||||
#include "eivc.h"
|
#include "eivc.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __GNUC__ && defined(__i386__) && !defined(__x86_64)
|
|
||||||
#undef YieldProcessor
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef YieldProcessor
|
|
||||||
#ifdef __GNUC__
|
|
||||||
INLINE void osd_yield_processor(void)
|
|
||||||
{
|
|
||||||
__asm__ __volatile__ ( "rep; nop" );
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
INLINE void osd_yield_processor(void)
|
|
||||||
{
|
|
||||||
__asm { rep nop }
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#define osd_yield_processor YieldProcessor
|
|
||||||
#endif
|
|
||||||
|
|
||||||
INT32 win_compare_exchange32(INT32 volatile *ptr, INT32 compare, INT32 exchange);
|
INT32 win_compare_exchange32(INT32 volatile *ptr, INT32 compare, INT32 exchange);
|
||||||
INT32 win_atomic_exchange32(INT32 volatile *ptr, INT32 exchange);
|
INT32 win_atomic_exchange32(INT32 volatile *ptr, INT32 exchange);
|
||||||
INT32 win_atomic_add32(INT32 volatile *ptr, INT32 delta);
|
INT32 win_atomic_add32(INT32 volatile *ptr, INT32 delta);
|
||||||
|
@ -25,8 +25,6 @@
|
|||||||
|
|
||||||
#include "eminline.h"
|
#include "eminline.h"
|
||||||
|
|
||||||
#include "osinline.h"
|
|
||||||
|
|
||||||
|
|
||||||
//============================================================
|
//============================================================
|
||||||
// DEBUGGING
|
// DEBUGGING
|
||||||
@ -59,6 +57,28 @@
|
|||||||
#define end_timing(v) do { } while (0)
|
#define end_timing(v) do { } while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if __GNUC__ && defined(__i386__) && !defined(__x86_64)
|
||||||
|
#undef YieldProcessor
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef YieldProcessor
|
||||||
|
#ifdef __GNUC__
|
||||||
|
INLINE void osd_yield_processor(void)
|
||||||
|
{
|
||||||
|
__asm__ __volatile__ ( "rep; nop" );
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
INLINE void osd_yield_processor(void)
|
||||||
|
{
|
||||||
|
__asm { rep nop }
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
|
#define osd_yield_processor YieldProcessor
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//============================================================
|
//============================================================
|
||||||
// TYPE DEFINITIONS
|
// TYPE DEFINITIONS
|
||||||
//============================================================
|
//============================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user