return ((unsigned short) ((unsigned int)f.get() + (((unsigned int)f.get()) << 8)));
return static_cast<unsigned short> (static_cast<unsigned int>(f.get()) + (static_cast<unsigned int>(f.get()) << 8));
inline unsigned short read_ushort(ifstream &f){  return ((unsigned short) ((unsigned int)f.get() + (((unsigned int)f.get()) << 8)));}