mirror of
https://github.com/Gericom/GBARunner3.git
synced 2025-06-18 19:25:41 -04:00
9 lines
214 B
C++
9 lines
214 B
C++
#include "common.h"
|
|
|
|
extern "C" unsigned int __atomic_fetch_sub_4(volatile void* ptr, unsigned int val, int memorder)
|
|
{
|
|
unsigned int tmp = *(unsigned int*)ptr;
|
|
*(unsigned int*)ptr -= val;
|
|
return tmp;
|
|
}
|