update ppc atomic code to match the endian-agnostic version on other archs