Lines Matching refs:LOCK_PREFIX
26 #define LOCK_PREFIX "lock;" macro
249 __arch_add_body (LOCK_PREFIX, atomic, __arch, mem, value)
261 __asm __volatile (LOCK_PREFIX "addb %b2, %0; sets %1" \
265 __asm __volatile (LOCK_PREFIX "addw %w2, %0; sets %1" \
269 __asm __volatile (LOCK_PREFIX "addl %2, %0; sets %1" \
273 __asm __volatile (LOCK_PREFIX "addq %q2, %0; sets %1" \
285 __asm __volatile (LOCK_PREFIX "addb %b2, %0; setz %1" \
289 __asm __volatile (LOCK_PREFIX "addw %w2, %0; setz %1" \
293 __asm __volatile (LOCK_PREFIX "addl %2, %0; setz %1" \
297 __asm __volatile (LOCK_PREFIX "addq %q2, %0; setz %1" \
332 #define atomic_increment(mem) __arch_increment_body (LOCK_PREFIX, __arch, mem)
344 __asm __volatile (LOCK_PREFIX "incb %b0; sete %b1" \
348 __asm __volatile (LOCK_PREFIX "incw %w0; sete %w1" \
352 __asm __volatile (LOCK_PREFIX "incl %0; sete %1" \
356 __asm __volatile (LOCK_PREFIX "incq %q0; sete %1" \
390 #define atomic_decrement(mem) __arch_decrement_body (LOCK_PREFIX, __arch, mem)
402 __asm __volatile (LOCK_PREFIX "decb %b0; sete %1" \
406 __asm __volatile (LOCK_PREFIX "decw %w0; sete %1" \
410 __asm __volatile (LOCK_PREFIX "decl %0; sete %1" \
414 __asm __volatile (LOCK_PREFIX "decq %q0; sete %1" \
423 __asm __volatile (LOCK_PREFIX "orb %b2, %0" \
427 __asm __volatile (LOCK_PREFIX "orw %w2, %0" \
431 __asm __volatile (LOCK_PREFIX "orl %2, %0" \
435 __asm __volatile (LOCK_PREFIX "orq %2, %0" \
439 __asm __volatile (LOCK_PREFIX "orq %q2, %0" \
450 __asm __volatile (LOCK_PREFIX "btsb %3, %1; setc %0" \
454 __asm __volatile (LOCK_PREFIX "btsw %3, %1; setc %0" \
458 __asm __volatile (LOCK_PREFIX "btsl %3, %1; setc %0" \
462 __asm __volatile (LOCK_PREFIX "btsq %3, %1; setc %0" \
499 #define atomic_and(mem, mask) __arch_and_body (LOCK_PREFIX, mem, mask)
530 #define atomic_or(mem, mask) __arch_or_body (LOCK_PREFIX, mem, mask)
537 __asm __volatile (LOCK_PREFIX "orl $0, (%%" SP_REG ")" ::: "memory")