#ifndef _TOOLS_LINUX_ASM_X86_RMWcc #define _TOOLS_LINUX_ASM_X86_RMWcc #ifdef CC_HAVE_ASM_GOTO #define __GEN_RMWcc(fullop, var, cc, ...) \ do { \ asm_volatile_goto (fullop "; j" cc " %l[cc_label]" \ : : "m" (var), ## __VA_ARGS__ \ : "memory" : cc_label); \ return 0; \ cc_label: \ return 1; \ } while (0) #define GEN_UNARY_RMWcc(op, var, arg0, cc) \ __GEN_RMWcc(op " " arg0, var, cc) #define GEN_BINARY_RMWcc(op, var, vcon, val, arg0, cc) \ __GEN_RMWcc(op " %1, " arg0, var, cc, vcon (val)) #else /* !CC_HAVE_ASM_GOTO */ #define __GEN_RMWcc(fullop, var, cc, ...) \ do { \ char c; \ asm volatile (fullop "; set" cc " %1" \ : "+m" (var), "=qm" (c) \ : __VA_ARGS__ : "memory"); \ return c != 0; \ } while (0) #define GEN_UNARY_RMWcc(op, var, arg0, cc) \ __GEN_RMWcc(op " " arg0, var, cc) #define GEN_BINARY_RMWcc(op, var, vcon, val, arg0, cc) \ __GEN_RMWcc(op " %2, " arg0, var, cc, vcon (val)) #endif /* CC_HAVE_ASM_GOTO */ #endif /* _TOOLS_LINUX_ASM_X86_RMWcc */ lected='selected'>master</option> <option value='nds-private-remove'>nds-private-remove</option> <option value='packet-loop-back'>packet-loop-back</option> <option value='packet-rx-pump-back'>packet-rx-pump-back</option> </select> <input type='submit' value='switch'/></form></td></tr> <tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table> <table class='tabs'><tr><td> <a href='/cgit.cgi/linux/net-next.git/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=05e0be7c900797e9164976a6014d534ce3035909'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/sound/core/seq/seq_lock.h'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/sound/core/seq/seq_lock.h?id=05e0be7c900797e9164976a6014d534ce3035909'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/sound/core/seq/seq_lock.h?id=05e0be7c900797e9164976a6014d534ce3035909'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/sound/core/seq/seq_lock.h?id=05e0be7c900797e9164976a6014d534ce3035909'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/sound/core/seq/seq_lock.h'> <input type='hidden' name='id' value='05e0be7c900797e9164976a6014d534ce3035909'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=05e0be7c900797e9164976a6014d534ce3035909'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound?id=05e0be7c900797e9164976a6014d534ce3035909'>sound</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/core?id=05e0be7c900797e9164976a6014d534ce3035909'>core</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/core/seq?id=05e0be7c900797e9164976a6014d534ce3035909'>seq</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/core/seq/seq_lock.h?id=05e0be7c900797e9164976a6014d534ce3035909'>seq_lock.h</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/sound/core/seq/seq_lock.h?id=05e0be7c900797e9164976a6014d534ce3035909&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>