search for: _z23atomic_exchange_and_addpii

Displaying 1 result from an estimated 1 matches for "_z23atomic_exchange_and_addpii".

2010 Oct 04
1
[LLVMdev] how to handle inline asm code when converting c++ to C
Hi, I am using llvm to convert some C++ code to C. However the C++ code has couple of lines of assembly that is supposed to be inlined. I am using __asm__ directive. However the resulting C code has syntax errors: main.c: In function ‘_Z23atomic_exchange_and_addPii’: main.c:397: error: expected ‘:’ or ‘)’ before string constant main.c: In function ‘_Z16atomic_incrementPi’: main.c:421: error: expected ‘:’ or ‘)’ before string constant For reference here is the line in the code that is causing the above errors: __asm__ volatile ("lock\n\txadd %1, %0&quot...