This change appears to change the interpretation of data in the input file depending on the host endianness.  Have you tested this -- does this chunk really improve matters on MIPS?