parent
b447ff7860
commit
d5c014e59b
1 changed files with 2 additions and 8 deletions
|
|
@ -281,10 +281,7 @@ static int __tcc_cas(int *ptr, int oldVal, int newVal)
|
|||
: "r" (newVal), "m" (*ptr), "a" (oldVal)
|
||||
: "memory");
|
||||
|
||||
if (ret)
|
||||
return 0;
|
||||
else
|
||||
return 1;
|
||||
return ret;
|
||||
}
|
||||
""".}
|
||||
else:
|
||||
|
|
@ -301,10 +298,7 @@ static int __tcc_cas(int *ptr, int oldVal, int newVal)
|
|||
: "r" (newVal), "m" (*ptr), "a" (oldVal)
|
||||
: "memory");
|
||||
|
||||
if (ret)
|
||||
return 0;
|
||||
else
|
||||
return 1;
|
||||
return ret;
|
||||
}
|
||||
""".}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue