Commited Cyrille Bagard patch to SWAP macro
This commit is contained in:
parent
823edd7146
commit
2f6d3ee43e
|
@ -29,9 +29,13 @@
|
||||||
armcpu_t NDS_ARM7;
|
armcpu_t NDS_ARM7;
|
||||||
armcpu_t NDS_ARM9;
|
armcpu_t NDS_ARM9;
|
||||||
|
|
||||||
#define SWAP(a, b, c) c=a;\
|
#define SWAP(a, b, c) do \
|
||||||
a=b;\
|
{ \
|
||||||
b=c;
|
c=a; \
|
||||||
|
a=b; \
|
||||||
|
b=c; \
|
||||||
|
} \
|
||||||
|
while(0)
|
||||||
|
|
||||||
int armcpu_new(armcpu_t *armcpu, u32 id)
|
int armcpu_new(armcpu_t *armcpu, u32 id)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue