Changes in uspace/lib/c/arch/amd64/include/atomic.h [7dfcc50a:63f8966] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/amd64/include/atomic.h
r7dfcc50a r63f8966 45 45 { 46 46 asm volatile ( 47 "lock incq % 0\n"48 : "+m" (val->count)47 "lock incq %[count]\n" 48 : [count] "+m" (val->count) 49 49 ); 50 50 } … … 53 53 { 54 54 asm volatile ( 55 "lock decq % 0\n"56 : "+m" (val->count)55 "lock decq %[count]\n" 56 : [count] "+m" (val->count) 57 57 ); 58 58 } … … 63 63 64 64 asm volatile ( 65 "lock xaddq % 1, %0\n"66 : "+m" (val->count),67 "+r" (r)65 "lock xaddq %[r], %[count]\n" 66 : [count] "+m" (val->count), 67 [r] "+r" (r) 68 68 ); 69 69 … … 76 76 77 77 asm volatile ( 78 "lock xaddq % 1, %0\n"79 : "+m" (val->count),80 "+r" (r)78 "lock xaddq %[r], %[count]\n" 79 : [count] "+m" (val->count), 80 [r] "+r" (r) 81 81 ); 82 82
Note:
See TracChangeset
for help on using the changeset viewer.