mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-07-30 12:47:28 +02:00
Use the supported compiler intrinsic __sync(); instead of msync asm
This commit is contained in:
@ -60,14 +60,10 @@ inline long atomic_decrement( register long * pw )
|
|||||||
{
|
{
|
||||||
register int a;
|
register int a;
|
||||||
|
|
||||||
|
__sync();
|
||||||
|
|
||||||
asm
|
asm
|
||||||
{
|
{
|
||||||
#if defined(__PPCZen__) || defined(__PPCe500__) || defined(__PPCe500v2__)
|
|
||||||
msync
|
|
||||||
#else
|
|
||||||
sync
|
|
||||||
#endif
|
|
||||||
|
|
||||||
loop:
|
loop:
|
||||||
|
|
||||||
lwarx a, 0, pw
|
lwarx a, 0, pw
|
||||||
|
Reference in New Issue
Block a user