Skip to content

Commit 60969ff

Browse files
authored
explicitly list the data types supported for explicit conversions (KhronosGroup#1340)
Instead of listing the data types that are NOT supported for explicit conversions, list the data types that ARE supported.
1 parent 96442e7 commit 60969ff

1 file changed

Lines changed: 15 additions & 12 deletions

File tree

OpenCL_C.txt

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -376,10 +376,8 @@ ifdef::cl_khr_fp16[]
376376
[[cl_khr_fp16,cl_khr_fp16]]
377377
==== Half-Precision Floating-Point
378378

379-
The {cl_khr_fp16_EXT} extension was promoted to OpenCL C 1.2 as an optional
380-
feature, and to OpenCL 3.0 as the optional {cl_khr_fp16_EXT} feature.
381-
The extension provides 16-bit precision scalar and vector floating-point
382-
data types and extends many functions to accept these types.
379+
The {cl_khr_fp16_EXT} extension provides 16-bit half-precision scalar and vector
380+
floating-point data types and extends many functions to accept these types.
383381
endif::cl_khr_fp16[]
384382

385383

@@ -388,9 +386,9 @@ ifdef::cl_khr_fp64[]
388386
==== Double-Precision Floating-Point
389387

390388
The {cl_khr_fp64_EXT} extension was promoted to OpenCL C 1.2 as an optional
391-
feature, and to OpenCL 3.0 as the optional {cl_khr_fp64_EXT} feature.
392-
The extension provides double-precision scalar and vector floating-point
393-
data types and extends many functions to accept these types.
389+
feature.
390+
It provides double-precision scalar and vector floating-point data types and
391+
extends many functions to accept these types.
394392
endif::cl_khr_fp64[]
395393

396394

@@ -1688,11 +1686,16 @@ convert_destType(sourceType)
16881686

16891687
suite of functions.
16901688
These provide a full set of type conversions between supported
1691-
<<built-in-scalar-data-types,scalar>>,
1692-
<<built-in-vector-data-types,vector>>, and
1693-
<<other-built-in-data-types,other>> data types except for the following
1694-
types: `bool`, `half`, `size_t`, `ptrdiff_t`, `intptr_t`, `uintptr_t`, and
1695-
`void`.
1689+
<<built-in-scalar-data-types,scalar>> and
1690+
<<built-in-vector-data-types,vector>> data types:
1691+
1692+
* `char`, `char__n__`, `uchar`, `uchar__n__`
1693+
* `short`, `short__n__`, `ushort`, `ushort__n__`
1694+
* `int`, `int__n__`, `uint`, `uint__n__`
1695+
* `long` footnote:[{fn-int64-supported}], `long__n__`, `ulong`, `ulong__n__`
1696+
* `float`, `float__n__`
1697+
* `half` footnote:[{fn-half-supported}], `half__n__`
1698+
* `double` footnote:[{fn-double-supported}], `double__n__`
16961699

16971700
The number of elements in the source and destination vectors must match.
16981701

0 commit comments

Comments
 (0)