Home
last modified time | relevance | path

Searched refs:msb_bit (Results 1 – 1 of 1) sorted by relevance

/external/libiio/src/
Dchannel.c491 uint8_t msb, msb_bit = 1 << ((bits - 1) % 8); in sign_extend() local
494 msb = dst[len - 1 - upper_bytes] & msb_bit; in sign_extend()
498 dst[len - 1 - upper_bytes] |= ~(msb_bit - 1); in sign_extend()
500 dst[len - 1 - upper_bytes] &= (msb_bit - 1); in sign_extend()
503 msb = dst[upper_bytes] & msb_bit; in sign_extend()
507 dst[upper_bytes] |= ~(msb_bit - 1); in sign_extend()