x86-64 assembly functions dealing with number/bit streams