| Previous | 199869 Revisions | Next |
| r34210 Tuesday 6th January, 2015 at 03:03:39 UTC by Couriersud |
|---|
| Minor code path optimization. (nw) |
| [src/osd/modules/sync] | work_osd.c |
| r242721 | r242722 | |
|---|---|---|
| 106 | 106 | osd_yield_processor(); |
| 107 | 107 | #else |
| 108 | 108 | do { |
| 109 | int spin = 100000; | |
| 110 | while (--spin && ((*ptr == val) ^ invert)) | |
| 111 | osd_yield_processor(); | |
| 109 | int spin = 10000; | |
| 110 | while (--spin) | |
| 111 | { | |
| 112 | //osd_yield_processor(); | |
| 113 | if ((*ptr == val) ^ invert) | |
| 114 | return; | |
| 115 | } | |
| 112 | 116 | } while (((*ptr == val) ^ invert) && osd_ticks() < stopspin); |
| 113 | 117 | #endif |
| 114 | 118 | } |
| https://github.com/mamedev/mame/commit/7ddd65cbc1e8d1769202b4dbbde439f74fecf263 |
| Previous | 199869 Revisions | Next |