33 if (size <= ((
size_t)bit >> 3))
36 *(vec + (bit >> 3)) |= (
uint8_t)(1 << (bit & 0x07));
53 if (size <= ((
size_t)bit >> 3))
56 *(vec + (bit >> 3)) &= (
uint8_t)(~(1 << (bit & 0x07)));
72 if (size <= ((
size_t)bit >> 3))
75 return (*(vec + (bit >> 3)) & (1 << (bit & 0x07))) != 0;
COAP_STATIC_INLINE int bits_clrb(uint8_t *vec, size_t size, uint8_t bit)
Clears the bit bit from bit-vector vec.
#define COAP_STATIC_INLINE
COAP_STATIC_INLINE int bits_setb(uint8_t *vec, size_t size, uint8_t bit)
Sets the bit bit in bit-vector vec.
COAP_STATIC_INLINE int bits_getb(const uint8_t *vec, size_t size, uint8_t bit)
Gets the status of bit bit from bit-vector vec.