Description
The following table describes the list of built-in scalar data types.
| Type | Description |
|---|---|
|
A conditional data type which is either true or false. The value true expands to the integer constant 1 and the value false expands to the integer constant 0. |
|
A signed two’s complement 8-bit integer. |
|
An unsigned 8-bit integer. |
|
A signed two’s complement 16-bit integer. |
|
An unsigned 16-bit integer. |
|
A signed two’s complement 32-bit integer. |
|
An unsigned 32-bit integer. |
|
A signed two’s complement 64-bit integer. |
|
An unsigned 64-bit integer. |
|
A 32-bit floating-point number.
The |
|
A 64-bit floating-point number.
The Requires support for double-precision. |
|
A 16-bit floating-point number.
The |
|
The unsigned integer type of the result of the |
|
A signed integer type that is the result of subtracting two pointers. |
|
A signed integer type with the property that any valid pointer to
|
|
An unsigned integer type with the property that any valid pointer
to |
|
The |
Most built-in scalar data types are also declared as appropriate types in the OpenCL API (and header files) that can be used by an application. The following table describes the built-in scalar data type in the OpenCL C programming language and the corresponding data type available to the application:
| Type in OpenCL Language | API type for application |
|---|---|
|
n/a |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
n/a |
|
n/a |
|
n/a |
|
n/a |
|
|
Document Notes
For more information, see the OpenCL C Specification
This page is extracted from the OpenCL C Specification. Fixes and changes should be made to the Specification, not directly.