Linus Torvalds writes: (Summary)
Another example of that can be found in our x86 bit operations macros:
Another example of that can be found in our x86 bit operations macros:
static __always_inline void
set_bit(long nr, volatile unsigned long *addr)
set_bit(long nr, volatile unsigned long *addr)
{ if (IS_IMMEDIATE(nr)) { asm volatile(LOCK_PREFIX "orb %1,%0" : CONST_MASK_ADDR(nr, addr) : "iq" ((u8)CONST_MASK(nr)) : "memory");