static __inline__ int atomic_sub_and_test (int i, atomic_t * v) { unsigned char c; __asm__ __volatile__ ("lock ; subl %2,%0; sete %1":"=m" (v->counter), "=qm" (c):"ir" (i), "m" (v->counter):"memory"); return c; } |
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |