clang 20.0.0git
Macros | Typedefs | Enumerations | Functions
opencl-c-base.h File Reference

Go to the source code of this file.

Macros

#define __opencl_c_named_address_space_builtins   1
 
#define __half   half
 
#define MAXFLOAT   0x1.fffffep127f
 Value of maximum non-infinite single-precision floating-point number.
 
#define HUGE_VALF   (__builtin_huge_valf())
 A positive float constant expression.
 
#define HUGE_VAL   (__builtin_huge_val())
 A positive double constant expression.
 
#define INFINITY   (__builtin_inff())
 A constant expression of type float representing positive or unsigned infinity.
 
#define NAN   as_float(INT_MAX)
 A constant expression of type float representing a quiet NaN.
 
#define FP_ILOGB0   INT_MIN
 
#define FP_ILOGBNAN   INT_MAX
 
#define FLT_DIG   6
 
#define FLT_MANT_DIG   24
 
#define FLT_MAX_10_EXP   +38
 
#define FLT_MAX_EXP   +128
 
#define FLT_MIN_10_EXP   -37
 
#define FLT_MIN_EXP   -125
 
#define FLT_RADIX   2
 
#define FLT_MAX   0x1.fffffep127f
 
#define FLT_MIN   0x1.0p-126f
 
#define FLT_EPSILON   0x1.0p-23f
 
#define M_E_F   2.71828182845904523536028747135266250f
 
#define M_LOG2E_F   1.44269504088896340735992468100189214f
 
#define M_LOG10E_F   0.434294481903251827651128918916605082f
 
#define M_LN2_F   0.693147180559945309417232121458176568f
 
#define M_LN10_F   2.30258509299404568401799145468436421f
 
#define M_PI_F   3.14159265358979323846264338327950288f
 
#define M_PI_2_F   1.57079632679489661923132169163975144f
 
#define M_PI_4_F   0.785398163397448309615660845819875721f
 
#define M_1_PI_F   0.318309886183790671537767526745028724f
 
#define M_2_PI_F   0.636619772367581343075535053490057448f
 
#define M_2_SQRTPI_F   1.12837916709551257389615890312154517f
 
#define M_SQRT2_F   1.41421356237309504880168872420969808f
 
#define M_SQRT1_2_F   0.707106781186547524400844362104849039f
 
#define DBL_DIG   15
 
#define DBL_MANT_DIG   53
 
#define DBL_MAX_10_EXP   +308
 
#define DBL_MAX_EXP   +1024
 
#define DBL_MIN_10_EXP   -307
 
#define DBL_MIN_EXP   -1021
 
#define DBL_RADIX   2
 
#define DBL_MAX   0x1.fffffffffffffp1023
 
#define DBL_MIN   0x1.0p-1022
 
#define DBL_EPSILON   0x1.0p-52
 
#define M_E   0x1.5bf0a8b145769p+1
 
#define M_LOG2E   0x1.71547652b82fep+0
 
#define M_LOG10E   0x1.bcb7b1526e50ep-2
 
#define M_LN2   0x1.62e42fefa39efp-1
 
#define M_LN10   0x1.26bb1bbb55516p+1
 
#define M_PI   0x1.921fb54442d18p+1
 
#define M_PI_2   0x1.921fb54442d18p+0
 
#define M_PI_4   0x1.921fb54442d18p-1
 
#define M_1_PI   0x1.45f306dc9c883p-2
 
#define M_2_PI   0x1.45f306dc9c883p-1
 
#define M_2_SQRTPI   0x1.20dd750429b6dp+0
 
#define M_SQRT2   0x1.6a09e667f3bcdp+0
 
#define M_SQRT1_2   0x1.6a09e667f3bcdp-1
 
#define CHAR_BIT   8
 
#define SCHAR_MAX   127
 
#define SCHAR_MIN   (-128)
 
#define UCHAR_MAX   255
 
#define CHAR_MAX   SCHAR_MAX
 
#define CHAR_MIN   SCHAR_MIN
 
#define USHRT_MAX   65535
 
#define SHRT_MAX   32767
 
#define SHRT_MIN   (-32768)
 
#define UINT_MAX   0xffffffff
 
#define INT_MAX   2147483647
 
#define INT_MIN   (-2147483647-1)
 
#define ULONG_MAX   0xffffffffffffffffUL
 
#define LONG_MAX   0x7fffffffffffffffL
 
#define LONG_MIN   (-0x7fffffffffffffffL-1)
 
#define CLK_LOCAL_MEM_FENCE   0x01
 Queue a memory fence to ensure correct ordering of memory operations to local memory.
 
#define CLK_GLOBAL_MEM_FENCE   0x02
 Queue a memory fence to ensure correct ordering of memory operations to global memory.
 
#define CLK_IMAGE_MEM_FENCE   0x04
 Queue a memory fence to ensure correct ordering of memory operations between work-items of a work-group to image memory.
 
#define ATOMIC_VAR_INIT(x)   (x)
 
#define ATOMIC_FLAG_INIT   0
 
#define CLK_ADDRESS_NONE   0
 
#define CLK_ADDRESS_CLAMP_TO_EDGE   2
 
#define CLK_ADDRESS_CLAMP   4
 
#define CLK_ADDRESS_REPEAT   6
 
#define CLK_ADDRESS_MIRRORED_REPEAT   8
 
#define CLK_NORMALIZED_COORDS_FALSE   0
 
#define CLK_NORMALIZED_COORDS_TRUE   1
 
#define CLK_FILTER_NEAREST   0x10
 
#define CLK_FILTER_LINEAR   0x20
 
#define CLK_SNORM_INT8   0x10D0
 
#define CLK_SNORM_INT16   0x10D1
 
#define CLK_UNORM_INT8   0x10D2
 
#define CLK_UNORM_INT16   0x10D3
 
#define CLK_UNORM_SHORT_565   0x10D4
 
#define CLK_UNORM_SHORT_555   0x10D5
 
#define CLK_UNORM_INT_101010   0x10D6
 
#define CLK_SIGNED_INT8   0x10D7
 
#define CLK_SIGNED_INT16   0x10D8
 
#define CLK_SIGNED_INT32   0x10D9
 
#define CLK_UNSIGNED_INT8   0x10DA
 
#define CLK_UNSIGNED_INT16   0x10DB
 
#define CLK_UNSIGNED_INT32   0x10DC
 
#define CLK_HALF_FLOAT   0x10DD
 
#define CLK_FLOAT   0x10DE
 
#define CLK_UNORM_INT24   0x10DF
 
#define CLK_UNORM_INT_101010_2   0x10E0
 
#define CLK_R   0x10B0
 
#define CLK_A   0x10B1
 
#define CLK_RG   0x10B2
 
#define CLK_RA   0x10B3
 
#define CLK_RGB   0x10B4
 
#define CLK_RGBA   0x10B5
 
#define CLK_BGRA   0x10B6
 
#define CLK_ARGB   0x10B7
 
#define CLK_INTENSITY   0x10B8
 
#define CLK_LUMINANCE   0x10B9
 
#define CLK_Rx   0x10BA
 
#define CLK_RGx   0x10BB
 
#define CLK_RGBx   0x10BC
 
#define CLK_DEPTH   0x10BD
 
#define CLK_DEPTH_STENCIL   0x10BE
 
#define CLK_sRGB   0x10BF
 
#define CLK_sRGBx   0x10C0
 
#define CLK_sRGBA   0x10C1
 
#define CLK_sBGRA   0x10C2
 
#define CLK_ABGR   0x10C3
 
#define CLK_NULL_RESERVE_ID   (__builtin_astype(((void*)(__SIZE_MAX__)), reserve_id_t))
 
#define CL_COMPLETE   0x0
 
#define CL_RUNNING   0x1
 
#define CL_SUBMITTED   0x2
 
#define CL_QUEUED   0x3
 
#define CLK_SUCCESS   0
 
#define CLK_ENQUEUE_FAILURE   -101
 
#define CLK_INVALID_QUEUE   -102
 
#define CLK_INVALID_NDRANGE   -160
 
#define CLK_INVALID_EVENT_WAIT_LIST   -57
 
#define CLK_DEVICE_QUEUE_FULL   -161
 
#define CLK_INVALID_ARG_SIZE   -51
 
#define CLK_EVENT_ALLOCATION_FAILURE   -100
 
#define CLK_OUT_OF_RESOURCES   -5
 
#define CLK_NULL_QUEUE   0
 
#define CLK_NULL_EVENT   (__builtin_astype(((__SIZE_MAX__)), clk_event_t))
 
#define CLK_ENQUEUE_FLAGS_NO_WAIT   0x0
 
#define CLK_ENQUEUE_FLAGS_WAIT_KERNEL   0x1
 
#define CLK_ENQUEUE_FLAGS_WAIT_WORK_GROUP   0x2
 
#define CLK_PROFILING_COMMAND_EXEC_TIME   0x1
 
#define MAX_WORK_DIM   3
 
#define as_char(x)   __builtin_astype((x), char)
 OpenCL v1.1/1.2/2.0 s6.2.4.2 - as_type operators Reinterprets a data type as another data type of the same size.
 
#define as_char2(x)   __builtin_astype((x), char2)
 
#define as_char3(x)   __builtin_astype((x), char3)
 
#define as_char4(x)   __builtin_astype((x), char4)
 
#define as_char8(x)   __builtin_astype((x), char8)
 
#define as_char16(x)   __builtin_astype((x), char16)
 
#define as_uchar(x)   __builtin_astype((x), uchar)
 
#define as_uchar2(x)   __builtin_astype((x), uchar2)
 
#define as_uchar3(x)   __builtin_astype((x), uchar3)
 
#define as_uchar4(x)   __builtin_astype((x), uchar4)
 
#define as_uchar8(x)   __builtin_astype((x), uchar8)
 
#define as_uchar16(x)   __builtin_astype((x), uchar16)
 
#define as_short(x)   __builtin_astype((x), short)
 
#define as_short2(x)   __builtin_astype((x), short2)
 
#define as_short3(x)   __builtin_astype((x), short3)
 
#define as_short4(x)   __builtin_astype((x), short4)
 
#define as_short8(x)   __builtin_astype((x), short8)
 
#define as_short16(x)   __builtin_astype((x), short16)
 
#define as_ushort(x)   __builtin_astype((x), ushort)
 
#define as_ushort2(x)   __builtin_astype((x), ushort2)
 
#define as_ushort3(x)   __builtin_astype((x), ushort3)
 
#define as_ushort4(x)   __builtin_astype((x), ushort4)
 
#define as_ushort8(x)   __builtin_astype((x), ushort8)
 
#define as_ushort16(x)   __builtin_astype((x), ushort16)
 
#define as_int(x)   __builtin_astype((x), int)
 
#define as_int2(x)   __builtin_astype((x), int2)
 
#define as_int3(x)   __builtin_astype((x), int3)
 
#define as_int4(x)   __builtin_astype((x), int4)
 
#define as_int8(x)   __builtin_astype((x), int8)
 
#define as_int16(x)   __builtin_astype((x), int16)
 
#define as_uint(x)   __builtin_astype((x), uint)
 
#define as_uint2(x)   __builtin_astype((x), uint2)
 
#define as_uint3(x)   __builtin_astype((x), uint3)
 
#define as_uint4(x)   __builtin_astype((x), uint4)
 
#define as_uint8(x)   __builtin_astype((x), uint8)
 
#define as_uint16(x)   __builtin_astype((x), uint16)
 
#define as_long(x)   __builtin_astype((x), long)
 
#define as_long2(x)   __builtin_astype((x), long2)
 
#define as_long3(x)   __builtin_astype((x), long3)
 
#define as_long4(x)   __builtin_astype((x), long4)
 
#define as_long8(x)   __builtin_astype((x), long8)
 
#define as_long16(x)   __builtin_astype((x), long16)
 
#define as_ulong(x)   __builtin_astype((x), ulong)
 
#define as_ulong2(x)   __builtin_astype((x), ulong2)
 
#define as_ulong3(x)   __builtin_astype((x), ulong3)
 
#define as_ulong4(x)   __builtin_astype((x), ulong4)
 
#define as_ulong8(x)   __builtin_astype((x), ulong8)
 
#define as_ulong16(x)   __builtin_astype((x), ulong16)
 
#define as_float(x)   __builtin_astype((x), float)
 
#define as_float2(x)   __builtin_astype((x), float2)
 
#define as_float3(x)   __builtin_astype((x), float3)
 
#define as_float4(x)   __builtin_astype((x), float4)
 
#define as_float8(x)   __builtin_astype((x), float8)
 
#define as_float16(x)   __builtin_astype((x), float16)
 
#define as_size_t(x)   __builtin_astype((x), size_t)
 
#define as_ptrdiff_t(x)   __builtin_astype((x), ptrdiff_t)
 
#define as_intptr_t(x)   __builtin_astype((x), intptr_t)
 
#define as_uintptr_t(x)   __builtin_astype((x), uintptr_t)
 
#define __kernel_exec(X, typen)
 
#define kernel_exec(X, typen)
 

Typedefs

typedef unsigned char uchar
 An unsigned 8-bit integer.
 
typedef unsigned short ushort
 An unsigned 16-bit integer.
 
typedef unsigned int uint
 An unsigned 32-bit integer.
 
typedef unsigned long ulong
 An unsigned 64-bit integer.
 
typedef __SIZE_TYPE__ size_t
 The unsigned integer type of the result of the sizeof operator.
 
typedef __PTRDIFF_TYPE__ ptrdiff_t
 A signed integer type that is the result of subtracting two pointers.
 
typedef __INTPTR_TYPE__ intptr_t
 A signed integer type with the property that any valid pointer to void can be converted to this type, then converted back to pointer to void, and the result will compare equal to the original pointer.
 
typedef __UINTPTR_TYPE__ uintptr_t
 An unsigned integer type with the property that any valid pointer to void can be converted to this type, then converted back to pointer to void, and the result will compare equal to the original pointer.
 
typedef char char2 __attribute__((ext_vector_type(2)))
 
typedef uint cl_mem_fence_flags
 
typedef enum memory_scope memory_scope
 
typedef enum memory_order memory_order
 
typedef int kernel_enqueue_flags_t
 
typedef int clk_profiling_info
 

Enumerations

enum  memory_scope { memory_scope_work_item = __OPENCL_MEMORY_SCOPE_WORK_ITEM , memory_scope_work_group = __OPENCL_MEMORY_SCOPE_WORK_GROUP , memory_scope_device = __OPENCL_MEMORY_SCOPE_DEVICE }
 
enum  memory_order {
  memory_order_relaxed = __ATOMIC_RELAXED , memory_order_acquire = __ATOMIC_ACQUIRE , memory_order_release = __ATOMIC_RELEASE , memory_order_acq_rel = __ATOMIC_ACQ_REL ,
  memory_order_relaxed = __ATOMIC_RELAXED , memory_order_consume = __ATOMIC_CONSUME , memory_order_acquire = __ATOMIC_ACQUIRE , memory_order_release = __ATOMIC_RELEASE ,
  memory_order_acq_rel = __ATOMIC_ACQ_REL , memory_order_seq_cst = __ATOMIC_SEQ_CST
}
 

Functions

int printf (__constant const char *st,...) __attribute__((format(printf
 

Macro Definition Documentation

◆ __half

#define __half   half

Definition at line 232 of file opencl-c-base.h.

◆ __kernel_exec

#define __kernel_exec (   X,
  typen 
)
Value:
__kernel \
__attribute__((work_group_size_hint(X, 1, 1))) \
__attribute__((vec_type_hint(typen)))
#define X(type, name)
Definition: Value.h:143

Definition at line 676 of file opencl-c-base.h.

◆ __opencl_c_named_address_space_builtins

#define __opencl_c_named_address_space_builtins   1

Definition at line 106 of file opencl-c-base.h.

◆ as_char

#define as_char (   x)    __builtin_astype((x), char)

OpenCL v1.1/1.2/2.0 s6.2.4.2 - as_type operators Reinterprets a data type as another data type of the same size.

Definition at line 566 of file opencl-c-base.h.

◆ as_char16

#define as_char16 (   x)    __builtin_astype((x), char16)

Definition at line 571 of file opencl-c-base.h.

◆ as_char2

#define as_char2 (   x)    __builtin_astype((x), char2)

Definition at line 567 of file opencl-c-base.h.

◆ as_char3

#define as_char3 (   x)    __builtin_astype((x), char3)

Definition at line 568 of file opencl-c-base.h.

◆ as_char4

#define as_char4 (   x)    __builtin_astype((x), char4)

Definition at line 569 of file opencl-c-base.h.

◆ as_char8

#define as_char8 (   x)    __builtin_astype((x), char8)

Definition at line 570 of file opencl-c-base.h.

◆ as_float

#define as_float (   x)    __builtin_astype((x), float)

Definition at line 622 of file opencl-c-base.h.

◆ as_float16

#define as_float16 (   x)    __builtin_astype((x), float16)

Definition at line 627 of file opencl-c-base.h.

◆ as_float2

#define as_float2 (   x)    __builtin_astype((x), float2)

Definition at line 623 of file opencl-c-base.h.

◆ as_float3

#define as_float3 (   x)    __builtin_astype((x), float3)

Definition at line 624 of file opencl-c-base.h.

◆ as_float4

#define as_float4 (   x)    __builtin_astype((x), float4)

Definition at line 625 of file opencl-c-base.h.

◆ as_float8

#define as_float8 (   x)    __builtin_astype((x), float8)

Definition at line 626 of file opencl-c-base.h.

◆ as_int

#define as_int (   x)    __builtin_astype((x), int)

Definition at line 594 of file opencl-c-base.h.

◆ as_int16

#define as_int16 (   x)    __builtin_astype((x), int16)

Definition at line 599 of file opencl-c-base.h.

◆ as_int2

#define as_int2 (   x)    __builtin_astype((x), int2)

Definition at line 595 of file opencl-c-base.h.

◆ as_int3

#define as_int3 (   x)    __builtin_astype((x), int3)

Definition at line 596 of file opencl-c-base.h.

◆ as_int4

#define as_int4 (   x)    __builtin_astype((x), int4)

Definition at line 597 of file opencl-c-base.h.

◆ as_int8

#define as_int8 (   x)    __builtin_astype((x), int8)

Definition at line 598 of file opencl-c-base.h.

◆ as_intptr_t

#define as_intptr_t (   x)    __builtin_astype((x), intptr_t)

Definition at line 649 of file opencl-c-base.h.

◆ as_long

#define as_long (   x)    __builtin_astype((x), long)

Definition at line 608 of file opencl-c-base.h.

◆ as_long16

#define as_long16 (   x)    __builtin_astype((x), long16)

Definition at line 613 of file opencl-c-base.h.

◆ as_long2

#define as_long2 (   x)    __builtin_astype((x), long2)

Definition at line 609 of file opencl-c-base.h.

◆ as_long3

#define as_long3 (   x)    __builtin_astype((x), long3)

Definition at line 610 of file opencl-c-base.h.

◆ as_long4

#define as_long4 (   x)    __builtin_astype((x), long4)

Definition at line 611 of file opencl-c-base.h.

◆ as_long8

#define as_long8 (   x)    __builtin_astype((x), long8)

Definition at line 612 of file opencl-c-base.h.

◆ as_ptrdiff_t

#define as_ptrdiff_t (   x)    __builtin_astype((x), ptrdiff_t)

Definition at line 648 of file opencl-c-base.h.

◆ as_short

#define as_short (   x)    __builtin_astype((x), short)

Definition at line 580 of file opencl-c-base.h.

◆ as_short16

#define as_short16 (   x)    __builtin_astype((x), short16)

Definition at line 585 of file opencl-c-base.h.

◆ as_short2

#define as_short2 (   x)    __builtin_astype((x), short2)

Definition at line 581 of file opencl-c-base.h.

◆ as_short3

#define as_short3 (   x)    __builtin_astype((x), short3)

Definition at line 582 of file opencl-c-base.h.

◆ as_short4

#define as_short4 (   x)    __builtin_astype((x), short4)

Definition at line 583 of file opencl-c-base.h.

◆ as_short8

#define as_short8 (   x)    __builtin_astype((x), short8)

Definition at line 584 of file opencl-c-base.h.

◆ as_size_t

#define as_size_t (   x)    __builtin_astype((x), size_t)

Definition at line 647 of file opencl-c-base.h.

◆ as_uchar

#define as_uchar (   x)    __builtin_astype((x), uchar)

Definition at line 573 of file opencl-c-base.h.

◆ as_uchar16

#define as_uchar16 (   x)    __builtin_astype((x), uchar16)

Definition at line 578 of file opencl-c-base.h.

◆ as_uchar2

#define as_uchar2 (   x)    __builtin_astype((x), uchar2)

Definition at line 574 of file opencl-c-base.h.

◆ as_uchar3

#define as_uchar3 (   x)    __builtin_astype((x), uchar3)

Definition at line 575 of file opencl-c-base.h.

◆ as_uchar4

#define as_uchar4 (   x)    __builtin_astype((x), uchar4)

Definition at line 576 of file opencl-c-base.h.

◆ as_uchar8

#define as_uchar8 (   x)    __builtin_astype((x), uchar8)

Definition at line 577 of file opencl-c-base.h.

◆ as_uint

#define as_uint (   x)    __builtin_astype((x), uint)

Definition at line 601 of file opencl-c-base.h.

◆ as_uint16

#define as_uint16 (   x)    __builtin_astype((x), uint16)

Definition at line 606 of file opencl-c-base.h.

◆ as_uint2

#define as_uint2 (   x)    __builtin_astype((x), uint2)

Definition at line 602 of file opencl-c-base.h.

◆ as_uint3

#define as_uint3 (   x)    __builtin_astype((x), uint3)

Definition at line 603 of file opencl-c-base.h.

◆ as_uint4

#define as_uint4 (   x)    __builtin_astype((x), uint4)

Definition at line 604 of file opencl-c-base.h.

◆ as_uint8

#define as_uint8 (   x)    __builtin_astype((x), uint8)

Definition at line 605 of file opencl-c-base.h.

◆ as_uintptr_t

#define as_uintptr_t (   x)    __builtin_astype((x), uintptr_t)

Definition at line 650 of file opencl-c-base.h.

◆ as_ulong

#define as_ulong (   x)    __builtin_astype((x), ulong)

Definition at line 615 of file opencl-c-base.h.

◆ as_ulong16

#define as_ulong16 (   x)    __builtin_astype((x), ulong16)

Definition at line 620 of file opencl-c-base.h.

◆ as_ulong2

#define as_ulong2 (   x)    __builtin_astype((x), ulong2)

Definition at line 616 of file opencl-c-base.h.

◆ as_ulong3

#define as_ulong3 (   x)    __builtin_astype((x), ulong3)

Definition at line 617 of file opencl-c-base.h.

◆ as_ulong4

#define as_ulong4 (   x)    __builtin_astype((x), ulong4)

Definition at line 618 of file opencl-c-base.h.

◆ as_ulong8

#define as_ulong8 (   x)    __builtin_astype((x), ulong8)

Definition at line 619 of file opencl-c-base.h.

◆ as_ushort

#define as_ushort (   x)    __builtin_astype((x), ushort)

Definition at line 587 of file opencl-c-base.h.

◆ as_ushort16

#define as_ushort16 (   x)    __builtin_astype((x), ushort16)

Definition at line 592 of file opencl-c-base.h.

◆ as_ushort2

#define as_ushort2 (   x)    __builtin_astype((x), ushort2)

Definition at line 588 of file opencl-c-base.h.

◆ as_ushort3

#define as_ushort3 (   x)    __builtin_astype((x), ushort3)

Definition at line 589 of file opencl-c-base.h.

◆ as_ushort4

#define as_ushort4 (   x)    __builtin_astype((x), ushort4)

Definition at line 590 of file opencl-c-base.h.

◆ as_ushort8

#define as_ushort8 (   x)    __builtin_astype((x), ushort8)

Definition at line 591 of file opencl-c-base.h.

◆ ATOMIC_FLAG_INIT

#define ATOMIC_FLAG_INIT   0

Definition at line 419 of file opencl-c-base.h.

◆ ATOMIC_VAR_INIT

#define ATOMIC_VAR_INIT (   x)    (x)

Definition at line 417 of file opencl-c-base.h.

◆ CHAR_BIT

#define CHAR_BIT   8

Definition at line 353 of file opencl-c-base.h.

◆ CHAR_MAX

#define CHAR_MAX   SCHAR_MAX

Definition at line 357 of file opencl-c-base.h.

◆ CHAR_MIN

#define CHAR_MIN   SCHAR_MIN

Definition at line 358 of file opencl-c-base.h.

◆ CL_COMPLETE

#define CL_COMPLETE   0x0

Definition at line 520 of file opencl-c-base.h.

◆ CL_QUEUED

#define CL_QUEUED   0x3

Definition at line 523 of file opencl-c-base.h.

◆ CL_RUNNING

#define CL_RUNNING   0x1

Definition at line 521 of file opencl-c-base.h.

◆ CL_SUBMITTED

#define CL_SUBMITTED   0x2

Definition at line 522 of file opencl-c-base.h.

◆ CLK_A

#define CLK_A   0x10B1

Definition at line 493 of file opencl-c-base.h.

◆ CLK_ABGR

#define CLK_ABGR   0x10C3

Definition at line 512 of file opencl-c-base.h.

◆ CLK_ADDRESS_CLAMP

#define CLK_ADDRESS_CLAMP   4

Definition at line 443 of file opencl-c-base.h.

◆ CLK_ADDRESS_CLAMP_TO_EDGE

#define CLK_ADDRESS_CLAMP_TO_EDGE   2

Definition at line 442 of file opencl-c-base.h.

◆ CLK_ADDRESS_MIRRORED_REPEAT

#define CLK_ADDRESS_MIRRORED_REPEAT   8

Definition at line 445 of file opencl-c-base.h.

◆ CLK_ADDRESS_NONE

#define CLK_ADDRESS_NONE   0

Definition at line 441 of file opencl-c-base.h.

◆ CLK_ADDRESS_REPEAT

#define CLK_ADDRESS_REPEAT   6

Definition at line 444 of file opencl-c-base.h.

◆ CLK_ARGB

#define CLK_ARGB   0x10B7

Definition at line 499 of file opencl-c-base.h.

◆ CLK_BGRA

#define CLK_BGRA   0x10B6

Definition at line 498 of file opencl-c-base.h.

◆ CLK_DEPTH

#define CLK_DEPTH   0x10BD

Definition at line 505 of file opencl-c-base.h.

◆ CLK_DEPTH_STENCIL

#define CLK_DEPTH_STENCIL   0x10BE

Definition at line 506 of file opencl-c-base.h.

◆ CLK_DEVICE_QUEUE_FULL

#define CLK_DEVICE_QUEUE_FULL   -161

Definition at line 530 of file opencl-c-base.h.

◆ CLK_ENQUEUE_FAILURE

#define CLK_ENQUEUE_FAILURE   -101

Definition at line 526 of file opencl-c-base.h.

◆ CLK_ENQUEUE_FLAGS_NO_WAIT

#define CLK_ENQUEUE_FLAGS_NO_WAIT   0x0

Definition at line 539 of file opencl-c-base.h.

◆ CLK_ENQUEUE_FLAGS_WAIT_KERNEL

#define CLK_ENQUEUE_FLAGS_WAIT_KERNEL   0x1

Definition at line 540 of file opencl-c-base.h.

◆ CLK_ENQUEUE_FLAGS_WAIT_WORK_GROUP

#define CLK_ENQUEUE_FLAGS_WAIT_WORK_GROUP   0x2

Definition at line 541 of file opencl-c-base.h.

◆ CLK_EVENT_ALLOCATION_FAILURE

#define CLK_EVENT_ALLOCATION_FAILURE   -100

Definition at line 532 of file opencl-c-base.h.

◆ CLK_FILTER_LINEAR

#define CLK_FILTER_LINEAR   0x20

Definition at line 457 of file opencl-c-base.h.

◆ CLK_FILTER_NEAREST

#define CLK_FILTER_NEAREST   0x10

Definition at line 456 of file opencl-c-base.h.

◆ CLK_FLOAT

#define CLK_FLOAT   0x10DE

Definition at line 480 of file opencl-c-base.h.

◆ CLK_GLOBAL_MEM_FENCE

#define CLK_GLOBAL_MEM_FENCE   0x02

Queue a memory fence to ensure correct ordering of memory operations to global memory.

Definition at line 384 of file opencl-c-base.h.

◆ CLK_HALF_FLOAT

#define CLK_HALF_FLOAT   0x10DD

Definition at line 479 of file opencl-c-base.h.

◆ CLK_IMAGE_MEM_FENCE

#define CLK_IMAGE_MEM_FENCE   0x04

Queue a memory fence to ensure correct ordering of memory operations between work-items of a work-group to image memory.

Definition at line 414 of file opencl-c-base.h.

◆ CLK_INTENSITY

#define CLK_INTENSITY   0x10B8

Definition at line 500 of file opencl-c-base.h.

◆ CLK_INVALID_ARG_SIZE

#define CLK_INVALID_ARG_SIZE   -51

Definition at line 531 of file opencl-c-base.h.

◆ CLK_INVALID_EVENT_WAIT_LIST

#define CLK_INVALID_EVENT_WAIT_LIST   -57

Definition at line 529 of file opencl-c-base.h.

◆ CLK_INVALID_NDRANGE

#define CLK_INVALID_NDRANGE   -160

Definition at line 528 of file opencl-c-base.h.

◆ CLK_INVALID_QUEUE

#define CLK_INVALID_QUEUE   -102

Definition at line 527 of file opencl-c-base.h.

◆ CLK_LOCAL_MEM_FENCE

#define CLK_LOCAL_MEM_FENCE   0x01

Queue a memory fence to ensure correct ordering of memory operations to local memory.

Definition at line 378 of file opencl-c-base.h.

◆ CLK_LUMINANCE

#define CLK_LUMINANCE   0x10B9

Definition at line 501 of file opencl-c-base.h.

◆ CLK_NORMALIZED_COORDS_FALSE

#define CLK_NORMALIZED_COORDS_FALSE   0

Definition at line 450 of file opencl-c-base.h.

◆ CLK_NORMALIZED_COORDS_TRUE

#define CLK_NORMALIZED_COORDS_TRUE   1

Definition at line 451 of file opencl-c-base.h.

◆ CLK_NULL_EVENT

#define CLK_NULL_EVENT   (__builtin_astype(((__SIZE_MAX__)), clk_event_t))

Definition at line 536 of file opencl-c-base.h.

◆ CLK_NULL_QUEUE

#define CLK_NULL_QUEUE   0

Definition at line 535 of file opencl-c-base.h.

◆ CLK_NULL_RESERVE_ID

#define CLK_NULL_RESERVE_ID   (__builtin_astype(((void*)(__SIZE_MAX__)), reserve_id_t))

Definition at line 517 of file opencl-c-base.h.

◆ CLK_OUT_OF_RESOURCES

#define CLK_OUT_OF_RESOURCES   -5

Definition at line 533 of file opencl-c-base.h.

◆ CLK_PROFILING_COMMAND_EXEC_TIME

#define CLK_PROFILING_COMMAND_EXEC_TIME   0x1

Definition at line 547 of file opencl-c-base.h.

◆ CLK_R

#define CLK_R   0x10B0

Definition at line 492 of file opencl-c-base.h.

◆ CLK_RA

#define CLK_RA   0x10B3

Definition at line 495 of file opencl-c-base.h.

◆ CLK_RG

#define CLK_RG   0x10B2

Definition at line 494 of file opencl-c-base.h.

◆ CLK_RGB

#define CLK_RGB   0x10B4

Definition at line 496 of file opencl-c-base.h.

◆ CLK_RGBA

#define CLK_RGBA   0x10B5

Definition at line 497 of file opencl-c-base.h.

◆ CLK_RGBx

#define CLK_RGBx   0x10BC

Definition at line 504 of file opencl-c-base.h.

◆ CLK_RGx

#define CLK_RGx   0x10BB

Definition at line 503 of file opencl-c-base.h.

◆ CLK_Rx

#define CLK_Rx   0x10BA

Definition at line 502 of file opencl-c-base.h.

◆ CLK_sBGRA

#define CLK_sBGRA   0x10C2

Definition at line 511 of file opencl-c-base.h.

◆ CLK_SIGNED_INT16

#define CLK_SIGNED_INT16   0x10D8

Definition at line 474 of file opencl-c-base.h.

◆ CLK_SIGNED_INT32

#define CLK_SIGNED_INT32   0x10D9

Definition at line 475 of file opencl-c-base.h.

◆ CLK_SIGNED_INT8

#define CLK_SIGNED_INT8   0x10D7

Definition at line 473 of file opencl-c-base.h.

◆ CLK_SNORM_INT16

#define CLK_SNORM_INT16   0x10D1

Definition at line 467 of file opencl-c-base.h.

◆ CLK_SNORM_INT8

#define CLK_SNORM_INT8   0x10D0

Definition at line 466 of file opencl-c-base.h.

◆ CLK_sRGB

#define CLK_sRGB   0x10BF

Definition at line 508 of file opencl-c-base.h.

◆ CLK_sRGBA

#define CLK_sRGBA   0x10C1

Definition at line 510 of file opencl-c-base.h.

◆ CLK_sRGBx

#define CLK_sRGBx   0x10C0

Definition at line 509 of file opencl-c-base.h.

◆ CLK_SUCCESS

#define CLK_SUCCESS   0

Definition at line 525 of file opencl-c-base.h.

◆ CLK_UNORM_INT16

#define CLK_UNORM_INT16   0x10D3

Definition at line 469 of file opencl-c-base.h.

◆ CLK_UNORM_INT24

#define CLK_UNORM_INT24   0x10DF

Definition at line 481 of file opencl-c-base.h.

◆ CLK_UNORM_INT8

#define CLK_UNORM_INT8   0x10D2

Definition at line 468 of file opencl-c-base.h.

◆ CLK_UNORM_INT_101010

#define CLK_UNORM_INT_101010   0x10D6

Definition at line 472 of file opencl-c-base.h.

◆ CLK_UNORM_INT_101010_2

#define CLK_UNORM_INT_101010_2   0x10E0

Definition at line 483 of file opencl-c-base.h.

◆ CLK_UNORM_SHORT_555

#define CLK_UNORM_SHORT_555   0x10D5

Definition at line 471 of file opencl-c-base.h.

◆ CLK_UNORM_SHORT_565

#define CLK_UNORM_SHORT_565   0x10D4

Definition at line 470 of file opencl-c-base.h.

◆ CLK_UNSIGNED_INT16

#define CLK_UNSIGNED_INT16   0x10DB

Definition at line 477 of file opencl-c-base.h.

◆ CLK_UNSIGNED_INT32

#define CLK_UNSIGNED_INT32   0x10DC

Definition at line 478 of file opencl-c-base.h.

◆ CLK_UNSIGNED_INT8

#define CLK_UNSIGNED_INT8   0x10DA

Definition at line 476 of file opencl-c-base.h.

◆ DBL_DIG

#define DBL_DIG   15

Definition at line 299 of file opencl-c-base.h.

◆ DBL_EPSILON

#define DBL_EPSILON   0x1.0p-52

Definition at line 308 of file opencl-c-base.h.

◆ DBL_MANT_DIG

#define DBL_MANT_DIG   53

Definition at line 300 of file opencl-c-base.h.

◆ DBL_MAX

#define DBL_MAX   0x1.fffffffffffffp1023

Definition at line 306 of file opencl-c-base.h.

◆ DBL_MAX_10_EXP

#define DBL_MAX_10_EXP   +308

Definition at line 301 of file opencl-c-base.h.

◆ DBL_MAX_EXP

#define DBL_MAX_EXP   +1024

Definition at line 302 of file opencl-c-base.h.

◆ DBL_MIN

#define DBL_MIN   0x1.0p-1022

Definition at line 307 of file opencl-c-base.h.

◆ DBL_MIN_10_EXP

#define DBL_MIN_10_EXP   -307

Definition at line 303 of file opencl-c-base.h.

◆ DBL_MIN_EXP

#define DBL_MIN_EXP   -1021

Definition at line 304 of file opencl-c-base.h.

◆ DBL_RADIX

#define DBL_RADIX   2

Definition at line 305 of file opencl-c-base.h.

◆ FLT_DIG

#define FLT_DIG   6

Definition at line 274 of file opencl-c-base.h.

◆ FLT_EPSILON

#define FLT_EPSILON   0x1.0p-23f

Definition at line 283 of file opencl-c-base.h.

◆ FLT_MANT_DIG

#define FLT_MANT_DIG   24

Definition at line 275 of file opencl-c-base.h.

◆ FLT_MAX

#define FLT_MAX   0x1.fffffep127f

Definition at line 281 of file opencl-c-base.h.

◆ FLT_MAX_10_EXP

#define FLT_MAX_10_EXP   +38

Definition at line 276 of file opencl-c-base.h.

◆ FLT_MAX_EXP

#define FLT_MAX_EXP   +128

Definition at line 277 of file opencl-c-base.h.

◆ FLT_MIN

#define FLT_MIN   0x1.0p-126f

Definition at line 282 of file opencl-c-base.h.

◆ FLT_MIN_10_EXP

#define FLT_MIN_10_EXP   -37

Definition at line 278 of file opencl-c-base.h.

◆ FLT_MIN_EXP

#define FLT_MIN_EXP   -125

Definition at line 279 of file opencl-c-base.h.

◆ FLT_RADIX

#define FLT_RADIX   2

Definition at line 280 of file opencl-c-base.h.

◆ FP_ILOGB0

#define FP_ILOGB0   INT_MIN

Definition at line 271 of file opencl-c-base.h.

◆ FP_ILOGBNAN

#define FP_ILOGBNAN   INT_MAX

Definition at line 272 of file opencl-c-base.h.

◆ HUGE_VAL

#define HUGE_VAL   (__builtin_huge_val())

A positive double constant expression.

HUGE_VAL evaluates to +infinity. Used as an error value returned by the built-in math functions.

Definition at line 258 of file opencl-c-base.h.

◆ HUGE_VALF

#define HUGE_VALF   (__builtin_huge_valf())

A positive float constant expression.

HUGE_VALF evaluates to +infinity. Used as an error value returned by the built-in math functions.

Definition at line 251 of file opencl-c-base.h.

◆ INFINITY

#define INFINITY   (__builtin_inff())

A constant expression of type float representing positive or unsigned infinity.

Definition at line 264 of file opencl-c-base.h.

◆ INT_MAX

#define INT_MAX   2147483647

Definition at line 363 of file opencl-c-base.h.

◆ INT_MIN

#define INT_MIN   (-2147483647-1)

Definition at line 364 of file opencl-c-base.h.

◆ kernel_exec

#define kernel_exec (   X,
  typen 
)
Value:
__kernel \
__attribute__((work_group_size_hint(X, 1, 1))) \
__attribute__((vec_type_hint(typen)))

Definition at line 680 of file opencl-c-base.h.

◆ LONG_MAX

#define LONG_MAX   0x7fffffffffffffffL

Definition at line 366 of file opencl-c-base.h.

◆ LONG_MIN

#define LONG_MIN   (-0x7fffffffffffffffL-1)

Definition at line 367 of file opencl-c-base.h.

◆ M_1_PI

#define M_1_PI   0x1.45f306dc9c883p-2

Definition at line 318 of file opencl-c-base.h.

◆ M_1_PI_F

#define M_1_PI_F   0.318309886183790671537767526745028724f

Definition at line 293 of file opencl-c-base.h.

◆ M_2_PI

#define M_2_PI   0x1.45f306dc9c883p-1

Definition at line 319 of file opencl-c-base.h.

◆ M_2_PI_F

#define M_2_PI_F   0.636619772367581343075535053490057448f

Definition at line 294 of file opencl-c-base.h.

◆ M_2_SQRTPI

#define M_2_SQRTPI   0x1.20dd750429b6dp+0

Definition at line 320 of file opencl-c-base.h.

◆ M_2_SQRTPI_F

#define M_2_SQRTPI_F   1.12837916709551257389615890312154517f

Definition at line 295 of file opencl-c-base.h.

◆ M_E

#define M_E   0x1.5bf0a8b145769p+1

Definition at line 310 of file opencl-c-base.h.

◆ M_E_F

#define M_E_F   2.71828182845904523536028747135266250f

Definition at line 285 of file opencl-c-base.h.

◆ M_LN10

#define M_LN10   0x1.26bb1bbb55516p+1

Definition at line 314 of file opencl-c-base.h.

◆ M_LN10_F

#define M_LN10_F   2.30258509299404568401799145468436421f

Definition at line 289 of file opencl-c-base.h.

◆ M_LN2

#define M_LN2   0x1.62e42fefa39efp-1

Definition at line 313 of file opencl-c-base.h.

◆ M_LN2_F

#define M_LN2_F   0.693147180559945309417232121458176568f

Definition at line 288 of file opencl-c-base.h.

◆ M_LOG10E

#define M_LOG10E   0x1.bcb7b1526e50ep-2

Definition at line 312 of file opencl-c-base.h.

◆ M_LOG10E_F

#define M_LOG10E_F   0.434294481903251827651128918916605082f

Definition at line 287 of file opencl-c-base.h.

◆ M_LOG2E

#define M_LOG2E   0x1.71547652b82fep+0

Definition at line 311 of file opencl-c-base.h.

◆ M_LOG2E_F

#define M_LOG2E_F   1.44269504088896340735992468100189214f

Definition at line 286 of file opencl-c-base.h.

◆ M_PI

#define M_PI   0x1.921fb54442d18p+1

Definition at line 315 of file opencl-c-base.h.

◆ M_PI_2

#define M_PI_2   0x1.921fb54442d18p+0

Definition at line 316 of file opencl-c-base.h.

◆ M_PI_2_F

#define M_PI_2_F   1.57079632679489661923132169163975144f

Definition at line 291 of file opencl-c-base.h.

◆ M_PI_4

#define M_PI_4   0x1.921fb54442d18p-1

Definition at line 317 of file opencl-c-base.h.

◆ M_PI_4_F

#define M_PI_4_F   0.785398163397448309615660845819875721f

Definition at line 292 of file opencl-c-base.h.

◆ M_PI_F

#define M_PI_F   3.14159265358979323846264338327950288f

Definition at line 290 of file opencl-c-base.h.

◆ M_SQRT1_2

#define M_SQRT1_2   0x1.6a09e667f3bcdp-1

Definition at line 322 of file opencl-c-base.h.

◆ M_SQRT1_2_F

#define M_SQRT1_2_F   0.707106781186547524400844362104849039f

Definition at line 297 of file opencl-c-base.h.

◆ M_SQRT2

#define M_SQRT2   0x1.6a09e667f3bcdp+0

Definition at line 321 of file opencl-c-base.h.

◆ M_SQRT2_F

#define M_SQRT2_F   1.41421356237309504880168872420969808f

Definition at line 296 of file opencl-c-base.h.

◆ MAX_WORK_DIM

#define MAX_WORK_DIM   3

Definition at line 549 of file opencl-c-base.h.

◆ MAXFLOAT

#define MAXFLOAT   0x1.fffffep127f

Value of maximum non-infinite single-precision floating-point number.

Definition at line 244 of file opencl-c-base.h.

◆ NAN

#define NAN   as_float(INT_MAX)

A constant expression of type float representing a quiet NaN.

Definition at line 269 of file opencl-c-base.h.

◆ SCHAR_MAX

#define SCHAR_MAX   127

Definition at line 354 of file opencl-c-base.h.

◆ SCHAR_MIN

#define SCHAR_MIN   (-128)

Definition at line 355 of file opencl-c-base.h.

◆ SHRT_MAX

#define SHRT_MAX   32767

Definition at line 360 of file opencl-c-base.h.

◆ SHRT_MIN

#define SHRT_MIN   (-32768)

Definition at line 361 of file opencl-c-base.h.

◆ UCHAR_MAX

#define UCHAR_MAX   255

Definition at line 356 of file opencl-c-base.h.

◆ UINT_MAX

#define UINT_MAX   0xffffffff

Definition at line 362 of file opencl-c-base.h.

◆ ULONG_MAX

#define ULONG_MAX   0xffffffffffffffffUL

Definition at line 365 of file opencl-c-base.h.

◆ USHRT_MAX

#define USHRT_MAX   65535

Definition at line 359 of file opencl-c-base.h.

Typedef Documentation

◆ __attribute__

typedef float float16 __attribute__((ext_vector_type(16)))

Definition at line 167 of file opencl-c-base.h.

◆ cl_mem_fence_flags

Definition at line 372 of file opencl-c-base.h.

◆ clk_profiling_info

Definition at line 544 of file opencl-c-base.h.

◆ intptr_t

typedef __INTPTR_TYPE__ intptr_t

A signed integer type with the property that any valid pointer to void can be converted to this type, then converted back to pointer to void, and the result will compare equal to the original pointer.

Definition at line 157 of file opencl-c-base.h.

◆ kernel_enqueue_flags_t

Definition at line 543 of file opencl-c-base.h.

◆ memory_order

typedef enum memory_order memory_order

◆ memory_scope

typedef enum memory_scope memory_scope

◆ ptrdiff_t

typedef __PTRDIFF_TYPE__ ptrdiff_t

A signed integer type that is the result of subtracting two pointers.

This is a 32-bit signed integer if CL_DEVICE_ADDRESS_BITS defined in table 4.3 is 32-bits and is a 64-bit signed integer if CL_DEVICE_ADDRESS_BITS is 64-bits.

Definition at line 150 of file opencl-c-base.h.

◆ size_t

typedef __SIZE_TYPE__ size_t

The unsigned integer type of the result of the sizeof operator.

This is a 32-bit unsigned integer if CL_DEVICE_ADDRESS_BITS defined in table 4.3 is 32-bits and is a 64-bit unsigned integer if CL_DEVICE_ADDRESS_BITS is 64-bits.

Definition at line 142 of file opencl-c-base.h.

◆ uchar

typedef unsigned char uchar

An unsigned 8-bit integer.

Definition at line 119 of file opencl-c-base.h.

◆ uint

typedef unsigned int uint

An unsigned 32-bit integer.

Definition at line 129 of file opencl-c-base.h.

◆ uintptr_t

typedef __UINTPTR_TYPE__ uintptr_t

An unsigned integer type with the property that any valid pointer to void can be converted to this type, then converted back to pointer to void, and the result will compare equal to the original pointer.

Definition at line 164 of file opencl-c-base.h.

◆ ulong

typedef unsigned long ulong

An unsigned 64-bit integer.

Definition at line 134 of file opencl-c-base.h.

◆ ushort

typedef unsigned short ushort

An unsigned 16-bit integer.

Definition at line 124 of file opencl-c-base.h.

Enumeration Type Documentation

◆ memory_order

Enumerator
memory_order_relaxed 
memory_order_acquire 
memory_order_release 
memory_order_acq_rel 
memory_order_relaxed 
memory_order_consume 
memory_order_acquire 
memory_order_release 
memory_order_acq_rel 
memory_order_seq_cst 

Definition at line 422 of file opencl-c-base.h.

◆ memory_scope

Enumerator
memory_scope_work_item 
memory_scope_work_group 
memory_scope_device 

Definition at line 388 of file opencl-c-base.h.

Function Documentation

◆ printf()

int printf ( __constant const char *  st,
  ... 
)