Previous 199869 Revisions Next

r34199 Monday 5th January, 2015 at 20:05:01 UTC by Couriersud
Hopefully fix Visual Studio compile. (nw)
[src/osd/windows]osinline.h winwork.c

trunk/src/osd/windows/osinline.h
r242710r242711
1919#include "eivc.h"
2020#endif
2121
22#if __GNUC__ && defined(__i386__) && !defined(__x86_64)
23#undef YieldProcessor
24#endif
25
26#ifndef YieldProcessor
27#ifdef __GNUC__
28INLINE void osd_yield_processor(void)
29{
30    __asm__ __volatile__ ( "rep; nop" );
31}
32#else
33INLINE void osd_yield_processor(void)
34{
35    __asm { rep nop }
36}
37#endif
38#else
39#define osd_yield_processor YieldProcessor
40#endif
41
4222INT32 win_compare_exchange32(INT32 volatile *ptr, INT32 compare, INT32 exchange);
4323INT32 win_atomic_exchange32(INT32 volatile *ptr, INT32 exchange);
4424INT32 win_atomic_add32(INT32 volatile *ptr, INT32 delta);
trunk/src/osd/windows/winwork.c
r242710r242711
2525
2626#include "eminline.h"
2727
28#include "osinline.h"
2928
30
3129//============================================================
3230//  DEBUGGING
3331//============================================================
r242710r242711
5957#define end_timing(v)           do { } while (0)
6058#endif
6159
60#if __GNUC__ && defined(__i386__) && !defined(__x86_64)
61#undef YieldProcessor
62#endif
63
64#ifndef YieldProcessor
65#ifdef __GNUC__
66INLINE void osd_yield_processor(void)
67{
68   __asm__ __volatile__ ( "rep; nop" );
69}
70#else
71INLINE void osd_yield_processor(void)
72{
73   __asm { rep nop }
74}
75#endif
76#else
77#define osd_yield_processor YieldProcessor
78#endif
79
80
81
6282//============================================================
6383//  TYPE DEFINITIONS
6484//============================================================


Previous 199869 Revisions Next


© 1997-2024 The MAME Team