Home
last modified time | relevance | path

Searched refs:lock_value (Results 1 – 1 of 1) sorted by relevance

/picolibc-latest/newlib/libc/sys/amdgcn/
Dlock.c109 unsigned int lock_value = __atomic_load_n (lock_ptr, __ATOMIC_RELAXED); in __gcn_lock_acquire_recursive_int() local
110 if ((lock_value & 0xffffff) == id) in __gcn_lock_acquire_recursive_int()
114 int count = lock_value >> 24; in __gcn_lock_acquire_recursive_int()
115 lock_value = ((count + 1) << 24) | id; in __gcn_lock_acquire_recursive_int()
116 __atomic_store_n (lock_ptr, lock_value, __ATOMIC_RELAXED); in __gcn_lock_acquire_recursive_int()
160 unsigned int lock_value = __atomic_load_n (lock_ptr, __ATOMIC_RELAXED); in __gcn_lock_release_recursive() local
165 lock_ptr, lock_value, id); in __gcn_lock_release_recursive()
170 assert ((lock_value & 0xffffff) == id); in __gcn_lock_release_recursive()
173 int count = lock_value >> 24; in __gcn_lock_release_recursive()
176 lock_value = ((count - 1) << 24) | id; in __gcn_lock_release_recursive()
[all …]