Y>>24 will be the byte at +3 on a little-endian system, or +0 on a big-endian system. It's therefore the digit in the 10^0 column in the former case, or the 10^3 column in the latter.
So it actually looks like it currently assumes a big-endian system.
So it actually looks like it currently assumes a big-endian system.