Not sure why I used intrinsics at the time. Probably wasn't comfortable getting gcc to do what I wanted.