mirror of
https://github.com/holub/mame
synced 2025-04-26 10:13:37 +03:00
Minor code path optimization. (nw)
This commit is contained in:
parent
594bfc43b4
commit
7ddd65cbc1
@ -106,9 +106,13 @@ static void spin_while(const volatile _PtrType * volatile ptr, const _PtrType va
|
||||
osd_yield_processor();
|
||||
#else
|
||||
do {
|
||||
int spin = 100000;
|
||||
while (--spin && ((*ptr == val) ^ invert))
|
||||
osd_yield_processor();
|
||||
int spin = 10000;
|
||||
while (--spin)
|
||||
{
|
||||
//osd_yield_processor();
|
||||
if ((*ptr == val) ^ invert)
|
||||
return;
|
||||
}
|
||||
} while (((*ptr == val) ^ invert) && osd_ticks() < stopspin);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user