add new byteswapping primops (reverse-merged from commit 9edd3369b62f127bc8ed0db98062656d91ebf5d6)