endian patches