  */
 __device__ inline void
 gpujpeg_huffman_gpu_decoder_load_bits(
-                const unsigned int required_bit_count,
-                unsigned int & r_bit, unsigned int & r_bit_count, uint4 * const s_byte, 
-                unsigned int & s_byte_idx, const uint4 * & d_byte, unsigned int & d_byte_chunk_count
+                const unsigned int required_bit_count, unsigned int & r_bit,
+                unsigned int & r_bit_count, uint4 * const s_byte, unsigned int & s_byte_idx
 ) {
     // Add bytes until have enough
     while(r_bit_count < required_bit_count) {

 */
__device__ inline unsigned int
gpujpeg_huffman_gpu_decoder_get_bits(
                const unsigned int nbits, unsigned int & r_bit, unsigned int & r_bit_count, uint4 * const s_byte, 
                unsigned int & s_byte_idx, const uint4 * & d_byte, unsigned int & d_byte_chunk_count)
{
    // load bits into the register if haven't got enough
    gpujpeg_huffman_gpu_decoder_load_bits(nbits, r_bit, r_bit_count, s_byte, s_byte_idx, d_byte, d_byte_chunk_count);
    
    // update remaining bit count
    r_bit_count -= nbits;

        r_bit = (r_bit << 8) + byte_value;
        r_bit_count += 8;
    }
}


