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

Function atomic_load_acq_8

freebsd/sys/_atomic_subword.h:180–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178
179#ifndef atomic_load_acq_8
180static __inline uint8_t
181atomic_load_acq_8(volatile uint8_t *p)
182{
183 int shift;
184 uint8_t ret;
185
186 shift = _ATOMIC_BYTE_SHIFT(p);
187 ret = (atomic_load_acq_32(_ATOMIC_WORD_ALIGNED(p)) >> shift) & 0xff;
188 return (ret);
189}
190#endif
191
192#ifndef atomic_load_acq_16

Callers

nothing calls this directly

Calls 1

atomic_load_acq_32Function · 0.85

Tested by

no test coverage detected