Use slightly more portable versions of compiler intrinsics
Rework test so that clang can compile them
Merge pull request #5 from serge-sans-paille/master

Fix clang compilation