\begin{slide}{Von Bitfolgen zu Zahlen}

\begin{verbatim}
static int decode (boolean [] x) {
    int accu = 0;
    for (int i=width-1; i>=0; i--) {
        accu *= 2;
        if (x[i]) {
        accu ++;
        }
    }
    return accu;
}
\end{verbatim}

\end{slide}
