Load/Store swap of sMemBaseNotifyFunc and state_idx
| 359 | |
| 360 | // Load/Store swap of sMemBaseNotifyFunc and state_idx |
| 361 | S32 xMemPopBase(U32 heapID, S32 depth) |
| 362 | { |
| 363 | xMemHeap_tag* heap = &gxHeap[heapID]; |
| 364 | if (depth < 0) |
| 365 | { |
| 366 | depth = heap->state_idx + depth; |
| 367 | } |
| 368 | |
| 369 | heap->state_idx = depth; |
| 370 | if (sMemBaseNotifyFunc != NULL) |
| 371 | { |
| 372 | sMemBaseNotifyFunc(); |
| 373 | } |
| 374 | |
| 375 | return heap->state_idx; |
| 376 | } |
| 377 | |
| 378 | S32 xMemPopBase(S32 depth) |
| 379 | { |
no outgoing calls
no test coverage detected