fixes to PPC version of cas(), from David Kirkman <dkirkman@gmail.com>