\doxysection{helpers for GSM}
\label{group__bitvec}\index{helpers for GSM@{helpers for GSM}}
\doxysubsection*{Files}
\begin{DoxyCompactItemize}
\item 
file \textbf{ bitvec\+\_\+gsm.\+h}
\end{DoxyCompactItemize}
\doxysubsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum {\bfseries bit\+\_\+value} 
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
enum \textbf{ bit\+\_\+value} \textbf{ bitvec\+\_\+get\+\_\+bit\+\_\+pos} (const struct \textbf{ bitvec} $\ast$bv, unsigned int bitnr)
\item 
enum \textbf{ bit\+\_\+value} \textbf{ bitvec\+\_\+get\+\_\+bit\+\_\+pos\+\_\+high} (const struct \textbf{ bitvec} $\ast$bv, unsigned int bitnr)
\item 
unsigned int \textbf{ bitvec\+\_\+get\+\_\+nth\+\_\+set\+\_\+bit} (const struct \textbf{ bitvec} $\ast$bv, unsigned int \textbf{ n})
\item 
int \textbf{ bitvec\+\_\+set\+\_\+bit\+\_\+pos} (struct \textbf{ bitvec} $\ast$bv, unsigned int bitnr, enum \textbf{ bit\+\_\+value} bit)
\item 
int \textbf{ bitvec\+\_\+set\+\_\+bit} (struct \textbf{ bitvec} $\ast$bv, enum \textbf{ bit\+\_\+value} bit)
\item 
int \textbf{ bitvec\+\_\+get\+\_\+bit\+\_\+high} (struct \textbf{ bitvec} $\ast$bv)
\item 
int \textbf{ bitvec\+\_\+set\+\_\+bits} (struct \textbf{ bitvec} $\ast$bv, const enum \textbf{ bit\+\_\+value} $\ast$bits, unsigned int count)
\item 
int \textbf{ bitvec\+\_\+set\+\_\+u64} (struct \textbf{ bitvec} $\ast$bv, uint64\+\_\+t v, uint8\+\_\+t num\+\_\+bits, bool use\+\_\+lh)
\item 
int \textbf{ bitvec\+\_\+set\+\_\+uint} (struct \textbf{ bitvec} $\ast$bv, unsigned int ui, unsigned int num\+\_\+bits)
\item 
int \textbf{ bitvec\+\_\+get\+\_\+uint} (struct \textbf{ bitvec} $\ast$bv, unsigned int num\+\_\+bits)
\item 
int \textbf{ bitvec\+\_\+find\+\_\+bit\+\_\+pos} (const struct \textbf{ bitvec} $\ast$bv, unsigned int \textbf{ n}, enum \textbf{ bit\+\_\+value} val)
\item 
int \textbf{ bitvec\+\_\+spare\+\_\+padding} (struct \textbf{ bitvec} $\ast$bv, unsigned int up\+\_\+to\+\_\+bit)
\item 
int \textbf{ bitvec\+\_\+get\+\_\+bytes} (struct \textbf{ bitvec} $\ast$bv, uint8\+\_\+t $\ast$bytes, unsigned int count)
\item 
int \textbf{ bitvec\+\_\+set\+\_\+bytes} (struct \textbf{ bitvec} $\ast$bv, const uint8\+\_\+t $\ast$bytes, unsigned int count)
\item 
struct \textbf{ bitvec} $\ast$ \textbf{ bitvec\+\_\+alloc} (unsigned int size, void $\ast$ctx)
\item 
void \textbf{ bitvec\+\_\+free} (struct \textbf{ bitvec} $\ast$bv)
\item 
int \textbf{ bitvec\+\_\+unhex} (struct \textbf{ bitvec} $\ast$bv, const char $\ast$src)
\item 
unsigned int \textbf{ bitvec\+\_\+pack} (const struct \textbf{ bitvec} $\ast$bv, uint8\+\_\+t $\ast$\textbf{ buffer})
\item 
unsigned int \textbf{ bitvec\+\_\+unpack} (struct \textbf{ bitvec} $\ast$bv, const uint8\+\_\+t $\ast$\textbf{ buffer})
\item 
uint64\+\_\+t \textbf{ bitvec\+\_\+read\+\_\+field} (struct \textbf{ bitvec} $\ast$bv, unsigned int $\ast$read\+\_\+index, unsigned int \textbf{ len})
\item 
int \textbf{ bitvec\+\_\+write\+\_\+field} (struct \textbf{ bitvec} $\ast$bv, unsigned int $\ast$write\+\_\+index, uint64\+\_\+t val, unsigned int \textbf{ len})
\item 
int \textbf{ bitvec\+\_\+fill} (struct \textbf{ bitvec} $\ast$bv, unsigned int num\+\_\+bits, enum \textbf{ bit\+\_\+value} fill)
\item 
char \textbf{ bit\+\_\+value\+\_\+to\+\_\+char} (enum \textbf{ bit\+\_\+value} v)
\item 
void \textbf{ bitvec\+\_\+to\+\_\+string\+\_\+r} (const struct \textbf{ bitvec} $\ast$bv, char $\ast$str)
\item 
void \textbf{ bitvec\+\_\+zero} (struct \textbf{ bitvec} $\ast$bv)
\item 
unsigned \textbf{ bitvec\+\_\+rl} (const struct \textbf{ bitvec} $\ast$bv, bool b)
\item 
unsigned \textbf{ bitvec\+\_\+rl\+\_\+curbit} (struct \textbf{ bitvec} $\ast$bv, bool b, unsigned int max\+\_\+bits)
\item 
void \textbf{ bitvec\+\_\+shiftl} (struct \textbf{ bitvec} $\ast$bv, unsigned int \textbf{ n})
\item 
int16\+\_\+t \textbf{ bitvec\+\_\+get\+\_\+int16\+\_\+msb} (const struct \textbf{ bitvec} $\ast$bv, unsigned int num\+\_\+bits)
\item 
unsigned int \textbf{ bitvec\+\_\+add\+\_\+array} (struct \textbf{ bitvec} $\ast$bv, const uint32\+\_\+t $\ast$array, unsigned int array\+\_\+len, bool dry\+\_\+run, unsigned int num\+\_\+bits)
\item 
static unsigned int \textbf{ bitvec\+\_\+used\+\_\+bytes} (const struct \textbf{ bitvec} $\ast$bv)
\item 
static unsigned int \textbf{ bitvec\+\_\+tailroom\+\_\+bits} (const struct \textbf{ bitvec} $\ast$bv)
\item 
static unsigned int \textbf{ bytenum\+\_\+from\+\_\+bitnum} (unsigned int bitnum)
\item 
static uint8\+\_\+t \textbf{ bitval2mask} (enum \textbf{ bit\+\_\+value} bit, uint8\+\_\+t bitnum)
\item 
static unsigned \textbf{ leading\+\_\+bits} (uint8\+\_\+t x, bool b)
\item 
void \textbf{ bitvec\+\_\+shiftl} (struct \textbf{ bitvec} $\ast$bv, unsigned \textbf{ n})
\item 
void \textbf{ bitvec\+\_\+add\+\_\+range1024} (struct \textbf{ bitvec} $\ast$bv, const struct \textbf{ gsm48\+\_\+range\+\_\+1024} $\ast$r)
\begin{DoxyCompactList}\small\item\em append range1024 encoded data to bit vector \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\textbf{ ZERO}
\item 
\textbf{ ONE}
\item 
\textbf{ L}
\item 
\textbf{ H}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}


\doxysubsection{Function Documentation}
\mbox{\label{group__bitvec_ga44602d7ae79653c5c5d9a88d4667734b}} 
\index{helpers for GSM@{helpers for GSM}!bitvec\_add\_range1024@{bitvec\_add\_range1024}}
\index{bitvec\_add\_range1024@{bitvec\_add\_range1024}!helpers for GSM@{helpers for GSM}}
\doxysubsubsection{bitvec\_add\_range1024()}
{\footnotesize\ttfamily void bitvec\+\_\+add\+\_\+range1024 (\begin{DoxyParamCaption}\item[{struct \textbf{ bitvec} $\ast$}]{bv,  }\item[{const struct \textbf{ gsm48\+\_\+range\+\_\+1024} $\ast$}]{r }\end{DoxyParamCaption})}



append range1024 encoded data to bit vector 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ out}}  & {\em bv} & Caller-\/provided output bit-\/vector \\
\hline
\mbox{\texttt{ in}}  & {\em r} & Input Range1024 sructure \\
\hline
\end{DoxyParams}


References \textbf{ bitvec\+\_\+set\+\_\+uint()}.



Referenced by \textbf{ append\+\_\+utran\+\_\+fdd()}.

