Use a more understandable Shorts.pack implementation