boostorg/thread

x86 inline assembly should provide an alternative for Intel syntax

lhmouse opened this issue · 0 comments

Instead of

__asm__ __volatile__ ("movl %1, %0" : "=r" (res) : "m" (*x) : "memory");

we should have

 __asm__ __volatile__ ("{ movl %1, %0 | mov %0, %1 }" : "=r" (res) : "m" (*x) : "memory");