MCPcopy Create free account
hub / github.com/F-Stack/f-stack / atomic_load_acq_16

Function atomic_load_acq_16

freebsd/sys/_atomic_subword.h:193–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191
192#ifndef atomic_load_acq_16
193static __inline uint16_t
194atomic_load_acq_16(volatile uint16_t *p)
195{
196 int shift;
197 uint16_t ret;
198
199 shift = _ATOMIC_HWORD_SHIFT(p);
200 ret = (atomic_load_acq_32(_ATOMIC_WORD_ALIGNED(p)) >> shift) &
201 0xffff;
202 return (ret);
203}
204#endif
205
206#undef _ATOMIC_WORD_ALIGNED

Callers

nothing calls this directly

Calls 1

atomic_load_acq_32Function · 0.85

Tested by

no test coverage detected