Searched refs:bit_nr (Results 1 – 3 of 3) sorted by relevance
72 ldns_set_bit(uint8_t *byte, int bit_nr, bool value) in ldns_set_bit() argument78 if (bit_nr >= 0 && bit_nr < 8) { in ldns_set_bit()80 *byte = *byte | (0x01 << bit_nr); in ldns_set_bit()82 *byte = *byte & ~(0x01 << bit_nr); in ldns_set_bit()
210 void ldns_set_bit(uint8_t *byte, int bit_nr, bool value);
206 * \param[in] bit_nr the bit to set (0 <= n <= 7)210 void ldns_set_bit(uint8_t *byte, int bit_nr, bool value);