libsimdpp icon indicating copy to clipboard operation
libsimdpp copied to clipboard

SIMDPP_HAS_SHUFFLE_BYTES16 is missing

Open xugng opened this issue 8 years ago • 1 comments

shuffle_bytes16 is not available on all instruction sets. Using it on unsupported instruction sets can result in errors that are difficult to track. Can we check availability via SIMDPP_HAS_SHUFFLE_BYTES16 macro?

xugng avatar Dec 15 '17 14:12 xugng

Thanks for the suggestion. The proposal makes sense. I guess all of shuffle_bytes16, shuffle_zbytes16, permute_bytes16 and permute_zbytes16 should be handled by that macro as any kind of byte shuffle instruction allows to implement all four functions.

p12tic avatar Dec 15 '17 19:12 p12tic