FreeCalypso > hg > sipout-test-utils
view libutil/bitfunc.c @ 8:eaf0e8f81a22
test-fsk: don't feed RTP to modem Rx during ringing
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 06 Mar 2024 21:33:49 -0800 |
parents | 35c0d9f03c0a |
children |
line wrap: on
line source
/* * Some bit manipulation functions. */ #include <stdint.h> #include "osmo_bits.h" void uint16_to_bits(uint16_t word, ubit_t *out, unsigned nbits) { unsigned n; for (n = 0; n < nbits; n++) out[n] = (word >> (nbits-n-1)) & 1; }