Searched refs:bit_nr (Results 1 - 3 of 3) sorted by relevance

/freebsd-10-stable/contrib/ldns/
H A Dutil.c72 ldns_set_bit(uint8_t *byte, int bit_nr, bool value) argument
78 if (bit_nr >= 0 && bit_nr < 8) {
80 *byte = *byte | (0x01 << bit_nr);
82 *byte = *byte & ~(0x01 << bit_nr);
/freebsd-10-stable/contrib/ldns/ldns/
H A Dutil.h.in206 * \param[in] bit_nr the bit to set (0 <= n <= 7)
210 void ldns_set_bit(uint8_t *byte, int bit_nr, bool value);
H A Dutil.h206 * \param[in] bit_nr the bit to set (0 <= n <= 7)
210 void ldns_set_bit(uint8_t *byte, int bit_nr, bool value);

Completed in 45 milliseconds