1- // Copyright 2021 The Khronos Group. This work is licensed under a
1+ // Copyright 2022 The Khronos Group. This work is licensed under a
22// Creative Commons Attribution 4.0 International License; see
33// http://creativecommons.org/licenses/by/4.0/
44
@@ -43,7 +43,7 @@ Stuart Brady, Arm Ltd. +
4343
4444This extension adds the following built-in function:
4545
46- [source,c ]
46+ [source,opencl_c ]
4747----
4848gentype sub_group_rotate(gentype value, int delta)
4949gentype sub_group_clustered_rotate(gentype value, int delta, uint clustersize)
@@ -57,7 +57,7 @@ gentype sub_group_clustered_rotate(gentype value, int delta, uint clustersize)
5757
5858The following preprocessor definitions are added:
5959
60- [source,c ]
60+ [source,opencl_c ]
6161----
6262#define cl_khr_subgroup_rotate 1
6363----
@@ -75,7 +75,7 @@ or `half` (if half precision is supported).
7575|*Function*
7676|*Description*
7777
78- |[source,c ]
78+ |[source,opencl_c ]
7979----
8080gentype sub_group_rotate(
8181 gentype value, int delta)
@@ -89,7 +89,7 @@ the subgroup, otherwise the behavior is undefined.
8989The return value is undefined if the work item with subgroup local ID equal to the
9090calculated index is inactive.
9191
92- |[source,c ]
92+ |[source,opencl_c ]
9393----
9494gentype sub_group_clustered_rotate(
9595 gentype value, int delta, uint clustersize)
0 commit comments