------- Comment #3 from ubizjak at gmail dot com 2010-01-04 16:07 ------- (In reply to comment #2) > The inline-asm is totally incorrect here ...
Actually, the asm is correct, it is just a couple of volatiles that are missing. Please see arch/x86/include/asm/bitops.h from linux-2.6 for correct implementation. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42553