混洗函数
可以参考: https://www.khronos.org/registry/OpenCL/sdk/1.1/docs/man/xhtml/shuffle.html
// 创建一个包含x中元素的向量,包含哪些元素有 mask 控制 gentypen shuffle ( gentypem x, ugentypen mask ) gentypen shuffle2 ( gentypem x, gentypem y, ugentypen mask )
选择函数
参考:https://www.khronos.org/registry/OpenCL/sdk/1.1/docs/man/xhtml/bitselect.html
https://www.khronos.org/registry/OpenCL/sdk/1.0/docs/man/xhtml/select.html
gentype select ( gentype a, gentype b, igentype c
) gentype select (
gentype a, gentype b, ugentype c
) gentype bitselect ( gentype a, gentype b, gentype c )