| 237 | */ |
| 238 | #ifndef SDL_AtomicAdd |
| 239 | static __inline__ int SDL_AtomicAdd(SDL_atomic_t *a, int v) |
| 240 | { |
| 241 | int value; |
| 242 | do { |
| 243 | value = a->value; |
| 244 | } while (!SDL_AtomicCAS(a, value, (value + v))); |
| 245 | return value; |
| 246 | } |
| 247 | #endif |
| 248 | |
| 249 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected