IDT code, memset+memcpy functions