size_t EMUFILE::readdouble(double* val) { u64 temp; size_t ret = read64le(&temp); *val = u64_to_double(temp); return ret; }
u64 EMUFILE::read64le() { u64 temp; read64le(&temp); return temp; }
uint64_t read64(bool be,void *p) { return (be)?(read64be(p)):(read64le(p)); }