implementation of ppc::STW