more ices
[ICEs.git] / 318007 / buf0buf.i.2
1 rw_lock_x_lock_func_nowait()
2 {
3 volatile long int lock_word;
4 retry_x_lock:
5 if (__sync_sub_and_fetch(&lock_word, 0x00100000))
6 if (__sync_fetch_and_add
7 (&lock_word, 0x00100000))
8 goto retry_x_lock;
9 }