1#[allow(clippy::approx_constant)]
3
4pub const CL_TARGET_OPENCL_VERSION: u32 = 300;
5pub const CL_VERSION_3_0: u32 = 1;
6pub const CL_VERSION_2_2: u32 = 1;
7pub const CL_VERSION_2_1: u32 = 1;
8pub const CL_VERSION_2_0: u32 = 1;
9pub const CL_VERSION_1_2: u32 = 1;
10pub const CL_VERSION_1_1: u32 = 1;
11pub const CL_VERSION_1_0: u32 = 1;
12pub const CL_CHAR_BIT: u32 = 8;
13pub const CL_SCHAR_MAX: u32 = 127;
14pub const CL_SCHAR_MIN: i32 = -128;
15pub const CL_CHAR_MAX: u32 = 127;
16pub const CL_CHAR_MIN: i32 = -128;
17pub const CL_UCHAR_MAX: u32 = 255;
18pub const CL_SHRT_MAX: u32 = 32767;
19pub const CL_SHRT_MIN: i32 = -32768;
20pub const CL_USHRT_MAX: u32 = 65535;
21pub const CL_INT_MAX: u32 = 2147483647;
22pub const CL_INT_MIN: i32 = -2147483648;
23pub const CL_UINT_MAX: u32 = 4294967295;
24pub const CL_FLT_DIG: u32 = 6;
25pub const CL_FLT_MANT_DIG: u32 = 24;
26pub const CL_FLT_MAX_10_EXP: u32 = 38;
27pub const CL_FLT_MAX_EXP: u32 = 128;
28pub const CL_FLT_MIN_10_EXP: i32 = -37;
29pub const CL_FLT_MIN_EXP: i32 = -125;
30pub const CL_FLT_RADIX: u32 = 2;
31pub const CL_FLT_MAX: f64 = 340282346638528860000000000000000000000.0;
32pub const CL_HALF_DIG: u32 = 3;
33pub const CL_HALF_MANT_DIG: u32 = 11;
34pub const CL_HALF_MAX_10_EXP: u32 = 4;
35pub const CL_HALF_MAX_EXP: u32 = 16;
36pub const CL_HALF_MIN_10_EXP: i32 = -4;
37pub const CL_HALF_MIN_EXP: i32 = -13;
38pub const CL_HALF_RADIX: u32 = 2;
39pub const CL_HALF_MAX: f64 = 65504.0;
40pub const CL_DBL_DIG: u32 = 15;
41pub const CL_DBL_MANT_DIG: u32 = 53;
42pub const CL_DBL_MAX_10_EXP: u32 = 308;
43pub const CL_DBL_MAX_EXP: u32 = 1024;
44pub const CL_DBL_MIN_10_EXP: i32 = -307;
45pub const CL_DBL_MIN_EXP: i32 = -1021;
46pub const CL_DBL_RADIX: u32 = 2;
47pub const CL_M_E: f64 = 2.718281828459045;
48pub const CL_M_LOG2E: f64 = 1.4426950408889634;
49pub const CL_M_LOG10E: f64 = 0.4342944819032518;
50pub const CL_M_LN2: f64 = 0.6931471805599453;
51pub const CL_M_LN10: f64 = 2.302585092994046;
52pub const CL_M_PI: f64 = 3.141592653589793;
53pub const CL_M_PI_2: f64 = 1.5707963267948966;
54pub const CL_M_PI_4: f64 = 0.7853981633974483;
55pub const CL_M_1_PI: f64 = 0.3183098861837907;
56pub const CL_M_2_PI: f64 = 0.6366197723675814;
57pub const CL_M_2_SQRTPI: f64 = 1.1283791670955126;
58pub const CL_M_SQRT2: f64 = 1.4142135623730951;
59pub const CL_M_SQRT1_2: f64 = 0.7071067811865476;
60pub const CL_M_E_F: f64 = 2.718281828;
61pub const CL_M_LOG2E_F: f64 = 1.442695041;
62pub const CL_M_LOG10E_F: f64 = 0.434294482;
63pub const CL_M_LN2_F: f64 = 0.693147181;
64pub const CL_M_LN10_F: f64 = 2.302585093;
65pub const CL_M_PI_F: f64 = 3.141592654;
66pub const CL_M_PI_2_F: f64 = 1.570796327;
67pub const CL_M_PI_4_F: f64 = 0.785398163;
68pub const CL_M_1_PI_F: f64 = 0.318309886;
69pub const CL_M_2_PI_F: f64 = 0.636619772;
70pub const CL_M_2_SQRTPI_F: f64 = 1.128379167;
71pub const CL_M_SQRT2_F: f64 = 1.414213562;
72pub const CL_M_SQRT1_2_F: f64 = 0.707106781;
73pub const CL_MAXFLOAT: f64 = 340282346638528860000000000000000000000.0;
74pub const CL_HAS_NAMED_VECTOR_FIELDS: u32 = 1;
75pub const CL_HAS_HI_LO_VECTOR_FIELDS: u32 = 1;
76pub const CL_NAME_VERSION_MAX_NAME_SIZE: u32 = 64;
77pub const CL_SUCCESS: u32 = 0;
78pub const CL_DEVICE_NOT_FOUND: i32 = -1;
79pub const CL_DEVICE_NOT_AVAILABLE: i32 = -2;
80pub const CL_COMPILER_NOT_AVAILABLE: i32 = -3;
81pub const CL_MEM_OBJECT_ALLOCATION_FAILURE: i32 = -4;
82pub const CL_OUT_OF_RESOURCES: i32 = -5;
83pub const CL_OUT_OF_HOST_MEMORY: i32 = -6;
84pub const CL_PROFILING_INFO_NOT_AVAILABLE: i32 = -7;
85pub const CL_MEM_COPY_OVERLAP: i32 = -8;
86pub const CL_IMAGE_FORMAT_MISMATCH: i32 = -9;
87pub const CL_IMAGE_FORMAT_NOT_SUPPORTED: i32 = -10;
88pub const CL_BUILD_PROGRAM_FAILURE: i32 = -11;
89pub const CL_MAP_FAILURE: i32 = -12;
90pub const CL_MISALIGNED_SUB_BUFFER_OFFSET: i32 = -13;
91pub const CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST: i32 = -14;
92pub const CL_COMPILE_PROGRAM_FAILURE: i32 = -15;
93pub const CL_LINKER_NOT_AVAILABLE: i32 = -16;
94pub const CL_LINK_PROGRAM_FAILURE: i32 = -17;
95pub const CL_DEVICE_PARTITION_FAILED: i32 = -18;
96pub const CL_KERNEL_ARG_INFO_NOT_AVAILABLE: i32 = -19;
97pub const CL_INVALID_VALUE: i32 = -30;
98pub const CL_INVALID_DEVICE_TYPE: i32 = -31;
99pub const CL_INVALID_PLATFORM: i32 = -32;
100pub const CL_INVALID_DEVICE: i32 = -33;
101pub const CL_INVALID_CONTEXT: i32 = -34;
102pub const CL_INVALID_QUEUE_PROPERTIES: i32 = -35;
103pub const CL_INVALID_COMMAND_QUEUE: i32 = -36;
104pub const CL_INVALID_HOST_PTR: i32 = -37;
105pub const CL_INVALID_MEM_OBJECT: i32 = -38;
106pub const CL_INVALID_IMAGE_FORMAT_DESCRIPTOR: i32 = -39;
107pub const CL_INVALID_IMAGE_SIZE: i32 = -40;
108pub const CL_INVALID_SAMPLER: i32 = -41;
109pub const CL_INVALID_BINARY: i32 = -42;
110pub const CL_INVALID_BUILD_OPTIONS: i32 = -43;
111pub const CL_INVALID_PROGRAM: i32 = -44;
112pub const CL_INVALID_PROGRAM_EXECUTABLE: i32 = -45;
113pub const CL_INVALID_KERNEL_NAME: i32 = -46;
114pub const CL_INVALID_KERNEL_DEFINITION: i32 = -47;
115pub const CL_INVALID_KERNEL: i32 = -48;
116pub const CL_INVALID_ARG_INDEX: i32 = -49;
117pub const CL_INVALID_ARG_VALUE: i32 = -50;
118pub const CL_INVALID_ARG_SIZE: i32 = -51;
119pub const CL_INVALID_KERNEL_ARGS: i32 = -52;
120pub const CL_INVALID_WORK_DIMENSION: i32 = -53;
121pub const CL_INVALID_WORK_GROUP_SIZE: i32 = -54;
122pub const CL_INVALID_WORK_ITEM_SIZE: i32 = -55;
123pub const CL_INVALID_GLOBAL_OFFSET: i32 = -56;
124pub const CL_INVALID_EVENT_WAIT_LIST: i32 = -57;
125pub const CL_INVALID_EVENT: i32 = -58;
126pub const CL_INVALID_OPERATION: i32 = -59;
127pub const CL_INVALID_GL_OBJECT: i32 = -60;
128pub const CL_INVALID_BUFFER_SIZE: i32 = -61;
129pub const CL_INVALID_MIP_LEVEL: i32 = -62;
130pub const CL_INVALID_GLOBAL_WORK_SIZE: i32 = -63;
131pub const CL_INVALID_PROPERTY: i32 = -64;
132pub const CL_INVALID_IMAGE_DESCRIPTOR: i32 = -65;
133pub const CL_INVALID_COMPILER_OPTIONS: i32 = -66;
134pub const CL_INVALID_LINKER_OPTIONS: i32 = -67;
135pub const CL_INVALID_DEVICE_PARTITION_COUNT: i32 = -68;
136pub const CL_INVALID_PIPE_SIZE: i32 = -69;
137pub const CL_INVALID_DEVICE_QUEUE: i32 = -70;
138pub const CL_INVALID_SPEC_ID: i32 = -71;
139pub const CL_MAX_SIZE_RESTRICTION_EXCEEDED: i32 = -72;
140pub const CL_FALSE: u32 = 0;
141pub const CL_TRUE: u32 = 1;
142pub const CL_BLOCKING: u32 = 1;
143pub const CL_NON_BLOCKING: u32 = 0;
144pub const CL_PLATFORM_PROFILE: u32 = 2304;
145pub const CL_PLATFORM_VERSION: u32 = 2305;
146pub const CL_PLATFORM_NAME: u32 = 2306;
147pub const CL_PLATFORM_VENDOR: u32 = 2307;
148pub const CL_PLATFORM_EXTENSIONS: u32 = 2308;
149pub const CL_PLATFORM_HOST_TIMER_RESOLUTION: u32 = 2309;
150pub const CL_PLATFORM_NUMERIC_VERSION: u32 = 2310;
151pub const CL_PLATFORM_EXTENSIONS_WITH_VERSION: u32 = 2311;
152pub const CL_DEVICE_TYPE_DEFAULT: u32 = 1;
153pub const CL_DEVICE_TYPE_CPU: u32 = 2;
154pub const CL_DEVICE_TYPE_GPU: u32 = 4;
155pub const CL_DEVICE_TYPE_ACCELERATOR: u32 = 8;
156pub const CL_DEVICE_TYPE_CUSTOM: u32 = 16;
157pub const CL_DEVICE_TYPE_ALL: u32 = 4294967295;
158pub const CL_DEVICE_TYPE: u32 = 4096;
159pub const CL_DEVICE_VENDOR_ID: u32 = 4097;
160pub const CL_DEVICE_MAX_COMPUTE_UNITS: u32 = 4098;
161pub const CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS: u32 = 4099;
162pub const CL_DEVICE_MAX_WORK_GROUP_SIZE: u32 = 4100;
163pub const CL_DEVICE_MAX_WORK_ITEM_SIZES: u32 = 4101;
164pub const CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR: u32 = 4102;
165pub const CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT: u32 = 4103;
166pub const CL_DEVICE_PREFERRED_VECTOR_WIDTH_INT: u32 = 4104;
167pub const CL_DEVICE_PREFERRED_VECTOR_WIDTH_LONG: u32 = 4105;
168pub const CL_DEVICE_PREFERRED_VECTOR_WIDTH_FLOAT: u32 = 4106;
169pub const CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE: u32 = 4107;
170pub const CL_DEVICE_MAX_CLOCK_FREQUENCY: u32 = 4108;
171pub const CL_DEVICE_ADDRESS_BITS: u32 = 4109;
172pub const CL_DEVICE_MAX_READ_IMAGE_ARGS: u32 = 4110;
173pub const CL_DEVICE_MAX_WRITE_IMAGE_ARGS: u32 = 4111;
174pub const CL_DEVICE_MAX_MEM_ALLOC_SIZE: u32 = 4112;
175pub const CL_DEVICE_IMAGE2D_MAX_WIDTH: u32 = 4113;
176pub const CL_DEVICE_IMAGE2D_MAX_HEIGHT: u32 = 4114;
177pub const CL_DEVICE_IMAGE3D_MAX_WIDTH: u32 = 4115;
178pub const CL_DEVICE_IMAGE3D_MAX_HEIGHT: u32 = 4116;
179pub const CL_DEVICE_IMAGE3D_MAX_DEPTH: u32 = 4117;
180pub const CL_DEVICE_IMAGE_SUPPORT: u32 = 4118;
181pub const CL_DEVICE_MAX_PARAMETER_SIZE: u32 = 4119;
182pub const CL_DEVICE_MAX_SAMPLERS: u32 = 4120;
183pub const CL_DEVICE_MEM_BASE_ADDR_ALIGN: u32 = 4121;
184pub const CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE: u32 = 4122;
185pub const CL_DEVICE_SINGLE_FP_CONFIG: u32 = 4123;
186pub const CL_DEVICE_GLOBAL_MEM_CACHE_TYPE: u32 = 4124;
187pub const CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE: u32 = 4125;
188pub const CL_DEVICE_GLOBAL_MEM_CACHE_SIZE: u32 = 4126;
189pub const CL_DEVICE_GLOBAL_MEM_SIZE: u32 = 4127;
190pub const CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE: u32 = 4128;
191pub const CL_DEVICE_MAX_CONSTANT_ARGS: u32 = 4129;
192pub const CL_DEVICE_LOCAL_MEM_TYPE: u32 = 4130;
193pub const CL_DEVICE_LOCAL_MEM_SIZE: u32 = 4131;
194pub const CL_DEVICE_ERROR_CORRECTION_SUPPORT: u32 = 4132;
195pub const CL_DEVICE_PROFILING_TIMER_RESOLUTION: u32 = 4133;
196pub const CL_DEVICE_ENDIAN_LITTLE: u32 = 4134;
197pub const CL_DEVICE_AVAILABLE: u32 = 4135;
198pub const CL_DEVICE_COMPILER_AVAILABLE: u32 = 4136;
199pub const CL_DEVICE_EXECUTION_CAPABILITIES: u32 = 4137;
200pub const CL_DEVICE_QUEUE_PROPERTIES: u32 = 4138;
201pub const CL_DEVICE_QUEUE_ON_HOST_PROPERTIES: u32 = 4138;
202pub const CL_DEVICE_NAME: u32 = 4139;
203pub const CL_DEVICE_VENDOR: u32 = 4140;
204pub const CL_DRIVER_VERSION: u32 = 4141;
205pub const CL_DEVICE_PROFILE: u32 = 4142;
206pub const CL_DEVICE_VERSION: u32 = 4143;
207pub const CL_DEVICE_EXTENSIONS: u32 = 4144;
208pub const CL_DEVICE_PLATFORM: u32 = 4145;
209pub const CL_DEVICE_DOUBLE_FP_CONFIG: u32 = 4146;
210pub const CL_DEVICE_PREFERRED_VECTOR_WIDTH_HALF: u32 = 4148;
211pub const CL_DEVICE_HOST_UNIFIED_MEMORY: u32 = 4149;
212pub const CL_DEVICE_NATIVE_VECTOR_WIDTH_CHAR: u32 = 4150;
213pub const CL_DEVICE_NATIVE_VECTOR_WIDTH_SHORT: u32 = 4151;
214pub const CL_DEVICE_NATIVE_VECTOR_WIDTH_INT: u32 = 4152;
215pub const CL_DEVICE_NATIVE_VECTOR_WIDTH_LONG: u32 = 4153;
216pub const CL_DEVICE_NATIVE_VECTOR_WIDTH_FLOAT: u32 = 4154;
217pub const CL_DEVICE_NATIVE_VECTOR_WIDTH_DOUBLE: u32 = 4155;
218pub const CL_DEVICE_NATIVE_VECTOR_WIDTH_HALF: u32 = 4156;
219pub const CL_DEVICE_OPENCL_C_VERSION: u32 = 4157;
220pub const CL_DEVICE_LINKER_AVAILABLE: u32 = 4158;
221pub const CL_DEVICE_BUILT_IN_KERNELS: u32 = 4159;
222pub const CL_DEVICE_IMAGE_MAX_BUFFER_SIZE: u32 = 4160;
223pub const CL_DEVICE_IMAGE_MAX_ARRAY_SIZE: u32 = 4161;
224pub const CL_DEVICE_PARENT_DEVICE: u32 = 4162;
225pub const CL_DEVICE_PARTITION_MAX_SUB_DEVICES: u32 = 4163;
226pub const CL_DEVICE_PARTITION_PROPERTIES: u32 = 4164;
227pub const CL_DEVICE_PARTITION_AFFINITY_DOMAIN: u32 = 4165;
228pub const CL_DEVICE_PARTITION_TYPE: u32 = 4166;
229pub const CL_DEVICE_REFERENCE_COUNT: u32 = 4167;
230pub const CL_DEVICE_PREFERRED_INTEROP_USER_SYNC: u32 = 4168;
231pub const CL_DEVICE_PRINTF_BUFFER_SIZE: u32 = 4169;
232pub const CL_DEVICE_IMAGE_PITCH_ALIGNMENT: u32 = 4170;
233pub const CL_DEVICE_IMAGE_BASE_ADDRESS_ALIGNMENT: u32 = 4171;
234pub const CL_DEVICE_MAX_READ_WRITE_IMAGE_ARGS: u32 = 4172;
235pub const CL_DEVICE_MAX_GLOBAL_VARIABLE_SIZE: u32 = 4173;
236pub const CL_DEVICE_QUEUE_ON_DEVICE_PROPERTIES: u32 = 4174;
237pub const CL_DEVICE_QUEUE_ON_DEVICE_PREFERRED_SIZE: u32 = 4175;
238pub const CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE: u32 = 4176;
239pub const CL_DEVICE_MAX_ON_DEVICE_QUEUES: u32 = 4177;
240pub const CL_DEVICE_MAX_ON_DEVICE_EVENTS: u32 = 4178;
241pub const CL_DEVICE_SVM_CAPABILITIES: u32 = 4179;
242pub const CL_DEVICE_GLOBAL_VARIABLE_PREFERRED_TOTAL_SIZE: u32 = 4180;
243pub const CL_DEVICE_MAX_PIPE_ARGS: u32 = 4181;
244pub const CL_DEVICE_PIPE_MAX_ACTIVE_RESERVATIONS: u32 = 4182;
245pub const CL_DEVICE_PIPE_MAX_PACKET_SIZE: u32 = 4183;
246pub const CL_DEVICE_PREFERRED_PLATFORM_ATOMIC_ALIGNMENT: u32 = 4184;
247pub const CL_DEVICE_PREFERRED_GLOBAL_ATOMIC_ALIGNMENT: u32 = 4185;
248pub const CL_DEVICE_PREFERRED_LOCAL_ATOMIC_ALIGNMENT: u32 = 4186;
249pub const CL_DEVICE_IL_VERSION: u32 = 4187;
250pub const CL_DEVICE_MAX_NUM_SUB_GROUPS: u32 = 4188;
251pub const CL_DEVICE_SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS: u32 = 4189;
252pub const CL_DEVICE_NUMERIC_VERSION: u32 = 4190;
253pub const CL_DEVICE_EXTENSIONS_WITH_VERSION: u32 = 4192;
254pub const CL_DEVICE_ILS_WITH_VERSION: u32 = 4193;
255pub const CL_DEVICE_BUILT_IN_KERNELS_WITH_VERSION: u32 = 4194;
256pub const CL_DEVICE_ATOMIC_MEMORY_CAPABILITIES: u32 = 4195;
257pub const CL_DEVICE_ATOMIC_FENCE_CAPABILITIES: u32 = 4196;
258pub const CL_DEVICE_NON_UNIFORM_WORK_GROUP_SUPPORT: u32 = 4197;
259pub const CL_DEVICE_OPENCL_C_ALL_VERSIONS: u32 = 4198;
260pub const CL_DEVICE_PREFERRED_WORK_GROUP_SIZE_MULTIPLE: u32 = 4199;
261pub const CL_DEVICE_WORK_GROUP_COLLECTIVE_FUNCTIONS_SUPPORT: u32 = 4200;
262pub const CL_DEVICE_GENERIC_ADDRESS_SPACE_SUPPORT: u32 = 4201;
263pub const CL_DEVICE_OPENCL_C_FEATURES: u32 = 4207;
264pub const CL_DEVICE_DEVICE_ENQUEUE_CAPABILITIES: u32 = 4208;
265pub const CL_DEVICE_PIPE_SUPPORT: u32 = 4209;
266pub const CL_DEVICE_LATEST_CONFORMANCE_VERSION_PASSED: u32 = 4210;
267pub const CL_FP_DENORM: u32 = 1;
268pub const CL_FP_INF_NAN: u32 = 2;
269pub const CL_FP_ROUND_TO_NEAREST: u32 = 4;
270pub const CL_FP_ROUND_TO_ZERO: u32 = 8;
271pub const CL_FP_ROUND_TO_INF: u32 = 16;
272pub const CL_FP_FMA: u32 = 32;
273pub const CL_FP_SOFT_FLOAT: u32 = 64;
274pub const CL_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT: u32 = 128;
275pub const CL_NONE: u32 = 0;
276pub const CL_READ_ONLY_CACHE: u32 = 1;
277pub const CL_READ_WRITE_CACHE: u32 = 2;
278pub const CL_LOCAL: u32 = 1;
279pub const CL_GLOBAL: u32 = 2;
280pub const CL_EXEC_KERNEL: u32 = 1;
281pub const CL_EXEC_NATIVE_KERNEL: u32 = 2;
282pub const CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE: u32 = 1;
283pub const CL_QUEUE_PROFILING_ENABLE: u32 = 2;
284pub const CL_QUEUE_ON_DEVICE: u32 = 4;
285pub const CL_QUEUE_ON_DEVICE_DEFAULT: u32 = 8;
286pub const CL_CONTEXT_REFERENCE_COUNT: u32 = 4224;
287pub const CL_CONTEXT_DEVICES: u32 = 4225;
288pub const CL_CONTEXT_PROPERTIES: u32 = 4226;
289pub const CL_CONTEXT_NUM_DEVICES: u32 = 4227;
290pub const CL_CONTEXT_PLATFORM: u32 = 4228;
291pub const CL_CONTEXT_INTEROP_USER_SYNC: u32 = 4229;
292pub const CL_DEVICE_PARTITION_EQUALLY: u32 = 4230;
293pub const CL_DEVICE_PARTITION_BY_COUNTS: u32 = 4231;
294pub const CL_DEVICE_PARTITION_BY_COUNTS_LIST_END: u32 = 0;
295pub const CL_DEVICE_PARTITION_BY_AFFINITY_DOMAIN: u32 = 4232;
296pub const CL_DEVICE_AFFINITY_DOMAIN_NUMA: u32 = 1;
297pub const CL_DEVICE_AFFINITY_DOMAIN_L4_CACHE: u32 = 2;
298pub const CL_DEVICE_AFFINITY_DOMAIN_L3_CACHE: u32 = 4;
299pub const CL_DEVICE_AFFINITY_DOMAIN_L2_CACHE: u32 = 8;
300pub const CL_DEVICE_AFFINITY_DOMAIN_L1_CACHE: u32 = 16;
301pub const CL_DEVICE_AFFINITY_DOMAIN_NEXT_PARTITIONABLE: u32 = 32;
302pub const CL_DEVICE_SVM_COARSE_GRAIN_BUFFER: u32 = 1;
303pub const CL_DEVICE_SVM_FINE_GRAIN_BUFFER: u32 = 2;
304pub const CL_DEVICE_SVM_FINE_GRAIN_SYSTEM: u32 = 4;
305pub const CL_DEVICE_SVM_ATOMICS: u32 = 8;
306pub const CL_QUEUE_CONTEXT: u32 = 4240;
307pub const CL_QUEUE_DEVICE: u32 = 4241;
308pub const CL_QUEUE_REFERENCE_COUNT: u32 = 4242;
309pub const CL_QUEUE_PROPERTIES: u32 = 4243;
310pub const CL_QUEUE_SIZE: u32 = 4244;
311pub const CL_QUEUE_DEVICE_DEFAULT: u32 = 4245;
312pub const CL_QUEUE_PROPERTIES_ARRAY: u32 = 4248;
313pub const CL_MEM_READ_WRITE: u32 = 1;
314pub const CL_MEM_WRITE_ONLY: u32 = 2;
315pub const CL_MEM_READ_ONLY: u32 = 4;
316pub const CL_MEM_USE_HOST_PTR: u32 = 8;
317pub const CL_MEM_ALLOC_HOST_PTR: u32 = 16;
318pub const CL_MEM_COPY_HOST_PTR: u32 = 32;
319pub const CL_MEM_HOST_WRITE_ONLY: u32 = 128;
320pub const CL_MEM_HOST_READ_ONLY: u32 = 256;
321pub const CL_MEM_HOST_NO_ACCESS: u32 = 512;
322pub const CL_MEM_SVM_FINE_GRAIN_BUFFER: u32 = 1024;
323pub const CL_MEM_SVM_ATOMICS: u32 = 2048;
324pub const CL_MEM_KERNEL_READ_AND_WRITE: u32 = 4096;
325pub const CL_MIGRATE_MEM_OBJECT_HOST: u32 = 1;
326pub const CL_MIGRATE_MEM_OBJECT_CONTENT_UNDEFINED: u32 = 2;
327pub const CL_R: u32 = 4272;
328pub const CL_A: u32 = 4273;
329pub const CL_RG: u32 = 4274;
330pub const CL_RA: u32 = 4275;
331pub const CL_RGB: u32 = 4276;
332pub const CL_RGBA: u32 = 4277;
333pub const CL_BGRA: u32 = 4278;
334pub const CL_ARGB: u32 = 4279;
335pub const CL_INTENSITY: u32 = 4280;
336pub const CL_LUMINANCE: u32 = 4281;
337pub const CL_Rx: u32 = 4282;
338pub const CL_RGx: u32 = 4283;
339pub const CL_RGBx: u32 = 4284;
340pub const CL_DEPTH: u32 = 4285;
341pub const CL_sRGB: u32 = 4287;
342pub const CL_sRGBx: u32 = 4288;
343pub const CL_sRGBA: u32 = 4289;
344pub const CL_sBGRA: u32 = 4290;
345pub const CL_ABGR: u32 = 4291;
346pub const CL_SNORM_INT8: u32 = 4304;
347pub const CL_SNORM_INT16: u32 = 4305;
348pub const CL_UNORM_INT8: u32 = 4306;
349pub const CL_UNORM_INT16: u32 = 4307;
350pub const CL_UNORM_SHORT_565: u32 = 4308;
351pub const CL_UNORM_SHORT_555: u32 = 4309;
352pub const CL_UNORM_INT_101010: u32 = 4310;
353pub const CL_SIGNED_INT8: u32 = 4311;
354pub const CL_SIGNED_INT16: u32 = 4312;
355pub const CL_SIGNED_INT32: u32 = 4313;
356pub const CL_UNSIGNED_INT8: u32 = 4314;
357pub const CL_UNSIGNED_INT16: u32 = 4315;
358pub const CL_UNSIGNED_INT32: u32 = 4316;
359pub const CL_HALF_FLOAT: u32 = 4317;
360pub const CL_FLOAT: u32 = 4318;
361pub const CL_UNORM_INT_101010_2: u32 = 4320;
362pub const CL_MEM_OBJECT_BUFFER: u32 = 4336;
363pub const CL_MEM_OBJECT_IMAGE2D: u32 = 4337;
364pub const CL_MEM_OBJECT_IMAGE3D: u32 = 4338;
365pub const CL_MEM_OBJECT_IMAGE2D_ARRAY: u32 = 4339;
366pub const CL_MEM_OBJECT_IMAGE1D: u32 = 4340;
367pub const CL_MEM_OBJECT_IMAGE1D_ARRAY: u32 = 4341;
368pub const CL_MEM_OBJECT_IMAGE1D_BUFFER: u32 = 4342;
369pub const CL_MEM_OBJECT_PIPE: u32 = 4343;
370pub const CL_MEM_TYPE: u32 = 4352;
371pub const CL_MEM_FLAGS: u32 = 4353;
372pub const CL_MEM_SIZE: u32 = 4354;
373pub const CL_MEM_HOST_PTR: u32 = 4355;
374pub const CL_MEM_MAP_COUNT: u32 = 4356;
375pub const CL_MEM_REFERENCE_COUNT: u32 = 4357;
376pub const CL_MEM_CONTEXT: u32 = 4358;
377pub const CL_MEM_ASSOCIATED_MEMOBJECT: u32 = 4359;
378pub const CL_MEM_OFFSET: u32 = 4360;
379pub const CL_MEM_USES_SVM_POINTER: u32 = 4361;
380pub const CL_MEM_PROPERTIES: u32 = 4362;
381pub const CL_IMAGE_FORMAT: u32 = 4368;
382pub const CL_IMAGE_ELEMENT_SIZE: u32 = 4369;
383pub const CL_IMAGE_ROW_PITCH: u32 = 4370;
384pub const CL_IMAGE_SLICE_PITCH: u32 = 4371;
385pub const CL_IMAGE_WIDTH: u32 = 4372;
386pub const CL_IMAGE_HEIGHT: u32 = 4373;
387pub const CL_IMAGE_DEPTH: u32 = 4374;
388pub const CL_IMAGE_ARRAY_SIZE: u32 = 4375;
389pub const CL_IMAGE_BUFFER: u32 = 4376;
390pub const CL_IMAGE_NUM_MIP_LEVELS: u32 = 4377;
391pub const CL_IMAGE_NUM_SAMPLES: u32 = 4378;
392pub const CL_PIPE_PACKET_SIZE: u32 = 4384;
393pub const CL_PIPE_MAX_PACKETS: u32 = 4385;
394pub const CL_PIPE_PROPERTIES: u32 = 4386;
395pub const CL_ADDRESS_NONE: u32 = 4400;
396pub const CL_ADDRESS_CLAMP_TO_EDGE: u32 = 4401;
397pub const CL_ADDRESS_CLAMP: u32 = 4402;
398pub const CL_ADDRESS_REPEAT: u32 = 4403;
399pub const CL_ADDRESS_MIRRORED_REPEAT: u32 = 4404;
400pub const CL_FILTER_NEAREST: u32 = 4416;
401pub const CL_FILTER_LINEAR: u32 = 4417;
402pub const CL_SAMPLER_REFERENCE_COUNT: u32 = 4432;
403pub const CL_SAMPLER_CONTEXT: u32 = 4433;
404pub const CL_SAMPLER_NORMALIZED_COORDS: u32 = 4434;
405pub const CL_SAMPLER_ADDRESSING_MODE: u32 = 4435;
406pub const CL_SAMPLER_FILTER_MODE: u32 = 4436;
407pub const CL_SAMPLER_MIP_FILTER_MODE: u32 = 4437;
408pub const CL_SAMPLER_LOD_MIN: u32 = 4438;
409pub const CL_SAMPLER_LOD_MAX: u32 = 4439;
410pub const CL_SAMPLER_PROPERTIES: u32 = 4440;
411pub const CL_MAP_READ: u32 = 1;
412pub const CL_MAP_WRITE: u32 = 2;
413pub const CL_MAP_WRITE_INVALIDATE_REGION: u32 = 4;
414pub const CL_PROGRAM_REFERENCE_COUNT: u32 = 4448;
415pub const CL_PROGRAM_CONTEXT: u32 = 4449;
416pub const CL_PROGRAM_NUM_DEVICES: u32 = 4450;
417pub const CL_PROGRAM_DEVICES: u32 = 4451;
418pub const CL_PROGRAM_SOURCE: u32 = 4452;
419pub const CL_PROGRAM_BINARY_SIZES: u32 = 4453;
420pub const CL_PROGRAM_BINARIES: u32 = 4454;
421pub const CL_PROGRAM_NUM_KERNELS: u32 = 4455;
422pub const CL_PROGRAM_KERNEL_NAMES: u32 = 4456;
423pub const CL_PROGRAM_IL: u32 = 4457;
424pub const CL_PROGRAM_SCOPE_GLOBAL_CTORS_PRESENT: u32 = 4458;
425pub const CL_PROGRAM_SCOPE_GLOBAL_DTORS_PRESENT: u32 = 4459;
426pub const CL_PROGRAM_BUILD_STATUS: u32 = 4481;
427pub const CL_PROGRAM_BUILD_OPTIONS: u32 = 4482;
428pub const CL_PROGRAM_BUILD_LOG: u32 = 4483;
429pub const CL_PROGRAM_BINARY_TYPE: u32 = 4484;
430pub const CL_PROGRAM_BUILD_GLOBAL_VARIABLE_TOTAL_SIZE: u32 = 4485;
431pub const CL_PROGRAM_BINARY_TYPE_NONE: u32 = 0;
432pub const CL_PROGRAM_BINARY_TYPE_COMPILED_OBJECT: u32 = 1;
433pub const CL_PROGRAM_BINARY_TYPE_LIBRARY: u32 = 2;
434pub const CL_PROGRAM_BINARY_TYPE_EXECUTABLE: u32 = 4;
435pub const CL_BUILD_SUCCESS: u32 = 0;
436pub const CL_BUILD_NONE: i32 = -1;
437pub const CL_BUILD_ERROR: i32 = -2;
438pub const CL_BUILD_IN_PROGRESS: i32 = -3;
439pub const CL_KERNEL_FUNCTION_NAME: u32 = 4496;
440pub const CL_KERNEL_NUM_ARGS: u32 = 4497;
441pub const CL_KERNEL_REFERENCE_COUNT: u32 = 4498;
442pub const CL_KERNEL_CONTEXT: u32 = 4499;
443pub const CL_KERNEL_PROGRAM: u32 = 4500;
444pub const CL_KERNEL_ATTRIBUTES: u32 = 4501;
445pub const CL_KERNEL_ARG_ADDRESS_QUALIFIER: u32 = 4502;
446pub const CL_KERNEL_ARG_ACCESS_QUALIFIER: u32 = 4503;
447pub const CL_KERNEL_ARG_TYPE_NAME: u32 = 4504;
448pub const CL_KERNEL_ARG_TYPE_QUALIFIER: u32 = 4505;
449pub const CL_KERNEL_ARG_NAME: u32 = 4506;
450pub const CL_KERNEL_ARG_ADDRESS_GLOBAL: u32 = 4507;
451pub const CL_KERNEL_ARG_ADDRESS_LOCAL: u32 = 4508;
452pub const CL_KERNEL_ARG_ADDRESS_CONSTANT: u32 = 4509;
453pub const CL_KERNEL_ARG_ADDRESS_PRIVATE: u32 = 4510;
454pub const CL_KERNEL_ARG_ACCESS_READ_ONLY: u32 = 4512;
455pub const CL_KERNEL_ARG_ACCESS_WRITE_ONLY: u32 = 4513;
456pub const CL_KERNEL_ARG_ACCESS_READ_WRITE: u32 = 4514;
457pub const CL_KERNEL_ARG_ACCESS_NONE: u32 = 4515;
458pub const CL_KERNEL_ARG_TYPE_NONE: u32 = 0;
459pub const CL_KERNEL_ARG_TYPE_CONST: u32 = 1;
460pub const CL_KERNEL_ARG_TYPE_RESTRICT: u32 = 2;
461pub const CL_KERNEL_ARG_TYPE_VOLATILE: u32 = 4;
462pub const CL_KERNEL_ARG_TYPE_PIPE: u32 = 8;
463pub const CL_KERNEL_WORK_GROUP_SIZE: u32 = 4528;
464pub const CL_KERNEL_COMPILE_WORK_GROUP_SIZE: u32 = 4529;
465pub const CL_KERNEL_LOCAL_MEM_SIZE: u32 = 4530;
466pub const CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE: u32 = 4531;
467pub const CL_KERNEL_PRIVATE_MEM_SIZE: u32 = 4532;
468pub const CL_KERNEL_GLOBAL_WORK_SIZE: u32 = 4533;
469pub const CL_KERNEL_MAX_SUB_GROUP_SIZE_FOR_NDRANGE: u32 = 8243;
470pub const CL_KERNEL_SUB_GROUP_COUNT_FOR_NDRANGE: u32 = 8244;
471pub const CL_KERNEL_LOCAL_SIZE_FOR_SUB_GROUP_COUNT: u32 = 4536;
472pub const CL_KERNEL_MAX_NUM_SUB_GROUPS: u32 = 4537;
473pub const CL_KERNEL_COMPILE_NUM_SUB_GROUPS: u32 = 4538;
474pub const CL_KERNEL_EXEC_INFO_SVM_PTRS: u32 = 4534;
475pub const CL_KERNEL_EXEC_INFO_SVM_FINE_GRAIN_SYSTEM: u32 = 4535;
476pub const CL_EVENT_COMMAND_QUEUE: u32 = 4560;
477pub const CL_EVENT_COMMAND_TYPE: u32 = 4561;
478pub const CL_EVENT_REFERENCE_COUNT: u32 = 4562;
479pub const CL_EVENT_COMMAND_EXECUTION_STATUS: u32 = 4563;
480pub const CL_EVENT_CONTEXT: u32 = 4564;
481pub const CL_COMMAND_NDRANGE_KERNEL: u32 = 4592;
482pub const CL_COMMAND_TASK: u32 = 4593;
483pub const CL_COMMAND_NATIVE_KERNEL: u32 = 4594;
484pub const CL_COMMAND_READ_BUFFER: u32 = 4595;
485pub const CL_COMMAND_WRITE_BUFFER: u32 = 4596;
486pub const CL_COMMAND_COPY_BUFFER: u32 = 4597;
487pub const CL_COMMAND_READ_IMAGE: u32 = 4598;
488pub const CL_COMMAND_WRITE_IMAGE: u32 = 4599;
489pub const CL_COMMAND_COPY_IMAGE: u32 = 4600;
490pub const CL_COMMAND_COPY_IMAGE_TO_BUFFER: u32 = 4601;
491pub const CL_COMMAND_COPY_BUFFER_TO_IMAGE: u32 = 4602;
492pub const CL_COMMAND_MAP_BUFFER: u32 = 4603;
493pub const CL_COMMAND_MAP_IMAGE: u32 = 4604;
494pub const CL_COMMAND_UNMAP_MEM_OBJECT: u32 = 4605;
495pub const CL_COMMAND_MARKER: u32 = 4606;
496pub const CL_COMMAND_ACQUIRE_GL_OBJECTS: u32 = 4607;
497pub const CL_COMMAND_RELEASE_GL_OBJECTS: u32 = 4608;
498pub const CL_COMMAND_READ_BUFFER_RECT: u32 = 4609;
499pub const CL_COMMAND_WRITE_BUFFER_RECT: u32 = 4610;
500pub const CL_COMMAND_COPY_BUFFER_RECT: u32 = 4611;
501pub const CL_COMMAND_USER: u32 = 4612;
502pub const CL_COMMAND_BARRIER: u32 = 4613;
503pub const CL_COMMAND_MIGRATE_MEM_OBJECTS: u32 = 4614;
504pub const CL_COMMAND_FILL_BUFFER: u32 = 4615;
505pub const CL_COMMAND_FILL_IMAGE: u32 = 4616;
506pub const CL_COMMAND_SVM_FREE: u32 = 4617;
507pub const CL_COMMAND_SVM_MEMCPY: u32 = 4618;
508pub const CL_COMMAND_SVM_MEMFILL: u32 = 4619;
509pub const CL_COMMAND_SVM_MAP: u32 = 4620;
510pub const CL_COMMAND_SVM_UNMAP: u32 = 4621;
511pub const CL_COMMAND_SVM_MIGRATE_MEM: u32 = 4622;
512pub const CL_COMPLETE: u32 = 0;
513pub const CL_RUNNING: u32 = 1;
514pub const CL_SUBMITTED: u32 = 2;
515pub const CL_QUEUED: u32 = 3;
516pub const CL_BUFFER_CREATE_TYPE_REGION: u32 = 4640;
517pub const CL_PROFILING_COMMAND_QUEUED: u32 = 4736;
518pub const CL_PROFILING_COMMAND_SUBMIT: u32 = 4737;
519pub const CL_PROFILING_COMMAND_START: u32 = 4738;
520pub const CL_PROFILING_COMMAND_END: u32 = 4739;
521pub const CL_PROFILING_COMMAND_COMPLETE: u32 = 4740;
522pub const CL_DEVICE_ATOMIC_ORDER_RELAXED: u32 = 1;
523pub const CL_DEVICE_ATOMIC_ORDER_ACQ_REL: u32 = 2;
524pub const CL_DEVICE_ATOMIC_ORDER_SEQ_CST: u32 = 4;
525pub const CL_DEVICE_ATOMIC_SCOPE_WORK_ITEM: u32 = 8;
526pub const CL_DEVICE_ATOMIC_SCOPE_WORK_GROUP: u32 = 16;
527pub const CL_DEVICE_ATOMIC_SCOPE_DEVICE: u32 = 32;
528pub const CL_DEVICE_ATOMIC_SCOPE_ALL_DEVICES: u32 = 64;
529pub const CL_DEVICE_QUEUE_SUPPORTED: u32 = 1;
530pub const CL_DEVICE_QUEUE_REPLACEABLE_DEFAULT: u32 = 2;
531pub const CL_KHRONOS_VENDOR_ID_CODEPLAY: u32 = 65540;
532pub const CL_VERSION_MAJOR_BITS: u32 = 10;
533pub const CL_VERSION_MINOR_BITS: u32 = 10;
534pub const CL_VERSION_PATCH_BITS: u32 = 12;
535pub const CL_VERSION_MAJOR_MASK: u32 = 1023;
536pub const CL_VERSION_MINOR_MASK: u32 = 1023;
537pub const CL_VERSION_PATCH_MASK: u32 = 4095;
538pub type cl_char = ::std::os::raw::c_schar;
539pub type cl_uchar = ::std::os::raw::c_uchar;
540pub type cl_short = ::std::os::raw::c_short;
541pub type cl_ushort = ::std::os::raw::c_ushort;
542pub type cl_int = ::std::os::raw::c_int;
543pub type cl_uint = ::std::os::raw::c_uint;
544pub type cl_long = ::std::os::raw::c_longlong;
545pub type cl_ulong = ::std::os::raw::c_ulonglong;
546pub type cl_half = ::std::os::raw::c_ushort;
547pub type cl_float = f32;
548pub type cl_double = f64;
549pub type __m64 = [::std::os::raw::c_longlong; 1usize];
550pub type __m128i = [::std::os::raw::c_longlong; 2usize];
551pub type __m128 = [f32; 4usize];
552pub type __m128d = [f64; 2usize];
553pub type __cl_float4 = __m128;
554pub type __cl_uchar16 = __m128i;
555pub type __cl_char16 = __m128i;
556pub type __cl_ushort8 = __m128i;
557pub type __cl_short8 = __m128i;
558pub type __cl_uint4 = __m128i;
559pub type __cl_int4 = __m128i;
560pub type __cl_ulong2 = __m128i;
561pub type __cl_long2 = __m128i;
562pub type __cl_double2 = __m128d;
563pub type __cl_uchar8 = __m64;
564pub type __cl_char8 = __m64;
565pub type __cl_ushort4 = __m64;
566pub type __cl_short4 = __m64;
567pub type __cl_uint2 = __m64;
568pub type __cl_int2 = __m64;
569pub type __cl_float2 = __m64;
570#[repr(C)]
571#[derive(Copy, Clone)]
572pub union cl_char2 {
573 pub s: [cl_char; 2usize],
574 pub __bindgen_anon_1: cl_char2__bindgen_ty_1,
575 pub __bindgen_anon_2: cl_char2__bindgen_ty_2,
576 pub __bindgen_anon_3: cl_char2__bindgen_ty_3,
577}
578#[repr(C)]
579#[derive(Debug, Copy, Clone)]
580pub struct cl_char2__bindgen_ty_1 {
581 pub x: cl_char,
582 pub y: cl_char,
583}
584#[test]
585fn bindgen_test_layout_cl_char2__bindgen_ty_1() {
586 const UNINIT: ::std::mem::MaybeUninit<cl_char2__bindgen_ty_1> =
587 ::std::mem::MaybeUninit::uninit();
588 let ptr = UNINIT.as_ptr();
589 assert_eq!(
590 ::std::mem::size_of::<cl_char2__bindgen_ty_1>(),
591 2usize,
592 concat!("Size of: ", stringify!(cl_char2__bindgen_ty_1))
593 );
594 assert_eq!(
595 ::std::mem::align_of::<cl_char2__bindgen_ty_1>(),
596 1usize,
597 concat!("Alignment of ", stringify!(cl_char2__bindgen_ty_1))
598 );
599 assert_eq!(
600 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
601 0usize,
602 concat!(
603 "Offset of field: ",
604 stringify!(cl_char2__bindgen_ty_1),
605 "::",
606 stringify!(x)
607 )
608 );
609 assert_eq!(
610 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
611 1usize,
612 concat!(
613 "Offset of field: ",
614 stringify!(cl_char2__bindgen_ty_1),
615 "::",
616 stringify!(y)
617 )
618 );
619}
620#[repr(C)]
621#[derive(Debug, Copy, Clone)]
622pub struct cl_char2__bindgen_ty_2 {
623 pub s0: cl_char,
624 pub s1: cl_char,
625}
626#[test]
627fn bindgen_test_layout_cl_char2__bindgen_ty_2() {
628 const UNINIT: ::std::mem::MaybeUninit<cl_char2__bindgen_ty_2> =
629 ::std::mem::MaybeUninit::uninit();
630 let ptr = UNINIT.as_ptr();
631 assert_eq!(
632 ::std::mem::size_of::<cl_char2__bindgen_ty_2>(),
633 2usize,
634 concat!("Size of: ", stringify!(cl_char2__bindgen_ty_2))
635 );
636 assert_eq!(
637 ::std::mem::align_of::<cl_char2__bindgen_ty_2>(),
638 1usize,
639 concat!("Alignment of ", stringify!(cl_char2__bindgen_ty_2))
640 );
641 assert_eq!(
642 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
643 0usize,
644 concat!(
645 "Offset of field: ",
646 stringify!(cl_char2__bindgen_ty_2),
647 "::",
648 stringify!(s0)
649 )
650 );
651 assert_eq!(
652 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
653 1usize,
654 concat!(
655 "Offset of field: ",
656 stringify!(cl_char2__bindgen_ty_2),
657 "::",
658 stringify!(s1)
659 )
660 );
661}
662#[repr(C)]
663#[derive(Debug, Copy, Clone)]
664pub struct cl_char2__bindgen_ty_3 {
665 pub lo: cl_char,
666 pub hi: cl_char,
667}
668#[test]
669fn bindgen_test_layout_cl_char2__bindgen_ty_3() {
670 const UNINIT: ::std::mem::MaybeUninit<cl_char2__bindgen_ty_3> =
671 ::std::mem::MaybeUninit::uninit();
672 let ptr = UNINIT.as_ptr();
673 assert_eq!(
674 ::std::mem::size_of::<cl_char2__bindgen_ty_3>(),
675 2usize,
676 concat!("Size of: ", stringify!(cl_char2__bindgen_ty_3))
677 );
678 assert_eq!(
679 ::std::mem::align_of::<cl_char2__bindgen_ty_3>(),
680 1usize,
681 concat!("Alignment of ", stringify!(cl_char2__bindgen_ty_3))
682 );
683 assert_eq!(
684 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
685 0usize,
686 concat!(
687 "Offset of field: ",
688 stringify!(cl_char2__bindgen_ty_3),
689 "::",
690 stringify!(lo)
691 )
692 );
693 assert_eq!(
694 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
695 1usize,
696 concat!(
697 "Offset of field: ",
698 stringify!(cl_char2__bindgen_ty_3),
699 "::",
700 stringify!(hi)
701 )
702 );
703}
704#[test]
705fn bindgen_test_layout_cl_char2() {
706 const UNINIT: ::std::mem::MaybeUninit<cl_char2> = ::std::mem::MaybeUninit::uninit();
707 let ptr = UNINIT.as_ptr();
708 assert_eq!(
709 ::std::mem::size_of::<cl_char2>(),
710 2usize,
711 concat!("Size of: ", stringify!(cl_char2))
712 );
713 assert_eq!(
714 ::std::mem::align_of::<cl_char2>(),
715 1usize,
716 concat!("Alignment of ", stringify!(cl_char2))
717 );
718 assert_eq!(
719 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
720 0usize,
721 concat!(
722 "Offset of field: ",
723 stringify!(cl_char2),
724 "::",
725 stringify!(s)
726 )
727 );
728}
729#[repr(C)]
730#[derive(Copy, Clone)]
731pub union cl_char4 {
732 pub s: [cl_char; 4usize],
733 pub __bindgen_anon_1: cl_char4__bindgen_ty_1,
734 pub __bindgen_anon_2: cl_char4__bindgen_ty_2,
735 pub __bindgen_anon_3: cl_char4__bindgen_ty_3,
736}
737#[repr(C)]
738#[derive(Debug, Copy, Clone)]
739pub struct cl_char4__bindgen_ty_1 {
740 pub x: cl_char,
741 pub y: cl_char,
742 pub z: cl_char,
743 pub w: cl_char,
744}
745#[test]
746fn bindgen_test_layout_cl_char4__bindgen_ty_1() {
747 const UNINIT: ::std::mem::MaybeUninit<cl_char4__bindgen_ty_1> =
748 ::std::mem::MaybeUninit::uninit();
749 let ptr = UNINIT.as_ptr();
750 assert_eq!(
751 ::std::mem::size_of::<cl_char4__bindgen_ty_1>(),
752 4usize,
753 concat!("Size of: ", stringify!(cl_char4__bindgen_ty_1))
754 );
755 assert_eq!(
756 ::std::mem::align_of::<cl_char4__bindgen_ty_1>(),
757 1usize,
758 concat!("Alignment of ", stringify!(cl_char4__bindgen_ty_1))
759 );
760 assert_eq!(
761 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
762 0usize,
763 concat!(
764 "Offset of field: ",
765 stringify!(cl_char4__bindgen_ty_1),
766 "::",
767 stringify!(x)
768 )
769 );
770 assert_eq!(
771 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
772 1usize,
773 concat!(
774 "Offset of field: ",
775 stringify!(cl_char4__bindgen_ty_1),
776 "::",
777 stringify!(y)
778 )
779 );
780 assert_eq!(
781 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
782 2usize,
783 concat!(
784 "Offset of field: ",
785 stringify!(cl_char4__bindgen_ty_1),
786 "::",
787 stringify!(z)
788 )
789 );
790 assert_eq!(
791 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
792 3usize,
793 concat!(
794 "Offset of field: ",
795 stringify!(cl_char4__bindgen_ty_1),
796 "::",
797 stringify!(w)
798 )
799 );
800}
801#[repr(C)]
802#[derive(Debug, Copy, Clone)]
803pub struct cl_char4__bindgen_ty_2 {
804 pub s0: cl_char,
805 pub s1: cl_char,
806 pub s2: cl_char,
807 pub s3: cl_char,
808}
809#[test]
810fn bindgen_test_layout_cl_char4__bindgen_ty_2() {
811 const UNINIT: ::std::mem::MaybeUninit<cl_char4__bindgen_ty_2> =
812 ::std::mem::MaybeUninit::uninit();
813 let ptr = UNINIT.as_ptr();
814 assert_eq!(
815 ::std::mem::size_of::<cl_char4__bindgen_ty_2>(),
816 4usize,
817 concat!("Size of: ", stringify!(cl_char4__bindgen_ty_2))
818 );
819 assert_eq!(
820 ::std::mem::align_of::<cl_char4__bindgen_ty_2>(),
821 1usize,
822 concat!("Alignment of ", stringify!(cl_char4__bindgen_ty_2))
823 );
824 assert_eq!(
825 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
826 0usize,
827 concat!(
828 "Offset of field: ",
829 stringify!(cl_char4__bindgen_ty_2),
830 "::",
831 stringify!(s0)
832 )
833 );
834 assert_eq!(
835 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
836 1usize,
837 concat!(
838 "Offset of field: ",
839 stringify!(cl_char4__bindgen_ty_2),
840 "::",
841 stringify!(s1)
842 )
843 );
844 assert_eq!(
845 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
846 2usize,
847 concat!(
848 "Offset of field: ",
849 stringify!(cl_char4__bindgen_ty_2),
850 "::",
851 stringify!(s2)
852 )
853 );
854 assert_eq!(
855 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
856 3usize,
857 concat!(
858 "Offset of field: ",
859 stringify!(cl_char4__bindgen_ty_2),
860 "::",
861 stringify!(s3)
862 )
863 );
864}
865#[repr(C)]
866#[derive(Copy, Clone)]
867pub struct cl_char4__bindgen_ty_3 {
868 pub lo: cl_char2,
869 pub hi: cl_char2,
870}
871#[test]
872fn bindgen_test_layout_cl_char4__bindgen_ty_3() {
873 const UNINIT: ::std::mem::MaybeUninit<cl_char4__bindgen_ty_3> =
874 ::std::mem::MaybeUninit::uninit();
875 let ptr = UNINIT.as_ptr();
876 assert_eq!(
877 ::std::mem::size_of::<cl_char4__bindgen_ty_3>(),
878 4usize,
879 concat!("Size of: ", stringify!(cl_char4__bindgen_ty_3))
880 );
881 assert_eq!(
882 ::std::mem::align_of::<cl_char4__bindgen_ty_3>(),
883 1usize,
884 concat!("Alignment of ", stringify!(cl_char4__bindgen_ty_3))
885 );
886 assert_eq!(
887 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
888 0usize,
889 concat!(
890 "Offset of field: ",
891 stringify!(cl_char4__bindgen_ty_3),
892 "::",
893 stringify!(lo)
894 )
895 );
896 assert_eq!(
897 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
898 2usize,
899 concat!(
900 "Offset of field: ",
901 stringify!(cl_char4__bindgen_ty_3),
902 "::",
903 stringify!(hi)
904 )
905 );
906}
907#[test]
908fn bindgen_test_layout_cl_char4() {
909 const UNINIT: ::std::mem::MaybeUninit<cl_char4> = ::std::mem::MaybeUninit::uninit();
910 let ptr = UNINIT.as_ptr();
911 assert_eq!(
912 ::std::mem::size_of::<cl_char4>(),
913 4usize,
914 concat!("Size of: ", stringify!(cl_char4))
915 );
916 assert_eq!(
917 ::std::mem::align_of::<cl_char4>(),
918 1usize,
919 concat!("Alignment of ", stringify!(cl_char4))
920 );
921 assert_eq!(
922 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
923 0usize,
924 concat!(
925 "Offset of field: ",
926 stringify!(cl_char4),
927 "::",
928 stringify!(s)
929 )
930 );
931}
932pub type cl_char3 = cl_char4;
933#[repr(C)]
934#[derive(Copy, Clone)]
935pub union cl_char8 {
936 pub s: [cl_char; 8usize],
937 pub __bindgen_anon_1: cl_char8__bindgen_ty_1,
938 pub __bindgen_anon_2: cl_char8__bindgen_ty_2,
939 pub __bindgen_anon_3: cl_char8__bindgen_ty_3,
940 pub v8: __cl_char8,
941}
942#[repr(C)]
943#[derive(Debug, Copy, Clone)]
944pub struct cl_char8__bindgen_ty_1 {
945 pub x: cl_char,
946 pub y: cl_char,
947 pub z: cl_char,
948 pub w: cl_char,
949}
950#[test]
951fn bindgen_test_layout_cl_char8__bindgen_ty_1() {
952 const UNINIT: ::std::mem::MaybeUninit<cl_char8__bindgen_ty_1> =
953 ::std::mem::MaybeUninit::uninit();
954 let ptr = UNINIT.as_ptr();
955 assert_eq!(
956 ::std::mem::size_of::<cl_char8__bindgen_ty_1>(),
957 4usize,
958 concat!("Size of: ", stringify!(cl_char8__bindgen_ty_1))
959 );
960 assert_eq!(
961 ::std::mem::align_of::<cl_char8__bindgen_ty_1>(),
962 1usize,
963 concat!("Alignment of ", stringify!(cl_char8__bindgen_ty_1))
964 );
965 assert_eq!(
966 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
967 0usize,
968 concat!(
969 "Offset of field: ",
970 stringify!(cl_char8__bindgen_ty_1),
971 "::",
972 stringify!(x)
973 )
974 );
975 assert_eq!(
976 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
977 1usize,
978 concat!(
979 "Offset of field: ",
980 stringify!(cl_char8__bindgen_ty_1),
981 "::",
982 stringify!(y)
983 )
984 );
985 assert_eq!(
986 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
987 2usize,
988 concat!(
989 "Offset of field: ",
990 stringify!(cl_char8__bindgen_ty_1),
991 "::",
992 stringify!(z)
993 )
994 );
995 assert_eq!(
996 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
997 3usize,
998 concat!(
999 "Offset of field: ",
1000 stringify!(cl_char8__bindgen_ty_1),
1001 "::",
1002 stringify!(w)
1003 )
1004 );
1005}
1006#[repr(C)]
1007#[derive(Debug, Copy, Clone)]
1008pub struct cl_char8__bindgen_ty_2 {
1009 pub s0: cl_char,
1010 pub s1: cl_char,
1011 pub s2: cl_char,
1012 pub s3: cl_char,
1013 pub s4: cl_char,
1014 pub s5: cl_char,
1015 pub s6: cl_char,
1016 pub s7: cl_char,
1017}
1018#[test]
1019fn bindgen_test_layout_cl_char8__bindgen_ty_2() {
1020 const UNINIT: ::std::mem::MaybeUninit<cl_char8__bindgen_ty_2> =
1021 ::std::mem::MaybeUninit::uninit();
1022 let ptr = UNINIT.as_ptr();
1023 assert_eq!(
1024 ::std::mem::size_of::<cl_char8__bindgen_ty_2>(),
1025 8usize,
1026 concat!("Size of: ", stringify!(cl_char8__bindgen_ty_2))
1027 );
1028 assert_eq!(
1029 ::std::mem::align_of::<cl_char8__bindgen_ty_2>(),
1030 1usize,
1031 concat!("Alignment of ", stringify!(cl_char8__bindgen_ty_2))
1032 );
1033 assert_eq!(
1034 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
1035 0usize,
1036 concat!(
1037 "Offset of field: ",
1038 stringify!(cl_char8__bindgen_ty_2),
1039 "::",
1040 stringify!(s0)
1041 )
1042 );
1043 assert_eq!(
1044 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
1045 1usize,
1046 concat!(
1047 "Offset of field: ",
1048 stringify!(cl_char8__bindgen_ty_2),
1049 "::",
1050 stringify!(s1)
1051 )
1052 );
1053 assert_eq!(
1054 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
1055 2usize,
1056 concat!(
1057 "Offset of field: ",
1058 stringify!(cl_char8__bindgen_ty_2),
1059 "::",
1060 stringify!(s2)
1061 )
1062 );
1063 assert_eq!(
1064 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
1065 3usize,
1066 concat!(
1067 "Offset of field: ",
1068 stringify!(cl_char8__bindgen_ty_2),
1069 "::",
1070 stringify!(s3)
1071 )
1072 );
1073 assert_eq!(
1074 unsafe { ::std::ptr::addr_of!((*ptr).s4) as usize - ptr as usize },
1075 4usize,
1076 concat!(
1077 "Offset of field: ",
1078 stringify!(cl_char8__bindgen_ty_2),
1079 "::",
1080 stringify!(s4)
1081 )
1082 );
1083 assert_eq!(
1084 unsafe { ::std::ptr::addr_of!((*ptr).s5) as usize - ptr as usize },
1085 5usize,
1086 concat!(
1087 "Offset of field: ",
1088 stringify!(cl_char8__bindgen_ty_2),
1089 "::",
1090 stringify!(s5)
1091 )
1092 );
1093 assert_eq!(
1094 unsafe { ::std::ptr::addr_of!((*ptr).s6) as usize - ptr as usize },
1095 6usize,
1096 concat!(
1097 "Offset of field: ",
1098 stringify!(cl_char8__bindgen_ty_2),
1099 "::",
1100 stringify!(s6)
1101 )
1102 );
1103 assert_eq!(
1104 unsafe { ::std::ptr::addr_of!((*ptr).s7) as usize - ptr as usize },
1105 7usize,
1106 concat!(
1107 "Offset of field: ",
1108 stringify!(cl_char8__bindgen_ty_2),
1109 "::",
1110 stringify!(s7)
1111 )
1112 );
1113}
1114#[repr(C)]
1115#[derive(Copy, Clone)]
1116pub struct cl_char8__bindgen_ty_3 {
1117 pub lo: cl_char4,
1118 pub hi: cl_char4,
1119}
1120#[test]
1121fn bindgen_test_layout_cl_char8__bindgen_ty_3() {
1122 const UNINIT: ::std::mem::MaybeUninit<cl_char8__bindgen_ty_3> =
1123 ::std::mem::MaybeUninit::uninit();
1124 let ptr = UNINIT.as_ptr();
1125 assert_eq!(
1126 ::std::mem::size_of::<cl_char8__bindgen_ty_3>(),
1127 8usize,
1128 concat!("Size of: ", stringify!(cl_char8__bindgen_ty_3))
1129 );
1130 assert_eq!(
1131 ::std::mem::align_of::<cl_char8__bindgen_ty_3>(),
1132 1usize,
1133 concat!("Alignment of ", stringify!(cl_char8__bindgen_ty_3))
1134 );
1135 assert_eq!(
1136 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
1137 0usize,
1138 concat!(
1139 "Offset of field: ",
1140 stringify!(cl_char8__bindgen_ty_3),
1141 "::",
1142 stringify!(lo)
1143 )
1144 );
1145 assert_eq!(
1146 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
1147 4usize,
1148 concat!(
1149 "Offset of field: ",
1150 stringify!(cl_char8__bindgen_ty_3),
1151 "::",
1152 stringify!(hi)
1153 )
1154 );
1155}
1156#[test]
1157fn bindgen_test_layout_cl_char8() {
1158 const UNINIT: ::std::mem::MaybeUninit<cl_char8> = ::std::mem::MaybeUninit::uninit();
1159 let ptr = UNINIT.as_ptr();
1160 assert_eq!(
1161 ::std::mem::size_of::<cl_char8>(),
1162 8usize,
1163 concat!("Size of: ", stringify!(cl_char8))
1164 );
1165 assert_eq!(
1166 ::std::mem::align_of::<cl_char8>(),
1167 8usize,
1168 concat!("Alignment of ", stringify!(cl_char8))
1169 );
1170 assert_eq!(
1171 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
1172 0usize,
1173 concat!(
1174 "Offset of field: ",
1175 stringify!(cl_char8),
1176 "::",
1177 stringify!(s)
1178 )
1179 );
1180 assert_eq!(
1181 unsafe { ::std::ptr::addr_of!((*ptr).v8) as usize - ptr as usize },
1182 0usize,
1183 concat!(
1184 "Offset of field: ",
1185 stringify!(cl_char8),
1186 "::",
1187 stringify!(v8)
1188 )
1189 );
1190}
1191#[repr(C)]
1192#[repr(align(16))]
1193#[derive(Copy, Clone)]
1194pub union cl_char16 {
1195 pub s: [cl_char; 16usize],
1196 pub __bindgen_anon_1: cl_char16__bindgen_ty_1,
1197 pub __bindgen_anon_2: cl_char16__bindgen_ty_2,
1198 pub __bindgen_anon_3: cl_char16__bindgen_ty_3,
1199 pub v8: [__cl_char8; 2usize],
1200 pub v16: __cl_char16,
1201}
1202#[repr(C)]
1203#[derive(Debug, Copy, Clone)]
1204pub struct cl_char16__bindgen_ty_1 {
1205 pub x: cl_char,
1206 pub y: cl_char,
1207 pub z: cl_char,
1208 pub w: cl_char,
1209 pub __spacer4: cl_char,
1210 pub __spacer5: cl_char,
1211 pub __spacer6: cl_char,
1212 pub __spacer7: cl_char,
1213 pub __spacer8: cl_char,
1214 pub __spacer9: cl_char,
1215 pub sa: cl_char,
1216 pub sb: cl_char,
1217 pub sc: cl_char,
1218 pub sd: cl_char,
1219 pub se: cl_char,
1220 pub sf: cl_char,
1221}
1222#[test]
1223fn bindgen_test_layout_cl_char16__bindgen_ty_1() {
1224 const UNINIT: ::std::mem::MaybeUninit<cl_char16__bindgen_ty_1> =
1225 ::std::mem::MaybeUninit::uninit();
1226 let ptr = UNINIT.as_ptr();
1227 assert_eq!(
1228 ::std::mem::size_of::<cl_char16__bindgen_ty_1>(),
1229 16usize,
1230 concat!("Size of: ", stringify!(cl_char16__bindgen_ty_1))
1231 );
1232 assert_eq!(
1233 ::std::mem::align_of::<cl_char16__bindgen_ty_1>(),
1234 1usize,
1235 concat!("Alignment of ", stringify!(cl_char16__bindgen_ty_1))
1236 );
1237 assert_eq!(
1238 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
1239 0usize,
1240 concat!(
1241 "Offset of field: ",
1242 stringify!(cl_char16__bindgen_ty_1),
1243 "::",
1244 stringify!(x)
1245 )
1246 );
1247 assert_eq!(
1248 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
1249 1usize,
1250 concat!(
1251 "Offset of field: ",
1252 stringify!(cl_char16__bindgen_ty_1),
1253 "::",
1254 stringify!(y)
1255 )
1256 );
1257 assert_eq!(
1258 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
1259 2usize,
1260 concat!(
1261 "Offset of field: ",
1262 stringify!(cl_char16__bindgen_ty_1),
1263 "::",
1264 stringify!(z)
1265 )
1266 );
1267 assert_eq!(
1268 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
1269 3usize,
1270 concat!(
1271 "Offset of field: ",
1272 stringify!(cl_char16__bindgen_ty_1),
1273 "::",
1274 stringify!(w)
1275 )
1276 );
1277 assert_eq!(
1278 unsafe { ::std::ptr::addr_of!((*ptr).__spacer4) as usize - ptr as usize },
1279 4usize,
1280 concat!(
1281 "Offset of field: ",
1282 stringify!(cl_char16__bindgen_ty_1),
1283 "::",
1284 stringify!(__spacer4)
1285 )
1286 );
1287 assert_eq!(
1288 unsafe { ::std::ptr::addr_of!((*ptr).__spacer5) as usize - ptr as usize },
1289 5usize,
1290 concat!(
1291 "Offset of field: ",
1292 stringify!(cl_char16__bindgen_ty_1),
1293 "::",
1294 stringify!(__spacer5)
1295 )
1296 );
1297 assert_eq!(
1298 unsafe { ::std::ptr::addr_of!((*ptr).__spacer6) as usize - ptr as usize },
1299 6usize,
1300 concat!(
1301 "Offset of field: ",
1302 stringify!(cl_char16__bindgen_ty_1),
1303 "::",
1304 stringify!(__spacer6)
1305 )
1306 );
1307 assert_eq!(
1308 unsafe { ::std::ptr::addr_of!((*ptr).__spacer7) as usize - ptr as usize },
1309 7usize,
1310 concat!(
1311 "Offset of field: ",
1312 stringify!(cl_char16__bindgen_ty_1),
1313 "::",
1314 stringify!(__spacer7)
1315 )
1316 );
1317 assert_eq!(
1318 unsafe { ::std::ptr::addr_of!((*ptr).__spacer8) as usize - ptr as usize },
1319 8usize,
1320 concat!(
1321 "Offset of field: ",
1322 stringify!(cl_char16__bindgen_ty_1),
1323 "::",
1324 stringify!(__spacer8)
1325 )
1326 );
1327 assert_eq!(
1328 unsafe { ::std::ptr::addr_of!((*ptr).__spacer9) as usize - ptr as usize },
1329 9usize,
1330 concat!(
1331 "Offset of field: ",
1332 stringify!(cl_char16__bindgen_ty_1),
1333 "::",
1334 stringify!(__spacer9)
1335 )
1336 );
1337 assert_eq!(
1338 unsafe { ::std::ptr::addr_of!((*ptr).sa) as usize - ptr as usize },
1339 10usize,
1340 concat!(
1341 "Offset of field: ",
1342 stringify!(cl_char16__bindgen_ty_1),
1343 "::",
1344 stringify!(sa)
1345 )
1346 );
1347 assert_eq!(
1348 unsafe { ::std::ptr::addr_of!((*ptr).sb) as usize - ptr as usize },
1349 11usize,
1350 concat!(
1351 "Offset of field: ",
1352 stringify!(cl_char16__bindgen_ty_1),
1353 "::",
1354 stringify!(sb)
1355 )
1356 );
1357 assert_eq!(
1358 unsafe { ::std::ptr::addr_of!((*ptr).sc) as usize - ptr as usize },
1359 12usize,
1360 concat!(
1361 "Offset of field: ",
1362 stringify!(cl_char16__bindgen_ty_1),
1363 "::",
1364 stringify!(sc)
1365 )
1366 );
1367 assert_eq!(
1368 unsafe { ::std::ptr::addr_of!((*ptr).sd) as usize - ptr as usize },
1369 13usize,
1370 concat!(
1371 "Offset of field: ",
1372 stringify!(cl_char16__bindgen_ty_1),
1373 "::",
1374 stringify!(sd)
1375 )
1376 );
1377 assert_eq!(
1378 unsafe { ::std::ptr::addr_of!((*ptr).se) as usize - ptr as usize },
1379 14usize,
1380 concat!(
1381 "Offset of field: ",
1382 stringify!(cl_char16__bindgen_ty_1),
1383 "::",
1384 stringify!(se)
1385 )
1386 );
1387 assert_eq!(
1388 unsafe { ::std::ptr::addr_of!((*ptr).sf) as usize - ptr as usize },
1389 15usize,
1390 concat!(
1391 "Offset of field: ",
1392 stringify!(cl_char16__bindgen_ty_1),
1393 "::",
1394 stringify!(sf)
1395 )
1396 );
1397}
1398#[repr(C)]
1399#[derive(Debug, Copy, Clone)]
1400pub struct cl_char16__bindgen_ty_2 {
1401 pub s0: cl_char,
1402 pub s1: cl_char,
1403 pub s2: cl_char,
1404 pub s3: cl_char,
1405 pub s4: cl_char,
1406 pub s5: cl_char,
1407 pub s6: cl_char,
1408 pub s7: cl_char,
1409 pub s8: cl_char,
1410 pub s9: cl_char,
1411 pub sA: cl_char,
1412 pub sB: cl_char,
1413 pub sC: cl_char,
1414 pub sD: cl_char,
1415 pub sE: cl_char,
1416 pub sF: cl_char,
1417}
1418#[test]
1419fn bindgen_test_layout_cl_char16__bindgen_ty_2() {
1420 const UNINIT: ::std::mem::MaybeUninit<cl_char16__bindgen_ty_2> =
1421 ::std::mem::MaybeUninit::uninit();
1422 let ptr = UNINIT.as_ptr();
1423 assert_eq!(
1424 ::std::mem::size_of::<cl_char16__bindgen_ty_2>(),
1425 16usize,
1426 concat!("Size of: ", stringify!(cl_char16__bindgen_ty_2))
1427 );
1428 assert_eq!(
1429 ::std::mem::align_of::<cl_char16__bindgen_ty_2>(),
1430 1usize,
1431 concat!("Alignment of ", stringify!(cl_char16__bindgen_ty_2))
1432 );
1433 assert_eq!(
1434 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
1435 0usize,
1436 concat!(
1437 "Offset of field: ",
1438 stringify!(cl_char16__bindgen_ty_2),
1439 "::",
1440 stringify!(s0)
1441 )
1442 );
1443 assert_eq!(
1444 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
1445 1usize,
1446 concat!(
1447 "Offset of field: ",
1448 stringify!(cl_char16__bindgen_ty_2),
1449 "::",
1450 stringify!(s1)
1451 )
1452 );
1453 assert_eq!(
1454 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
1455 2usize,
1456 concat!(
1457 "Offset of field: ",
1458 stringify!(cl_char16__bindgen_ty_2),
1459 "::",
1460 stringify!(s2)
1461 )
1462 );
1463 assert_eq!(
1464 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
1465 3usize,
1466 concat!(
1467 "Offset of field: ",
1468 stringify!(cl_char16__bindgen_ty_2),
1469 "::",
1470 stringify!(s3)
1471 )
1472 );
1473 assert_eq!(
1474 unsafe { ::std::ptr::addr_of!((*ptr).s4) as usize - ptr as usize },
1475 4usize,
1476 concat!(
1477 "Offset of field: ",
1478 stringify!(cl_char16__bindgen_ty_2),
1479 "::",
1480 stringify!(s4)
1481 )
1482 );
1483 assert_eq!(
1484 unsafe { ::std::ptr::addr_of!((*ptr).s5) as usize - ptr as usize },
1485 5usize,
1486 concat!(
1487 "Offset of field: ",
1488 stringify!(cl_char16__bindgen_ty_2),
1489 "::",
1490 stringify!(s5)
1491 )
1492 );
1493 assert_eq!(
1494 unsafe { ::std::ptr::addr_of!((*ptr).s6) as usize - ptr as usize },
1495 6usize,
1496 concat!(
1497 "Offset of field: ",
1498 stringify!(cl_char16__bindgen_ty_2),
1499 "::",
1500 stringify!(s6)
1501 )
1502 );
1503 assert_eq!(
1504 unsafe { ::std::ptr::addr_of!((*ptr).s7) as usize - ptr as usize },
1505 7usize,
1506 concat!(
1507 "Offset of field: ",
1508 stringify!(cl_char16__bindgen_ty_2),
1509 "::",
1510 stringify!(s7)
1511 )
1512 );
1513 assert_eq!(
1514 unsafe { ::std::ptr::addr_of!((*ptr).s8) as usize - ptr as usize },
1515 8usize,
1516 concat!(
1517 "Offset of field: ",
1518 stringify!(cl_char16__bindgen_ty_2),
1519 "::",
1520 stringify!(s8)
1521 )
1522 );
1523 assert_eq!(
1524 unsafe { ::std::ptr::addr_of!((*ptr).s9) as usize - ptr as usize },
1525 9usize,
1526 concat!(
1527 "Offset of field: ",
1528 stringify!(cl_char16__bindgen_ty_2),
1529 "::",
1530 stringify!(s9)
1531 )
1532 );
1533 assert_eq!(
1534 unsafe { ::std::ptr::addr_of!((*ptr).sA) as usize - ptr as usize },
1535 10usize,
1536 concat!(
1537 "Offset of field: ",
1538 stringify!(cl_char16__bindgen_ty_2),
1539 "::",
1540 stringify!(sA)
1541 )
1542 );
1543 assert_eq!(
1544 unsafe { ::std::ptr::addr_of!((*ptr).sB) as usize - ptr as usize },
1545 11usize,
1546 concat!(
1547 "Offset of field: ",
1548 stringify!(cl_char16__bindgen_ty_2),
1549 "::",
1550 stringify!(sB)
1551 )
1552 );
1553 assert_eq!(
1554 unsafe { ::std::ptr::addr_of!((*ptr).sC) as usize - ptr as usize },
1555 12usize,
1556 concat!(
1557 "Offset of field: ",
1558 stringify!(cl_char16__bindgen_ty_2),
1559 "::",
1560 stringify!(sC)
1561 )
1562 );
1563 assert_eq!(
1564 unsafe { ::std::ptr::addr_of!((*ptr).sD) as usize - ptr as usize },
1565 13usize,
1566 concat!(
1567 "Offset of field: ",
1568 stringify!(cl_char16__bindgen_ty_2),
1569 "::",
1570 stringify!(sD)
1571 )
1572 );
1573 assert_eq!(
1574 unsafe { ::std::ptr::addr_of!((*ptr).sE) as usize - ptr as usize },
1575 14usize,
1576 concat!(
1577 "Offset of field: ",
1578 stringify!(cl_char16__bindgen_ty_2),
1579 "::",
1580 stringify!(sE)
1581 )
1582 );
1583 assert_eq!(
1584 unsafe { ::std::ptr::addr_of!((*ptr).sF) as usize - ptr as usize },
1585 15usize,
1586 concat!(
1587 "Offset of field: ",
1588 stringify!(cl_char16__bindgen_ty_2),
1589 "::",
1590 stringify!(sF)
1591 )
1592 );
1593}
1594#[repr(C)]
1595#[derive(Copy, Clone)]
1596pub struct cl_char16__bindgen_ty_3 {
1597 pub lo: cl_char8,
1598 pub hi: cl_char8,
1599}
1600#[test]
1601fn bindgen_test_layout_cl_char16__bindgen_ty_3() {
1602 const UNINIT: ::std::mem::MaybeUninit<cl_char16__bindgen_ty_3> =
1603 ::std::mem::MaybeUninit::uninit();
1604 let ptr = UNINIT.as_ptr();
1605 assert_eq!(
1606 ::std::mem::size_of::<cl_char16__bindgen_ty_3>(),
1607 16usize,
1608 concat!("Size of: ", stringify!(cl_char16__bindgen_ty_3))
1609 );
1610 assert_eq!(
1611 ::std::mem::align_of::<cl_char16__bindgen_ty_3>(),
1612 8usize,
1613 concat!("Alignment of ", stringify!(cl_char16__bindgen_ty_3))
1614 );
1615 assert_eq!(
1616 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
1617 0usize,
1618 concat!(
1619 "Offset of field: ",
1620 stringify!(cl_char16__bindgen_ty_3),
1621 "::",
1622 stringify!(lo)
1623 )
1624 );
1625 assert_eq!(
1626 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
1627 8usize,
1628 concat!(
1629 "Offset of field: ",
1630 stringify!(cl_char16__bindgen_ty_3),
1631 "::",
1632 stringify!(hi)
1633 )
1634 );
1635}
1636#[test]
1637fn bindgen_test_layout_cl_char16() {
1638 const UNINIT: ::std::mem::MaybeUninit<cl_char16> = ::std::mem::MaybeUninit::uninit();
1639 let ptr = UNINIT.as_ptr();
1640 assert_eq!(
1641 ::std::mem::size_of::<cl_char16>(),
1642 16usize,
1643 concat!("Size of: ", stringify!(cl_char16))
1644 );
1645 assert_eq!(
1646 ::std::mem::align_of::<cl_char16>(),
1647 16usize,
1648 concat!("Alignment of ", stringify!(cl_char16))
1649 );
1650 assert_eq!(
1651 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
1652 0usize,
1653 concat!(
1654 "Offset of field: ",
1655 stringify!(cl_char16),
1656 "::",
1657 stringify!(s)
1658 )
1659 );
1660 assert_eq!(
1661 unsafe { ::std::ptr::addr_of!((*ptr).v8) as usize - ptr as usize },
1662 0usize,
1663 concat!(
1664 "Offset of field: ",
1665 stringify!(cl_char16),
1666 "::",
1667 stringify!(v8)
1668 )
1669 );
1670 assert_eq!(
1671 unsafe { ::std::ptr::addr_of!((*ptr).v16) as usize - ptr as usize },
1672 0usize,
1673 concat!(
1674 "Offset of field: ",
1675 stringify!(cl_char16),
1676 "::",
1677 stringify!(v16)
1678 )
1679 );
1680}
1681#[repr(C)]
1682#[derive(Copy, Clone)]
1683pub union cl_uchar2 {
1684 pub s: [cl_uchar; 2usize],
1685 pub __bindgen_anon_1: cl_uchar2__bindgen_ty_1,
1686 pub __bindgen_anon_2: cl_uchar2__bindgen_ty_2,
1687 pub __bindgen_anon_3: cl_uchar2__bindgen_ty_3,
1688}
1689#[repr(C)]
1690#[derive(Debug, Copy, Clone)]
1691pub struct cl_uchar2__bindgen_ty_1 {
1692 pub x: cl_uchar,
1693 pub y: cl_uchar,
1694}
1695#[test]
1696fn bindgen_test_layout_cl_uchar2__bindgen_ty_1() {
1697 const UNINIT: ::std::mem::MaybeUninit<cl_uchar2__bindgen_ty_1> =
1698 ::std::mem::MaybeUninit::uninit();
1699 let ptr = UNINIT.as_ptr();
1700 assert_eq!(
1701 ::std::mem::size_of::<cl_uchar2__bindgen_ty_1>(),
1702 2usize,
1703 concat!("Size of: ", stringify!(cl_uchar2__bindgen_ty_1))
1704 );
1705 assert_eq!(
1706 ::std::mem::align_of::<cl_uchar2__bindgen_ty_1>(),
1707 1usize,
1708 concat!("Alignment of ", stringify!(cl_uchar2__bindgen_ty_1))
1709 );
1710 assert_eq!(
1711 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
1712 0usize,
1713 concat!(
1714 "Offset of field: ",
1715 stringify!(cl_uchar2__bindgen_ty_1),
1716 "::",
1717 stringify!(x)
1718 )
1719 );
1720 assert_eq!(
1721 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
1722 1usize,
1723 concat!(
1724 "Offset of field: ",
1725 stringify!(cl_uchar2__bindgen_ty_1),
1726 "::",
1727 stringify!(y)
1728 )
1729 );
1730}
1731#[repr(C)]
1732#[derive(Debug, Copy, Clone)]
1733pub struct cl_uchar2__bindgen_ty_2 {
1734 pub s0: cl_uchar,
1735 pub s1: cl_uchar,
1736}
1737#[test]
1738fn bindgen_test_layout_cl_uchar2__bindgen_ty_2() {
1739 const UNINIT: ::std::mem::MaybeUninit<cl_uchar2__bindgen_ty_2> =
1740 ::std::mem::MaybeUninit::uninit();
1741 let ptr = UNINIT.as_ptr();
1742 assert_eq!(
1743 ::std::mem::size_of::<cl_uchar2__bindgen_ty_2>(),
1744 2usize,
1745 concat!("Size of: ", stringify!(cl_uchar2__bindgen_ty_2))
1746 );
1747 assert_eq!(
1748 ::std::mem::align_of::<cl_uchar2__bindgen_ty_2>(),
1749 1usize,
1750 concat!("Alignment of ", stringify!(cl_uchar2__bindgen_ty_2))
1751 );
1752 assert_eq!(
1753 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
1754 0usize,
1755 concat!(
1756 "Offset of field: ",
1757 stringify!(cl_uchar2__bindgen_ty_2),
1758 "::",
1759 stringify!(s0)
1760 )
1761 );
1762 assert_eq!(
1763 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
1764 1usize,
1765 concat!(
1766 "Offset of field: ",
1767 stringify!(cl_uchar2__bindgen_ty_2),
1768 "::",
1769 stringify!(s1)
1770 )
1771 );
1772}
1773#[repr(C)]
1774#[derive(Debug, Copy, Clone)]
1775pub struct cl_uchar2__bindgen_ty_3 {
1776 pub lo: cl_uchar,
1777 pub hi: cl_uchar,
1778}
1779#[test]
1780fn bindgen_test_layout_cl_uchar2__bindgen_ty_3() {
1781 const UNINIT: ::std::mem::MaybeUninit<cl_uchar2__bindgen_ty_3> =
1782 ::std::mem::MaybeUninit::uninit();
1783 let ptr = UNINIT.as_ptr();
1784 assert_eq!(
1785 ::std::mem::size_of::<cl_uchar2__bindgen_ty_3>(),
1786 2usize,
1787 concat!("Size of: ", stringify!(cl_uchar2__bindgen_ty_3))
1788 );
1789 assert_eq!(
1790 ::std::mem::align_of::<cl_uchar2__bindgen_ty_3>(),
1791 1usize,
1792 concat!("Alignment of ", stringify!(cl_uchar2__bindgen_ty_3))
1793 );
1794 assert_eq!(
1795 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
1796 0usize,
1797 concat!(
1798 "Offset of field: ",
1799 stringify!(cl_uchar2__bindgen_ty_3),
1800 "::",
1801 stringify!(lo)
1802 )
1803 );
1804 assert_eq!(
1805 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
1806 1usize,
1807 concat!(
1808 "Offset of field: ",
1809 stringify!(cl_uchar2__bindgen_ty_3),
1810 "::",
1811 stringify!(hi)
1812 )
1813 );
1814}
1815#[test]
1816fn bindgen_test_layout_cl_uchar2() {
1817 const UNINIT: ::std::mem::MaybeUninit<cl_uchar2> = ::std::mem::MaybeUninit::uninit();
1818 let ptr = UNINIT.as_ptr();
1819 assert_eq!(
1820 ::std::mem::size_of::<cl_uchar2>(),
1821 2usize,
1822 concat!("Size of: ", stringify!(cl_uchar2))
1823 );
1824 assert_eq!(
1825 ::std::mem::align_of::<cl_uchar2>(),
1826 1usize,
1827 concat!("Alignment of ", stringify!(cl_uchar2))
1828 );
1829 assert_eq!(
1830 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
1831 0usize,
1832 concat!(
1833 "Offset of field: ",
1834 stringify!(cl_uchar2),
1835 "::",
1836 stringify!(s)
1837 )
1838 );
1839}
1840#[repr(C)]
1841#[derive(Copy, Clone)]
1842pub union cl_uchar4 {
1843 pub s: [cl_uchar; 4usize],
1844 pub __bindgen_anon_1: cl_uchar4__bindgen_ty_1,
1845 pub __bindgen_anon_2: cl_uchar4__bindgen_ty_2,
1846 pub __bindgen_anon_3: cl_uchar4__bindgen_ty_3,
1847}
1848#[repr(C)]
1849#[derive(Debug, Copy, Clone)]
1850pub struct cl_uchar4__bindgen_ty_1 {
1851 pub x: cl_uchar,
1852 pub y: cl_uchar,
1853 pub z: cl_uchar,
1854 pub w: cl_uchar,
1855}
1856#[test]
1857fn bindgen_test_layout_cl_uchar4__bindgen_ty_1() {
1858 const UNINIT: ::std::mem::MaybeUninit<cl_uchar4__bindgen_ty_1> =
1859 ::std::mem::MaybeUninit::uninit();
1860 let ptr = UNINIT.as_ptr();
1861 assert_eq!(
1862 ::std::mem::size_of::<cl_uchar4__bindgen_ty_1>(),
1863 4usize,
1864 concat!("Size of: ", stringify!(cl_uchar4__bindgen_ty_1))
1865 );
1866 assert_eq!(
1867 ::std::mem::align_of::<cl_uchar4__bindgen_ty_1>(),
1868 1usize,
1869 concat!("Alignment of ", stringify!(cl_uchar4__bindgen_ty_1))
1870 );
1871 assert_eq!(
1872 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
1873 0usize,
1874 concat!(
1875 "Offset of field: ",
1876 stringify!(cl_uchar4__bindgen_ty_1),
1877 "::",
1878 stringify!(x)
1879 )
1880 );
1881 assert_eq!(
1882 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
1883 1usize,
1884 concat!(
1885 "Offset of field: ",
1886 stringify!(cl_uchar4__bindgen_ty_1),
1887 "::",
1888 stringify!(y)
1889 )
1890 );
1891 assert_eq!(
1892 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
1893 2usize,
1894 concat!(
1895 "Offset of field: ",
1896 stringify!(cl_uchar4__bindgen_ty_1),
1897 "::",
1898 stringify!(z)
1899 )
1900 );
1901 assert_eq!(
1902 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
1903 3usize,
1904 concat!(
1905 "Offset of field: ",
1906 stringify!(cl_uchar4__bindgen_ty_1),
1907 "::",
1908 stringify!(w)
1909 )
1910 );
1911}
1912#[repr(C)]
1913#[derive(Debug, Copy, Clone)]
1914pub struct cl_uchar4__bindgen_ty_2 {
1915 pub s0: cl_uchar,
1916 pub s1: cl_uchar,
1917 pub s2: cl_uchar,
1918 pub s3: cl_uchar,
1919}
1920#[test]
1921fn bindgen_test_layout_cl_uchar4__bindgen_ty_2() {
1922 const UNINIT: ::std::mem::MaybeUninit<cl_uchar4__bindgen_ty_2> =
1923 ::std::mem::MaybeUninit::uninit();
1924 let ptr = UNINIT.as_ptr();
1925 assert_eq!(
1926 ::std::mem::size_of::<cl_uchar4__bindgen_ty_2>(),
1927 4usize,
1928 concat!("Size of: ", stringify!(cl_uchar4__bindgen_ty_2))
1929 );
1930 assert_eq!(
1931 ::std::mem::align_of::<cl_uchar4__bindgen_ty_2>(),
1932 1usize,
1933 concat!("Alignment of ", stringify!(cl_uchar4__bindgen_ty_2))
1934 );
1935 assert_eq!(
1936 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
1937 0usize,
1938 concat!(
1939 "Offset of field: ",
1940 stringify!(cl_uchar4__bindgen_ty_2),
1941 "::",
1942 stringify!(s0)
1943 )
1944 );
1945 assert_eq!(
1946 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
1947 1usize,
1948 concat!(
1949 "Offset of field: ",
1950 stringify!(cl_uchar4__bindgen_ty_2),
1951 "::",
1952 stringify!(s1)
1953 )
1954 );
1955 assert_eq!(
1956 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
1957 2usize,
1958 concat!(
1959 "Offset of field: ",
1960 stringify!(cl_uchar4__bindgen_ty_2),
1961 "::",
1962 stringify!(s2)
1963 )
1964 );
1965 assert_eq!(
1966 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
1967 3usize,
1968 concat!(
1969 "Offset of field: ",
1970 stringify!(cl_uchar4__bindgen_ty_2),
1971 "::",
1972 stringify!(s3)
1973 )
1974 );
1975}
1976#[repr(C)]
1977#[derive(Copy, Clone)]
1978pub struct cl_uchar4__bindgen_ty_3 {
1979 pub lo: cl_uchar2,
1980 pub hi: cl_uchar2,
1981}
1982#[test]
1983fn bindgen_test_layout_cl_uchar4__bindgen_ty_3() {
1984 const UNINIT: ::std::mem::MaybeUninit<cl_uchar4__bindgen_ty_3> =
1985 ::std::mem::MaybeUninit::uninit();
1986 let ptr = UNINIT.as_ptr();
1987 assert_eq!(
1988 ::std::mem::size_of::<cl_uchar4__bindgen_ty_3>(),
1989 4usize,
1990 concat!("Size of: ", stringify!(cl_uchar4__bindgen_ty_3))
1991 );
1992 assert_eq!(
1993 ::std::mem::align_of::<cl_uchar4__bindgen_ty_3>(),
1994 1usize,
1995 concat!("Alignment of ", stringify!(cl_uchar4__bindgen_ty_3))
1996 );
1997 assert_eq!(
1998 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
1999 0usize,
2000 concat!(
2001 "Offset of field: ",
2002 stringify!(cl_uchar4__bindgen_ty_3),
2003 "::",
2004 stringify!(lo)
2005 )
2006 );
2007 assert_eq!(
2008 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
2009 2usize,
2010 concat!(
2011 "Offset of field: ",
2012 stringify!(cl_uchar4__bindgen_ty_3),
2013 "::",
2014 stringify!(hi)
2015 )
2016 );
2017}
2018#[test]
2019fn bindgen_test_layout_cl_uchar4() {
2020 const UNINIT: ::std::mem::MaybeUninit<cl_uchar4> = ::std::mem::MaybeUninit::uninit();
2021 let ptr = UNINIT.as_ptr();
2022 assert_eq!(
2023 ::std::mem::size_of::<cl_uchar4>(),
2024 4usize,
2025 concat!("Size of: ", stringify!(cl_uchar4))
2026 );
2027 assert_eq!(
2028 ::std::mem::align_of::<cl_uchar4>(),
2029 1usize,
2030 concat!("Alignment of ", stringify!(cl_uchar4))
2031 );
2032 assert_eq!(
2033 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
2034 0usize,
2035 concat!(
2036 "Offset of field: ",
2037 stringify!(cl_uchar4),
2038 "::",
2039 stringify!(s)
2040 )
2041 );
2042}
2043pub type cl_uchar3 = cl_uchar4;
2044#[repr(C)]
2045#[derive(Copy, Clone)]
2046pub union cl_uchar8 {
2047 pub s: [cl_uchar; 8usize],
2048 pub __bindgen_anon_1: cl_uchar8__bindgen_ty_1,
2049 pub __bindgen_anon_2: cl_uchar8__bindgen_ty_2,
2050 pub __bindgen_anon_3: cl_uchar8__bindgen_ty_3,
2051 pub v8: __cl_uchar8,
2052}
2053#[repr(C)]
2054#[derive(Debug, Copy, Clone)]
2055pub struct cl_uchar8__bindgen_ty_1 {
2056 pub x: cl_uchar,
2057 pub y: cl_uchar,
2058 pub z: cl_uchar,
2059 pub w: cl_uchar,
2060}
2061#[test]
2062fn bindgen_test_layout_cl_uchar8__bindgen_ty_1() {
2063 const UNINIT: ::std::mem::MaybeUninit<cl_uchar8__bindgen_ty_1> =
2064 ::std::mem::MaybeUninit::uninit();
2065 let ptr = UNINIT.as_ptr();
2066 assert_eq!(
2067 ::std::mem::size_of::<cl_uchar8__bindgen_ty_1>(),
2068 4usize,
2069 concat!("Size of: ", stringify!(cl_uchar8__bindgen_ty_1))
2070 );
2071 assert_eq!(
2072 ::std::mem::align_of::<cl_uchar8__bindgen_ty_1>(),
2073 1usize,
2074 concat!("Alignment of ", stringify!(cl_uchar8__bindgen_ty_1))
2075 );
2076 assert_eq!(
2077 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
2078 0usize,
2079 concat!(
2080 "Offset of field: ",
2081 stringify!(cl_uchar8__bindgen_ty_1),
2082 "::",
2083 stringify!(x)
2084 )
2085 );
2086 assert_eq!(
2087 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
2088 1usize,
2089 concat!(
2090 "Offset of field: ",
2091 stringify!(cl_uchar8__bindgen_ty_1),
2092 "::",
2093 stringify!(y)
2094 )
2095 );
2096 assert_eq!(
2097 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
2098 2usize,
2099 concat!(
2100 "Offset of field: ",
2101 stringify!(cl_uchar8__bindgen_ty_1),
2102 "::",
2103 stringify!(z)
2104 )
2105 );
2106 assert_eq!(
2107 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
2108 3usize,
2109 concat!(
2110 "Offset of field: ",
2111 stringify!(cl_uchar8__bindgen_ty_1),
2112 "::",
2113 stringify!(w)
2114 )
2115 );
2116}
2117#[repr(C)]
2118#[derive(Debug, Copy, Clone)]
2119pub struct cl_uchar8__bindgen_ty_2 {
2120 pub s0: cl_uchar,
2121 pub s1: cl_uchar,
2122 pub s2: cl_uchar,
2123 pub s3: cl_uchar,
2124 pub s4: cl_uchar,
2125 pub s5: cl_uchar,
2126 pub s6: cl_uchar,
2127 pub s7: cl_uchar,
2128}
2129#[test]
2130fn bindgen_test_layout_cl_uchar8__bindgen_ty_2() {
2131 const UNINIT: ::std::mem::MaybeUninit<cl_uchar8__bindgen_ty_2> =
2132 ::std::mem::MaybeUninit::uninit();
2133 let ptr = UNINIT.as_ptr();
2134 assert_eq!(
2135 ::std::mem::size_of::<cl_uchar8__bindgen_ty_2>(),
2136 8usize,
2137 concat!("Size of: ", stringify!(cl_uchar8__bindgen_ty_2))
2138 );
2139 assert_eq!(
2140 ::std::mem::align_of::<cl_uchar8__bindgen_ty_2>(),
2141 1usize,
2142 concat!("Alignment of ", stringify!(cl_uchar8__bindgen_ty_2))
2143 );
2144 assert_eq!(
2145 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
2146 0usize,
2147 concat!(
2148 "Offset of field: ",
2149 stringify!(cl_uchar8__bindgen_ty_2),
2150 "::",
2151 stringify!(s0)
2152 )
2153 );
2154 assert_eq!(
2155 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
2156 1usize,
2157 concat!(
2158 "Offset of field: ",
2159 stringify!(cl_uchar8__bindgen_ty_2),
2160 "::",
2161 stringify!(s1)
2162 )
2163 );
2164 assert_eq!(
2165 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
2166 2usize,
2167 concat!(
2168 "Offset of field: ",
2169 stringify!(cl_uchar8__bindgen_ty_2),
2170 "::",
2171 stringify!(s2)
2172 )
2173 );
2174 assert_eq!(
2175 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
2176 3usize,
2177 concat!(
2178 "Offset of field: ",
2179 stringify!(cl_uchar8__bindgen_ty_2),
2180 "::",
2181 stringify!(s3)
2182 )
2183 );
2184 assert_eq!(
2185 unsafe { ::std::ptr::addr_of!((*ptr).s4) as usize - ptr as usize },
2186 4usize,
2187 concat!(
2188 "Offset of field: ",
2189 stringify!(cl_uchar8__bindgen_ty_2),
2190 "::",
2191 stringify!(s4)
2192 )
2193 );
2194 assert_eq!(
2195 unsafe { ::std::ptr::addr_of!((*ptr).s5) as usize - ptr as usize },
2196 5usize,
2197 concat!(
2198 "Offset of field: ",
2199 stringify!(cl_uchar8__bindgen_ty_2),
2200 "::",
2201 stringify!(s5)
2202 )
2203 );
2204 assert_eq!(
2205 unsafe { ::std::ptr::addr_of!((*ptr).s6) as usize - ptr as usize },
2206 6usize,
2207 concat!(
2208 "Offset of field: ",
2209 stringify!(cl_uchar8__bindgen_ty_2),
2210 "::",
2211 stringify!(s6)
2212 )
2213 );
2214 assert_eq!(
2215 unsafe { ::std::ptr::addr_of!((*ptr).s7) as usize - ptr as usize },
2216 7usize,
2217 concat!(
2218 "Offset of field: ",
2219 stringify!(cl_uchar8__bindgen_ty_2),
2220 "::",
2221 stringify!(s7)
2222 )
2223 );
2224}
2225#[repr(C)]
2226#[derive(Copy, Clone)]
2227pub struct cl_uchar8__bindgen_ty_3 {
2228 pub lo: cl_uchar4,
2229 pub hi: cl_uchar4,
2230}
2231#[test]
2232fn bindgen_test_layout_cl_uchar8__bindgen_ty_3() {
2233 const UNINIT: ::std::mem::MaybeUninit<cl_uchar8__bindgen_ty_3> =
2234 ::std::mem::MaybeUninit::uninit();
2235 let ptr = UNINIT.as_ptr();
2236 assert_eq!(
2237 ::std::mem::size_of::<cl_uchar8__bindgen_ty_3>(),
2238 8usize,
2239 concat!("Size of: ", stringify!(cl_uchar8__bindgen_ty_3))
2240 );
2241 assert_eq!(
2242 ::std::mem::align_of::<cl_uchar8__bindgen_ty_3>(),
2243 1usize,
2244 concat!("Alignment of ", stringify!(cl_uchar8__bindgen_ty_3))
2245 );
2246 assert_eq!(
2247 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
2248 0usize,
2249 concat!(
2250 "Offset of field: ",
2251 stringify!(cl_uchar8__bindgen_ty_3),
2252 "::",
2253 stringify!(lo)
2254 )
2255 );
2256 assert_eq!(
2257 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
2258 4usize,
2259 concat!(
2260 "Offset of field: ",
2261 stringify!(cl_uchar8__bindgen_ty_3),
2262 "::",
2263 stringify!(hi)
2264 )
2265 );
2266}
2267#[test]
2268fn bindgen_test_layout_cl_uchar8() {
2269 const UNINIT: ::std::mem::MaybeUninit<cl_uchar8> = ::std::mem::MaybeUninit::uninit();
2270 let ptr = UNINIT.as_ptr();
2271 assert_eq!(
2272 ::std::mem::size_of::<cl_uchar8>(),
2273 8usize,
2274 concat!("Size of: ", stringify!(cl_uchar8))
2275 );
2276 assert_eq!(
2277 ::std::mem::align_of::<cl_uchar8>(),
2278 8usize,
2279 concat!("Alignment of ", stringify!(cl_uchar8))
2280 );
2281 assert_eq!(
2282 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
2283 0usize,
2284 concat!(
2285 "Offset of field: ",
2286 stringify!(cl_uchar8),
2287 "::",
2288 stringify!(s)
2289 )
2290 );
2291 assert_eq!(
2292 unsafe { ::std::ptr::addr_of!((*ptr).v8) as usize - ptr as usize },
2293 0usize,
2294 concat!(
2295 "Offset of field: ",
2296 stringify!(cl_uchar8),
2297 "::",
2298 stringify!(v8)
2299 )
2300 );
2301}
2302#[repr(C)]
2303#[repr(align(16))]
2304#[derive(Copy, Clone)]
2305pub union cl_uchar16 {
2306 pub s: [cl_uchar; 16usize],
2307 pub __bindgen_anon_1: cl_uchar16__bindgen_ty_1,
2308 pub __bindgen_anon_2: cl_uchar16__bindgen_ty_2,
2309 pub __bindgen_anon_3: cl_uchar16__bindgen_ty_3,
2310 pub v8: [__cl_uchar8; 2usize],
2311 pub v16: __cl_uchar16,
2312}
2313#[repr(C)]
2314#[derive(Debug, Copy, Clone)]
2315pub struct cl_uchar16__bindgen_ty_1 {
2316 pub x: cl_uchar,
2317 pub y: cl_uchar,
2318 pub z: cl_uchar,
2319 pub w: cl_uchar,
2320 pub __spacer4: cl_uchar,
2321 pub __spacer5: cl_uchar,
2322 pub __spacer6: cl_uchar,
2323 pub __spacer7: cl_uchar,
2324 pub __spacer8: cl_uchar,
2325 pub __spacer9: cl_uchar,
2326 pub sa: cl_uchar,
2327 pub sb: cl_uchar,
2328 pub sc: cl_uchar,
2329 pub sd: cl_uchar,
2330 pub se: cl_uchar,
2331 pub sf: cl_uchar,
2332}
2333#[test]
2334fn bindgen_test_layout_cl_uchar16__bindgen_ty_1() {
2335 const UNINIT: ::std::mem::MaybeUninit<cl_uchar16__bindgen_ty_1> =
2336 ::std::mem::MaybeUninit::uninit();
2337 let ptr = UNINIT.as_ptr();
2338 assert_eq!(
2339 ::std::mem::size_of::<cl_uchar16__bindgen_ty_1>(),
2340 16usize,
2341 concat!("Size of: ", stringify!(cl_uchar16__bindgen_ty_1))
2342 );
2343 assert_eq!(
2344 ::std::mem::align_of::<cl_uchar16__bindgen_ty_1>(),
2345 1usize,
2346 concat!("Alignment of ", stringify!(cl_uchar16__bindgen_ty_1))
2347 );
2348 assert_eq!(
2349 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
2350 0usize,
2351 concat!(
2352 "Offset of field: ",
2353 stringify!(cl_uchar16__bindgen_ty_1),
2354 "::",
2355 stringify!(x)
2356 )
2357 );
2358 assert_eq!(
2359 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
2360 1usize,
2361 concat!(
2362 "Offset of field: ",
2363 stringify!(cl_uchar16__bindgen_ty_1),
2364 "::",
2365 stringify!(y)
2366 )
2367 );
2368 assert_eq!(
2369 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
2370 2usize,
2371 concat!(
2372 "Offset of field: ",
2373 stringify!(cl_uchar16__bindgen_ty_1),
2374 "::",
2375 stringify!(z)
2376 )
2377 );
2378 assert_eq!(
2379 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
2380 3usize,
2381 concat!(
2382 "Offset of field: ",
2383 stringify!(cl_uchar16__bindgen_ty_1),
2384 "::",
2385 stringify!(w)
2386 )
2387 );
2388 assert_eq!(
2389 unsafe { ::std::ptr::addr_of!((*ptr).__spacer4) as usize - ptr as usize },
2390 4usize,
2391 concat!(
2392 "Offset of field: ",
2393 stringify!(cl_uchar16__bindgen_ty_1),
2394 "::",
2395 stringify!(__spacer4)
2396 )
2397 );
2398 assert_eq!(
2399 unsafe { ::std::ptr::addr_of!((*ptr).__spacer5) as usize - ptr as usize },
2400 5usize,
2401 concat!(
2402 "Offset of field: ",
2403 stringify!(cl_uchar16__bindgen_ty_1),
2404 "::",
2405 stringify!(__spacer5)
2406 )
2407 );
2408 assert_eq!(
2409 unsafe { ::std::ptr::addr_of!((*ptr).__spacer6) as usize - ptr as usize },
2410 6usize,
2411 concat!(
2412 "Offset of field: ",
2413 stringify!(cl_uchar16__bindgen_ty_1),
2414 "::",
2415 stringify!(__spacer6)
2416 )
2417 );
2418 assert_eq!(
2419 unsafe { ::std::ptr::addr_of!((*ptr).__spacer7) as usize - ptr as usize },
2420 7usize,
2421 concat!(
2422 "Offset of field: ",
2423 stringify!(cl_uchar16__bindgen_ty_1),
2424 "::",
2425 stringify!(__spacer7)
2426 )
2427 );
2428 assert_eq!(
2429 unsafe { ::std::ptr::addr_of!((*ptr).__spacer8) as usize - ptr as usize },
2430 8usize,
2431 concat!(
2432 "Offset of field: ",
2433 stringify!(cl_uchar16__bindgen_ty_1),
2434 "::",
2435 stringify!(__spacer8)
2436 )
2437 );
2438 assert_eq!(
2439 unsafe { ::std::ptr::addr_of!((*ptr).__spacer9) as usize - ptr as usize },
2440 9usize,
2441 concat!(
2442 "Offset of field: ",
2443 stringify!(cl_uchar16__bindgen_ty_1),
2444 "::",
2445 stringify!(__spacer9)
2446 )
2447 );
2448 assert_eq!(
2449 unsafe { ::std::ptr::addr_of!((*ptr).sa) as usize - ptr as usize },
2450 10usize,
2451 concat!(
2452 "Offset of field: ",
2453 stringify!(cl_uchar16__bindgen_ty_1),
2454 "::",
2455 stringify!(sa)
2456 )
2457 );
2458 assert_eq!(
2459 unsafe { ::std::ptr::addr_of!((*ptr).sb) as usize - ptr as usize },
2460 11usize,
2461 concat!(
2462 "Offset of field: ",
2463 stringify!(cl_uchar16__bindgen_ty_1),
2464 "::",
2465 stringify!(sb)
2466 )
2467 );
2468 assert_eq!(
2469 unsafe { ::std::ptr::addr_of!((*ptr).sc) as usize - ptr as usize },
2470 12usize,
2471 concat!(
2472 "Offset of field: ",
2473 stringify!(cl_uchar16__bindgen_ty_1),
2474 "::",
2475 stringify!(sc)
2476 )
2477 );
2478 assert_eq!(
2479 unsafe { ::std::ptr::addr_of!((*ptr).sd) as usize - ptr as usize },
2480 13usize,
2481 concat!(
2482 "Offset of field: ",
2483 stringify!(cl_uchar16__bindgen_ty_1),
2484 "::",
2485 stringify!(sd)
2486 )
2487 );
2488 assert_eq!(
2489 unsafe { ::std::ptr::addr_of!((*ptr).se) as usize - ptr as usize },
2490 14usize,
2491 concat!(
2492 "Offset of field: ",
2493 stringify!(cl_uchar16__bindgen_ty_1),
2494 "::",
2495 stringify!(se)
2496 )
2497 );
2498 assert_eq!(
2499 unsafe { ::std::ptr::addr_of!((*ptr).sf) as usize - ptr as usize },
2500 15usize,
2501 concat!(
2502 "Offset of field: ",
2503 stringify!(cl_uchar16__bindgen_ty_1),
2504 "::",
2505 stringify!(sf)
2506 )
2507 );
2508}
2509#[repr(C)]
2510#[derive(Debug, Copy, Clone)]
2511pub struct cl_uchar16__bindgen_ty_2 {
2512 pub s0: cl_uchar,
2513 pub s1: cl_uchar,
2514 pub s2: cl_uchar,
2515 pub s3: cl_uchar,
2516 pub s4: cl_uchar,
2517 pub s5: cl_uchar,
2518 pub s6: cl_uchar,
2519 pub s7: cl_uchar,
2520 pub s8: cl_uchar,
2521 pub s9: cl_uchar,
2522 pub sA: cl_uchar,
2523 pub sB: cl_uchar,
2524 pub sC: cl_uchar,
2525 pub sD: cl_uchar,
2526 pub sE: cl_uchar,
2527 pub sF: cl_uchar,
2528}
2529#[test]
2530fn bindgen_test_layout_cl_uchar16__bindgen_ty_2() {
2531 const UNINIT: ::std::mem::MaybeUninit<cl_uchar16__bindgen_ty_2> =
2532 ::std::mem::MaybeUninit::uninit();
2533 let ptr = UNINIT.as_ptr();
2534 assert_eq!(
2535 ::std::mem::size_of::<cl_uchar16__bindgen_ty_2>(),
2536 16usize,
2537 concat!("Size of: ", stringify!(cl_uchar16__bindgen_ty_2))
2538 );
2539 assert_eq!(
2540 ::std::mem::align_of::<cl_uchar16__bindgen_ty_2>(),
2541 1usize,
2542 concat!("Alignment of ", stringify!(cl_uchar16__bindgen_ty_2))
2543 );
2544 assert_eq!(
2545 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
2546 0usize,
2547 concat!(
2548 "Offset of field: ",
2549 stringify!(cl_uchar16__bindgen_ty_2),
2550 "::",
2551 stringify!(s0)
2552 )
2553 );
2554 assert_eq!(
2555 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
2556 1usize,
2557 concat!(
2558 "Offset of field: ",
2559 stringify!(cl_uchar16__bindgen_ty_2),
2560 "::",
2561 stringify!(s1)
2562 )
2563 );
2564 assert_eq!(
2565 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
2566 2usize,
2567 concat!(
2568 "Offset of field: ",
2569 stringify!(cl_uchar16__bindgen_ty_2),
2570 "::",
2571 stringify!(s2)
2572 )
2573 );
2574 assert_eq!(
2575 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
2576 3usize,
2577 concat!(
2578 "Offset of field: ",
2579 stringify!(cl_uchar16__bindgen_ty_2),
2580 "::",
2581 stringify!(s3)
2582 )
2583 );
2584 assert_eq!(
2585 unsafe { ::std::ptr::addr_of!((*ptr).s4) as usize - ptr as usize },
2586 4usize,
2587 concat!(
2588 "Offset of field: ",
2589 stringify!(cl_uchar16__bindgen_ty_2),
2590 "::",
2591 stringify!(s4)
2592 )
2593 );
2594 assert_eq!(
2595 unsafe { ::std::ptr::addr_of!((*ptr).s5) as usize - ptr as usize },
2596 5usize,
2597 concat!(
2598 "Offset of field: ",
2599 stringify!(cl_uchar16__bindgen_ty_2),
2600 "::",
2601 stringify!(s5)
2602 )
2603 );
2604 assert_eq!(
2605 unsafe { ::std::ptr::addr_of!((*ptr).s6) as usize - ptr as usize },
2606 6usize,
2607 concat!(
2608 "Offset of field: ",
2609 stringify!(cl_uchar16__bindgen_ty_2),
2610 "::",
2611 stringify!(s6)
2612 )
2613 );
2614 assert_eq!(
2615 unsafe { ::std::ptr::addr_of!((*ptr).s7) as usize - ptr as usize },
2616 7usize,
2617 concat!(
2618 "Offset of field: ",
2619 stringify!(cl_uchar16__bindgen_ty_2),
2620 "::",
2621 stringify!(s7)
2622 )
2623 );
2624 assert_eq!(
2625 unsafe { ::std::ptr::addr_of!((*ptr).s8) as usize - ptr as usize },
2626 8usize,
2627 concat!(
2628 "Offset of field: ",
2629 stringify!(cl_uchar16__bindgen_ty_2),
2630 "::",
2631 stringify!(s8)
2632 )
2633 );
2634 assert_eq!(
2635 unsafe { ::std::ptr::addr_of!((*ptr).s9) as usize - ptr as usize },
2636 9usize,
2637 concat!(
2638 "Offset of field: ",
2639 stringify!(cl_uchar16__bindgen_ty_2),
2640 "::",
2641 stringify!(s9)
2642 )
2643 );
2644 assert_eq!(
2645 unsafe { ::std::ptr::addr_of!((*ptr).sA) as usize - ptr as usize },
2646 10usize,
2647 concat!(
2648 "Offset of field: ",
2649 stringify!(cl_uchar16__bindgen_ty_2),
2650 "::",
2651 stringify!(sA)
2652 )
2653 );
2654 assert_eq!(
2655 unsafe { ::std::ptr::addr_of!((*ptr).sB) as usize - ptr as usize },
2656 11usize,
2657 concat!(
2658 "Offset of field: ",
2659 stringify!(cl_uchar16__bindgen_ty_2),
2660 "::",
2661 stringify!(sB)
2662 )
2663 );
2664 assert_eq!(
2665 unsafe { ::std::ptr::addr_of!((*ptr).sC) as usize - ptr as usize },
2666 12usize,
2667 concat!(
2668 "Offset of field: ",
2669 stringify!(cl_uchar16__bindgen_ty_2),
2670 "::",
2671 stringify!(sC)
2672 )
2673 );
2674 assert_eq!(
2675 unsafe { ::std::ptr::addr_of!((*ptr).sD) as usize - ptr as usize },
2676 13usize,
2677 concat!(
2678 "Offset of field: ",
2679 stringify!(cl_uchar16__bindgen_ty_2),
2680 "::",
2681 stringify!(sD)
2682 )
2683 );
2684 assert_eq!(
2685 unsafe { ::std::ptr::addr_of!((*ptr).sE) as usize - ptr as usize },
2686 14usize,
2687 concat!(
2688 "Offset of field: ",
2689 stringify!(cl_uchar16__bindgen_ty_2),
2690 "::",
2691 stringify!(sE)
2692 )
2693 );
2694 assert_eq!(
2695 unsafe { ::std::ptr::addr_of!((*ptr).sF) as usize - ptr as usize },
2696 15usize,
2697 concat!(
2698 "Offset of field: ",
2699 stringify!(cl_uchar16__bindgen_ty_2),
2700 "::",
2701 stringify!(sF)
2702 )
2703 );
2704}
2705#[repr(C)]
2706#[derive(Copy, Clone)]
2707pub struct cl_uchar16__bindgen_ty_3 {
2708 pub lo: cl_uchar8,
2709 pub hi: cl_uchar8,
2710}
2711#[test]
2712fn bindgen_test_layout_cl_uchar16__bindgen_ty_3() {
2713 const UNINIT: ::std::mem::MaybeUninit<cl_uchar16__bindgen_ty_3> =
2714 ::std::mem::MaybeUninit::uninit();
2715 let ptr = UNINIT.as_ptr();
2716 assert_eq!(
2717 ::std::mem::size_of::<cl_uchar16__bindgen_ty_3>(),
2718 16usize,
2719 concat!("Size of: ", stringify!(cl_uchar16__bindgen_ty_3))
2720 );
2721 assert_eq!(
2722 ::std::mem::align_of::<cl_uchar16__bindgen_ty_3>(),
2723 8usize,
2724 concat!("Alignment of ", stringify!(cl_uchar16__bindgen_ty_3))
2725 );
2726 assert_eq!(
2727 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
2728 0usize,
2729 concat!(
2730 "Offset of field: ",
2731 stringify!(cl_uchar16__bindgen_ty_3),
2732 "::",
2733 stringify!(lo)
2734 )
2735 );
2736 assert_eq!(
2737 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
2738 8usize,
2739 concat!(
2740 "Offset of field: ",
2741 stringify!(cl_uchar16__bindgen_ty_3),
2742 "::",
2743 stringify!(hi)
2744 )
2745 );
2746}
2747#[test]
2748fn bindgen_test_layout_cl_uchar16() {
2749 const UNINIT: ::std::mem::MaybeUninit<cl_uchar16> = ::std::mem::MaybeUninit::uninit();
2750 let ptr = UNINIT.as_ptr();
2751 assert_eq!(
2752 ::std::mem::size_of::<cl_uchar16>(),
2753 16usize,
2754 concat!("Size of: ", stringify!(cl_uchar16))
2755 );
2756 assert_eq!(
2757 ::std::mem::align_of::<cl_uchar16>(),
2758 16usize,
2759 concat!("Alignment of ", stringify!(cl_uchar16))
2760 );
2761 assert_eq!(
2762 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
2763 0usize,
2764 concat!(
2765 "Offset of field: ",
2766 stringify!(cl_uchar16),
2767 "::",
2768 stringify!(s)
2769 )
2770 );
2771 assert_eq!(
2772 unsafe { ::std::ptr::addr_of!((*ptr).v8) as usize - ptr as usize },
2773 0usize,
2774 concat!(
2775 "Offset of field: ",
2776 stringify!(cl_uchar16),
2777 "::",
2778 stringify!(v8)
2779 )
2780 );
2781 assert_eq!(
2782 unsafe { ::std::ptr::addr_of!((*ptr).v16) as usize - ptr as usize },
2783 0usize,
2784 concat!(
2785 "Offset of field: ",
2786 stringify!(cl_uchar16),
2787 "::",
2788 stringify!(v16)
2789 )
2790 );
2791}
2792#[repr(C)]
2793#[derive(Copy, Clone)]
2794pub union cl_short2 {
2795 pub s: [cl_short; 2usize],
2796 pub __bindgen_anon_1: cl_short2__bindgen_ty_1,
2797 pub __bindgen_anon_2: cl_short2__bindgen_ty_2,
2798 pub __bindgen_anon_3: cl_short2__bindgen_ty_3,
2799}
2800#[repr(C)]
2801#[derive(Debug, Copy, Clone)]
2802pub struct cl_short2__bindgen_ty_1 {
2803 pub x: cl_short,
2804 pub y: cl_short,
2805}
2806#[test]
2807fn bindgen_test_layout_cl_short2__bindgen_ty_1() {
2808 const UNINIT: ::std::mem::MaybeUninit<cl_short2__bindgen_ty_1> =
2809 ::std::mem::MaybeUninit::uninit();
2810 let ptr = UNINIT.as_ptr();
2811 assert_eq!(
2812 ::std::mem::size_of::<cl_short2__bindgen_ty_1>(),
2813 4usize,
2814 concat!("Size of: ", stringify!(cl_short2__bindgen_ty_1))
2815 );
2816 assert_eq!(
2817 ::std::mem::align_of::<cl_short2__bindgen_ty_1>(),
2818 2usize,
2819 concat!("Alignment of ", stringify!(cl_short2__bindgen_ty_1))
2820 );
2821 assert_eq!(
2822 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
2823 0usize,
2824 concat!(
2825 "Offset of field: ",
2826 stringify!(cl_short2__bindgen_ty_1),
2827 "::",
2828 stringify!(x)
2829 )
2830 );
2831 assert_eq!(
2832 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
2833 2usize,
2834 concat!(
2835 "Offset of field: ",
2836 stringify!(cl_short2__bindgen_ty_1),
2837 "::",
2838 stringify!(y)
2839 )
2840 );
2841}
2842#[repr(C)]
2843#[derive(Debug, Copy, Clone)]
2844pub struct cl_short2__bindgen_ty_2 {
2845 pub s0: cl_short,
2846 pub s1: cl_short,
2847}
2848#[test]
2849fn bindgen_test_layout_cl_short2__bindgen_ty_2() {
2850 const UNINIT: ::std::mem::MaybeUninit<cl_short2__bindgen_ty_2> =
2851 ::std::mem::MaybeUninit::uninit();
2852 let ptr = UNINIT.as_ptr();
2853 assert_eq!(
2854 ::std::mem::size_of::<cl_short2__bindgen_ty_2>(),
2855 4usize,
2856 concat!("Size of: ", stringify!(cl_short2__bindgen_ty_2))
2857 );
2858 assert_eq!(
2859 ::std::mem::align_of::<cl_short2__bindgen_ty_2>(),
2860 2usize,
2861 concat!("Alignment of ", stringify!(cl_short2__bindgen_ty_2))
2862 );
2863 assert_eq!(
2864 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
2865 0usize,
2866 concat!(
2867 "Offset of field: ",
2868 stringify!(cl_short2__bindgen_ty_2),
2869 "::",
2870 stringify!(s0)
2871 )
2872 );
2873 assert_eq!(
2874 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
2875 2usize,
2876 concat!(
2877 "Offset of field: ",
2878 stringify!(cl_short2__bindgen_ty_2),
2879 "::",
2880 stringify!(s1)
2881 )
2882 );
2883}
2884#[repr(C)]
2885#[derive(Debug, Copy, Clone)]
2886pub struct cl_short2__bindgen_ty_3 {
2887 pub lo: cl_short,
2888 pub hi: cl_short,
2889}
2890#[test]
2891fn bindgen_test_layout_cl_short2__bindgen_ty_3() {
2892 const UNINIT: ::std::mem::MaybeUninit<cl_short2__bindgen_ty_3> =
2893 ::std::mem::MaybeUninit::uninit();
2894 let ptr = UNINIT.as_ptr();
2895 assert_eq!(
2896 ::std::mem::size_of::<cl_short2__bindgen_ty_3>(),
2897 4usize,
2898 concat!("Size of: ", stringify!(cl_short2__bindgen_ty_3))
2899 );
2900 assert_eq!(
2901 ::std::mem::align_of::<cl_short2__bindgen_ty_3>(),
2902 2usize,
2903 concat!("Alignment of ", stringify!(cl_short2__bindgen_ty_3))
2904 );
2905 assert_eq!(
2906 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
2907 0usize,
2908 concat!(
2909 "Offset of field: ",
2910 stringify!(cl_short2__bindgen_ty_3),
2911 "::",
2912 stringify!(lo)
2913 )
2914 );
2915 assert_eq!(
2916 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
2917 2usize,
2918 concat!(
2919 "Offset of field: ",
2920 stringify!(cl_short2__bindgen_ty_3),
2921 "::",
2922 stringify!(hi)
2923 )
2924 );
2925}
2926#[test]
2927fn bindgen_test_layout_cl_short2() {
2928 const UNINIT: ::std::mem::MaybeUninit<cl_short2> = ::std::mem::MaybeUninit::uninit();
2929 let ptr = UNINIT.as_ptr();
2930 assert_eq!(
2931 ::std::mem::size_of::<cl_short2>(),
2932 4usize,
2933 concat!("Size of: ", stringify!(cl_short2))
2934 );
2935 assert_eq!(
2936 ::std::mem::align_of::<cl_short2>(),
2937 2usize,
2938 concat!("Alignment of ", stringify!(cl_short2))
2939 );
2940 assert_eq!(
2941 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
2942 0usize,
2943 concat!(
2944 "Offset of field: ",
2945 stringify!(cl_short2),
2946 "::",
2947 stringify!(s)
2948 )
2949 );
2950}
2951#[repr(C)]
2952#[derive(Copy, Clone)]
2953pub union cl_short4 {
2954 pub s: [cl_short; 4usize],
2955 pub __bindgen_anon_1: cl_short4__bindgen_ty_1,
2956 pub __bindgen_anon_2: cl_short4__bindgen_ty_2,
2957 pub __bindgen_anon_3: cl_short4__bindgen_ty_3,
2958 pub v4: __cl_short4,
2959}
2960#[repr(C)]
2961#[derive(Debug, Copy, Clone)]
2962pub struct cl_short4__bindgen_ty_1 {
2963 pub x: cl_short,
2964 pub y: cl_short,
2965 pub z: cl_short,
2966 pub w: cl_short,
2967}
2968#[test]
2969fn bindgen_test_layout_cl_short4__bindgen_ty_1() {
2970 const UNINIT: ::std::mem::MaybeUninit<cl_short4__bindgen_ty_1> =
2971 ::std::mem::MaybeUninit::uninit();
2972 let ptr = UNINIT.as_ptr();
2973 assert_eq!(
2974 ::std::mem::size_of::<cl_short4__bindgen_ty_1>(),
2975 8usize,
2976 concat!("Size of: ", stringify!(cl_short4__bindgen_ty_1))
2977 );
2978 assert_eq!(
2979 ::std::mem::align_of::<cl_short4__bindgen_ty_1>(),
2980 2usize,
2981 concat!("Alignment of ", stringify!(cl_short4__bindgen_ty_1))
2982 );
2983 assert_eq!(
2984 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
2985 0usize,
2986 concat!(
2987 "Offset of field: ",
2988 stringify!(cl_short4__bindgen_ty_1),
2989 "::",
2990 stringify!(x)
2991 )
2992 );
2993 assert_eq!(
2994 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
2995 2usize,
2996 concat!(
2997 "Offset of field: ",
2998 stringify!(cl_short4__bindgen_ty_1),
2999 "::",
3000 stringify!(y)
3001 )
3002 );
3003 assert_eq!(
3004 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
3005 4usize,
3006 concat!(
3007 "Offset of field: ",
3008 stringify!(cl_short4__bindgen_ty_1),
3009 "::",
3010 stringify!(z)
3011 )
3012 );
3013 assert_eq!(
3014 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
3015 6usize,
3016 concat!(
3017 "Offset of field: ",
3018 stringify!(cl_short4__bindgen_ty_1),
3019 "::",
3020 stringify!(w)
3021 )
3022 );
3023}
3024#[repr(C)]
3025#[derive(Debug, Copy, Clone)]
3026pub struct cl_short4__bindgen_ty_2 {
3027 pub s0: cl_short,
3028 pub s1: cl_short,
3029 pub s2: cl_short,
3030 pub s3: cl_short,
3031}
3032#[test]
3033fn bindgen_test_layout_cl_short4__bindgen_ty_2() {
3034 const UNINIT: ::std::mem::MaybeUninit<cl_short4__bindgen_ty_2> =
3035 ::std::mem::MaybeUninit::uninit();
3036 let ptr = UNINIT.as_ptr();
3037 assert_eq!(
3038 ::std::mem::size_of::<cl_short4__bindgen_ty_2>(),
3039 8usize,
3040 concat!("Size of: ", stringify!(cl_short4__bindgen_ty_2))
3041 );
3042 assert_eq!(
3043 ::std::mem::align_of::<cl_short4__bindgen_ty_2>(),
3044 2usize,
3045 concat!("Alignment of ", stringify!(cl_short4__bindgen_ty_2))
3046 );
3047 assert_eq!(
3048 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
3049 0usize,
3050 concat!(
3051 "Offset of field: ",
3052 stringify!(cl_short4__bindgen_ty_2),
3053 "::",
3054 stringify!(s0)
3055 )
3056 );
3057 assert_eq!(
3058 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
3059 2usize,
3060 concat!(
3061 "Offset of field: ",
3062 stringify!(cl_short4__bindgen_ty_2),
3063 "::",
3064 stringify!(s1)
3065 )
3066 );
3067 assert_eq!(
3068 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
3069 4usize,
3070 concat!(
3071 "Offset of field: ",
3072 stringify!(cl_short4__bindgen_ty_2),
3073 "::",
3074 stringify!(s2)
3075 )
3076 );
3077 assert_eq!(
3078 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
3079 6usize,
3080 concat!(
3081 "Offset of field: ",
3082 stringify!(cl_short4__bindgen_ty_2),
3083 "::",
3084 stringify!(s3)
3085 )
3086 );
3087}
3088#[repr(C)]
3089#[derive(Copy, Clone)]
3090pub struct cl_short4__bindgen_ty_3 {
3091 pub lo: cl_short2,
3092 pub hi: cl_short2,
3093}
3094#[test]
3095fn bindgen_test_layout_cl_short4__bindgen_ty_3() {
3096 const UNINIT: ::std::mem::MaybeUninit<cl_short4__bindgen_ty_3> =
3097 ::std::mem::MaybeUninit::uninit();
3098 let ptr = UNINIT.as_ptr();
3099 assert_eq!(
3100 ::std::mem::size_of::<cl_short4__bindgen_ty_3>(),
3101 8usize,
3102 concat!("Size of: ", stringify!(cl_short4__bindgen_ty_3))
3103 );
3104 assert_eq!(
3105 ::std::mem::align_of::<cl_short4__bindgen_ty_3>(),
3106 2usize,
3107 concat!("Alignment of ", stringify!(cl_short4__bindgen_ty_3))
3108 );
3109 assert_eq!(
3110 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
3111 0usize,
3112 concat!(
3113 "Offset of field: ",
3114 stringify!(cl_short4__bindgen_ty_3),
3115 "::",
3116 stringify!(lo)
3117 )
3118 );
3119 assert_eq!(
3120 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
3121 4usize,
3122 concat!(
3123 "Offset of field: ",
3124 stringify!(cl_short4__bindgen_ty_3),
3125 "::",
3126 stringify!(hi)
3127 )
3128 );
3129}
3130#[test]
3131fn bindgen_test_layout_cl_short4() {
3132 const UNINIT: ::std::mem::MaybeUninit<cl_short4> = ::std::mem::MaybeUninit::uninit();
3133 let ptr = UNINIT.as_ptr();
3134 assert_eq!(
3135 ::std::mem::size_of::<cl_short4>(),
3136 8usize,
3137 concat!("Size of: ", stringify!(cl_short4))
3138 );
3139 assert_eq!(
3140 ::std::mem::align_of::<cl_short4>(),
3141 8usize,
3142 concat!("Alignment of ", stringify!(cl_short4))
3143 );
3144 assert_eq!(
3145 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
3146 0usize,
3147 concat!(
3148 "Offset of field: ",
3149 stringify!(cl_short4),
3150 "::",
3151 stringify!(s)
3152 )
3153 );
3154 assert_eq!(
3155 unsafe { ::std::ptr::addr_of!((*ptr).v4) as usize - ptr as usize },
3156 0usize,
3157 concat!(
3158 "Offset of field: ",
3159 stringify!(cl_short4),
3160 "::",
3161 stringify!(v4)
3162 )
3163 );
3164}
3165pub type cl_short3 = cl_short4;
3166#[repr(C)]
3167#[repr(align(16))]
3168#[derive(Copy, Clone)]
3169pub union cl_short8 {
3170 pub s: [cl_short; 8usize],
3171 pub __bindgen_anon_1: cl_short8__bindgen_ty_1,
3172 pub __bindgen_anon_2: cl_short8__bindgen_ty_2,
3173 pub __bindgen_anon_3: cl_short8__bindgen_ty_3,
3174 pub v4: [__cl_short4; 2usize],
3175 pub v8: __cl_short8,
3176}
3177#[repr(C)]
3178#[derive(Debug, Copy, Clone)]
3179pub struct cl_short8__bindgen_ty_1 {
3180 pub x: cl_short,
3181 pub y: cl_short,
3182 pub z: cl_short,
3183 pub w: cl_short,
3184}
3185#[test]
3186fn bindgen_test_layout_cl_short8__bindgen_ty_1() {
3187 const UNINIT: ::std::mem::MaybeUninit<cl_short8__bindgen_ty_1> =
3188 ::std::mem::MaybeUninit::uninit();
3189 let ptr = UNINIT.as_ptr();
3190 assert_eq!(
3191 ::std::mem::size_of::<cl_short8__bindgen_ty_1>(),
3192 8usize,
3193 concat!("Size of: ", stringify!(cl_short8__bindgen_ty_1))
3194 );
3195 assert_eq!(
3196 ::std::mem::align_of::<cl_short8__bindgen_ty_1>(),
3197 2usize,
3198 concat!("Alignment of ", stringify!(cl_short8__bindgen_ty_1))
3199 );
3200 assert_eq!(
3201 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
3202 0usize,
3203 concat!(
3204 "Offset of field: ",
3205 stringify!(cl_short8__bindgen_ty_1),
3206 "::",
3207 stringify!(x)
3208 )
3209 );
3210 assert_eq!(
3211 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
3212 2usize,
3213 concat!(
3214 "Offset of field: ",
3215 stringify!(cl_short8__bindgen_ty_1),
3216 "::",
3217 stringify!(y)
3218 )
3219 );
3220 assert_eq!(
3221 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
3222 4usize,
3223 concat!(
3224 "Offset of field: ",
3225 stringify!(cl_short8__bindgen_ty_1),
3226 "::",
3227 stringify!(z)
3228 )
3229 );
3230 assert_eq!(
3231 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
3232 6usize,
3233 concat!(
3234 "Offset of field: ",
3235 stringify!(cl_short8__bindgen_ty_1),
3236 "::",
3237 stringify!(w)
3238 )
3239 );
3240}
3241#[repr(C)]
3242#[derive(Debug, Copy, Clone)]
3243pub struct cl_short8__bindgen_ty_2 {
3244 pub s0: cl_short,
3245 pub s1: cl_short,
3246 pub s2: cl_short,
3247 pub s3: cl_short,
3248 pub s4: cl_short,
3249 pub s5: cl_short,
3250 pub s6: cl_short,
3251 pub s7: cl_short,
3252}
3253#[test]
3254fn bindgen_test_layout_cl_short8__bindgen_ty_2() {
3255 const UNINIT: ::std::mem::MaybeUninit<cl_short8__bindgen_ty_2> =
3256 ::std::mem::MaybeUninit::uninit();
3257 let ptr = UNINIT.as_ptr();
3258 assert_eq!(
3259 ::std::mem::size_of::<cl_short8__bindgen_ty_2>(),
3260 16usize,
3261 concat!("Size of: ", stringify!(cl_short8__bindgen_ty_2))
3262 );
3263 assert_eq!(
3264 ::std::mem::align_of::<cl_short8__bindgen_ty_2>(),
3265 2usize,
3266 concat!("Alignment of ", stringify!(cl_short8__bindgen_ty_2))
3267 );
3268 assert_eq!(
3269 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
3270 0usize,
3271 concat!(
3272 "Offset of field: ",
3273 stringify!(cl_short8__bindgen_ty_2),
3274 "::",
3275 stringify!(s0)
3276 )
3277 );
3278 assert_eq!(
3279 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
3280 2usize,
3281 concat!(
3282 "Offset of field: ",
3283 stringify!(cl_short8__bindgen_ty_2),
3284 "::",
3285 stringify!(s1)
3286 )
3287 );
3288 assert_eq!(
3289 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
3290 4usize,
3291 concat!(
3292 "Offset of field: ",
3293 stringify!(cl_short8__bindgen_ty_2),
3294 "::",
3295 stringify!(s2)
3296 )
3297 );
3298 assert_eq!(
3299 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
3300 6usize,
3301 concat!(
3302 "Offset of field: ",
3303 stringify!(cl_short8__bindgen_ty_2),
3304 "::",
3305 stringify!(s3)
3306 )
3307 );
3308 assert_eq!(
3309 unsafe { ::std::ptr::addr_of!((*ptr).s4) as usize - ptr as usize },
3310 8usize,
3311 concat!(
3312 "Offset of field: ",
3313 stringify!(cl_short8__bindgen_ty_2),
3314 "::",
3315 stringify!(s4)
3316 )
3317 );
3318 assert_eq!(
3319 unsafe { ::std::ptr::addr_of!((*ptr).s5) as usize - ptr as usize },
3320 10usize,
3321 concat!(
3322 "Offset of field: ",
3323 stringify!(cl_short8__bindgen_ty_2),
3324 "::",
3325 stringify!(s5)
3326 )
3327 );
3328 assert_eq!(
3329 unsafe { ::std::ptr::addr_of!((*ptr).s6) as usize - ptr as usize },
3330 12usize,
3331 concat!(
3332 "Offset of field: ",
3333 stringify!(cl_short8__bindgen_ty_2),
3334 "::",
3335 stringify!(s6)
3336 )
3337 );
3338 assert_eq!(
3339 unsafe { ::std::ptr::addr_of!((*ptr).s7) as usize - ptr as usize },
3340 14usize,
3341 concat!(
3342 "Offset of field: ",
3343 stringify!(cl_short8__bindgen_ty_2),
3344 "::",
3345 stringify!(s7)
3346 )
3347 );
3348}
3349#[repr(C)]
3350#[derive(Copy, Clone)]
3351pub struct cl_short8__bindgen_ty_3 {
3352 pub lo: cl_short4,
3353 pub hi: cl_short4,
3354}
3355#[test]
3356fn bindgen_test_layout_cl_short8__bindgen_ty_3() {
3357 const UNINIT: ::std::mem::MaybeUninit<cl_short8__bindgen_ty_3> =
3358 ::std::mem::MaybeUninit::uninit();
3359 let ptr = UNINIT.as_ptr();
3360 assert_eq!(
3361 ::std::mem::size_of::<cl_short8__bindgen_ty_3>(),
3362 16usize,
3363 concat!("Size of: ", stringify!(cl_short8__bindgen_ty_3))
3364 );
3365 assert_eq!(
3366 ::std::mem::align_of::<cl_short8__bindgen_ty_3>(),
3367 8usize,
3368 concat!("Alignment of ", stringify!(cl_short8__bindgen_ty_3))
3369 );
3370 assert_eq!(
3371 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
3372 0usize,
3373 concat!(
3374 "Offset of field: ",
3375 stringify!(cl_short8__bindgen_ty_3),
3376 "::",
3377 stringify!(lo)
3378 )
3379 );
3380 assert_eq!(
3381 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
3382 8usize,
3383 concat!(
3384 "Offset of field: ",
3385 stringify!(cl_short8__bindgen_ty_3),
3386 "::",
3387 stringify!(hi)
3388 )
3389 );
3390}
3391#[test]
3392fn bindgen_test_layout_cl_short8() {
3393 const UNINIT: ::std::mem::MaybeUninit<cl_short8> = ::std::mem::MaybeUninit::uninit();
3394 let ptr = UNINIT.as_ptr();
3395 assert_eq!(
3396 ::std::mem::size_of::<cl_short8>(),
3397 16usize,
3398 concat!("Size of: ", stringify!(cl_short8))
3399 );
3400 assert_eq!(
3401 ::std::mem::align_of::<cl_short8>(),
3402 16usize,
3403 concat!("Alignment of ", stringify!(cl_short8))
3404 );
3405 assert_eq!(
3406 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
3407 0usize,
3408 concat!(
3409 "Offset of field: ",
3410 stringify!(cl_short8),
3411 "::",
3412 stringify!(s)
3413 )
3414 );
3415 assert_eq!(
3416 unsafe { ::std::ptr::addr_of!((*ptr).v4) as usize - ptr as usize },
3417 0usize,
3418 concat!(
3419 "Offset of field: ",
3420 stringify!(cl_short8),
3421 "::",
3422 stringify!(v4)
3423 )
3424 );
3425 assert_eq!(
3426 unsafe { ::std::ptr::addr_of!((*ptr).v8) as usize - ptr as usize },
3427 0usize,
3428 concat!(
3429 "Offset of field: ",
3430 stringify!(cl_short8),
3431 "::",
3432 stringify!(v8)
3433 )
3434 );
3435}
3436#[repr(C)]
3437#[repr(align(16))]
3438#[derive(Copy, Clone)]
3439pub union cl_short16 {
3440 pub s: [cl_short; 16usize],
3441 pub __bindgen_anon_1: cl_short16__bindgen_ty_1,
3442 pub __bindgen_anon_2: cl_short16__bindgen_ty_2,
3443 pub __bindgen_anon_3: cl_short16__bindgen_ty_3,
3444 pub v4: [__cl_short4; 4usize],
3445 pub v8: [__cl_short8; 2usize],
3446}
3447#[repr(C)]
3448#[derive(Debug, Copy, Clone)]
3449pub struct cl_short16__bindgen_ty_1 {
3450 pub x: cl_short,
3451 pub y: cl_short,
3452 pub z: cl_short,
3453 pub w: cl_short,
3454 pub __spacer4: cl_short,
3455 pub __spacer5: cl_short,
3456 pub __spacer6: cl_short,
3457 pub __spacer7: cl_short,
3458 pub __spacer8: cl_short,
3459 pub __spacer9: cl_short,
3460 pub sa: cl_short,
3461 pub sb: cl_short,
3462 pub sc: cl_short,
3463 pub sd: cl_short,
3464 pub se: cl_short,
3465 pub sf: cl_short,
3466}
3467#[test]
3468fn bindgen_test_layout_cl_short16__bindgen_ty_1() {
3469 const UNINIT: ::std::mem::MaybeUninit<cl_short16__bindgen_ty_1> =
3470 ::std::mem::MaybeUninit::uninit();
3471 let ptr = UNINIT.as_ptr();
3472 assert_eq!(
3473 ::std::mem::size_of::<cl_short16__bindgen_ty_1>(),
3474 32usize,
3475 concat!("Size of: ", stringify!(cl_short16__bindgen_ty_1))
3476 );
3477 assert_eq!(
3478 ::std::mem::align_of::<cl_short16__bindgen_ty_1>(),
3479 2usize,
3480 concat!("Alignment of ", stringify!(cl_short16__bindgen_ty_1))
3481 );
3482 assert_eq!(
3483 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
3484 0usize,
3485 concat!(
3486 "Offset of field: ",
3487 stringify!(cl_short16__bindgen_ty_1),
3488 "::",
3489 stringify!(x)
3490 )
3491 );
3492 assert_eq!(
3493 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
3494 2usize,
3495 concat!(
3496 "Offset of field: ",
3497 stringify!(cl_short16__bindgen_ty_1),
3498 "::",
3499 stringify!(y)
3500 )
3501 );
3502 assert_eq!(
3503 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
3504 4usize,
3505 concat!(
3506 "Offset of field: ",
3507 stringify!(cl_short16__bindgen_ty_1),
3508 "::",
3509 stringify!(z)
3510 )
3511 );
3512 assert_eq!(
3513 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
3514 6usize,
3515 concat!(
3516 "Offset of field: ",
3517 stringify!(cl_short16__bindgen_ty_1),
3518 "::",
3519 stringify!(w)
3520 )
3521 );
3522 assert_eq!(
3523 unsafe { ::std::ptr::addr_of!((*ptr).__spacer4) as usize - ptr as usize },
3524 8usize,
3525 concat!(
3526 "Offset of field: ",
3527 stringify!(cl_short16__bindgen_ty_1),
3528 "::",
3529 stringify!(__spacer4)
3530 )
3531 );
3532 assert_eq!(
3533 unsafe { ::std::ptr::addr_of!((*ptr).__spacer5) as usize - ptr as usize },
3534 10usize,
3535 concat!(
3536 "Offset of field: ",
3537 stringify!(cl_short16__bindgen_ty_1),
3538 "::",
3539 stringify!(__spacer5)
3540 )
3541 );
3542 assert_eq!(
3543 unsafe { ::std::ptr::addr_of!((*ptr).__spacer6) as usize - ptr as usize },
3544 12usize,
3545 concat!(
3546 "Offset of field: ",
3547 stringify!(cl_short16__bindgen_ty_1),
3548 "::",
3549 stringify!(__spacer6)
3550 )
3551 );
3552 assert_eq!(
3553 unsafe { ::std::ptr::addr_of!((*ptr).__spacer7) as usize - ptr as usize },
3554 14usize,
3555 concat!(
3556 "Offset of field: ",
3557 stringify!(cl_short16__bindgen_ty_1),
3558 "::",
3559 stringify!(__spacer7)
3560 )
3561 );
3562 assert_eq!(
3563 unsafe { ::std::ptr::addr_of!((*ptr).__spacer8) as usize - ptr as usize },
3564 16usize,
3565 concat!(
3566 "Offset of field: ",
3567 stringify!(cl_short16__bindgen_ty_1),
3568 "::",
3569 stringify!(__spacer8)
3570 )
3571 );
3572 assert_eq!(
3573 unsafe { ::std::ptr::addr_of!((*ptr).__spacer9) as usize - ptr as usize },
3574 18usize,
3575 concat!(
3576 "Offset of field: ",
3577 stringify!(cl_short16__bindgen_ty_1),
3578 "::",
3579 stringify!(__spacer9)
3580 )
3581 );
3582 assert_eq!(
3583 unsafe { ::std::ptr::addr_of!((*ptr).sa) as usize - ptr as usize },
3584 20usize,
3585 concat!(
3586 "Offset of field: ",
3587 stringify!(cl_short16__bindgen_ty_1),
3588 "::",
3589 stringify!(sa)
3590 )
3591 );
3592 assert_eq!(
3593 unsafe { ::std::ptr::addr_of!((*ptr).sb) as usize - ptr as usize },
3594 22usize,
3595 concat!(
3596 "Offset of field: ",
3597 stringify!(cl_short16__bindgen_ty_1),
3598 "::",
3599 stringify!(sb)
3600 )
3601 );
3602 assert_eq!(
3603 unsafe { ::std::ptr::addr_of!((*ptr).sc) as usize - ptr as usize },
3604 24usize,
3605 concat!(
3606 "Offset of field: ",
3607 stringify!(cl_short16__bindgen_ty_1),
3608 "::",
3609 stringify!(sc)
3610 )
3611 );
3612 assert_eq!(
3613 unsafe { ::std::ptr::addr_of!((*ptr).sd) as usize - ptr as usize },
3614 26usize,
3615 concat!(
3616 "Offset of field: ",
3617 stringify!(cl_short16__bindgen_ty_1),
3618 "::",
3619 stringify!(sd)
3620 )
3621 );
3622 assert_eq!(
3623 unsafe { ::std::ptr::addr_of!((*ptr).se) as usize - ptr as usize },
3624 28usize,
3625 concat!(
3626 "Offset of field: ",
3627 stringify!(cl_short16__bindgen_ty_1),
3628 "::",
3629 stringify!(se)
3630 )
3631 );
3632 assert_eq!(
3633 unsafe { ::std::ptr::addr_of!((*ptr).sf) as usize - ptr as usize },
3634 30usize,
3635 concat!(
3636 "Offset of field: ",
3637 stringify!(cl_short16__bindgen_ty_1),
3638 "::",
3639 stringify!(sf)
3640 )
3641 );
3642}
3643#[repr(C)]
3644#[derive(Debug, Copy, Clone)]
3645pub struct cl_short16__bindgen_ty_2 {
3646 pub s0: cl_short,
3647 pub s1: cl_short,
3648 pub s2: cl_short,
3649 pub s3: cl_short,
3650 pub s4: cl_short,
3651 pub s5: cl_short,
3652 pub s6: cl_short,
3653 pub s7: cl_short,
3654 pub s8: cl_short,
3655 pub s9: cl_short,
3656 pub sA: cl_short,
3657 pub sB: cl_short,
3658 pub sC: cl_short,
3659 pub sD: cl_short,
3660 pub sE: cl_short,
3661 pub sF: cl_short,
3662}
3663#[test]
3664fn bindgen_test_layout_cl_short16__bindgen_ty_2() {
3665 const UNINIT: ::std::mem::MaybeUninit<cl_short16__bindgen_ty_2> =
3666 ::std::mem::MaybeUninit::uninit();
3667 let ptr = UNINIT.as_ptr();
3668 assert_eq!(
3669 ::std::mem::size_of::<cl_short16__bindgen_ty_2>(),
3670 32usize,
3671 concat!("Size of: ", stringify!(cl_short16__bindgen_ty_2))
3672 );
3673 assert_eq!(
3674 ::std::mem::align_of::<cl_short16__bindgen_ty_2>(),
3675 2usize,
3676 concat!("Alignment of ", stringify!(cl_short16__bindgen_ty_2))
3677 );
3678 assert_eq!(
3679 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
3680 0usize,
3681 concat!(
3682 "Offset of field: ",
3683 stringify!(cl_short16__bindgen_ty_2),
3684 "::",
3685 stringify!(s0)
3686 )
3687 );
3688 assert_eq!(
3689 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
3690 2usize,
3691 concat!(
3692 "Offset of field: ",
3693 stringify!(cl_short16__bindgen_ty_2),
3694 "::",
3695 stringify!(s1)
3696 )
3697 );
3698 assert_eq!(
3699 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
3700 4usize,
3701 concat!(
3702 "Offset of field: ",
3703 stringify!(cl_short16__bindgen_ty_2),
3704 "::",
3705 stringify!(s2)
3706 )
3707 );
3708 assert_eq!(
3709 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
3710 6usize,
3711 concat!(
3712 "Offset of field: ",
3713 stringify!(cl_short16__bindgen_ty_2),
3714 "::",
3715 stringify!(s3)
3716 )
3717 );
3718 assert_eq!(
3719 unsafe { ::std::ptr::addr_of!((*ptr).s4) as usize - ptr as usize },
3720 8usize,
3721 concat!(
3722 "Offset of field: ",
3723 stringify!(cl_short16__bindgen_ty_2),
3724 "::",
3725 stringify!(s4)
3726 )
3727 );
3728 assert_eq!(
3729 unsafe { ::std::ptr::addr_of!((*ptr).s5) as usize - ptr as usize },
3730 10usize,
3731 concat!(
3732 "Offset of field: ",
3733 stringify!(cl_short16__bindgen_ty_2),
3734 "::",
3735 stringify!(s5)
3736 )
3737 );
3738 assert_eq!(
3739 unsafe { ::std::ptr::addr_of!((*ptr).s6) as usize - ptr as usize },
3740 12usize,
3741 concat!(
3742 "Offset of field: ",
3743 stringify!(cl_short16__bindgen_ty_2),
3744 "::",
3745 stringify!(s6)
3746 )
3747 );
3748 assert_eq!(
3749 unsafe { ::std::ptr::addr_of!((*ptr).s7) as usize - ptr as usize },
3750 14usize,
3751 concat!(
3752 "Offset of field: ",
3753 stringify!(cl_short16__bindgen_ty_2),
3754 "::",
3755 stringify!(s7)
3756 )
3757 );
3758 assert_eq!(
3759 unsafe { ::std::ptr::addr_of!((*ptr).s8) as usize - ptr as usize },
3760 16usize,
3761 concat!(
3762 "Offset of field: ",
3763 stringify!(cl_short16__bindgen_ty_2),
3764 "::",
3765 stringify!(s8)
3766 )
3767 );
3768 assert_eq!(
3769 unsafe { ::std::ptr::addr_of!((*ptr).s9) as usize - ptr as usize },
3770 18usize,
3771 concat!(
3772 "Offset of field: ",
3773 stringify!(cl_short16__bindgen_ty_2),
3774 "::",
3775 stringify!(s9)
3776 )
3777 );
3778 assert_eq!(
3779 unsafe { ::std::ptr::addr_of!((*ptr).sA) as usize - ptr as usize },
3780 20usize,
3781 concat!(
3782 "Offset of field: ",
3783 stringify!(cl_short16__bindgen_ty_2),
3784 "::",
3785 stringify!(sA)
3786 )
3787 );
3788 assert_eq!(
3789 unsafe { ::std::ptr::addr_of!((*ptr).sB) as usize - ptr as usize },
3790 22usize,
3791 concat!(
3792 "Offset of field: ",
3793 stringify!(cl_short16__bindgen_ty_2),
3794 "::",
3795 stringify!(sB)
3796 )
3797 );
3798 assert_eq!(
3799 unsafe { ::std::ptr::addr_of!((*ptr).sC) as usize - ptr as usize },
3800 24usize,
3801 concat!(
3802 "Offset of field: ",
3803 stringify!(cl_short16__bindgen_ty_2),
3804 "::",
3805 stringify!(sC)
3806 )
3807 );
3808 assert_eq!(
3809 unsafe { ::std::ptr::addr_of!((*ptr).sD) as usize - ptr as usize },
3810 26usize,
3811 concat!(
3812 "Offset of field: ",
3813 stringify!(cl_short16__bindgen_ty_2),
3814 "::",
3815 stringify!(sD)
3816 )
3817 );
3818 assert_eq!(
3819 unsafe { ::std::ptr::addr_of!((*ptr).sE) as usize - ptr as usize },
3820 28usize,
3821 concat!(
3822 "Offset of field: ",
3823 stringify!(cl_short16__bindgen_ty_2),
3824 "::",
3825 stringify!(sE)
3826 )
3827 );
3828 assert_eq!(
3829 unsafe { ::std::ptr::addr_of!((*ptr).sF) as usize - ptr as usize },
3830 30usize,
3831 concat!(
3832 "Offset of field: ",
3833 stringify!(cl_short16__bindgen_ty_2),
3834 "::",
3835 stringify!(sF)
3836 )
3837 );
3838}
3839#[repr(C)]
3840#[repr(align(16))]
3841#[derive(Copy, Clone)]
3842pub struct cl_short16__bindgen_ty_3 {
3843 pub lo: cl_short8,
3844 pub hi: cl_short8,
3845}
3846#[test]
3847fn bindgen_test_layout_cl_short16__bindgen_ty_3() {
3848 const UNINIT: ::std::mem::MaybeUninit<cl_short16__bindgen_ty_3> =
3849 ::std::mem::MaybeUninit::uninit();
3850 let ptr = UNINIT.as_ptr();
3851 assert_eq!(
3852 ::std::mem::size_of::<cl_short16__bindgen_ty_3>(),
3853 32usize,
3854 concat!("Size of: ", stringify!(cl_short16__bindgen_ty_3))
3855 );
3856 assert_eq!(
3857 ::std::mem::align_of::<cl_short16__bindgen_ty_3>(),
3858 16usize,
3859 concat!("Alignment of ", stringify!(cl_short16__bindgen_ty_3))
3860 );
3861 assert_eq!(
3862 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
3863 0usize,
3864 concat!(
3865 "Offset of field: ",
3866 stringify!(cl_short16__bindgen_ty_3),
3867 "::",
3868 stringify!(lo)
3869 )
3870 );
3871 assert_eq!(
3872 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
3873 16usize,
3874 concat!(
3875 "Offset of field: ",
3876 stringify!(cl_short16__bindgen_ty_3),
3877 "::",
3878 stringify!(hi)
3879 )
3880 );
3881}
3882#[test]
3883fn bindgen_test_layout_cl_short16() {
3884 const UNINIT: ::std::mem::MaybeUninit<cl_short16> = ::std::mem::MaybeUninit::uninit();
3885 let ptr = UNINIT.as_ptr();
3886 assert_eq!(
3887 ::std::mem::size_of::<cl_short16>(),
3888 32usize,
3889 concat!("Size of: ", stringify!(cl_short16))
3890 );
3891 assert_eq!(
3892 ::std::mem::align_of::<cl_short16>(),
3893 16usize,
3894 concat!("Alignment of ", stringify!(cl_short16))
3895 );
3896 assert_eq!(
3897 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
3898 0usize,
3899 concat!(
3900 "Offset of field: ",
3901 stringify!(cl_short16),
3902 "::",
3903 stringify!(s)
3904 )
3905 );
3906 assert_eq!(
3907 unsafe { ::std::ptr::addr_of!((*ptr).v4) as usize - ptr as usize },
3908 0usize,
3909 concat!(
3910 "Offset of field: ",
3911 stringify!(cl_short16),
3912 "::",
3913 stringify!(v4)
3914 )
3915 );
3916 assert_eq!(
3917 unsafe { ::std::ptr::addr_of!((*ptr).v8) as usize - ptr as usize },
3918 0usize,
3919 concat!(
3920 "Offset of field: ",
3921 stringify!(cl_short16),
3922 "::",
3923 stringify!(v8)
3924 )
3925 );
3926}
3927#[repr(C)]
3928#[derive(Copy, Clone)]
3929pub union cl_ushort2 {
3930 pub s: [cl_ushort; 2usize],
3931 pub __bindgen_anon_1: cl_ushort2__bindgen_ty_1,
3932 pub __bindgen_anon_2: cl_ushort2__bindgen_ty_2,
3933 pub __bindgen_anon_3: cl_ushort2__bindgen_ty_3,
3934}
3935#[repr(C)]
3936#[derive(Debug, Copy, Clone)]
3937pub struct cl_ushort2__bindgen_ty_1 {
3938 pub x: cl_ushort,
3939 pub y: cl_ushort,
3940}
3941#[test]
3942fn bindgen_test_layout_cl_ushort2__bindgen_ty_1() {
3943 const UNINIT: ::std::mem::MaybeUninit<cl_ushort2__bindgen_ty_1> =
3944 ::std::mem::MaybeUninit::uninit();
3945 let ptr = UNINIT.as_ptr();
3946 assert_eq!(
3947 ::std::mem::size_of::<cl_ushort2__bindgen_ty_1>(),
3948 4usize,
3949 concat!("Size of: ", stringify!(cl_ushort2__bindgen_ty_1))
3950 );
3951 assert_eq!(
3952 ::std::mem::align_of::<cl_ushort2__bindgen_ty_1>(),
3953 2usize,
3954 concat!("Alignment of ", stringify!(cl_ushort2__bindgen_ty_1))
3955 );
3956 assert_eq!(
3957 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
3958 0usize,
3959 concat!(
3960 "Offset of field: ",
3961 stringify!(cl_ushort2__bindgen_ty_1),
3962 "::",
3963 stringify!(x)
3964 )
3965 );
3966 assert_eq!(
3967 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
3968 2usize,
3969 concat!(
3970 "Offset of field: ",
3971 stringify!(cl_ushort2__bindgen_ty_1),
3972 "::",
3973 stringify!(y)
3974 )
3975 );
3976}
3977#[repr(C)]
3978#[derive(Debug, Copy, Clone)]
3979pub struct cl_ushort2__bindgen_ty_2 {
3980 pub s0: cl_ushort,
3981 pub s1: cl_ushort,
3982}
3983#[test]
3984fn bindgen_test_layout_cl_ushort2__bindgen_ty_2() {
3985 const UNINIT: ::std::mem::MaybeUninit<cl_ushort2__bindgen_ty_2> =
3986 ::std::mem::MaybeUninit::uninit();
3987 let ptr = UNINIT.as_ptr();
3988 assert_eq!(
3989 ::std::mem::size_of::<cl_ushort2__bindgen_ty_2>(),
3990 4usize,
3991 concat!("Size of: ", stringify!(cl_ushort2__bindgen_ty_2))
3992 );
3993 assert_eq!(
3994 ::std::mem::align_of::<cl_ushort2__bindgen_ty_2>(),
3995 2usize,
3996 concat!("Alignment of ", stringify!(cl_ushort2__bindgen_ty_2))
3997 );
3998 assert_eq!(
3999 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
4000 0usize,
4001 concat!(
4002 "Offset of field: ",
4003 stringify!(cl_ushort2__bindgen_ty_2),
4004 "::",
4005 stringify!(s0)
4006 )
4007 );
4008 assert_eq!(
4009 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
4010 2usize,
4011 concat!(
4012 "Offset of field: ",
4013 stringify!(cl_ushort2__bindgen_ty_2),
4014 "::",
4015 stringify!(s1)
4016 )
4017 );
4018}
4019#[repr(C)]
4020#[derive(Debug, Copy, Clone)]
4021pub struct cl_ushort2__bindgen_ty_3 {
4022 pub lo: cl_ushort,
4023 pub hi: cl_ushort,
4024}
4025#[test]
4026fn bindgen_test_layout_cl_ushort2__bindgen_ty_3() {
4027 const UNINIT: ::std::mem::MaybeUninit<cl_ushort2__bindgen_ty_3> =
4028 ::std::mem::MaybeUninit::uninit();
4029 let ptr = UNINIT.as_ptr();
4030 assert_eq!(
4031 ::std::mem::size_of::<cl_ushort2__bindgen_ty_3>(),
4032 4usize,
4033 concat!("Size of: ", stringify!(cl_ushort2__bindgen_ty_3))
4034 );
4035 assert_eq!(
4036 ::std::mem::align_of::<cl_ushort2__bindgen_ty_3>(),
4037 2usize,
4038 concat!("Alignment of ", stringify!(cl_ushort2__bindgen_ty_3))
4039 );
4040 assert_eq!(
4041 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
4042 0usize,
4043 concat!(
4044 "Offset of field: ",
4045 stringify!(cl_ushort2__bindgen_ty_3),
4046 "::",
4047 stringify!(lo)
4048 )
4049 );
4050 assert_eq!(
4051 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
4052 2usize,
4053 concat!(
4054 "Offset of field: ",
4055 stringify!(cl_ushort2__bindgen_ty_3),
4056 "::",
4057 stringify!(hi)
4058 )
4059 );
4060}
4061#[test]
4062fn bindgen_test_layout_cl_ushort2() {
4063 const UNINIT: ::std::mem::MaybeUninit<cl_ushort2> = ::std::mem::MaybeUninit::uninit();
4064 let ptr = UNINIT.as_ptr();
4065 assert_eq!(
4066 ::std::mem::size_of::<cl_ushort2>(),
4067 4usize,
4068 concat!("Size of: ", stringify!(cl_ushort2))
4069 );
4070 assert_eq!(
4071 ::std::mem::align_of::<cl_ushort2>(),
4072 2usize,
4073 concat!("Alignment of ", stringify!(cl_ushort2))
4074 );
4075 assert_eq!(
4076 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
4077 0usize,
4078 concat!(
4079 "Offset of field: ",
4080 stringify!(cl_ushort2),
4081 "::",
4082 stringify!(s)
4083 )
4084 );
4085}
4086#[repr(C)]
4087#[derive(Copy, Clone)]
4088pub union cl_ushort4 {
4089 pub s: [cl_ushort; 4usize],
4090 pub __bindgen_anon_1: cl_ushort4__bindgen_ty_1,
4091 pub __bindgen_anon_2: cl_ushort4__bindgen_ty_2,
4092 pub __bindgen_anon_3: cl_ushort4__bindgen_ty_3,
4093 pub v4: __cl_ushort4,
4094}
4095#[repr(C)]
4096#[derive(Debug, Copy, Clone)]
4097pub struct cl_ushort4__bindgen_ty_1 {
4098 pub x: cl_ushort,
4099 pub y: cl_ushort,
4100 pub z: cl_ushort,
4101 pub w: cl_ushort,
4102}
4103#[test]
4104fn bindgen_test_layout_cl_ushort4__bindgen_ty_1() {
4105 const UNINIT: ::std::mem::MaybeUninit<cl_ushort4__bindgen_ty_1> =
4106 ::std::mem::MaybeUninit::uninit();
4107 let ptr = UNINIT.as_ptr();
4108 assert_eq!(
4109 ::std::mem::size_of::<cl_ushort4__bindgen_ty_1>(),
4110 8usize,
4111 concat!("Size of: ", stringify!(cl_ushort4__bindgen_ty_1))
4112 );
4113 assert_eq!(
4114 ::std::mem::align_of::<cl_ushort4__bindgen_ty_1>(),
4115 2usize,
4116 concat!("Alignment of ", stringify!(cl_ushort4__bindgen_ty_1))
4117 );
4118 assert_eq!(
4119 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
4120 0usize,
4121 concat!(
4122 "Offset of field: ",
4123 stringify!(cl_ushort4__bindgen_ty_1),
4124 "::",
4125 stringify!(x)
4126 )
4127 );
4128 assert_eq!(
4129 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
4130 2usize,
4131 concat!(
4132 "Offset of field: ",
4133 stringify!(cl_ushort4__bindgen_ty_1),
4134 "::",
4135 stringify!(y)
4136 )
4137 );
4138 assert_eq!(
4139 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
4140 4usize,
4141 concat!(
4142 "Offset of field: ",
4143 stringify!(cl_ushort4__bindgen_ty_1),
4144 "::",
4145 stringify!(z)
4146 )
4147 );
4148 assert_eq!(
4149 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
4150 6usize,
4151 concat!(
4152 "Offset of field: ",
4153 stringify!(cl_ushort4__bindgen_ty_1),
4154 "::",
4155 stringify!(w)
4156 )
4157 );
4158}
4159#[repr(C)]
4160#[derive(Debug, Copy, Clone)]
4161pub struct cl_ushort4__bindgen_ty_2 {
4162 pub s0: cl_ushort,
4163 pub s1: cl_ushort,
4164 pub s2: cl_ushort,
4165 pub s3: cl_ushort,
4166}
4167#[test]
4168fn bindgen_test_layout_cl_ushort4__bindgen_ty_2() {
4169 const UNINIT: ::std::mem::MaybeUninit<cl_ushort4__bindgen_ty_2> =
4170 ::std::mem::MaybeUninit::uninit();
4171 let ptr = UNINIT.as_ptr();
4172 assert_eq!(
4173 ::std::mem::size_of::<cl_ushort4__bindgen_ty_2>(),
4174 8usize,
4175 concat!("Size of: ", stringify!(cl_ushort4__bindgen_ty_2))
4176 );
4177 assert_eq!(
4178 ::std::mem::align_of::<cl_ushort4__bindgen_ty_2>(),
4179 2usize,
4180 concat!("Alignment of ", stringify!(cl_ushort4__bindgen_ty_2))
4181 );
4182 assert_eq!(
4183 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
4184 0usize,
4185 concat!(
4186 "Offset of field: ",
4187 stringify!(cl_ushort4__bindgen_ty_2),
4188 "::",
4189 stringify!(s0)
4190 )
4191 );
4192 assert_eq!(
4193 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
4194 2usize,
4195 concat!(
4196 "Offset of field: ",
4197 stringify!(cl_ushort4__bindgen_ty_2),
4198 "::",
4199 stringify!(s1)
4200 )
4201 );
4202 assert_eq!(
4203 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
4204 4usize,
4205 concat!(
4206 "Offset of field: ",
4207 stringify!(cl_ushort4__bindgen_ty_2),
4208 "::",
4209 stringify!(s2)
4210 )
4211 );
4212 assert_eq!(
4213 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
4214 6usize,
4215 concat!(
4216 "Offset of field: ",
4217 stringify!(cl_ushort4__bindgen_ty_2),
4218 "::",
4219 stringify!(s3)
4220 )
4221 );
4222}
4223#[repr(C)]
4224#[derive(Copy, Clone)]
4225pub struct cl_ushort4__bindgen_ty_3 {
4226 pub lo: cl_ushort2,
4227 pub hi: cl_ushort2,
4228}
4229#[test]
4230fn bindgen_test_layout_cl_ushort4__bindgen_ty_3() {
4231 const UNINIT: ::std::mem::MaybeUninit<cl_ushort4__bindgen_ty_3> =
4232 ::std::mem::MaybeUninit::uninit();
4233 let ptr = UNINIT.as_ptr();
4234 assert_eq!(
4235 ::std::mem::size_of::<cl_ushort4__bindgen_ty_3>(),
4236 8usize,
4237 concat!("Size of: ", stringify!(cl_ushort4__bindgen_ty_3))
4238 );
4239 assert_eq!(
4240 ::std::mem::align_of::<cl_ushort4__bindgen_ty_3>(),
4241 2usize,
4242 concat!("Alignment of ", stringify!(cl_ushort4__bindgen_ty_3))
4243 );
4244 assert_eq!(
4245 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
4246 0usize,
4247 concat!(
4248 "Offset of field: ",
4249 stringify!(cl_ushort4__bindgen_ty_3),
4250 "::",
4251 stringify!(lo)
4252 )
4253 );
4254 assert_eq!(
4255 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
4256 4usize,
4257 concat!(
4258 "Offset of field: ",
4259 stringify!(cl_ushort4__bindgen_ty_3),
4260 "::",
4261 stringify!(hi)
4262 )
4263 );
4264}
4265#[test]
4266fn bindgen_test_layout_cl_ushort4() {
4267 const UNINIT: ::std::mem::MaybeUninit<cl_ushort4> = ::std::mem::MaybeUninit::uninit();
4268 let ptr = UNINIT.as_ptr();
4269 assert_eq!(
4270 ::std::mem::size_of::<cl_ushort4>(),
4271 8usize,
4272 concat!("Size of: ", stringify!(cl_ushort4))
4273 );
4274 assert_eq!(
4275 ::std::mem::align_of::<cl_ushort4>(),
4276 8usize,
4277 concat!("Alignment of ", stringify!(cl_ushort4))
4278 );
4279 assert_eq!(
4280 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
4281 0usize,
4282 concat!(
4283 "Offset of field: ",
4284 stringify!(cl_ushort4),
4285 "::",
4286 stringify!(s)
4287 )
4288 );
4289 assert_eq!(
4290 unsafe { ::std::ptr::addr_of!((*ptr).v4) as usize - ptr as usize },
4291 0usize,
4292 concat!(
4293 "Offset of field: ",
4294 stringify!(cl_ushort4),
4295 "::",
4296 stringify!(v4)
4297 )
4298 );
4299}
4300pub type cl_ushort3 = cl_ushort4;
4301#[repr(C)]
4302#[repr(align(16))]
4303#[derive(Copy, Clone)]
4304pub union cl_ushort8 {
4305 pub s: [cl_ushort; 8usize],
4306 pub __bindgen_anon_1: cl_ushort8__bindgen_ty_1,
4307 pub __bindgen_anon_2: cl_ushort8__bindgen_ty_2,
4308 pub __bindgen_anon_3: cl_ushort8__bindgen_ty_3,
4309 pub v4: [__cl_ushort4; 2usize],
4310 pub v8: __cl_ushort8,
4311}
4312#[repr(C)]
4313#[derive(Debug, Copy, Clone)]
4314pub struct cl_ushort8__bindgen_ty_1 {
4315 pub x: cl_ushort,
4316 pub y: cl_ushort,
4317 pub z: cl_ushort,
4318 pub w: cl_ushort,
4319}
4320#[test]
4321fn bindgen_test_layout_cl_ushort8__bindgen_ty_1() {
4322 const UNINIT: ::std::mem::MaybeUninit<cl_ushort8__bindgen_ty_1> =
4323 ::std::mem::MaybeUninit::uninit();
4324 let ptr = UNINIT.as_ptr();
4325 assert_eq!(
4326 ::std::mem::size_of::<cl_ushort8__bindgen_ty_1>(),
4327 8usize,
4328 concat!("Size of: ", stringify!(cl_ushort8__bindgen_ty_1))
4329 );
4330 assert_eq!(
4331 ::std::mem::align_of::<cl_ushort8__bindgen_ty_1>(),
4332 2usize,
4333 concat!("Alignment of ", stringify!(cl_ushort8__bindgen_ty_1))
4334 );
4335 assert_eq!(
4336 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
4337 0usize,
4338 concat!(
4339 "Offset of field: ",
4340 stringify!(cl_ushort8__bindgen_ty_1),
4341 "::",
4342 stringify!(x)
4343 )
4344 );
4345 assert_eq!(
4346 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
4347 2usize,
4348 concat!(
4349 "Offset of field: ",
4350 stringify!(cl_ushort8__bindgen_ty_1),
4351 "::",
4352 stringify!(y)
4353 )
4354 );
4355 assert_eq!(
4356 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
4357 4usize,
4358 concat!(
4359 "Offset of field: ",
4360 stringify!(cl_ushort8__bindgen_ty_1),
4361 "::",
4362 stringify!(z)
4363 )
4364 );
4365 assert_eq!(
4366 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
4367 6usize,
4368 concat!(
4369 "Offset of field: ",
4370 stringify!(cl_ushort8__bindgen_ty_1),
4371 "::",
4372 stringify!(w)
4373 )
4374 );
4375}
4376#[repr(C)]
4377#[derive(Debug, Copy, Clone)]
4378pub struct cl_ushort8__bindgen_ty_2 {
4379 pub s0: cl_ushort,
4380 pub s1: cl_ushort,
4381 pub s2: cl_ushort,
4382 pub s3: cl_ushort,
4383 pub s4: cl_ushort,
4384 pub s5: cl_ushort,
4385 pub s6: cl_ushort,
4386 pub s7: cl_ushort,
4387}
4388#[test]
4389fn bindgen_test_layout_cl_ushort8__bindgen_ty_2() {
4390 const UNINIT: ::std::mem::MaybeUninit<cl_ushort8__bindgen_ty_2> =
4391 ::std::mem::MaybeUninit::uninit();
4392 let ptr = UNINIT.as_ptr();
4393 assert_eq!(
4394 ::std::mem::size_of::<cl_ushort8__bindgen_ty_2>(),
4395 16usize,
4396 concat!("Size of: ", stringify!(cl_ushort8__bindgen_ty_2))
4397 );
4398 assert_eq!(
4399 ::std::mem::align_of::<cl_ushort8__bindgen_ty_2>(),
4400 2usize,
4401 concat!("Alignment of ", stringify!(cl_ushort8__bindgen_ty_2))
4402 );
4403 assert_eq!(
4404 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
4405 0usize,
4406 concat!(
4407 "Offset of field: ",
4408 stringify!(cl_ushort8__bindgen_ty_2),
4409 "::",
4410 stringify!(s0)
4411 )
4412 );
4413 assert_eq!(
4414 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
4415 2usize,
4416 concat!(
4417 "Offset of field: ",
4418 stringify!(cl_ushort8__bindgen_ty_2),
4419 "::",
4420 stringify!(s1)
4421 )
4422 );
4423 assert_eq!(
4424 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
4425 4usize,
4426 concat!(
4427 "Offset of field: ",
4428 stringify!(cl_ushort8__bindgen_ty_2),
4429 "::",
4430 stringify!(s2)
4431 )
4432 );
4433 assert_eq!(
4434 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
4435 6usize,
4436 concat!(
4437 "Offset of field: ",
4438 stringify!(cl_ushort8__bindgen_ty_2),
4439 "::",
4440 stringify!(s3)
4441 )
4442 );
4443 assert_eq!(
4444 unsafe { ::std::ptr::addr_of!((*ptr).s4) as usize - ptr as usize },
4445 8usize,
4446 concat!(
4447 "Offset of field: ",
4448 stringify!(cl_ushort8__bindgen_ty_2),
4449 "::",
4450 stringify!(s4)
4451 )
4452 );
4453 assert_eq!(
4454 unsafe { ::std::ptr::addr_of!((*ptr).s5) as usize - ptr as usize },
4455 10usize,
4456 concat!(
4457 "Offset of field: ",
4458 stringify!(cl_ushort8__bindgen_ty_2),
4459 "::",
4460 stringify!(s5)
4461 )
4462 );
4463 assert_eq!(
4464 unsafe { ::std::ptr::addr_of!((*ptr).s6) as usize - ptr as usize },
4465 12usize,
4466 concat!(
4467 "Offset of field: ",
4468 stringify!(cl_ushort8__bindgen_ty_2),
4469 "::",
4470 stringify!(s6)
4471 )
4472 );
4473 assert_eq!(
4474 unsafe { ::std::ptr::addr_of!((*ptr).s7) as usize - ptr as usize },
4475 14usize,
4476 concat!(
4477 "Offset of field: ",
4478 stringify!(cl_ushort8__bindgen_ty_2),
4479 "::",
4480 stringify!(s7)
4481 )
4482 );
4483}
4484#[repr(C)]
4485#[derive(Copy, Clone)]
4486pub struct cl_ushort8__bindgen_ty_3 {
4487 pub lo: cl_ushort4,
4488 pub hi: cl_ushort4,
4489}
4490#[test]
4491fn bindgen_test_layout_cl_ushort8__bindgen_ty_3() {
4492 const UNINIT: ::std::mem::MaybeUninit<cl_ushort8__bindgen_ty_3> =
4493 ::std::mem::MaybeUninit::uninit();
4494 let ptr = UNINIT.as_ptr();
4495 assert_eq!(
4496 ::std::mem::size_of::<cl_ushort8__bindgen_ty_3>(),
4497 16usize,
4498 concat!("Size of: ", stringify!(cl_ushort8__bindgen_ty_3))
4499 );
4500 assert_eq!(
4501 ::std::mem::align_of::<cl_ushort8__bindgen_ty_3>(),
4502 8usize,
4503 concat!("Alignment of ", stringify!(cl_ushort8__bindgen_ty_3))
4504 );
4505 assert_eq!(
4506 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
4507 0usize,
4508 concat!(
4509 "Offset of field: ",
4510 stringify!(cl_ushort8__bindgen_ty_3),
4511 "::",
4512 stringify!(lo)
4513 )
4514 );
4515 assert_eq!(
4516 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
4517 8usize,
4518 concat!(
4519 "Offset of field: ",
4520 stringify!(cl_ushort8__bindgen_ty_3),
4521 "::",
4522 stringify!(hi)
4523 )
4524 );
4525}
4526#[test]
4527fn bindgen_test_layout_cl_ushort8() {
4528 const UNINIT: ::std::mem::MaybeUninit<cl_ushort8> = ::std::mem::MaybeUninit::uninit();
4529 let ptr = UNINIT.as_ptr();
4530 assert_eq!(
4531 ::std::mem::size_of::<cl_ushort8>(),
4532 16usize,
4533 concat!("Size of: ", stringify!(cl_ushort8))
4534 );
4535 assert_eq!(
4536 ::std::mem::align_of::<cl_ushort8>(),
4537 16usize,
4538 concat!("Alignment of ", stringify!(cl_ushort8))
4539 );
4540 assert_eq!(
4541 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
4542 0usize,
4543 concat!(
4544 "Offset of field: ",
4545 stringify!(cl_ushort8),
4546 "::",
4547 stringify!(s)
4548 )
4549 );
4550 assert_eq!(
4551 unsafe { ::std::ptr::addr_of!((*ptr).v4) as usize - ptr as usize },
4552 0usize,
4553 concat!(
4554 "Offset of field: ",
4555 stringify!(cl_ushort8),
4556 "::",
4557 stringify!(v4)
4558 )
4559 );
4560 assert_eq!(
4561 unsafe { ::std::ptr::addr_of!((*ptr).v8) as usize - ptr as usize },
4562 0usize,
4563 concat!(
4564 "Offset of field: ",
4565 stringify!(cl_ushort8),
4566 "::",
4567 stringify!(v8)
4568 )
4569 );
4570}
4571#[repr(C)]
4572#[repr(align(16))]
4573#[derive(Copy, Clone)]
4574pub union cl_ushort16 {
4575 pub s: [cl_ushort; 16usize],
4576 pub __bindgen_anon_1: cl_ushort16__bindgen_ty_1,
4577 pub __bindgen_anon_2: cl_ushort16__bindgen_ty_2,
4578 pub __bindgen_anon_3: cl_ushort16__bindgen_ty_3,
4579 pub v4: [__cl_ushort4; 4usize],
4580 pub v8: [__cl_ushort8; 2usize],
4581}
4582#[repr(C)]
4583#[derive(Debug, Copy, Clone)]
4584pub struct cl_ushort16__bindgen_ty_1 {
4585 pub x: cl_ushort,
4586 pub y: cl_ushort,
4587 pub z: cl_ushort,
4588 pub w: cl_ushort,
4589 pub __spacer4: cl_ushort,
4590 pub __spacer5: cl_ushort,
4591 pub __spacer6: cl_ushort,
4592 pub __spacer7: cl_ushort,
4593 pub __spacer8: cl_ushort,
4594 pub __spacer9: cl_ushort,
4595 pub sa: cl_ushort,
4596 pub sb: cl_ushort,
4597 pub sc: cl_ushort,
4598 pub sd: cl_ushort,
4599 pub se: cl_ushort,
4600 pub sf: cl_ushort,
4601}
4602#[test]
4603fn bindgen_test_layout_cl_ushort16__bindgen_ty_1() {
4604 const UNINIT: ::std::mem::MaybeUninit<cl_ushort16__bindgen_ty_1> =
4605 ::std::mem::MaybeUninit::uninit();
4606 let ptr = UNINIT.as_ptr();
4607 assert_eq!(
4608 ::std::mem::size_of::<cl_ushort16__bindgen_ty_1>(),
4609 32usize,
4610 concat!("Size of: ", stringify!(cl_ushort16__bindgen_ty_1))
4611 );
4612 assert_eq!(
4613 ::std::mem::align_of::<cl_ushort16__bindgen_ty_1>(),
4614 2usize,
4615 concat!("Alignment of ", stringify!(cl_ushort16__bindgen_ty_1))
4616 );
4617 assert_eq!(
4618 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
4619 0usize,
4620 concat!(
4621 "Offset of field: ",
4622 stringify!(cl_ushort16__bindgen_ty_1),
4623 "::",
4624 stringify!(x)
4625 )
4626 );
4627 assert_eq!(
4628 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
4629 2usize,
4630 concat!(
4631 "Offset of field: ",
4632 stringify!(cl_ushort16__bindgen_ty_1),
4633 "::",
4634 stringify!(y)
4635 )
4636 );
4637 assert_eq!(
4638 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
4639 4usize,
4640 concat!(
4641 "Offset of field: ",
4642 stringify!(cl_ushort16__bindgen_ty_1),
4643 "::",
4644 stringify!(z)
4645 )
4646 );
4647 assert_eq!(
4648 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
4649 6usize,
4650 concat!(
4651 "Offset of field: ",
4652 stringify!(cl_ushort16__bindgen_ty_1),
4653 "::",
4654 stringify!(w)
4655 )
4656 );
4657 assert_eq!(
4658 unsafe { ::std::ptr::addr_of!((*ptr).__spacer4) as usize - ptr as usize },
4659 8usize,
4660 concat!(
4661 "Offset of field: ",
4662 stringify!(cl_ushort16__bindgen_ty_1),
4663 "::",
4664 stringify!(__spacer4)
4665 )
4666 );
4667 assert_eq!(
4668 unsafe { ::std::ptr::addr_of!((*ptr).__spacer5) as usize - ptr as usize },
4669 10usize,
4670 concat!(
4671 "Offset of field: ",
4672 stringify!(cl_ushort16__bindgen_ty_1),
4673 "::",
4674 stringify!(__spacer5)
4675 )
4676 );
4677 assert_eq!(
4678 unsafe { ::std::ptr::addr_of!((*ptr).__spacer6) as usize - ptr as usize },
4679 12usize,
4680 concat!(
4681 "Offset of field: ",
4682 stringify!(cl_ushort16__bindgen_ty_1),
4683 "::",
4684 stringify!(__spacer6)
4685 )
4686 );
4687 assert_eq!(
4688 unsafe { ::std::ptr::addr_of!((*ptr).__spacer7) as usize - ptr as usize },
4689 14usize,
4690 concat!(
4691 "Offset of field: ",
4692 stringify!(cl_ushort16__bindgen_ty_1),
4693 "::",
4694 stringify!(__spacer7)
4695 )
4696 );
4697 assert_eq!(
4698 unsafe { ::std::ptr::addr_of!((*ptr).__spacer8) as usize - ptr as usize },
4699 16usize,
4700 concat!(
4701 "Offset of field: ",
4702 stringify!(cl_ushort16__bindgen_ty_1),
4703 "::",
4704 stringify!(__spacer8)
4705 )
4706 );
4707 assert_eq!(
4708 unsafe { ::std::ptr::addr_of!((*ptr).__spacer9) as usize - ptr as usize },
4709 18usize,
4710 concat!(
4711 "Offset of field: ",
4712 stringify!(cl_ushort16__bindgen_ty_1),
4713 "::",
4714 stringify!(__spacer9)
4715 )
4716 );
4717 assert_eq!(
4718 unsafe { ::std::ptr::addr_of!((*ptr).sa) as usize - ptr as usize },
4719 20usize,
4720 concat!(
4721 "Offset of field: ",
4722 stringify!(cl_ushort16__bindgen_ty_1),
4723 "::",
4724 stringify!(sa)
4725 )
4726 );
4727 assert_eq!(
4728 unsafe { ::std::ptr::addr_of!((*ptr).sb) as usize - ptr as usize },
4729 22usize,
4730 concat!(
4731 "Offset of field: ",
4732 stringify!(cl_ushort16__bindgen_ty_1),
4733 "::",
4734 stringify!(sb)
4735 )
4736 );
4737 assert_eq!(
4738 unsafe { ::std::ptr::addr_of!((*ptr).sc) as usize - ptr as usize },
4739 24usize,
4740 concat!(
4741 "Offset of field: ",
4742 stringify!(cl_ushort16__bindgen_ty_1),
4743 "::",
4744 stringify!(sc)
4745 )
4746 );
4747 assert_eq!(
4748 unsafe { ::std::ptr::addr_of!((*ptr).sd) as usize - ptr as usize },
4749 26usize,
4750 concat!(
4751 "Offset of field: ",
4752 stringify!(cl_ushort16__bindgen_ty_1),
4753 "::",
4754 stringify!(sd)
4755 )
4756 );
4757 assert_eq!(
4758 unsafe { ::std::ptr::addr_of!((*ptr).se) as usize - ptr as usize },
4759 28usize,
4760 concat!(
4761 "Offset of field: ",
4762 stringify!(cl_ushort16__bindgen_ty_1),
4763 "::",
4764 stringify!(se)
4765 )
4766 );
4767 assert_eq!(
4768 unsafe { ::std::ptr::addr_of!((*ptr).sf) as usize - ptr as usize },
4769 30usize,
4770 concat!(
4771 "Offset of field: ",
4772 stringify!(cl_ushort16__bindgen_ty_1),
4773 "::",
4774 stringify!(sf)
4775 )
4776 );
4777}
4778#[repr(C)]
4779#[derive(Debug, Copy, Clone)]
4780pub struct cl_ushort16__bindgen_ty_2 {
4781 pub s0: cl_ushort,
4782 pub s1: cl_ushort,
4783 pub s2: cl_ushort,
4784 pub s3: cl_ushort,
4785 pub s4: cl_ushort,
4786 pub s5: cl_ushort,
4787 pub s6: cl_ushort,
4788 pub s7: cl_ushort,
4789 pub s8: cl_ushort,
4790 pub s9: cl_ushort,
4791 pub sA: cl_ushort,
4792 pub sB: cl_ushort,
4793 pub sC: cl_ushort,
4794 pub sD: cl_ushort,
4795 pub sE: cl_ushort,
4796 pub sF: cl_ushort,
4797}
4798#[test]
4799fn bindgen_test_layout_cl_ushort16__bindgen_ty_2() {
4800 const UNINIT: ::std::mem::MaybeUninit<cl_ushort16__bindgen_ty_2> =
4801 ::std::mem::MaybeUninit::uninit();
4802 let ptr = UNINIT.as_ptr();
4803 assert_eq!(
4804 ::std::mem::size_of::<cl_ushort16__bindgen_ty_2>(),
4805 32usize,
4806 concat!("Size of: ", stringify!(cl_ushort16__bindgen_ty_2))
4807 );
4808 assert_eq!(
4809 ::std::mem::align_of::<cl_ushort16__bindgen_ty_2>(),
4810 2usize,
4811 concat!("Alignment of ", stringify!(cl_ushort16__bindgen_ty_2))
4812 );
4813 assert_eq!(
4814 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
4815 0usize,
4816 concat!(
4817 "Offset of field: ",
4818 stringify!(cl_ushort16__bindgen_ty_2),
4819 "::",
4820 stringify!(s0)
4821 )
4822 );
4823 assert_eq!(
4824 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
4825 2usize,
4826 concat!(
4827 "Offset of field: ",
4828 stringify!(cl_ushort16__bindgen_ty_2),
4829 "::",
4830 stringify!(s1)
4831 )
4832 );
4833 assert_eq!(
4834 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
4835 4usize,
4836 concat!(
4837 "Offset of field: ",
4838 stringify!(cl_ushort16__bindgen_ty_2),
4839 "::",
4840 stringify!(s2)
4841 )
4842 );
4843 assert_eq!(
4844 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
4845 6usize,
4846 concat!(
4847 "Offset of field: ",
4848 stringify!(cl_ushort16__bindgen_ty_2),
4849 "::",
4850 stringify!(s3)
4851 )
4852 );
4853 assert_eq!(
4854 unsafe { ::std::ptr::addr_of!((*ptr).s4) as usize - ptr as usize },
4855 8usize,
4856 concat!(
4857 "Offset of field: ",
4858 stringify!(cl_ushort16__bindgen_ty_2),
4859 "::",
4860 stringify!(s4)
4861 )
4862 );
4863 assert_eq!(
4864 unsafe { ::std::ptr::addr_of!((*ptr).s5) as usize - ptr as usize },
4865 10usize,
4866 concat!(
4867 "Offset of field: ",
4868 stringify!(cl_ushort16__bindgen_ty_2),
4869 "::",
4870 stringify!(s5)
4871 )
4872 );
4873 assert_eq!(
4874 unsafe { ::std::ptr::addr_of!((*ptr).s6) as usize - ptr as usize },
4875 12usize,
4876 concat!(
4877 "Offset of field: ",
4878 stringify!(cl_ushort16__bindgen_ty_2),
4879 "::",
4880 stringify!(s6)
4881 )
4882 );
4883 assert_eq!(
4884 unsafe { ::std::ptr::addr_of!((*ptr).s7) as usize - ptr as usize },
4885 14usize,
4886 concat!(
4887 "Offset of field: ",
4888 stringify!(cl_ushort16__bindgen_ty_2),
4889 "::",
4890 stringify!(s7)
4891 )
4892 );
4893 assert_eq!(
4894 unsafe { ::std::ptr::addr_of!((*ptr).s8) as usize - ptr as usize },
4895 16usize,
4896 concat!(
4897 "Offset of field: ",
4898 stringify!(cl_ushort16__bindgen_ty_2),
4899 "::",
4900 stringify!(s8)
4901 )
4902 );
4903 assert_eq!(
4904 unsafe { ::std::ptr::addr_of!((*ptr).s9) as usize - ptr as usize },
4905 18usize,
4906 concat!(
4907 "Offset of field: ",
4908 stringify!(cl_ushort16__bindgen_ty_2),
4909 "::",
4910 stringify!(s9)
4911 )
4912 );
4913 assert_eq!(
4914 unsafe { ::std::ptr::addr_of!((*ptr).sA) as usize - ptr as usize },
4915 20usize,
4916 concat!(
4917 "Offset of field: ",
4918 stringify!(cl_ushort16__bindgen_ty_2),
4919 "::",
4920 stringify!(sA)
4921 )
4922 );
4923 assert_eq!(
4924 unsafe { ::std::ptr::addr_of!((*ptr).sB) as usize - ptr as usize },
4925 22usize,
4926 concat!(
4927 "Offset of field: ",
4928 stringify!(cl_ushort16__bindgen_ty_2),
4929 "::",
4930 stringify!(sB)
4931 )
4932 );
4933 assert_eq!(
4934 unsafe { ::std::ptr::addr_of!((*ptr).sC) as usize - ptr as usize },
4935 24usize,
4936 concat!(
4937 "Offset of field: ",
4938 stringify!(cl_ushort16__bindgen_ty_2),
4939 "::",
4940 stringify!(sC)
4941 )
4942 );
4943 assert_eq!(
4944 unsafe { ::std::ptr::addr_of!((*ptr).sD) as usize - ptr as usize },
4945 26usize,
4946 concat!(
4947 "Offset of field: ",
4948 stringify!(cl_ushort16__bindgen_ty_2),
4949 "::",
4950 stringify!(sD)
4951 )
4952 );
4953 assert_eq!(
4954 unsafe { ::std::ptr::addr_of!((*ptr).sE) as usize - ptr as usize },
4955 28usize,
4956 concat!(
4957 "Offset of field: ",
4958 stringify!(cl_ushort16__bindgen_ty_2),
4959 "::",
4960 stringify!(sE)
4961 )
4962 );
4963 assert_eq!(
4964 unsafe { ::std::ptr::addr_of!((*ptr).sF) as usize - ptr as usize },
4965 30usize,
4966 concat!(
4967 "Offset of field: ",
4968 stringify!(cl_ushort16__bindgen_ty_2),
4969 "::",
4970 stringify!(sF)
4971 )
4972 );
4973}
4974#[repr(C)]
4975#[repr(align(16))]
4976#[derive(Copy, Clone)]
4977pub struct cl_ushort16__bindgen_ty_3 {
4978 pub lo: cl_ushort8,
4979 pub hi: cl_ushort8,
4980}
4981#[test]
4982fn bindgen_test_layout_cl_ushort16__bindgen_ty_3() {
4983 const UNINIT: ::std::mem::MaybeUninit<cl_ushort16__bindgen_ty_3> =
4984 ::std::mem::MaybeUninit::uninit();
4985 let ptr = UNINIT.as_ptr();
4986 assert_eq!(
4987 ::std::mem::size_of::<cl_ushort16__bindgen_ty_3>(),
4988 32usize,
4989 concat!("Size of: ", stringify!(cl_ushort16__bindgen_ty_3))
4990 );
4991 assert_eq!(
4992 ::std::mem::align_of::<cl_ushort16__bindgen_ty_3>(),
4993 16usize,
4994 concat!("Alignment of ", stringify!(cl_ushort16__bindgen_ty_3))
4995 );
4996 assert_eq!(
4997 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
4998 0usize,
4999 concat!(
5000 "Offset of field: ",
5001 stringify!(cl_ushort16__bindgen_ty_3),
5002 "::",
5003 stringify!(lo)
5004 )
5005 );
5006 assert_eq!(
5007 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
5008 16usize,
5009 concat!(
5010 "Offset of field: ",
5011 stringify!(cl_ushort16__bindgen_ty_3),
5012 "::",
5013 stringify!(hi)
5014 )
5015 );
5016}
5017#[test]
5018fn bindgen_test_layout_cl_ushort16() {
5019 const UNINIT: ::std::mem::MaybeUninit<cl_ushort16> = ::std::mem::MaybeUninit::uninit();
5020 let ptr = UNINIT.as_ptr();
5021 assert_eq!(
5022 ::std::mem::size_of::<cl_ushort16>(),
5023 32usize,
5024 concat!("Size of: ", stringify!(cl_ushort16))
5025 );
5026 assert_eq!(
5027 ::std::mem::align_of::<cl_ushort16>(),
5028 16usize,
5029 concat!("Alignment of ", stringify!(cl_ushort16))
5030 );
5031 assert_eq!(
5032 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
5033 0usize,
5034 concat!(
5035 "Offset of field: ",
5036 stringify!(cl_ushort16),
5037 "::",
5038 stringify!(s)
5039 )
5040 );
5041 assert_eq!(
5042 unsafe { ::std::ptr::addr_of!((*ptr).v4) as usize - ptr as usize },
5043 0usize,
5044 concat!(
5045 "Offset of field: ",
5046 stringify!(cl_ushort16),
5047 "::",
5048 stringify!(v4)
5049 )
5050 );
5051 assert_eq!(
5052 unsafe { ::std::ptr::addr_of!((*ptr).v8) as usize - ptr as usize },
5053 0usize,
5054 concat!(
5055 "Offset of field: ",
5056 stringify!(cl_ushort16),
5057 "::",
5058 stringify!(v8)
5059 )
5060 );
5061}
5062#[repr(C)]
5063#[derive(Copy, Clone)]
5064pub union cl_half2 {
5065 pub s: [cl_half; 2usize],
5066 pub __bindgen_anon_1: cl_half2__bindgen_ty_1,
5067 pub __bindgen_anon_2: cl_half2__bindgen_ty_2,
5068 pub __bindgen_anon_3: cl_half2__bindgen_ty_3,
5069}
5070#[repr(C)]
5071#[derive(Debug, Copy, Clone)]
5072pub struct cl_half2__bindgen_ty_1 {
5073 pub x: cl_half,
5074 pub y: cl_half,
5075}
5076#[test]
5077fn bindgen_test_layout_cl_half2__bindgen_ty_1() {
5078 const UNINIT: ::std::mem::MaybeUninit<cl_half2__bindgen_ty_1> =
5079 ::std::mem::MaybeUninit::uninit();
5080 let ptr = UNINIT.as_ptr();
5081 assert_eq!(
5082 ::std::mem::size_of::<cl_half2__bindgen_ty_1>(),
5083 4usize,
5084 concat!("Size of: ", stringify!(cl_half2__bindgen_ty_1))
5085 );
5086 assert_eq!(
5087 ::std::mem::align_of::<cl_half2__bindgen_ty_1>(),
5088 2usize,
5089 concat!("Alignment of ", stringify!(cl_half2__bindgen_ty_1))
5090 );
5091 assert_eq!(
5092 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
5093 0usize,
5094 concat!(
5095 "Offset of field: ",
5096 stringify!(cl_half2__bindgen_ty_1),
5097 "::",
5098 stringify!(x)
5099 )
5100 );
5101 assert_eq!(
5102 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
5103 2usize,
5104 concat!(
5105 "Offset of field: ",
5106 stringify!(cl_half2__bindgen_ty_1),
5107 "::",
5108 stringify!(y)
5109 )
5110 );
5111}
5112#[repr(C)]
5113#[derive(Debug, Copy, Clone)]
5114pub struct cl_half2__bindgen_ty_2 {
5115 pub s0: cl_half,
5116 pub s1: cl_half,
5117}
5118#[test]
5119fn bindgen_test_layout_cl_half2__bindgen_ty_2() {
5120 const UNINIT: ::std::mem::MaybeUninit<cl_half2__bindgen_ty_2> =
5121 ::std::mem::MaybeUninit::uninit();
5122 let ptr = UNINIT.as_ptr();
5123 assert_eq!(
5124 ::std::mem::size_of::<cl_half2__bindgen_ty_2>(),
5125 4usize,
5126 concat!("Size of: ", stringify!(cl_half2__bindgen_ty_2))
5127 );
5128 assert_eq!(
5129 ::std::mem::align_of::<cl_half2__bindgen_ty_2>(),
5130 2usize,
5131 concat!("Alignment of ", stringify!(cl_half2__bindgen_ty_2))
5132 );
5133 assert_eq!(
5134 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
5135 0usize,
5136 concat!(
5137 "Offset of field: ",
5138 stringify!(cl_half2__bindgen_ty_2),
5139 "::",
5140 stringify!(s0)
5141 )
5142 );
5143 assert_eq!(
5144 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
5145 2usize,
5146 concat!(
5147 "Offset of field: ",
5148 stringify!(cl_half2__bindgen_ty_2),
5149 "::",
5150 stringify!(s1)
5151 )
5152 );
5153}
5154#[repr(C)]
5155#[derive(Debug, Copy, Clone)]
5156pub struct cl_half2__bindgen_ty_3 {
5157 pub lo: cl_half,
5158 pub hi: cl_half,
5159}
5160#[test]
5161fn bindgen_test_layout_cl_half2__bindgen_ty_3() {
5162 const UNINIT: ::std::mem::MaybeUninit<cl_half2__bindgen_ty_3> =
5163 ::std::mem::MaybeUninit::uninit();
5164 let ptr = UNINIT.as_ptr();
5165 assert_eq!(
5166 ::std::mem::size_of::<cl_half2__bindgen_ty_3>(),
5167 4usize,
5168 concat!("Size of: ", stringify!(cl_half2__bindgen_ty_3))
5169 );
5170 assert_eq!(
5171 ::std::mem::align_of::<cl_half2__bindgen_ty_3>(),
5172 2usize,
5173 concat!("Alignment of ", stringify!(cl_half2__bindgen_ty_3))
5174 );
5175 assert_eq!(
5176 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
5177 0usize,
5178 concat!(
5179 "Offset of field: ",
5180 stringify!(cl_half2__bindgen_ty_3),
5181 "::",
5182 stringify!(lo)
5183 )
5184 );
5185 assert_eq!(
5186 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
5187 2usize,
5188 concat!(
5189 "Offset of field: ",
5190 stringify!(cl_half2__bindgen_ty_3),
5191 "::",
5192 stringify!(hi)
5193 )
5194 );
5195}
5196#[test]
5197fn bindgen_test_layout_cl_half2() {
5198 const UNINIT: ::std::mem::MaybeUninit<cl_half2> = ::std::mem::MaybeUninit::uninit();
5199 let ptr = UNINIT.as_ptr();
5200 assert_eq!(
5201 ::std::mem::size_of::<cl_half2>(),
5202 4usize,
5203 concat!("Size of: ", stringify!(cl_half2))
5204 );
5205 assert_eq!(
5206 ::std::mem::align_of::<cl_half2>(),
5207 2usize,
5208 concat!("Alignment of ", stringify!(cl_half2))
5209 );
5210 assert_eq!(
5211 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
5212 0usize,
5213 concat!(
5214 "Offset of field: ",
5215 stringify!(cl_half2),
5216 "::",
5217 stringify!(s)
5218 )
5219 );
5220}
5221#[repr(C)]
5222#[derive(Copy, Clone)]
5223pub union cl_half4 {
5224 pub s: [cl_half; 4usize],
5225 pub __bindgen_anon_1: cl_half4__bindgen_ty_1,
5226 pub __bindgen_anon_2: cl_half4__bindgen_ty_2,
5227 pub __bindgen_anon_3: cl_half4__bindgen_ty_3,
5228}
5229#[repr(C)]
5230#[derive(Debug, Copy, Clone)]
5231pub struct cl_half4__bindgen_ty_1 {
5232 pub x: cl_half,
5233 pub y: cl_half,
5234 pub z: cl_half,
5235 pub w: cl_half,
5236}
5237#[test]
5238fn bindgen_test_layout_cl_half4__bindgen_ty_1() {
5239 const UNINIT: ::std::mem::MaybeUninit<cl_half4__bindgen_ty_1> =
5240 ::std::mem::MaybeUninit::uninit();
5241 let ptr = UNINIT.as_ptr();
5242 assert_eq!(
5243 ::std::mem::size_of::<cl_half4__bindgen_ty_1>(),
5244 8usize,
5245 concat!("Size of: ", stringify!(cl_half4__bindgen_ty_1))
5246 );
5247 assert_eq!(
5248 ::std::mem::align_of::<cl_half4__bindgen_ty_1>(),
5249 2usize,
5250 concat!("Alignment of ", stringify!(cl_half4__bindgen_ty_1))
5251 );
5252 assert_eq!(
5253 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
5254 0usize,
5255 concat!(
5256 "Offset of field: ",
5257 stringify!(cl_half4__bindgen_ty_1),
5258 "::",
5259 stringify!(x)
5260 )
5261 );
5262 assert_eq!(
5263 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
5264 2usize,
5265 concat!(
5266 "Offset of field: ",
5267 stringify!(cl_half4__bindgen_ty_1),
5268 "::",
5269 stringify!(y)
5270 )
5271 );
5272 assert_eq!(
5273 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
5274 4usize,
5275 concat!(
5276 "Offset of field: ",
5277 stringify!(cl_half4__bindgen_ty_1),
5278 "::",
5279 stringify!(z)
5280 )
5281 );
5282 assert_eq!(
5283 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
5284 6usize,
5285 concat!(
5286 "Offset of field: ",
5287 stringify!(cl_half4__bindgen_ty_1),
5288 "::",
5289 stringify!(w)
5290 )
5291 );
5292}
5293#[repr(C)]
5294#[derive(Debug, Copy, Clone)]
5295pub struct cl_half4__bindgen_ty_2 {
5296 pub s0: cl_half,
5297 pub s1: cl_half,
5298 pub s2: cl_half,
5299 pub s3: cl_half,
5300}
5301#[test]
5302fn bindgen_test_layout_cl_half4__bindgen_ty_2() {
5303 const UNINIT: ::std::mem::MaybeUninit<cl_half4__bindgen_ty_2> =
5304 ::std::mem::MaybeUninit::uninit();
5305 let ptr = UNINIT.as_ptr();
5306 assert_eq!(
5307 ::std::mem::size_of::<cl_half4__bindgen_ty_2>(),
5308 8usize,
5309 concat!("Size of: ", stringify!(cl_half4__bindgen_ty_2))
5310 );
5311 assert_eq!(
5312 ::std::mem::align_of::<cl_half4__bindgen_ty_2>(),
5313 2usize,
5314 concat!("Alignment of ", stringify!(cl_half4__bindgen_ty_2))
5315 );
5316 assert_eq!(
5317 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
5318 0usize,
5319 concat!(
5320 "Offset of field: ",
5321 stringify!(cl_half4__bindgen_ty_2),
5322 "::",
5323 stringify!(s0)
5324 )
5325 );
5326 assert_eq!(
5327 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
5328 2usize,
5329 concat!(
5330 "Offset of field: ",
5331 stringify!(cl_half4__bindgen_ty_2),
5332 "::",
5333 stringify!(s1)
5334 )
5335 );
5336 assert_eq!(
5337 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
5338 4usize,
5339 concat!(
5340 "Offset of field: ",
5341 stringify!(cl_half4__bindgen_ty_2),
5342 "::",
5343 stringify!(s2)
5344 )
5345 );
5346 assert_eq!(
5347 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
5348 6usize,
5349 concat!(
5350 "Offset of field: ",
5351 stringify!(cl_half4__bindgen_ty_2),
5352 "::",
5353 stringify!(s3)
5354 )
5355 );
5356}
5357#[repr(C)]
5358#[derive(Copy, Clone)]
5359pub struct cl_half4__bindgen_ty_3 {
5360 pub lo: cl_half2,
5361 pub hi: cl_half2,
5362}
5363#[test]
5364fn bindgen_test_layout_cl_half4__bindgen_ty_3() {
5365 const UNINIT: ::std::mem::MaybeUninit<cl_half4__bindgen_ty_3> =
5366 ::std::mem::MaybeUninit::uninit();
5367 let ptr = UNINIT.as_ptr();
5368 assert_eq!(
5369 ::std::mem::size_of::<cl_half4__bindgen_ty_3>(),
5370 8usize,
5371 concat!("Size of: ", stringify!(cl_half4__bindgen_ty_3))
5372 );
5373 assert_eq!(
5374 ::std::mem::align_of::<cl_half4__bindgen_ty_3>(),
5375 2usize,
5376 concat!("Alignment of ", stringify!(cl_half4__bindgen_ty_3))
5377 );
5378 assert_eq!(
5379 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
5380 0usize,
5381 concat!(
5382 "Offset of field: ",
5383 stringify!(cl_half4__bindgen_ty_3),
5384 "::",
5385 stringify!(lo)
5386 )
5387 );
5388 assert_eq!(
5389 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
5390 4usize,
5391 concat!(
5392 "Offset of field: ",
5393 stringify!(cl_half4__bindgen_ty_3),
5394 "::",
5395 stringify!(hi)
5396 )
5397 );
5398}
5399#[test]
5400fn bindgen_test_layout_cl_half4() {
5401 const UNINIT: ::std::mem::MaybeUninit<cl_half4> = ::std::mem::MaybeUninit::uninit();
5402 let ptr = UNINIT.as_ptr();
5403 assert_eq!(
5404 ::std::mem::size_of::<cl_half4>(),
5405 8usize,
5406 concat!("Size of: ", stringify!(cl_half4))
5407 );
5408 assert_eq!(
5409 ::std::mem::align_of::<cl_half4>(),
5410 2usize,
5411 concat!("Alignment of ", stringify!(cl_half4))
5412 );
5413 assert_eq!(
5414 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
5415 0usize,
5416 concat!(
5417 "Offset of field: ",
5418 stringify!(cl_half4),
5419 "::",
5420 stringify!(s)
5421 )
5422 );
5423}
5424pub type cl_half3 = cl_half4;
5425#[repr(C)]
5426#[derive(Copy, Clone)]
5427pub union cl_half8 {
5428 pub s: [cl_half; 8usize],
5429 pub __bindgen_anon_1: cl_half8__bindgen_ty_1,
5430 pub __bindgen_anon_2: cl_half8__bindgen_ty_2,
5431 pub __bindgen_anon_3: cl_half8__bindgen_ty_3,
5432}
5433#[repr(C)]
5434#[derive(Debug, Copy, Clone)]
5435pub struct cl_half8__bindgen_ty_1 {
5436 pub x: cl_half,
5437 pub y: cl_half,
5438 pub z: cl_half,
5439 pub w: cl_half,
5440}
5441#[test]
5442fn bindgen_test_layout_cl_half8__bindgen_ty_1() {
5443 const UNINIT: ::std::mem::MaybeUninit<cl_half8__bindgen_ty_1> =
5444 ::std::mem::MaybeUninit::uninit();
5445 let ptr = UNINIT.as_ptr();
5446 assert_eq!(
5447 ::std::mem::size_of::<cl_half8__bindgen_ty_1>(),
5448 8usize,
5449 concat!("Size of: ", stringify!(cl_half8__bindgen_ty_1))
5450 );
5451 assert_eq!(
5452 ::std::mem::align_of::<cl_half8__bindgen_ty_1>(),
5453 2usize,
5454 concat!("Alignment of ", stringify!(cl_half8__bindgen_ty_1))
5455 );
5456 assert_eq!(
5457 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
5458 0usize,
5459 concat!(
5460 "Offset of field: ",
5461 stringify!(cl_half8__bindgen_ty_1),
5462 "::",
5463 stringify!(x)
5464 )
5465 );
5466 assert_eq!(
5467 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
5468 2usize,
5469 concat!(
5470 "Offset of field: ",
5471 stringify!(cl_half8__bindgen_ty_1),
5472 "::",
5473 stringify!(y)
5474 )
5475 );
5476 assert_eq!(
5477 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
5478 4usize,
5479 concat!(
5480 "Offset of field: ",
5481 stringify!(cl_half8__bindgen_ty_1),
5482 "::",
5483 stringify!(z)
5484 )
5485 );
5486 assert_eq!(
5487 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
5488 6usize,
5489 concat!(
5490 "Offset of field: ",
5491 stringify!(cl_half8__bindgen_ty_1),
5492 "::",
5493 stringify!(w)
5494 )
5495 );
5496}
5497#[repr(C)]
5498#[derive(Debug, Copy, Clone)]
5499pub struct cl_half8__bindgen_ty_2 {
5500 pub s0: cl_half,
5501 pub s1: cl_half,
5502 pub s2: cl_half,
5503 pub s3: cl_half,
5504 pub s4: cl_half,
5505 pub s5: cl_half,
5506 pub s6: cl_half,
5507 pub s7: cl_half,
5508}
5509#[test]
5510fn bindgen_test_layout_cl_half8__bindgen_ty_2() {
5511 const UNINIT: ::std::mem::MaybeUninit<cl_half8__bindgen_ty_2> =
5512 ::std::mem::MaybeUninit::uninit();
5513 let ptr = UNINIT.as_ptr();
5514 assert_eq!(
5515 ::std::mem::size_of::<cl_half8__bindgen_ty_2>(),
5516 16usize,
5517 concat!("Size of: ", stringify!(cl_half8__bindgen_ty_2))
5518 );
5519 assert_eq!(
5520 ::std::mem::align_of::<cl_half8__bindgen_ty_2>(),
5521 2usize,
5522 concat!("Alignment of ", stringify!(cl_half8__bindgen_ty_2))
5523 );
5524 assert_eq!(
5525 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
5526 0usize,
5527 concat!(
5528 "Offset of field: ",
5529 stringify!(cl_half8__bindgen_ty_2),
5530 "::",
5531 stringify!(s0)
5532 )
5533 );
5534 assert_eq!(
5535 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
5536 2usize,
5537 concat!(
5538 "Offset of field: ",
5539 stringify!(cl_half8__bindgen_ty_2),
5540 "::",
5541 stringify!(s1)
5542 )
5543 );
5544 assert_eq!(
5545 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
5546 4usize,
5547 concat!(
5548 "Offset of field: ",
5549 stringify!(cl_half8__bindgen_ty_2),
5550 "::",
5551 stringify!(s2)
5552 )
5553 );
5554 assert_eq!(
5555 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
5556 6usize,
5557 concat!(
5558 "Offset of field: ",
5559 stringify!(cl_half8__bindgen_ty_2),
5560 "::",
5561 stringify!(s3)
5562 )
5563 );
5564 assert_eq!(
5565 unsafe { ::std::ptr::addr_of!((*ptr).s4) as usize - ptr as usize },
5566 8usize,
5567 concat!(
5568 "Offset of field: ",
5569 stringify!(cl_half8__bindgen_ty_2),
5570 "::",
5571 stringify!(s4)
5572 )
5573 );
5574 assert_eq!(
5575 unsafe { ::std::ptr::addr_of!((*ptr).s5) as usize - ptr as usize },
5576 10usize,
5577 concat!(
5578 "Offset of field: ",
5579 stringify!(cl_half8__bindgen_ty_2),
5580 "::",
5581 stringify!(s5)
5582 )
5583 );
5584 assert_eq!(
5585 unsafe { ::std::ptr::addr_of!((*ptr).s6) as usize - ptr as usize },
5586 12usize,
5587 concat!(
5588 "Offset of field: ",
5589 stringify!(cl_half8__bindgen_ty_2),
5590 "::",
5591 stringify!(s6)
5592 )
5593 );
5594 assert_eq!(
5595 unsafe { ::std::ptr::addr_of!((*ptr).s7) as usize - ptr as usize },
5596 14usize,
5597 concat!(
5598 "Offset of field: ",
5599 stringify!(cl_half8__bindgen_ty_2),
5600 "::",
5601 stringify!(s7)
5602 )
5603 );
5604}
5605#[repr(C)]
5606#[derive(Copy, Clone)]
5607pub struct cl_half8__bindgen_ty_3 {
5608 pub lo: cl_half4,
5609 pub hi: cl_half4,
5610}
5611#[test]
5612fn bindgen_test_layout_cl_half8__bindgen_ty_3() {
5613 const UNINIT: ::std::mem::MaybeUninit<cl_half8__bindgen_ty_3> =
5614 ::std::mem::MaybeUninit::uninit();
5615 let ptr = UNINIT.as_ptr();
5616 assert_eq!(
5617 ::std::mem::size_of::<cl_half8__bindgen_ty_3>(),
5618 16usize,
5619 concat!("Size of: ", stringify!(cl_half8__bindgen_ty_3))
5620 );
5621 assert_eq!(
5622 ::std::mem::align_of::<cl_half8__bindgen_ty_3>(),
5623 2usize,
5624 concat!("Alignment of ", stringify!(cl_half8__bindgen_ty_3))
5625 );
5626 assert_eq!(
5627 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
5628 0usize,
5629 concat!(
5630 "Offset of field: ",
5631 stringify!(cl_half8__bindgen_ty_3),
5632 "::",
5633 stringify!(lo)
5634 )
5635 );
5636 assert_eq!(
5637 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
5638 8usize,
5639 concat!(
5640 "Offset of field: ",
5641 stringify!(cl_half8__bindgen_ty_3),
5642 "::",
5643 stringify!(hi)
5644 )
5645 );
5646}
5647#[test]
5648fn bindgen_test_layout_cl_half8() {
5649 const UNINIT: ::std::mem::MaybeUninit<cl_half8> = ::std::mem::MaybeUninit::uninit();
5650 let ptr = UNINIT.as_ptr();
5651 assert_eq!(
5652 ::std::mem::size_of::<cl_half8>(),
5653 16usize,
5654 concat!("Size of: ", stringify!(cl_half8))
5655 );
5656 assert_eq!(
5657 ::std::mem::align_of::<cl_half8>(),
5658 2usize,
5659 concat!("Alignment of ", stringify!(cl_half8))
5660 );
5661 assert_eq!(
5662 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
5663 0usize,
5664 concat!(
5665 "Offset of field: ",
5666 stringify!(cl_half8),
5667 "::",
5668 stringify!(s)
5669 )
5670 );
5671}
5672#[repr(C)]
5673#[derive(Copy, Clone)]
5674pub union cl_half16 {
5675 pub s: [cl_half; 16usize],
5676 pub __bindgen_anon_1: cl_half16__bindgen_ty_1,
5677 pub __bindgen_anon_2: cl_half16__bindgen_ty_2,
5678 pub __bindgen_anon_3: cl_half16__bindgen_ty_3,
5679}
5680#[repr(C)]
5681#[derive(Debug, Copy, Clone)]
5682pub struct cl_half16__bindgen_ty_1 {
5683 pub x: cl_half,
5684 pub y: cl_half,
5685 pub z: cl_half,
5686 pub w: cl_half,
5687 pub __spacer4: cl_half,
5688 pub __spacer5: cl_half,
5689 pub __spacer6: cl_half,
5690 pub __spacer7: cl_half,
5691 pub __spacer8: cl_half,
5692 pub __spacer9: cl_half,
5693 pub sa: cl_half,
5694 pub sb: cl_half,
5695 pub sc: cl_half,
5696 pub sd: cl_half,
5697 pub se: cl_half,
5698 pub sf: cl_half,
5699}
5700#[test]
5701fn bindgen_test_layout_cl_half16__bindgen_ty_1() {
5702 const UNINIT: ::std::mem::MaybeUninit<cl_half16__bindgen_ty_1> =
5703 ::std::mem::MaybeUninit::uninit();
5704 let ptr = UNINIT.as_ptr();
5705 assert_eq!(
5706 ::std::mem::size_of::<cl_half16__bindgen_ty_1>(),
5707 32usize,
5708 concat!("Size of: ", stringify!(cl_half16__bindgen_ty_1))
5709 );
5710 assert_eq!(
5711 ::std::mem::align_of::<cl_half16__bindgen_ty_1>(),
5712 2usize,
5713 concat!("Alignment of ", stringify!(cl_half16__bindgen_ty_1))
5714 );
5715 assert_eq!(
5716 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
5717 0usize,
5718 concat!(
5719 "Offset of field: ",
5720 stringify!(cl_half16__bindgen_ty_1),
5721 "::",
5722 stringify!(x)
5723 )
5724 );
5725 assert_eq!(
5726 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
5727 2usize,
5728 concat!(
5729 "Offset of field: ",
5730 stringify!(cl_half16__bindgen_ty_1),
5731 "::",
5732 stringify!(y)
5733 )
5734 );
5735 assert_eq!(
5736 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
5737 4usize,
5738 concat!(
5739 "Offset of field: ",
5740 stringify!(cl_half16__bindgen_ty_1),
5741 "::",
5742 stringify!(z)
5743 )
5744 );
5745 assert_eq!(
5746 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
5747 6usize,
5748 concat!(
5749 "Offset of field: ",
5750 stringify!(cl_half16__bindgen_ty_1),
5751 "::",
5752 stringify!(w)
5753 )
5754 );
5755 assert_eq!(
5756 unsafe { ::std::ptr::addr_of!((*ptr).__spacer4) as usize - ptr as usize },
5757 8usize,
5758 concat!(
5759 "Offset of field: ",
5760 stringify!(cl_half16__bindgen_ty_1),
5761 "::",
5762 stringify!(__spacer4)
5763 )
5764 );
5765 assert_eq!(
5766 unsafe { ::std::ptr::addr_of!((*ptr).__spacer5) as usize - ptr as usize },
5767 10usize,
5768 concat!(
5769 "Offset of field: ",
5770 stringify!(cl_half16__bindgen_ty_1),
5771 "::",
5772 stringify!(__spacer5)
5773 )
5774 );
5775 assert_eq!(
5776 unsafe { ::std::ptr::addr_of!((*ptr).__spacer6) as usize - ptr as usize },
5777 12usize,
5778 concat!(
5779 "Offset of field: ",
5780 stringify!(cl_half16__bindgen_ty_1),
5781 "::",
5782 stringify!(__spacer6)
5783 )
5784 );
5785 assert_eq!(
5786 unsafe { ::std::ptr::addr_of!((*ptr).__spacer7) as usize - ptr as usize },
5787 14usize,
5788 concat!(
5789 "Offset of field: ",
5790 stringify!(cl_half16__bindgen_ty_1),
5791 "::",
5792 stringify!(__spacer7)
5793 )
5794 );
5795 assert_eq!(
5796 unsafe { ::std::ptr::addr_of!((*ptr).__spacer8) as usize - ptr as usize },
5797 16usize,
5798 concat!(
5799 "Offset of field: ",
5800 stringify!(cl_half16__bindgen_ty_1),
5801 "::",
5802 stringify!(__spacer8)
5803 )
5804 );
5805 assert_eq!(
5806 unsafe { ::std::ptr::addr_of!((*ptr).__spacer9) as usize - ptr as usize },
5807 18usize,
5808 concat!(
5809 "Offset of field: ",
5810 stringify!(cl_half16__bindgen_ty_1),
5811 "::",
5812 stringify!(__spacer9)
5813 )
5814 );
5815 assert_eq!(
5816 unsafe { ::std::ptr::addr_of!((*ptr).sa) as usize - ptr as usize },
5817 20usize,
5818 concat!(
5819 "Offset of field: ",
5820 stringify!(cl_half16__bindgen_ty_1),
5821 "::",
5822 stringify!(sa)
5823 )
5824 );
5825 assert_eq!(
5826 unsafe { ::std::ptr::addr_of!((*ptr).sb) as usize - ptr as usize },
5827 22usize,
5828 concat!(
5829 "Offset of field: ",
5830 stringify!(cl_half16__bindgen_ty_1),
5831 "::",
5832 stringify!(sb)
5833 )
5834 );
5835 assert_eq!(
5836 unsafe { ::std::ptr::addr_of!((*ptr).sc) as usize - ptr as usize },
5837 24usize,
5838 concat!(
5839 "Offset of field: ",
5840 stringify!(cl_half16__bindgen_ty_1),
5841 "::",
5842 stringify!(sc)
5843 )
5844 );
5845 assert_eq!(
5846 unsafe { ::std::ptr::addr_of!((*ptr).sd) as usize - ptr as usize },
5847 26usize,
5848 concat!(
5849 "Offset of field: ",
5850 stringify!(cl_half16__bindgen_ty_1),
5851 "::",
5852 stringify!(sd)
5853 )
5854 );
5855 assert_eq!(
5856 unsafe { ::std::ptr::addr_of!((*ptr).se) as usize - ptr as usize },
5857 28usize,
5858 concat!(
5859 "Offset of field: ",
5860 stringify!(cl_half16__bindgen_ty_1),
5861 "::",
5862 stringify!(se)
5863 )
5864 );
5865 assert_eq!(
5866 unsafe { ::std::ptr::addr_of!((*ptr).sf) as usize - ptr as usize },
5867 30usize,
5868 concat!(
5869 "Offset of field: ",
5870 stringify!(cl_half16__bindgen_ty_1),
5871 "::",
5872 stringify!(sf)
5873 )
5874 );
5875}
5876#[repr(C)]
5877#[derive(Debug, Copy, Clone)]
5878pub struct cl_half16__bindgen_ty_2 {
5879 pub s0: cl_half,
5880 pub s1: cl_half,
5881 pub s2: cl_half,
5882 pub s3: cl_half,
5883 pub s4: cl_half,
5884 pub s5: cl_half,
5885 pub s6: cl_half,
5886 pub s7: cl_half,
5887 pub s8: cl_half,
5888 pub s9: cl_half,
5889 pub sA: cl_half,
5890 pub sB: cl_half,
5891 pub sC: cl_half,
5892 pub sD: cl_half,
5893 pub sE: cl_half,
5894 pub sF: cl_half,
5895}
5896#[test]
5897fn bindgen_test_layout_cl_half16__bindgen_ty_2() {
5898 const UNINIT: ::std::mem::MaybeUninit<cl_half16__bindgen_ty_2> =
5899 ::std::mem::MaybeUninit::uninit();
5900 let ptr = UNINIT.as_ptr();
5901 assert_eq!(
5902 ::std::mem::size_of::<cl_half16__bindgen_ty_2>(),
5903 32usize,
5904 concat!("Size of: ", stringify!(cl_half16__bindgen_ty_2))
5905 );
5906 assert_eq!(
5907 ::std::mem::align_of::<cl_half16__bindgen_ty_2>(),
5908 2usize,
5909 concat!("Alignment of ", stringify!(cl_half16__bindgen_ty_2))
5910 );
5911 assert_eq!(
5912 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
5913 0usize,
5914 concat!(
5915 "Offset of field: ",
5916 stringify!(cl_half16__bindgen_ty_2),
5917 "::",
5918 stringify!(s0)
5919 )
5920 );
5921 assert_eq!(
5922 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
5923 2usize,
5924 concat!(
5925 "Offset of field: ",
5926 stringify!(cl_half16__bindgen_ty_2),
5927 "::",
5928 stringify!(s1)
5929 )
5930 );
5931 assert_eq!(
5932 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
5933 4usize,
5934 concat!(
5935 "Offset of field: ",
5936 stringify!(cl_half16__bindgen_ty_2),
5937 "::",
5938 stringify!(s2)
5939 )
5940 );
5941 assert_eq!(
5942 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
5943 6usize,
5944 concat!(
5945 "Offset of field: ",
5946 stringify!(cl_half16__bindgen_ty_2),
5947 "::",
5948 stringify!(s3)
5949 )
5950 );
5951 assert_eq!(
5952 unsafe { ::std::ptr::addr_of!((*ptr).s4) as usize - ptr as usize },
5953 8usize,
5954 concat!(
5955 "Offset of field: ",
5956 stringify!(cl_half16__bindgen_ty_2),
5957 "::",
5958 stringify!(s4)
5959 )
5960 );
5961 assert_eq!(
5962 unsafe { ::std::ptr::addr_of!((*ptr).s5) as usize - ptr as usize },
5963 10usize,
5964 concat!(
5965 "Offset of field: ",
5966 stringify!(cl_half16__bindgen_ty_2),
5967 "::",
5968 stringify!(s5)
5969 )
5970 );
5971 assert_eq!(
5972 unsafe { ::std::ptr::addr_of!((*ptr).s6) as usize - ptr as usize },
5973 12usize,
5974 concat!(
5975 "Offset of field: ",
5976 stringify!(cl_half16__bindgen_ty_2),
5977 "::",
5978 stringify!(s6)
5979 )
5980 );
5981 assert_eq!(
5982 unsafe { ::std::ptr::addr_of!((*ptr).s7) as usize - ptr as usize },
5983 14usize,
5984 concat!(
5985 "Offset of field: ",
5986 stringify!(cl_half16__bindgen_ty_2),
5987 "::",
5988 stringify!(s7)
5989 )
5990 );
5991 assert_eq!(
5992 unsafe { ::std::ptr::addr_of!((*ptr).s8) as usize - ptr as usize },
5993 16usize,
5994 concat!(
5995 "Offset of field: ",
5996 stringify!(cl_half16__bindgen_ty_2),
5997 "::",
5998 stringify!(s8)
5999 )
6000 );
6001 assert_eq!(
6002 unsafe { ::std::ptr::addr_of!((*ptr).s9) as usize - ptr as usize },
6003 18usize,
6004 concat!(
6005 "Offset of field: ",
6006 stringify!(cl_half16__bindgen_ty_2),
6007 "::",
6008 stringify!(s9)
6009 )
6010 );
6011 assert_eq!(
6012 unsafe { ::std::ptr::addr_of!((*ptr).sA) as usize - ptr as usize },
6013 20usize,
6014 concat!(
6015 "Offset of field: ",
6016 stringify!(cl_half16__bindgen_ty_2),
6017 "::",
6018 stringify!(sA)
6019 )
6020 );
6021 assert_eq!(
6022 unsafe { ::std::ptr::addr_of!((*ptr).sB) as usize - ptr as usize },
6023 22usize,
6024 concat!(
6025 "Offset of field: ",
6026 stringify!(cl_half16__bindgen_ty_2),
6027 "::",
6028 stringify!(sB)
6029 )
6030 );
6031 assert_eq!(
6032 unsafe { ::std::ptr::addr_of!((*ptr).sC) as usize - ptr as usize },
6033 24usize,
6034 concat!(
6035 "Offset of field: ",
6036 stringify!(cl_half16__bindgen_ty_2),
6037 "::",
6038 stringify!(sC)
6039 )
6040 );
6041 assert_eq!(
6042 unsafe { ::std::ptr::addr_of!((*ptr).sD) as usize - ptr as usize },
6043 26usize,
6044 concat!(
6045 "Offset of field: ",
6046 stringify!(cl_half16__bindgen_ty_2),
6047 "::",
6048 stringify!(sD)
6049 )
6050 );
6051 assert_eq!(
6052 unsafe { ::std::ptr::addr_of!((*ptr).sE) as usize - ptr as usize },
6053 28usize,
6054 concat!(
6055 "Offset of field: ",
6056 stringify!(cl_half16__bindgen_ty_2),
6057 "::",
6058 stringify!(sE)
6059 )
6060 );
6061 assert_eq!(
6062 unsafe { ::std::ptr::addr_of!((*ptr).sF) as usize - ptr as usize },
6063 30usize,
6064 concat!(
6065 "Offset of field: ",
6066 stringify!(cl_half16__bindgen_ty_2),
6067 "::",
6068 stringify!(sF)
6069 )
6070 );
6071}
6072#[repr(C)]
6073#[derive(Copy, Clone)]
6074pub struct cl_half16__bindgen_ty_3 {
6075 pub lo: cl_half8,
6076 pub hi: cl_half8,
6077}
6078#[test]
6079fn bindgen_test_layout_cl_half16__bindgen_ty_3() {
6080 const UNINIT: ::std::mem::MaybeUninit<cl_half16__bindgen_ty_3> =
6081 ::std::mem::MaybeUninit::uninit();
6082 let ptr = UNINIT.as_ptr();
6083 assert_eq!(
6084 ::std::mem::size_of::<cl_half16__bindgen_ty_3>(),
6085 32usize,
6086 concat!("Size of: ", stringify!(cl_half16__bindgen_ty_3))
6087 );
6088 assert_eq!(
6089 ::std::mem::align_of::<cl_half16__bindgen_ty_3>(),
6090 2usize,
6091 concat!("Alignment of ", stringify!(cl_half16__bindgen_ty_3))
6092 );
6093 assert_eq!(
6094 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
6095 0usize,
6096 concat!(
6097 "Offset of field: ",
6098 stringify!(cl_half16__bindgen_ty_3),
6099 "::",
6100 stringify!(lo)
6101 )
6102 );
6103 assert_eq!(
6104 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
6105 16usize,
6106 concat!(
6107 "Offset of field: ",
6108 stringify!(cl_half16__bindgen_ty_3),
6109 "::",
6110 stringify!(hi)
6111 )
6112 );
6113}
6114#[test]
6115fn bindgen_test_layout_cl_half16() {
6116 const UNINIT: ::std::mem::MaybeUninit<cl_half16> = ::std::mem::MaybeUninit::uninit();
6117 let ptr = UNINIT.as_ptr();
6118 assert_eq!(
6119 ::std::mem::size_of::<cl_half16>(),
6120 32usize,
6121 concat!("Size of: ", stringify!(cl_half16))
6122 );
6123 assert_eq!(
6124 ::std::mem::align_of::<cl_half16>(),
6125 2usize,
6126 concat!("Alignment of ", stringify!(cl_half16))
6127 );
6128 assert_eq!(
6129 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
6130 0usize,
6131 concat!(
6132 "Offset of field: ",
6133 stringify!(cl_half16),
6134 "::",
6135 stringify!(s)
6136 )
6137 );
6138}
6139#[repr(C)]
6140#[derive(Copy, Clone)]
6141pub union cl_int2 {
6142 pub s: [cl_int; 2usize],
6143 pub __bindgen_anon_1: cl_int2__bindgen_ty_1,
6144 pub __bindgen_anon_2: cl_int2__bindgen_ty_2,
6145 pub __bindgen_anon_3: cl_int2__bindgen_ty_3,
6146 pub v2: __cl_int2,
6147}
6148#[repr(C)]
6149#[derive(Debug, Copy, Clone)]
6150pub struct cl_int2__bindgen_ty_1 {
6151 pub x: cl_int,
6152 pub y: cl_int,
6153}
6154#[test]
6155fn bindgen_test_layout_cl_int2__bindgen_ty_1() {
6156 const UNINIT: ::std::mem::MaybeUninit<cl_int2__bindgen_ty_1> =
6157 ::std::mem::MaybeUninit::uninit();
6158 let ptr = UNINIT.as_ptr();
6159 assert_eq!(
6160 ::std::mem::size_of::<cl_int2__bindgen_ty_1>(),
6161 8usize,
6162 concat!("Size of: ", stringify!(cl_int2__bindgen_ty_1))
6163 );
6164 assert_eq!(
6165 ::std::mem::align_of::<cl_int2__bindgen_ty_1>(),
6166 4usize,
6167 concat!("Alignment of ", stringify!(cl_int2__bindgen_ty_1))
6168 );
6169 assert_eq!(
6170 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
6171 0usize,
6172 concat!(
6173 "Offset of field: ",
6174 stringify!(cl_int2__bindgen_ty_1),
6175 "::",
6176 stringify!(x)
6177 )
6178 );
6179 assert_eq!(
6180 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
6181 4usize,
6182 concat!(
6183 "Offset of field: ",
6184 stringify!(cl_int2__bindgen_ty_1),
6185 "::",
6186 stringify!(y)
6187 )
6188 );
6189}
6190#[repr(C)]
6191#[derive(Debug, Copy, Clone)]
6192pub struct cl_int2__bindgen_ty_2 {
6193 pub s0: cl_int,
6194 pub s1: cl_int,
6195}
6196#[test]
6197fn bindgen_test_layout_cl_int2__bindgen_ty_2() {
6198 const UNINIT: ::std::mem::MaybeUninit<cl_int2__bindgen_ty_2> =
6199 ::std::mem::MaybeUninit::uninit();
6200 let ptr = UNINIT.as_ptr();
6201 assert_eq!(
6202 ::std::mem::size_of::<cl_int2__bindgen_ty_2>(),
6203 8usize,
6204 concat!("Size of: ", stringify!(cl_int2__bindgen_ty_2))
6205 );
6206 assert_eq!(
6207 ::std::mem::align_of::<cl_int2__bindgen_ty_2>(),
6208 4usize,
6209 concat!("Alignment of ", stringify!(cl_int2__bindgen_ty_2))
6210 );
6211 assert_eq!(
6212 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
6213 0usize,
6214 concat!(
6215 "Offset of field: ",
6216 stringify!(cl_int2__bindgen_ty_2),
6217 "::",
6218 stringify!(s0)
6219 )
6220 );
6221 assert_eq!(
6222 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
6223 4usize,
6224 concat!(
6225 "Offset of field: ",
6226 stringify!(cl_int2__bindgen_ty_2),
6227 "::",
6228 stringify!(s1)
6229 )
6230 );
6231}
6232#[repr(C)]
6233#[derive(Debug, Copy, Clone)]
6234pub struct cl_int2__bindgen_ty_3 {
6235 pub lo: cl_int,
6236 pub hi: cl_int,
6237}
6238#[test]
6239fn bindgen_test_layout_cl_int2__bindgen_ty_3() {
6240 const UNINIT: ::std::mem::MaybeUninit<cl_int2__bindgen_ty_3> =
6241 ::std::mem::MaybeUninit::uninit();
6242 let ptr = UNINIT.as_ptr();
6243 assert_eq!(
6244 ::std::mem::size_of::<cl_int2__bindgen_ty_3>(),
6245 8usize,
6246 concat!("Size of: ", stringify!(cl_int2__bindgen_ty_3))
6247 );
6248 assert_eq!(
6249 ::std::mem::align_of::<cl_int2__bindgen_ty_3>(),
6250 4usize,
6251 concat!("Alignment of ", stringify!(cl_int2__bindgen_ty_3))
6252 );
6253 assert_eq!(
6254 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
6255 0usize,
6256 concat!(
6257 "Offset of field: ",
6258 stringify!(cl_int2__bindgen_ty_3),
6259 "::",
6260 stringify!(lo)
6261 )
6262 );
6263 assert_eq!(
6264 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
6265 4usize,
6266 concat!(
6267 "Offset of field: ",
6268 stringify!(cl_int2__bindgen_ty_3),
6269 "::",
6270 stringify!(hi)
6271 )
6272 );
6273}
6274#[test]
6275fn bindgen_test_layout_cl_int2() {
6276 const UNINIT: ::std::mem::MaybeUninit<cl_int2> = ::std::mem::MaybeUninit::uninit();
6277 let ptr = UNINIT.as_ptr();
6278 assert_eq!(
6279 ::std::mem::size_of::<cl_int2>(),
6280 8usize,
6281 concat!("Size of: ", stringify!(cl_int2))
6282 );
6283 assert_eq!(
6284 ::std::mem::align_of::<cl_int2>(),
6285 8usize,
6286 concat!("Alignment of ", stringify!(cl_int2))
6287 );
6288 assert_eq!(
6289 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
6290 0usize,
6291 concat!(
6292 "Offset of field: ",
6293 stringify!(cl_int2),
6294 "::",
6295 stringify!(s)
6296 )
6297 );
6298 assert_eq!(
6299 unsafe { ::std::ptr::addr_of!((*ptr).v2) as usize - ptr as usize },
6300 0usize,
6301 concat!(
6302 "Offset of field: ",
6303 stringify!(cl_int2),
6304 "::",
6305 stringify!(v2)
6306 )
6307 );
6308}
6309#[repr(C)]
6310#[repr(align(16))]
6311#[derive(Copy, Clone)]
6312pub union cl_int4 {
6313 pub s: [cl_int; 4usize],
6314 pub __bindgen_anon_1: cl_int4__bindgen_ty_1,
6315 pub __bindgen_anon_2: cl_int4__bindgen_ty_2,
6316 pub __bindgen_anon_3: cl_int4__bindgen_ty_3,
6317 pub v2: [__cl_int2; 2usize],
6318 pub v4: __cl_int4,
6319}
6320#[repr(C)]
6321#[derive(Debug, Copy, Clone)]
6322pub struct cl_int4__bindgen_ty_1 {
6323 pub x: cl_int,
6324 pub y: cl_int,
6325 pub z: cl_int,
6326 pub w: cl_int,
6327}
6328#[test]
6329fn bindgen_test_layout_cl_int4__bindgen_ty_1() {
6330 const UNINIT: ::std::mem::MaybeUninit<cl_int4__bindgen_ty_1> =
6331 ::std::mem::MaybeUninit::uninit();
6332 let ptr = UNINIT.as_ptr();
6333 assert_eq!(
6334 ::std::mem::size_of::<cl_int4__bindgen_ty_1>(),
6335 16usize,
6336 concat!("Size of: ", stringify!(cl_int4__bindgen_ty_1))
6337 );
6338 assert_eq!(
6339 ::std::mem::align_of::<cl_int4__bindgen_ty_1>(),
6340 4usize,
6341 concat!("Alignment of ", stringify!(cl_int4__bindgen_ty_1))
6342 );
6343 assert_eq!(
6344 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
6345 0usize,
6346 concat!(
6347 "Offset of field: ",
6348 stringify!(cl_int4__bindgen_ty_1),
6349 "::",
6350 stringify!(x)
6351 )
6352 );
6353 assert_eq!(
6354 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
6355 4usize,
6356 concat!(
6357 "Offset of field: ",
6358 stringify!(cl_int4__bindgen_ty_1),
6359 "::",
6360 stringify!(y)
6361 )
6362 );
6363 assert_eq!(
6364 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
6365 8usize,
6366 concat!(
6367 "Offset of field: ",
6368 stringify!(cl_int4__bindgen_ty_1),
6369 "::",
6370 stringify!(z)
6371 )
6372 );
6373 assert_eq!(
6374 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
6375 12usize,
6376 concat!(
6377 "Offset of field: ",
6378 stringify!(cl_int4__bindgen_ty_1),
6379 "::",
6380 stringify!(w)
6381 )
6382 );
6383}
6384#[repr(C)]
6385#[derive(Debug, Copy, Clone)]
6386pub struct cl_int4__bindgen_ty_2 {
6387 pub s0: cl_int,
6388 pub s1: cl_int,
6389 pub s2: cl_int,
6390 pub s3: cl_int,
6391}
6392#[test]
6393fn bindgen_test_layout_cl_int4__bindgen_ty_2() {
6394 const UNINIT: ::std::mem::MaybeUninit<cl_int4__bindgen_ty_2> =
6395 ::std::mem::MaybeUninit::uninit();
6396 let ptr = UNINIT.as_ptr();
6397 assert_eq!(
6398 ::std::mem::size_of::<cl_int4__bindgen_ty_2>(),
6399 16usize,
6400 concat!("Size of: ", stringify!(cl_int4__bindgen_ty_2))
6401 );
6402 assert_eq!(
6403 ::std::mem::align_of::<cl_int4__bindgen_ty_2>(),
6404 4usize,
6405 concat!("Alignment of ", stringify!(cl_int4__bindgen_ty_2))
6406 );
6407 assert_eq!(
6408 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
6409 0usize,
6410 concat!(
6411 "Offset of field: ",
6412 stringify!(cl_int4__bindgen_ty_2),
6413 "::",
6414 stringify!(s0)
6415 )
6416 );
6417 assert_eq!(
6418 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
6419 4usize,
6420 concat!(
6421 "Offset of field: ",
6422 stringify!(cl_int4__bindgen_ty_2),
6423 "::",
6424 stringify!(s1)
6425 )
6426 );
6427 assert_eq!(
6428 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
6429 8usize,
6430 concat!(
6431 "Offset of field: ",
6432 stringify!(cl_int4__bindgen_ty_2),
6433 "::",
6434 stringify!(s2)
6435 )
6436 );
6437 assert_eq!(
6438 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
6439 12usize,
6440 concat!(
6441 "Offset of field: ",
6442 stringify!(cl_int4__bindgen_ty_2),
6443 "::",
6444 stringify!(s3)
6445 )
6446 );
6447}
6448#[repr(C)]
6449#[derive(Copy, Clone)]
6450pub struct cl_int4__bindgen_ty_3 {
6451 pub lo: cl_int2,
6452 pub hi: cl_int2,
6453}
6454#[test]
6455fn bindgen_test_layout_cl_int4__bindgen_ty_3() {
6456 const UNINIT: ::std::mem::MaybeUninit<cl_int4__bindgen_ty_3> =
6457 ::std::mem::MaybeUninit::uninit();
6458 let ptr = UNINIT.as_ptr();
6459 assert_eq!(
6460 ::std::mem::size_of::<cl_int4__bindgen_ty_3>(),
6461 16usize,
6462 concat!("Size of: ", stringify!(cl_int4__bindgen_ty_3))
6463 );
6464 assert_eq!(
6465 ::std::mem::align_of::<cl_int4__bindgen_ty_3>(),
6466 8usize,
6467 concat!("Alignment of ", stringify!(cl_int4__bindgen_ty_3))
6468 );
6469 assert_eq!(
6470 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
6471 0usize,
6472 concat!(
6473 "Offset of field: ",
6474 stringify!(cl_int4__bindgen_ty_3),
6475 "::",
6476 stringify!(lo)
6477 )
6478 );
6479 assert_eq!(
6480 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
6481 8usize,
6482 concat!(
6483 "Offset of field: ",
6484 stringify!(cl_int4__bindgen_ty_3),
6485 "::",
6486 stringify!(hi)
6487 )
6488 );
6489}
6490#[test]
6491fn bindgen_test_layout_cl_int4() {
6492 const UNINIT: ::std::mem::MaybeUninit<cl_int4> = ::std::mem::MaybeUninit::uninit();
6493 let ptr = UNINIT.as_ptr();
6494 assert_eq!(
6495 ::std::mem::size_of::<cl_int4>(),
6496 16usize,
6497 concat!("Size of: ", stringify!(cl_int4))
6498 );
6499 assert_eq!(
6500 ::std::mem::align_of::<cl_int4>(),
6501 16usize,
6502 concat!("Alignment of ", stringify!(cl_int4))
6503 );
6504 assert_eq!(
6505 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
6506 0usize,
6507 concat!(
6508 "Offset of field: ",
6509 stringify!(cl_int4),
6510 "::",
6511 stringify!(s)
6512 )
6513 );
6514 assert_eq!(
6515 unsafe { ::std::ptr::addr_of!((*ptr).v2) as usize - ptr as usize },
6516 0usize,
6517 concat!(
6518 "Offset of field: ",
6519 stringify!(cl_int4),
6520 "::",
6521 stringify!(v2)
6522 )
6523 );
6524 assert_eq!(
6525 unsafe { ::std::ptr::addr_of!((*ptr).v4) as usize - ptr as usize },
6526 0usize,
6527 concat!(
6528 "Offset of field: ",
6529 stringify!(cl_int4),
6530 "::",
6531 stringify!(v4)
6532 )
6533 );
6534}
6535pub type cl_int3 = cl_int4;
6536#[repr(C)]
6537#[repr(align(16))]
6538#[derive(Copy, Clone)]
6539pub union cl_int8 {
6540 pub s: [cl_int; 8usize],
6541 pub __bindgen_anon_1: cl_int8__bindgen_ty_1,
6542 pub __bindgen_anon_2: cl_int8__bindgen_ty_2,
6543 pub __bindgen_anon_3: cl_int8__bindgen_ty_3,
6544 pub v2: [__cl_int2; 4usize],
6545 pub v4: [__cl_int4; 2usize],
6546}
6547#[repr(C)]
6548#[derive(Debug, Copy, Clone)]
6549pub struct cl_int8__bindgen_ty_1 {
6550 pub x: cl_int,
6551 pub y: cl_int,
6552 pub z: cl_int,
6553 pub w: cl_int,
6554}
6555#[test]
6556fn bindgen_test_layout_cl_int8__bindgen_ty_1() {
6557 const UNINIT: ::std::mem::MaybeUninit<cl_int8__bindgen_ty_1> =
6558 ::std::mem::MaybeUninit::uninit();
6559 let ptr = UNINIT.as_ptr();
6560 assert_eq!(
6561 ::std::mem::size_of::<cl_int8__bindgen_ty_1>(),
6562 16usize,
6563 concat!("Size of: ", stringify!(cl_int8__bindgen_ty_1))
6564 );
6565 assert_eq!(
6566 ::std::mem::align_of::<cl_int8__bindgen_ty_1>(),
6567 4usize,
6568 concat!("Alignment of ", stringify!(cl_int8__bindgen_ty_1))
6569 );
6570 assert_eq!(
6571 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
6572 0usize,
6573 concat!(
6574 "Offset of field: ",
6575 stringify!(cl_int8__bindgen_ty_1),
6576 "::",
6577 stringify!(x)
6578 )
6579 );
6580 assert_eq!(
6581 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
6582 4usize,
6583 concat!(
6584 "Offset of field: ",
6585 stringify!(cl_int8__bindgen_ty_1),
6586 "::",
6587 stringify!(y)
6588 )
6589 );
6590 assert_eq!(
6591 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
6592 8usize,
6593 concat!(
6594 "Offset of field: ",
6595 stringify!(cl_int8__bindgen_ty_1),
6596 "::",
6597 stringify!(z)
6598 )
6599 );
6600 assert_eq!(
6601 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
6602 12usize,
6603 concat!(
6604 "Offset of field: ",
6605 stringify!(cl_int8__bindgen_ty_1),
6606 "::",
6607 stringify!(w)
6608 )
6609 );
6610}
6611#[repr(C)]
6612#[derive(Debug, Copy, Clone)]
6613pub struct cl_int8__bindgen_ty_2 {
6614 pub s0: cl_int,
6615 pub s1: cl_int,
6616 pub s2: cl_int,
6617 pub s3: cl_int,
6618 pub s4: cl_int,
6619 pub s5: cl_int,
6620 pub s6: cl_int,
6621 pub s7: cl_int,
6622}
6623#[test]
6624fn bindgen_test_layout_cl_int8__bindgen_ty_2() {
6625 const UNINIT: ::std::mem::MaybeUninit<cl_int8__bindgen_ty_2> =
6626 ::std::mem::MaybeUninit::uninit();
6627 let ptr = UNINIT.as_ptr();
6628 assert_eq!(
6629 ::std::mem::size_of::<cl_int8__bindgen_ty_2>(),
6630 32usize,
6631 concat!("Size of: ", stringify!(cl_int8__bindgen_ty_2))
6632 );
6633 assert_eq!(
6634 ::std::mem::align_of::<cl_int8__bindgen_ty_2>(),
6635 4usize,
6636 concat!("Alignment of ", stringify!(cl_int8__bindgen_ty_2))
6637 );
6638 assert_eq!(
6639 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
6640 0usize,
6641 concat!(
6642 "Offset of field: ",
6643 stringify!(cl_int8__bindgen_ty_2),
6644 "::",
6645 stringify!(s0)
6646 )
6647 );
6648 assert_eq!(
6649 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
6650 4usize,
6651 concat!(
6652 "Offset of field: ",
6653 stringify!(cl_int8__bindgen_ty_2),
6654 "::",
6655 stringify!(s1)
6656 )
6657 );
6658 assert_eq!(
6659 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
6660 8usize,
6661 concat!(
6662 "Offset of field: ",
6663 stringify!(cl_int8__bindgen_ty_2),
6664 "::",
6665 stringify!(s2)
6666 )
6667 );
6668 assert_eq!(
6669 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
6670 12usize,
6671 concat!(
6672 "Offset of field: ",
6673 stringify!(cl_int8__bindgen_ty_2),
6674 "::",
6675 stringify!(s3)
6676 )
6677 );
6678 assert_eq!(
6679 unsafe { ::std::ptr::addr_of!((*ptr).s4) as usize - ptr as usize },
6680 16usize,
6681 concat!(
6682 "Offset of field: ",
6683 stringify!(cl_int8__bindgen_ty_2),
6684 "::",
6685 stringify!(s4)
6686 )
6687 );
6688 assert_eq!(
6689 unsafe { ::std::ptr::addr_of!((*ptr).s5) as usize - ptr as usize },
6690 20usize,
6691 concat!(
6692 "Offset of field: ",
6693 stringify!(cl_int8__bindgen_ty_2),
6694 "::",
6695 stringify!(s5)
6696 )
6697 );
6698 assert_eq!(
6699 unsafe { ::std::ptr::addr_of!((*ptr).s6) as usize - ptr as usize },
6700 24usize,
6701 concat!(
6702 "Offset of field: ",
6703 stringify!(cl_int8__bindgen_ty_2),
6704 "::",
6705 stringify!(s6)
6706 )
6707 );
6708 assert_eq!(
6709 unsafe { ::std::ptr::addr_of!((*ptr).s7) as usize - ptr as usize },
6710 28usize,
6711 concat!(
6712 "Offset of field: ",
6713 stringify!(cl_int8__bindgen_ty_2),
6714 "::",
6715 stringify!(s7)
6716 )
6717 );
6718}
6719#[repr(C)]
6720#[repr(align(16))]
6721#[derive(Copy, Clone)]
6722pub struct cl_int8__bindgen_ty_3 {
6723 pub lo: cl_int4,
6724 pub hi: cl_int4,
6725}
6726#[test]
6727fn bindgen_test_layout_cl_int8__bindgen_ty_3() {
6728 const UNINIT: ::std::mem::MaybeUninit<cl_int8__bindgen_ty_3> =
6729 ::std::mem::MaybeUninit::uninit();
6730 let ptr = UNINIT.as_ptr();
6731 assert_eq!(
6732 ::std::mem::size_of::<cl_int8__bindgen_ty_3>(),
6733 32usize,
6734 concat!("Size of: ", stringify!(cl_int8__bindgen_ty_3))
6735 );
6736 assert_eq!(
6737 ::std::mem::align_of::<cl_int8__bindgen_ty_3>(),
6738 16usize,
6739 concat!("Alignment of ", stringify!(cl_int8__bindgen_ty_3))
6740 );
6741 assert_eq!(
6742 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
6743 0usize,
6744 concat!(
6745 "Offset of field: ",
6746 stringify!(cl_int8__bindgen_ty_3),
6747 "::",
6748 stringify!(lo)
6749 )
6750 );
6751 assert_eq!(
6752 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
6753 16usize,
6754 concat!(
6755 "Offset of field: ",
6756 stringify!(cl_int8__bindgen_ty_3),
6757 "::",
6758 stringify!(hi)
6759 )
6760 );
6761}
6762#[test]
6763fn bindgen_test_layout_cl_int8() {
6764 const UNINIT: ::std::mem::MaybeUninit<cl_int8> = ::std::mem::MaybeUninit::uninit();
6765 let ptr = UNINIT.as_ptr();
6766 assert_eq!(
6767 ::std::mem::size_of::<cl_int8>(),
6768 32usize,
6769 concat!("Size of: ", stringify!(cl_int8))
6770 );
6771 assert_eq!(
6772 ::std::mem::align_of::<cl_int8>(),
6773 16usize,
6774 concat!("Alignment of ", stringify!(cl_int8))
6775 );
6776 assert_eq!(
6777 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
6778 0usize,
6779 concat!(
6780 "Offset of field: ",
6781 stringify!(cl_int8),
6782 "::",
6783 stringify!(s)
6784 )
6785 );
6786 assert_eq!(
6787 unsafe { ::std::ptr::addr_of!((*ptr).v2) as usize - ptr as usize },
6788 0usize,
6789 concat!(
6790 "Offset of field: ",
6791 stringify!(cl_int8),
6792 "::",
6793 stringify!(v2)
6794 )
6795 );
6796 assert_eq!(
6797 unsafe { ::std::ptr::addr_of!((*ptr).v4) as usize - ptr as usize },
6798 0usize,
6799 concat!(
6800 "Offset of field: ",
6801 stringify!(cl_int8),
6802 "::",
6803 stringify!(v4)
6804 )
6805 );
6806}
6807#[repr(C)]
6808#[repr(align(16))]
6809#[derive(Copy, Clone)]
6810pub union cl_int16 {
6811 pub s: [cl_int; 16usize],
6812 pub __bindgen_anon_1: cl_int16__bindgen_ty_1,
6813 pub __bindgen_anon_2: cl_int16__bindgen_ty_2,
6814 pub __bindgen_anon_3: cl_int16__bindgen_ty_3,
6815 pub v2: [__cl_int2; 8usize],
6816 pub v4: [__cl_int4; 4usize],
6817}
6818#[repr(C)]
6819#[derive(Debug, Copy, Clone)]
6820pub struct cl_int16__bindgen_ty_1 {
6821 pub x: cl_int,
6822 pub y: cl_int,
6823 pub z: cl_int,
6824 pub w: cl_int,
6825 pub __spacer4: cl_int,
6826 pub __spacer5: cl_int,
6827 pub __spacer6: cl_int,
6828 pub __spacer7: cl_int,
6829 pub __spacer8: cl_int,
6830 pub __spacer9: cl_int,
6831 pub sa: cl_int,
6832 pub sb: cl_int,
6833 pub sc: cl_int,
6834 pub sd: cl_int,
6835 pub se: cl_int,
6836 pub sf: cl_int,
6837}
6838#[test]
6839fn bindgen_test_layout_cl_int16__bindgen_ty_1() {
6840 const UNINIT: ::std::mem::MaybeUninit<cl_int16__bindgen_ty_1> =
6841 ::std::mem::MaybeUninit::uninit();
6842 let ptr = UNINIT.as_ptr();
6843 assert_eq!(
6844 ::std::mem::size_of::<cl_int16__bindgen_ty_1>(),
6845 64usize,
6846 concat!("Size of: ", stringify!(cl_int16__bindgen_ty_1))
6847 );
6848 assert_eq!(
6849 ::std::mem::align_of::<cl_int16__bindgen_ty_1>(),
6850 4usize,
6851 concat!("Alignment of ", stringify!(cl_int16__bindgen_ty_1))
6852 );
6853 assert_eq!(
6854 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
6855 0usize,
6856 concat!(
6857 "Offset of field: ",
6858 stringify!(cl_int16__bindgen_ty_1),
6859 "::",
6860 stringify!(x)
6861 )
6862 );
6863 assert_eq!(
6864 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
6865 4usize,
6866 concat!(
6867 "Offset of field: ",
6868 stringify!(cl_int16__bindgen_ty_1),
6869 "::",
6870 stringify!(y)
6871 )
6872 );
6873 assert_eq!(
6874 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
6875 8usize,
6876 concat!(
6877 "Offset of field: ",
6878 stringify!(cl_int16__bindgen_ty_1),
6879 "::",
6880 stringify!(z)
6881 )
6882 );
6883 assert_eq!(
6884 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
6885 12usize,
6886 concat!(
6887 "Offset of field: ",
6888 stringify!(cl_int16__bindgen_ty_1),
6889 "::",
6890 stringify!(w)
6891 )
6892 );
6893 assert_eq!(
6894 unsafe { ::std::ptr::addr_of!((*ptr).__spacer4) as usize - ptr as usize },
6895 16usize,
6896 concat!(
6897 "Offset of field: ",
6898 stringify!(cl_int16__bindgen_ty_1),
6899 "::",
6900 stringify!(__spacer4)
6901 )
6902 );
6903 assert_eq!(
6904 unsafe { ::std::ptr::addr_of!((*ptr).__spacer5) as usize - ptr as usize },
6905 20usize,
6906 concat!(
6907 "Offset of field: ",
6908 stringify!(cl_int16__bindgen_ty_1),
6909 "::",
6910 stringify!(__spacer5)
6911 )
6912 );
6913 assert_eq!(
6914 unsafe { ::std::ptr::addr_of!((*ptr).__spacer6) as usize - ptr as usize },
6915 24usize,
6916 concat!(
6917 "Offset of field: ",
6918 stringify!(cl_int16__bindgen_ty_1),
6919 "::",
6920 stringify!(__spacer6)
6921 )
6922 );
6923 assert_eq!(
6924 unsafe { ::std::ptr::addr_of!((*ptr).__spacer7) as usize - ptr as usize },
6925 28usize,
6926 concat!(
6927 "Offset of field: ",
6928 stringify!(cl_int16__bindgen_ty_1),
6929 "::",
6930 stringify!(__spacer7)
6931 )
6932 );
6933 assert_eq!(
6934 unsafe { ::std::ptr::addr_of!((*ptr).__spacer8) as usize - ptr as usize },
6935 32usize,
6936 concat!(
6937 "Offset of field: ",
6938 stringify!(cl_int16__bindgen_ty_1),
6939 "::",
6940 stringify!(__spacer8)
6941 )
6942 );
6943 assert_eq!(
6944 unsafe { ::std::ptr::addr_of!((*ptr).__spacer9) as usize - ptr as usize },
6945 36usize,
6946 concat!(
6947 "Offset of field: ",
6948 stringify!(cl_int16__bindgen_ty_1),
6949 "::",
6950 stringify!(__spacer9)
6951 )
6952 );
6953 assert_eq!(
6954 unsafe { ::std::ptr::addr_of!((*ptr).sa) as usize - ptr as usize },
6955 40usize,
6956 concat!(
6957 "Offset of field: ",
6958 stringify!(cl_int16__bindgen_ty_1),
6959 "::",
6960 stringify!(sa)
6961 )
6962 );
6963 assert_eq!(
6964 unsafe { ::std::ptr::addr_of!((*ptr).sb) as usize - ptr as usize },
6965 44usize,
6966 concat!(
6967 "Offset of field: ",
6968 stringify!(cl_int16__bindgen_ty_1),
6969 "::",
6970 stringify!(sb)
6971 )
6972 );
6973 assert_eq!(
6974 unsafe { ::std::ptr::addr_of!((*ptr).sc) as usize - ptr as usize },
6975 48usize,
6976 concat!(
6977 "Offset of field: ",
6978 stringify!(cl_int16__bindgen_ty_1),
6979 "::",
6980 stringify!(sc)
6981 )
6982 );
6983 assert_eq!(
6984 unsafe { ::std::ptr::addr_of!((*ptr).sd) as usize - ptr as usize },
6985 52usize,
6986 concat!(
6987 "Offset of field: ",
6988 stringify!(cl_int16__bindgen_ty_1),
6989 "::",
6990 stringify!(sd)
6991 )
6992 );
6993 assert_eq!(
6994 unsafe { ::std::ptr::addr_of!((*ptr).se) as usize - ptr as usize },
6995 56usize,
6996 concat!(
6997 "Offset of field: ",
6998 stringify!(cl_int16__bindgen_ty_1),
6999 "::",
7000 stringify!(se)
7001 )
7002 );
7003 assert_eq!(
7004 unsafe { ::std::ptr::addr_of!((*ptr).sf) as usize - ptr as usize },
7005 60usize,
7006 concat!(
7007 "Offset of field: ",
7008 stringify!(cl_int16__bindgen_ty_1),
7009 "::",
7010 stringify!(sf)
7011 )
7012 );
7013}
7014#[repr(C)]
7015#[derive(Debug, Copy, Clone)]
7016pub struct cl_int16__bindgen_ty_2 {
7017 pub s0: cl_int,
7018 pub s1: cl_int,
7019 pub s2: cl_int,
7020 pub s3: cl_int,
7021 pub s4: cl_int,
7022 pub s5: cl_int,
7023 pub s6: cl_int,
7024 pub s7: cl_int,
7025 pub s8: cl_int,
7026 pub s9: cl_int,
7027 pub sA: cl_int,
7028 pub sB: cl_int,
7029 pub sC: cl_int,
7030 pub sD: cl_int,
7031 pub sE: cl_int,
7032 pub sF: cl_int,
7033}
7034#[test]
7035fn bindgen_test_layout_cl_int16__bindgen_ty_2() {
7036 const UNINIT: ::std::mem::MaybeUninit<cl_int16__bindgen_ty_2> =
7037 ::std::mem::MaybeUninit::uninit();
7038 let ptr = UNINIT.as_ptr();
7039 assert_eq!(
7040 ::std::mem::size_of::<cl_int16__bindgen_ty_2>(),
7041 64usize,
7042 concat!("Size of: ", stringify!(cl_int16__bindgen_ty_2))
7043 );
7044 assert_eq!(
7045 ::std::mem::align_of::<cl_int16__bindgen_ty_2>(),
7046 4usize,
7047 concat!("Alignment of ", stringify!(cl_int16__bindgen_ty_2))
7048 );
7049 assert_eq!(
7050 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
7051 0usize,
7052 concat!(
7053 "Offset of field: ",
7054 stringify!(cl_int16__bindgen_ty_2),
7055 "::",
7056 stringify!(s0)
7057 )
7058 );
7059 assert_eq!(
7060 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
7061 4usize,
7062 concat!(
7063 "Offset of field: ",
7064 stringify!(cl_int16__bindgen_ty_2),
7065 "::",
7066 stringify!(s1)
7067 )
7068 );
7069 assert_eq!(
7070 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
7071 8usize,
7072 concat!(
7073 "Offset of field: ",
7074 stringify!(cl_int16__bindgen_ty_2),
7075 "::",
7076 stringify!(s2)
7077 )
7078 );
7079 assert_eq!(
7080 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
7081 12usize,
7082 concat!(
7083 "Offset of field: ",
7084 stringify!(cl_int16__bindgen_ty_2),
7085 "::",
7086 stringify!(s3)
7087 )
7088 );
7089 assert_eq!(
7090 unsafe { ::std::ptr::addr_of!((*ptr).s4) as usize - ptr as usize },
7091 16usize,
7092 concat!(
7093 "Offset of field: ",
7094 stringify!(cl_int16__bindgen_ty_2),
7095 "::",
7096 stringify!(s4)
7097 )
7098 );
7099 assert_eq!(
7100 unsafe { ::std::ptr::addr_of!((*ptr).s5) as usize - ptr as usize },
7101 20usize,
7102 concat!(
7103 "Offset of field: ",
7104 stringify!(cl_int16__bindgen_ty_2),
7105 "::",
7106 stringify!(s5)
7107 )
7108 );
7109 assert_eq!(
7110 unsafe { ::std::ptr::addr_of!((*ptr).s6) as usize - ptr as usize },
7111 24usize,
7112 concat!(
7113 "Offset of field: ",
7114 stringify!(cl_int16__bindgen_ty_2),
7115 "::",
7116 stringify!(s6)
7117 )
7118 );
7119 assert_eq!(
7120 unsafe { ::std::ptr::addr_of!((*ptr).s7) as usize - ptr as usize },
7121 28usize,
7122 concat!(
7123 "Offset of field: ",
7124 stringify!(cl_int16__bindgen_ty_2),
7125 "::",
7126 stringify!(s7)
7127 )
7128 );
7129 assert_eq!(
7130 unsafe { ::std::ptr::addr_of!((*ptr).s8) as usize - ptr as usize },
7131 32usize,
7132 concat!(
7133 "Offset of field: ",
7134 stringify!(cl_int16__bindgen_ty_2),
7135 "::",
7136 stringify!(s8)
7137 )
7138 );
7139 assert_eq!(
7140 unsafe { ::std::ptr::addr_of!((*ptr).s9) as usize - ptr as usize },
7141 36usize,
7142 concat!(
7143 "Offset of field: ",
7144 stringify!(cl_int16__bindgen_ty_2),
7145 "::",
7146 stringify!(s9)
7147 )
7148 );
7149 assert_eq!(
7150 unsafe { ::std::ptr::addr_of!((*ptr).sA) as usize - ptr as usize },
7151 40usize,
7152 concat!(
7153 "Offset of field: ",
7154 stringify!(cl_int16__bindgen_ty_2),
7155 "::",
7156 stringify!(sA)
7157 )
7158 );
7159 assert_eq!(
7160 unsafe { ::std::ptr::addr_of!((*ptr).sB) as usize - ptr as usize },
7161 44usize,
7162 concat!(
7163 "Offset of field: ",
7164 stringify!(cl_int16__bindgen_ty_2),
7165 "::",
7166 stringify!(sB)
7167 )
7168 );
7169 assert_eq!(
7170 unsafe { ::std::ptr::addr_of!((*ptr).sC) as usize - ptr as usize },
7171 48usize,
7172 concat!(
7173 "Offset of field: ",
7174 stringify!(cl_int16__bindgen_ty_2),
7175 "::",
7176 stringify!(sC)
7177 )
7178 );
7179 assert_eq!(
7180 unsafe { ::std::ptr::addr_of!((*ptr).sD) as usize - ptr as usize },
7181 52usize,
7182 concat!(
7183 "Offset of field: ",
7184 stringify!(cl_int16__bindgen_ty_2),
7185 "::",
7186 stringify!(sD)
7187 )
7188 );
7189 assert_eq!(
7190 unsafe { ::std::ptr::addr_of!((*ptr).sE) as usize - ptr as usize },
7191 56usize,
7192 concat!(
7193 "Offset of field: ",
7194 stringify!(cl_int16__bindgen_ty_2),
7195 "::",
7196 stringify!(sE)
7197 )
7198 );
7199 assert_eq!(
7200 unsafe { ::std::ptr::addr_of!((*ptr).sF) as usize - ptr as usize },
7201 60usize,
7202 concat!(
7203 "Offset of field: ",
7204 stringify!(cl_int16__bindgen_ty_2),
7205 "::",
7206 stringify!(sF)
7207 )
7208 );
7209}
7210#[repr(C)]
7211#[repr(align(16))]
7212#[derive(Copy, Clone)]
7213pub struct cl_int16__bindgen_ty_3 {
7214 pub lo: cl_int8,
7215 pub hi: cl_int8,
7216}
7217#[test]
7218fn bindgen_test_layout_cl_int16__bindgen_ty_3() {
7219 const UNINIT: ::std::mem::MaybeUninit<cl_int16__bindgen_ty_3> =
7220 ::std::mem::MaybeUninit::uninit();
7221 let ptr = UNINIT.as_ptr();
7222 assert_eq!(
7223 ::std::mem::size_of::<cl_int16__bindgen_ty_3>(),
7224 64usize,
7225 concat!("Size of: ", stringify!(cl_int16__bindgen_ty_3))
7226 );
7227 assert_eq!(
7228 ::std::mem::align_of::<cl_int16__bindgen_ty_3>(),
7229 16usize,
7230 concat!("Alignment of ", stringify!(cl_int16__bindgen_ty_3))
7231 );
7232 assert_eq!(
7233 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
7234 0usize,
7235 concat!(
7236 "Offset of field: ",
7237 stringify!(cl_int16__bindgen_ty_3),
7238 "::",
7239 stringify!(lo)
7240 )
7241 );
7242 assert_eq!(
7243 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
7244 32usize,
7245 concat!(
7246 "Offset of field: ",
7247 stringify!(cl_int16__bindgen_ty_3),
7248 "::",
7249 stringify!(hi)
7250 )
7251 );
7252}
7253#[test]
7254fn bindgen_test_layout_cl_int16() {
7255 const UNINIT: ::std::mem::MaybeUninit<cl_int16> = ::std::mem::MaybeUninit::uninit();
7256 let ptr = UNINIT.as_ptr();
7257 assert_eq!(
7258 ::std::mem::size_of::<cl_int16>(),
7259 64usize,
7260 concat!("Size of: ", stringify!(cl_int16))
7261 );
7262 assert_eq!(
7263 ::std::mem::align_of::<cl_int16>(),
7264 16usize,
7265 concat!("Alignment of ", stringify!(cl_int16))
7266 );
7267 assert_eq!(
7268 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
7269 0usize,
7270 concat!(
7271 "Offset of field: ",
7272 stringify!(cl_int16),
7273 "::",
7274 stringify!(s)
7275 )
7276 );
7277 assert_eq!(
7278 unsafe { ::std::ptr::addr_of!((*ptr).v2) as usize - ptr as usize },
7279 0usize,
7280 concat!(
7281 "Offset of field: ",
7282 stringify!(cl_int16),
7283 "::",
7284 stringify!(v2)
7285 )
7286 );
7287 assert_eq!(
7288 unsafe { ::std::ptr::addr_of!((*ptr).v4) as usize - ptr as usize },
7289 0usize,
7290 concat!(
7291 "Offset of field: ",
7292 stringify!(cl_int16),
7293 "::",
7294 stringify!(v4)
7295 )
7296 );
7297}
7298#[repr(C)]
7299#[derive(Copy, Clone)]
7300pub union cl_uint2 {
7301 pub s: [cl_uint; 2usize],
7302 pub __bindgen_anon_1: cl_uint2__bindgen_ty_1,
7303 pub __bindgen_anon_2: cl_uint2__bindgen_ty_2,
7304 pub __bindgen_anon_3: cl_uint2__bindgen_ty_3,
7305 pub v2: __cl_uint2,
7306}
7307#[repr(C)]
7308#[derive(Debug, Copy, Clone)]
7309pub struct cl_uint2__bindgen_ty_1 {
7310 pub x: cl_uint,
7311 pub y: cl_uint,
7312}
7313#[test]
7314fn bindgen_test_layout_cl_uint2__bindgen_ty_1() {
7315 const UNINIT: ::std::mem::MaybeUninit<cl_uint2__bindgen_ty_1> =
7316 ::std::mem::MaybeUninit::uninit();
7317 let ptr = UNINIT.as_ptr();
7318 assert_eq!(
7319 ::std::mem::size_of::<cl_uint2__bindgen_ty_1>(),
7320 8usize,
7321 concat!("Size of: ", stringify!(cl_uint2__bindgen_ty_1))
7322 );
7323 assert_eq!(
7324 ::std::mem::align_of::<cl_uint2__bindgen_ty_1>(),
7325 4usize,
7326 concat!("Alignment of ", stringify!(cl_uint2__bindgen_ty_1))
7327 );
7328 assert_eq!(
7329 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
7330 0usize,
7331 concat!(
7332 "Offset of field: ",
7333 stringify!(cl_uint2__bindgen_ty_1),
7334 "::",
7335 stringify!(x)
7336 )
7337 );
7338 assert_eq!(
7339 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
7340 4usize,
7341 concat!(
7342 "Offset of field: ",
7343 stringify!(cl_uint2__bindgen_ty_1),
7344 "::",
7345 stringify!(y)
7346 )
7347 );
7348}
7349#[repr(C)]
7350#[derive(Debug, Copy, Clone)]
7351pub struct cl_uint2__bindgen_ty_2 {
7352 pub s0: cl_uint,
7353 pub s1: cl_uint,
7354}
7355#[test]
7356fn bindgen_test_layout_cl_uint2__bindgen_ty_2() {
7357 const UNINIT: ::std::mem::MaybeUninit<cl_uint2__bindgen_ty_2> =
7358 ::std::mem::MaybeUninit::uninit();
7359 let ptr = UNINIT.as_ptr();
7360 assert_eq!(
7361 ::std::mem::size_of::<cl_uint2__bindgen_ty_2>(),
7362 8usize,
7363 concat!("Size of: ", stringify!(cl_uint2__bindgen_ty_2))
7364 );
7365 assert_eq!(
7366 ::std::mem::align_of::<cl_uint2__bindgen_ty_2>(),
7367 4usize,
7368 concat!("Alignment of ", stringify!(cl_uint2__bindgen_ty_2))
7369 );
7370 assert_eq!(
7371 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
7372 0usize,
7373 concat!(
7374 "Offset of field: ",
7375 stringify!(cl_uint2__bindgen_ty_2),
7376 "::",
7377 stringify!(s0)
7378 )
7379 );
7380 assert_eq!(
7381 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
7382 4usize,
7383 concat!(
7384 "Offset of field: ",
7385 stringify!(cl_uint2__bindgen_ty_2),
7386 "::",
7387 stringify!(s1)
7388 )
7389 );
7390}
7391#[repr(C)]
7392#[derive(Debug, Copy, Clone)]
7393pub struct cl_uint2__bindgen_ty_3 {
7394 pub lo: cl_uint,
7395 pub hi: cl_uint,
7396}
7397#[test]
7398fn bindgen_test_layout_cl_uint2__bindgen_ty_3() {
7399 const UNINIT: ::std::mem::MaybeUninit<cl_uint2__bindgen_ty_3> =
7400 ::std::mem::MaybeUninit::uninit();
7401 let ptr = UNINIT.as_ptr();
7402 assert_eq!(
7403 ::std::mem::size_of::<cl_uint2__bindgen_ty_3>(),
7404 8usize,
7405 concat!("Size of: ", stringify!(cl_uint2__bindgen_ty_3))
7406 );
7407 assert_eq!(
7408 ::std::mem::align_of::<cl_uint2__bindgen_ty_3>(),
7409 4usize,
7410 concat!("Alignment of ", stringify!(cl_uint2__bindgen_ty_3))
7411 );
7412 assert_eq!(
7413 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
7414 0usize,
7415 concat!(
7416 "Offset of field: ",
7417 stringify!(cl_uint2__bindgen_ty_3),
7418 "::",
7419 stringify!(lo)
7420 )
7421 );
7422 assert_eq!(
7423 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
7424 4usize,
7425 concat!(
7426 "Offset of field: ",
7427 stringify!(cl_uint2__bindgen_ty_3),
7428 "::",
7429 stringify!(hi)
7430 )
7431 );
7432}
7433#[test]
7434fn bindgen_test_layout_cl_uint2() {
7435 const UNINIT: ::std::mem::MaybeUninit<cl_uint2> = ::std::mem::MaybeUninit::uninit();
7436 let ptr = UNINIT.as_ptr();
7437 assert_eq!(
7438 ::std::mem::size_of::<cl_uint2>(),
7439 8usize,
7440 concat!("Size of: ", stringify!(cl_uint2))
7441 );
7442 assert_eq!(
7443 ::std::mem::align_of::<cl_uint2>(),
7444 8usize,
7445 concat!("Alignment of ", stringify!(cl_uint2))
7446 );
7447 assert_eq!(
7448 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
7449 0usize,
7450 concat!(
7451 "Offset of field: ",
7452 stringify!(cl_uint2),
7453 "::",
7454 stringify!(s)
7455 )
7456 );
7457 assert_eq!(
7458 unsafe { ::std::ptr::addr_of!((*ptr).v2) as usize - ptr as usize },
7459 0usize,
7460 concat!(
7461 "Offset of field: ",
7462 stringify!(cl_uint2),
7463 "::",
7464 stringify!(v2)
7465 )
7466 );
7467}
7468#[repr(C)]
7469#[repr(align(16))]
7470#[derive(Copy, Clone)]
7471pub union cl_uint4 {
7472 pub s: [cl_uint; 4usize],
7473 pub __bindgen_anon_1: cl_uint4__bindgen_ty_1,
7474 pub __bindgen_anon_2: cl_uint4__bindgen_ty_2,
7475 pub __bindgen_anon_3: cl_uint4__bindgen_ty_3,
7476 pub v2: [__cl_uint2; 2usize],
7477 pub v4: __cl_uint4,
7478}
7479#[repr(C)]
7480#[derive(Debug, Copy, Clone)]
7481pub struct cl_uint4__bindgen_ty_1 {
7482 pub x: cl_uint,
7483 pub y: cl_uint,
7484 pub z: cl_uint,
7485 pub w: cl_uint,
7486}
7487#[test]
7488fn bindgen_test_layout_cl_uint4__bindgen_ty_1() {
7489 const UNINIT: ::std::mem::MaybeUninit<cl_uint4__bindgen_ty_1> =
7490 ::std::mem::MaybeUninit::uninit();
7491 let ptr = UNINIT.as_ptr();
7492 assert_eq!(
7493 ::std::mem::size_of::<cl_uint4__bindgen_ty_1>(),
7494 16usize,
7495 concat!("Size of: ", stringify!(cl_uint4__bindgen_ty_1))
7496 );
7497 assert_eq!(
7498 ::std::mem::align_of::<cl_uint4__bindgen_ty_1>(),
7499 4usize,
7500 concat!("Alignment of ", stringify!(cl_uint4__bindgen_ty_1))
7501 );
7502 assert_eq!(
7503 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
7504 0usize,
7505 concat!(
7506 "Offset of field: ",
7507 stringify!(cl_uint4__bindgen_ty_1),
7508 "::",
7509 stringify!(x)
7510 )
7511 );
7512 assert_eq!(
7513 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
7514 4usize,
7515 concat!(
7516 "Offset of field: ",
7517 stringify!(cl_uint4__bindgen_ty_1),
7518 "::",
7519 stringify!(y)
7520 )
7521 );
7522 assert_eq!(
7523 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
7524 8usize,
7525 concat!(
7526 "Offset of field: ",
7527 stringify!(cl_uint4__bindgen_ty_1),
7528 "::",
7529 stringify!(z)
7530 )
7531 );
7532 assert_eq!(
7533 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
7534 12usize,
7535 concat!(
7536 "Offset of field: ",
7537 stringify!(cl_uint4__bindgen_ty_1),
7538 "::",
7539 stringify!(w)
7540 )
7541 );
7542}
7543#[repr(C)]
7544#[derive(Debug, Copy, Clone)]
7545pub struct cl_uint4__bindgen_ty_2 {
7546 pub s0: cl_uint,
7547 pub s1: cl_uint,
7548 pub s2: cl_uint,
7549 pub s3: cl_uint,
7550}
7551#[test]
7552fn bindgen_test_layout_cl_uint4__bindgen_ty_2() {
7553 const UNINIT: ::std::mem::MaybeUninit<cl_uint4__bindgen_ty_2> =
7554 ::std::mem::MaybeUninit::uninit();
7555 let ptr = UNINIT.as_ptr();
7556 assert_eq!(
7557 ::std::mem::size_of::<cl_uint4__bindgen_ty_2>(),
7558 16usize,
7559 concat!("Size of: ", stringify!(cl_uint4__bindgen_ty_2))
7560 );
7561 assert_eq!(
7562 ::std::mem::align_of::<cl_uint4__bindgen_ty_2>(),
7563 4usize,
7564 concat!("Alignment of ", stringify!(cl_uint4__bindgen_ty_2))
7565 );
7566 assert_eq!(
7567 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
7568 0usize,
7569 concat!(
7570 "Offset of field: ",
7571 stringify!(cl_uint4__bindgen_ty_2),
7572 "::",
7573 stringify!(s0)
7574 )
7575 );
7576 assert_eq!(
7577 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
7578 4usize,
7579 concat!(
7580 "Offset of field: ",
7581 stringify!(cl_uint4__bindgen_ty_2),
7582 "::",
7583 stringify!(s1)
7584 )
7585 );
7586 assert_eq!(
7587 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
7588 8usize,
7589 concat!(
7590 "Offset of field: ",
7591 stringify!(cl_uint4__bindgen_ty_2),
7592 "::",
7593 stringify!(s2)
7594 )
7595 );
7596 assert_eq!(
7597 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
7598 12usize,
7599 concat!(
7600 "Offset of field: ",
7601 stringify!(cl_uint4__bindgen_ty_2),
7602 "::",
7603 stringify!(s3)
7604 )
7605 );
7606}
7607#[repr(C)]
7608#[derive(Copy, Clone)]
7609pub struct cl_uint4__bindgen_ty_3 {
7610 pub lo: cl_uint2,
7611 pub hi: cl_uint2,
7612}
7613#[test]
7614fn bindgen_test_layout_cl_uint4__bindgen_ty_3() {
7615 const UNINIT: ::std::mem::MaybeUninit<cl_uint4__bindgen_ty_3> =
7616 ::std::mem::MaybeUninit::uninit();
7617 let ptr = UNINIT.as_ptr();
7618 assert_eq!(
7619 ::std::mem::size_of::<cl_uint4__bindgen_ty_3>(),
7620 16usize,
7621 concat!("Size of: ", stringify!(cl_uint4__bindgen_ty_3))
7622 );
7623 assert_eq!(
7624 ::std::mem::align_of::<cl_uint4__bindgen_ty_3>(),
7625 8usize,
7626 concat!("Alignment of ", stringify!(cl_uint4__bindgen_ty_3))
7627 );
7628 assert_eq!(
7629 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
7630 0usize,
7631 concat!(
7632 "Offset of field: ",
7633 stringify!(cl_uint4__bindgen_ty_3),
7634 "::",
7635 stringify!(lo)
7636 )
7637 );
7638 assert_eq!(
7639 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
7640 8usize,
7641 concat!(
7642 "Offset of field: ",
7643 stringify!(cl_uint4__bindgen_ty_3),
7644 "::",
7645 stringify!(hi)
7646 )
7647 );
7648}
7649#[test]
7650fn bindgen_test_layout_cl_uint4() {
7651 const UNINIT: ::std::mem::MaybeUninit<cl_uint4> = ::std::mem::MaybeUninit::uninit();
7652 let ptr = UNINIT.as_ptr();
7653 assert_eq!(
7654 ::std::mem::size_of::<cl_uint4>(),
7655 16usize,
7656 concat!("Size of: ", stringify!(cl_uint4))
7657 );
7658 assert_eq!(
7659 ::std::mem::align_of::<cl_uint4>(),
7660 16usize,
7661 concat!("Alignment of ", stringify!(cl_uint4))
7662 );
7663 assert_eq!(
7664 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
7665 0usize,
7666 concat!(
7667 "Offset of field: ",
7668 stringify!(cl_uint4),
7669 "::",
7670 stringify!(s)
7671 )
7672 );
7673 assert_eq!(
7674 unsafe { ::std::ptr::addr_of!((*ptr).v2) as usize - ptr as usize },
7675 0usize,
7676 concat!(
7677 "Offset of field: ",
7678 stringify!(cl_uint4),
7679 "::",
7680 stringify!(v2)
7681 )
7682 );
7683 assert_eq!(
7684 unsafe { ::std::ptr::addr_of!((*ptr).v4) as usize - ptr as usize },
7685 0usize,
7686 concat!(
7687 "Offset of field: ",
7688 stringify!(cl_uint4),
7689 "::",
7690 stringify!(v4)
7691 )
7692 );
7693}
7694pub type cl_uint3 = cl_uint4;
7695#[repr(C)]
7696#[repr(align(16))]
7697#[derive(Copy, Clone)]
7698pub union cl_uint8 {
7699 pub s: [cl_uint; 8usize],
7700 pub __bindgen_anon_1: cl_uint8__bindgen_ty_1,
7701 pub __bindgen_anon_2: cl_uint8__bindgen_ty_2,
7702 pub __bindgen_anon_3: cl_uint8__bindgen_ty_3,
7703 pub v2: [__cl_uint2; 4usize],
7704 pub v4: [__cl_uint4; 2usize],
7705}
7706#[repr(C)]
7707#[derive(Debug, Copy, Clone)]
7708pub struct cl_uint8__bindgen_ty_1 {
7709 pub x: cl_uint,
7710 pub y: cl_uint,
7711 pub z: cl_uint,
7712 pub w: cl_uint,
7713}
7714#[test]
7715fn bindgen_test_layout_cl_uint8__bindgen_ty_1() {
7716 const UNINIT: ::std::mem::MaybeUninit<cl_uint8__bindgen_ty_1> =
7717 ::std::mem::MaybeUninit::uninit();
7718 let ptr = UNINIT.as_ptr();
7719 assert_eq!(
7720 ::std::mem::size_of::<cl_uint8__bindgen_ty_1>(),
7721 16usize,
7722 concat!("Size of: ", stringify!(cl_uint8__bindgen_ty_1))
7723 );
7724 assert_eq!(
7725 ::std::mem::align_of::<cl_uint8__bindgen_ty_1>(),
7726 4usize,
7727 concat!("Alignment of ", stringify!(cl_uint8__bindgen_ty_1))
7728 );
7729 assert_eq!(
7730 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
7731 0usize,
7732 concat!(
7733 "Offset of field: ",
7734 stringify!(cl_uint8__bindgen_ty_1),
7735 "::",
7736 stringify!(x)
7737 )
7738 );
7739 assert_eq!(
7740 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
7741 4usize,
7742 concat!(
7743 "Offset of field: ",
7744 stringify!(cl_uint8__bindgen_ty_1),
7745 "::",
7746 stringify!(y)
7747 )
7748 );
7749 assert_eq!(
7750 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
7751 8usize,
7752 concat!(
7753 "Offset of field: ",
7754 stringify!(cl_uint8__bindgen_ty_1),
7755 "::",
7756 stringify!(z)
7757 )
7758 );
7759 assert_eq!(
7760 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
7761 12usize,
7762 concat!(
7763 "Offset of field: ",
7764 stringify!(cl_uint8__bindgen_ty_1),
7765 "::",
7766 stringify!(w)
7767 )
7768 );
7769}
7770#[repr(C)]
7771#[derive(Debug, Copy, Clone)]
7772pub struct cl_uint8__bindgen_ty_2 {
7773 pub s0: cl_uint,
7774 pub s1: cl_uint,
7775 pub s2: cl_uint,
7776 pub s3: cl_uint,
7777 pub s4: cl_uint,
7778 pub s5: cl_uint,
7779 pub s6: cl_uint,
7780 pub s7: cl_uint,
7781}
7782#[test]
7783fn bindgen_test_layout_cl_uint8__bindgen_ty_2() {
7784 const UNINIT: ::std::mem::MaybeUninit<cl_uint8__bindgen_ty_2> =
7785 ::std::mem::MaybeUninit::uninit();
7786 let ptr = UNINIT.as_ptr();
7787 assert_eq!(
7788 ::std::mem::size_of::<cl_uint8__bindgen_ty_2>(),
7789 32usize,
7790 concat!("Size of: ", stringify!(cl_uint8__bindgen_ty_2))
7791 );
7792 assert_eq!(
7793 ::std::mem::align_of::<cl_uint8__bindgen_ty_2>(),
7794 4usize,
7795 concat!("Alignment of ", stringify!(cl_uint8__bindgen_ty_2))
7796 );
7797 assert_eq!(
7798 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
7799 0usize,
7800 concat!(
7801 "Offset of field: ",
7802 stringify!(cl_uint8__bindgen_ty_2),
7803 "::",
7804 stringify!(s0)
7805 )
7806 );
7807 assert_eq!(
7808 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
7809 4usize,
7810 concat!(
7811 "Offset of field: ",
7812 stringify!(cl_uint8__bindgen_ty_2),
7813 "::",
7814 stringify!(s1)
7815 )
7816 );
7817 assert_eq!(
7818 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
7819 8usize,
7820 concat!(
7821 "Offset of field: ",
7822 stringify!(cl_uint8__bindgen_ty_2),
7823 "::",
7824 stringify!(s2)
7825 )
7826 );
7827 assert_eq!(
7828 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
7829 12usize,
7830 concat!(
7831 "Offset of field: ",
7832 stringify!(cl_uint8__bindgen_ty_2),
7833 "::",
7834 stringify!(s3)
7835 )
7836 );
7837 assert_eq!(
7838 unsafe { ::std::ptr::addr_of!((*ptr).s4) as usize - ptr as usize },
7839 16usize,
7840 concat!(
7841 "Offset of field: ",
7842 stringify!(cl_uint8__bindgen_ty_2),
7843 "::",
7844 stringify!(s4)
7845 )
7846 );
7847 assert_eq!(
7848 unsafe { ::std::ptr::addr_of!((*ptr).s5) as usize - ptr as usize },
7849 20usize,
7850 concat!(
7851 "Offset of field: ",
7852 stringify!(cl_uint8__bindgen_ty_2),
7853 "::",
7854 stringify!(s5)
7855 )
7856 );
7857 assert_eq!(
7858 unsafe { ::std::ptr::addr_of!((*ptr).s6) as usize - ptr as usize },
7859 24usize,
7860 concat!(
7861 "Offset of field: ",
7862 stringify!(cl_uint8__bindgen_ty_2),
7863 "::",
7864 stringify!(s6)
7865 )
7866 );
7867 assert_eq!(
7868 unsafe { ::std::ptr::addr_of!((*ptr).s7) as usize - ptr as usize },
7869 28usize,
7870 concat!(
7871 "Offset of field: ",
7872 stringify!(cl_uint8__bindgen_ty_2),
7873 "::",
7874 stringify!(s7)
7875 )
7876 );
7877}
7878#[repr(C)]
7879#[repr(align(16))]
7880#[derive(Copy, Clone)]
7881pub struct cl_uint8__bindgen_ty_3 {
7882 pub lo: cl_uint4,
7883 pub hi: cl_uint4,
7884}
7885#[test]
7886fn bindgen_test_layout_cl_uint8__bindgen_ty_3() {
7887 const UNINIT: ::std::mem::MaybeUninit<cl_uint8__bindgen_ty_3> =
7888 ::std::mem::MaybeUninit::uninit();
7889 let ptr = UNINIT.as_ptr();
7890 assert_eq!(
7891 ::std::mem::size_of::<cl_uint8__bindgen_ty_3>(),
7892 32usize,
7893 concat!("Size of: ", stringify!(cl_uint8__bindgen_ty_3))
7894 );
7895 assert_eq!(
7896 ::std::mem::align_of::<cl_uint8__bindgen_ty_3>(),
7897 16usize,
7898 concat!("Alignment of ", stringify!(cl_uint8__bindgen_ty_3))
7899 );
7900 assert_eq!(
7901 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
7902 0usize,
7903 concat!(
7904 "Offset of field: ",
7905 stringify!(cl_uint8__bindgen_ty_3),
7906 "::",
7907 stringify!(lo)
7908 )
7909 );
7910 assert_eq!(
7911 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
7912 16usize,
7913 concat!(
7914 "Offset of field: ",
7915 stringify!(cl_uint8__bindgen_ty_3),
7916 "::",
7917 stringify!(hi)
7918 )
7919 );
7920}
7921#[test]
7922fn bindgen_test_layout_cl_uint8() {
7923 const UNINIT: ::std::mem::MaybeUninit<cl_uint8> = ::std::mem::MaybeUninit::uninit();
7924 let ptr = UNINIT.as_ptr();
7925 assert_eq!(
7926 ::std::mem::size_of::<cl_uint8>(),
7927 32usize,
7928 concat!("Size of: ", stringify!(cl_uint8))
7929 );
7930 assert_eq!(
7931 ::std::mem::align_of::<cl_uint8>(),
7932 16usize,
7933 concat!("Alignment of ", stringify!(cl_uint8))
7934 );
7935 assert_eq!(
7936 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
7937 0usize,
7938 concat!(
7939 "Offset of field: ",
7940 stringify!(cl_uint8),
7941 "::",
7942 stringify!(s)
7943 )
7944 );
7945 assert_eq!(
7946 unsafe { ::std::ptr::addr_of!((*ptr).v2) as usize - ptr as usize },
7947 0usize,
7948 concat!(
7949 "Offset of field: ",
7950 stringify!(cl_uint8),
7951 "::",
7952 stringify!(v2)
7953 )
7954 );
7955 assert_eq!(
7956 unsafe { ::std::ptr::addr_of!((*ptr).v4) as usize - ptr as usize },
7957 0usize,
7958 concat!(
7959 "Offset of field: ",
7960 stringify!(cl_uint8),
7961 "::",
7962 stringify!(v4)
7963 )
7964 );
7965}
7966#[repr(C)]
7967#[repr(align(16))]
7968#[derive(Copy, Clone)]
7969pub union cl_uint16 {
7970 pub s: [cl_uint; 16usize],
7971 pub __bindgen_anon_1: cl_uint16__bindgen_ty_1,
7972 pub __bindgen_anon_2: cl_uint16__bindgen_ty_2,
7973 pub __bindgen_anon_3: cl_uint16__bindgen_ty_3,
7974 pub v2: [__cl_uint2; 8usize],
7975 pub v4: [__cl_uint4; 4usize],
7976}
7977#[repr(C)]
7978#[derive(Debug, Copy, Clone)]
7979pub struct cl_uint16__bindgen_ty_1 {
7980 pub x: cl_uint,
7981 pub y: cl_uint,
7982 pub z: cl_uint,
7983 pub w: cl_uint,
7984 pub __spacer4: cl_uint,
7985 pub __spacer5: cl_uint,
7986 pub __spacer6: cl_uint,
7987 pub __spacer7: cl_uint,
7988 pub __spacer8: cl_uint,
7989 pub __spacer9: cl_uint,
7990 pub sa: cl_uint,
7991 pub sb: cl_uint,
7992 pub sc: cl_uint,
7993 pub sd: cl_uint,
7994 pub se: cl_uint,
7995 pub sf: cl_uint,
7996}
7997#[test]
7998fn bindgen_test_layout_cl_uint16__bindgen_ty_1() {
7999 const UNINIT: ::std::mem::MaybeUninit<cl_uint16__bindgen_ty_1> =
8000 ::std::mem::MaybeUninit::uninit();
8001 let ptr = UNINIT.as_ptr();
8002 assert_eq!(
8003 ::std::mem::size_of::<cl_uint16__bindgen_ty_1>(),
8004 64usize,
8005 concat!("Size of: ", stringify!(cl_uint16__bindgen_ty_1))
8006 );
8007 assert_eq!(
8008 ::std::mem::align_of::<cl_uint16__bindgen_ty_1>(),
8009 4usize,
8010 concat!("Alignment of ", stringify!(cl_uint16__bindgen_ty_1))
8011 );
8012 assert_eq!(
8013 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
8014 0usize,
8015 concat!(
8016 "Offset of field: ",
8017 stringify!(cl_uint16__bindgen_ty_1),
8018 "::",
8019 stringify!(x)
8020 )
8021 );
8022 assert_eq!(
8023 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
8024 4usize,
8025 concat!(
8026 "Offset of field: ",
8027 stringify!(cl_uint16__bindgen_ty_1),
8028 "::",
8029 stringify!(y)
8030 )
8031 );
8032 assert_eq!(
8033 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
8034 8usize,
8035 concat!(
8036 "Offset of field: ",
8037 stringify!(cl_uint16__bindgen_ty_1),
8038 "::",
8039 stringify!(z)
8040 )
8041 );
8042 assert_eq!(
8043 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
8044 12usize,
8045 concat!(
8046 "Offset of field: ",
8047 stringify!(cl_uint16__bindgen_ty_1),
8048 "::",
8049 stringify!(w)
8050 )
8051 );
8052 assert_eq!(
8053 unsafe { ::std::ptr::addr_of!((*ptr).__spacer4) as usize - ptr as usize },
8054 16usize,
8055 concat!(
8056 "Offset of field: ",
8057 stringify!(cl_uint16__bindgen_ty_1),
8058 "::",
8059 stringify!(__spacer4)
8060 )
8061 );
8062 assert_eq!(
8063 unsafe { ::std::ptr::addr_of!((*ptr).__spacer5) as usize - ptr as usize },
8064 20usize,
8065 concat!(
8066 "Offset of field: ",
8067 stringify!(cl_uint16__bindgen_ty_1),
8068 "::",
8069 stringify!(__spacer5)
8070 )
8071 );
8072 assert_eq!(
8073 unsafe { ::std::ptr::addr_of!((*ptr).__spacer6) as usize - ptr as usize },
8074 24usize,
8075 concat!(
8076 "Offset of field: ",
8077 stringify!(cl_uint16__bindgen_ty_1),
8078 "::",
8079 stringify!(__spacer6)
8080 )
8081 );
8082 assert_eq!(
8083 unsafe { ::std::ptr::addr_of!((*ptr).__spacer7) as usize - ptr as usize },
8084 28usize,
8085 concat!(
8086 "Offset of field: ",
8087 stringify!(cl_uint16__bindgen_ty_1),
8088 "::",
8089 stringify!(__spacer7)
8090 )
8091 );
8092 assert_eq!(
8093 unsafe { ::std::ptr::addr_of!((*ptr).__spacer8) as usize - ptr as usize },
8094 32usize,
8095 concat!(
8096 "Offset of field: ",
8097 stringify!(cl_uint16__bindgen_ty_1),
8098 "::",
8099 stringify!(__spacer8)
8100 )
8101 );
8102 assert_eq!(
8103 unsafe { ::std::ptr::addr_of!((*ptr).__spacer9) as usize - ptr as usize },
8104 36usize,
8105 concat!(
8106 "Offset of field: ",
8107 stringify!(cl_uint16__bindgen_ty_1),
8108 "::",
8109 stringify!(__spacer9)
8110 )
8111 );
8112 assert_eq!(
8113 unsafe { ::std::ptr::addr_of!((*ptr).sa) as usize - ptr as usize },
8114 40usize,
8115 concat!(
8116 "Offset of field: ",
8117 stringify!(cl_uint16__bindgen_ty_1),
8118 "::",
8119 stringify!(sa)
8120 )
8121 );
8122 assert_eq!(
8123 unsafe { ::std::ptr::addr_of!((*ptr).sb) as usize - ptr as usize },
8124 44usize,
8125 concat!(
8126 "Offset of field: ",
8127 stringify!(cl_uint16__bindgen_ty_1),
8128 "::",
8129 stringify!(sb)
8130 )
8131 );
8132 assert_eq!(
8133 unsafe { ::std::ptr::addr_of!((*ptr).sc) as usize - ptr as usize },
8134 48usize,
8135 concat!(
8136 "Offset of field: ",
8137 stringify!(cl_uint16__bindgen_ty_1),
8138 "::",
8139 stringify!(sc)
8140 )
8141 );
8142 assert_eq!(
8143 unsafe { ::std::ptr::addr_of!((*ptr).sd) as usize - ptr as usize },
8144 52usize,
8145 concat!(
8146 "Offset of field: ",
8147 stringify!(cl_uint16__bindgen_ty_1),
8148 "::",
8149 stringify!(sd)
8150 )
8151 );
8152 assert_eq!(
8153 unsafe { ::std::ptr::addr_of!((*ptr).se) as usize - ptr as usize },
8154 56usize,
8155 concat!(
8156 "Offset of field: ",
8157 stringify!(cl_uint16__bindgen_ty_1),
8158 "::",
8159 stringify!(se)
8160 )
8161 );
8162 assert_eq!(
8163 unsafe { ::std::ptr::addr_of!((*ptr).sf) as usize - ptr as usize },
8164 60usize,
8165 concat!(
8166 "Offset of field: ",
8167 stringify!(cl_uint16__bindgen_ty_1),
8168 "::",
8169 stringify!(sf)
8170 )
8171 );
8172}
8173#[repr(C)]
8174#[derive(Debug, Copy, Clone)]
8175pub struct cl_uint16__bindgen_ty_2 {
8176 pub s0: cl_uint,
8177 pub s1: cl_uint,
8178 pub s2: cl_uint,
8179 pub s3: cl_uint,
8180 pub s4: cl_uint,
8181 pub s5: cl_uint,
8182 pub s6: cl_uint,
8183 pub s7: cl_uint,
8184 pub s8: cl_uint,
8185 pub s9: cl_uint,
8186 pub sA: cl_uint,
8187 pub sB: cl_uint,
8188 pub sC: cl_uint,
8189 pub sD: cl_uint,
8190 pub sE: cl_uint,
8191 pub sF: cl_uint,
8192}
8193#[test]
8194fn bindgen_test_layout_cl_uint16__bindgen_ty_2() {
8195 const UNINIT: ::std::mem::MaybeUninit<cl_uint16__bindgen_ty_2> =
8196 ::std::mem::MaybeUninit::uninit();
8197 let ptr = UNINIT.as_ptr();
8198 assert_eq!(
8199 ::std::mem::size_of::<cl_uint16__bindgen_ty_2>(),
8200 64usize,
8201 concat!("Size of: ", stringify!(cl_uint16__bindgen_ty_2))
8202 );
8203 assert_eq!(
8204 ::std::mem::align_of::<cl_uint16__bindgen_ty_2>(),
8205 4usize,
8206 concat!("Alignment of ", stringify!(cl_uint16__bindgen_ty_2))
8207 );
8208 assert_eq!(
8209 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
8210 0usize,
8211 concat!(
8212 "Offset of field: ",
8213 stringify!(cl_uint16__bindgen_ty_2),
8214 "::",
8215 stringify!(s0)
8216 )
8217 );
8218 assert_eq!(
8219 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
8220 4usize,
8221 concat!(
8222 "Offset of field: ",
8223 stringify!(cl_uint16__bindgen_ty_2),
8224 "::",
8225 stringify!(s1)
8226 )
8227 );
8228 assert_eq!(
8229 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
8230 8usize,
8231 concat!(
8232 "Offset of field: ",
8233 stringify!(cl_uint16__bindgen_ty_2),
8234 "::",
8235 stringify!(s2)
8236 )
8237 );
8238 assert_eq!(
8239 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
8240 12usize,
8241 concat!(
8242 "Offset of field: ",
8243 stringify!(cl_uint16__bindgen_ty_2),
8244 "::",
8245 stringify!(s3)
8246 )
8247 );
8248 assert_eq!(
8249 unsafe { ::std::ptr::addr_of!((*ptr).s4) as usize - ptr as usize },
8250 16usize,
8251 concat!(
8252 "Offset of field: ",
8253 stringify!(cl_uint16__bindgen_ty_2),
8254 "::",
8255 stringify!(s4)
8256 )
8257 );
8258 assert_eq!(
8259 unsafe { ::std::ptr::addr_of!((*ptr).s5) as usize - ptr as usize },
8260 20usize,
8261 concat!(
8262 "Offset of field: ",
8263 stringify!(cl_uint16__bindgen_ty_2),
8264 "::",
8265 stringify!(s5)
8266 )
8267 );
8268 assert_eq!(
8269 unsafe { ::std::ptr::addr_of!((*ptr).s6) as usize - ptr as usize },
8270 24usize,
8271 concat!(
8272 "Offset of field: ",
8273 stringify!(cl_uint16__bindgen_ty_2),
8274 "::",
8275 stringify!(s6)
8276 )
8277 );
8278 assert_eq!(
8279 unsafe { ::std::ptr::addr_of!((*ptr).s7) as usize - ptr as usize },
8280 28usize,
8281 concat!(
8282 "Offset of field: ",
8283 stringify!(cl_uint16__bindgen_ty_2),
8284 "::",
8285 stringify!(s7)
8286 )
8287 );
8288 assert_eq!(
8289 unsafe { ::std::ptr::addr_of!((*ptr).s8) as usize - ptr as usize },
8290 32usize,
8291 concat!(
8292 "Offset of field: ",
8293 stringify!(cl_uint16__bindgen_ty_2),
8294 "::",
8295 stringify!(s8)
8296 )
8297 );
8298 assert_eq!(
8299 unsafe { ::std::ptr::addr_of!((*ptr).s9) as usize - ptr as usize },
8300 36usize,
8301 concat!(
8302 "Offset of field: ",
8303 stringify!(cl_uint16__bindgen_ty_2),
8304 "::",
8305 stringify!(s9)
8306 )
8307 );
8308 assert_eq!(
8309 unsafe { ::std::ptr::addr_of!((*ptr).sA) as usize - ptr as usize },
8310 40usize,
8311 concat!(
8312 "Offset of field: ",
8313 stringify!(cl_uint16__bindgen_ty_2),
8314 "::",
8315 stringify!(sA)
8316 )
8317 );
8318 assert_eq!(
8319 unsafe { ::std::ptr::addr_of!((*ptr).sB) as usize - ptr as usize },
8320 44usize,
8321 concat!(
8322 "Offset of field: ",
8323 stringify!(cl_uint16__bindgen_ty_2),
8324 "::",
8325 stringify!(sB)
8326 )
8327 );
8328 assert_eq!(
8329 unsafe { ::std::ptr::addr_of!((*ptr).sC) as usize - ptr as usize },
8330 48usize,
8331 concat!(
8332 "Offset of field: ",
8333 stringify!(cl_uint16__bindgen_ty_2),
8334 "::",
8335 stringify!(sC)
8336 )
8337 );
8338 assert_eq!(
8339 unsafe { ::std::ptr::addr_of!((*ptr).sD) as usize - ptr as usize },
8340 52usize,
8341 concat!(
8342 "Offset of field: ",
8343 stringify!(cl_uint16__bindgen_ty_2),
8344 "::",
8345 stringify!(sD)
8346 )
8347 );
8348 assert_eq!(
8349 unsafe { ::std::ptr::addr_of!((*ptr).sE) as usize - ptr as usize },
8350 56usize,
8351 concat!(
8352 "Offset of field: ",
8353 stringify!(cl_uint16__bindgen_ty_2),
8354 "::",
8355 stringify!(sE)
8356 )
8357 );
8358 assert_eq!(
8359 unsafe { ::std::ptr::addr_of!((*ptr).sF) as usize - ptr as usize },
8360 60usize,
8361 concat!(
8362 "Offset of field: ",
8363 stringify!(cl_uint16__bindgen_ty_2),
8364 "::",
8365 stringify!(sF)
8366 )
8367 );
8368}
8369#[repr(C)]
8370#[repr(align(16))]
8371#[derive(Copy, Clone)]
8372pub struct cl_uint16__bindgen_ty_3 {
8373 pub lo: cl_uint8,
8374 pub hi: cl_uint8,
8375}
8376#[test]
8377fn bindgen_test_layout_cl_uint16__bindgen_ty_3() {
8378 const UNINIT: ::std::mem::MaybeUninit<cl_uint16__bindgen_ty_3> =
8379 ::std::mem::MaybeUninit::uninit();
8380 let ptr = UNINIT.as_ptr();
8381 assert_eq!(
8382 ::std::mem::size_of::<cl_uint16__bindgen_ty_3>(),
8383 64usize,
8384 concat!("Size of: ", stringify!(cl_uint16__bindgen_ty_3))
8385 );
8386 assert_eq!(
8387 ::std::mem::align_of::<cl_uint16__bindgen_ty_3>(),
8388 16usize,
8389 concat!("Alignment of ", stringify!(cl_uint16__bindgen_ty_3))
8390 );
8391 assert_eq!(
8392 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
8393 0usize,
8394 concat!(
8395 "Offset of field: ",
8396 stringify!(cl_uint16__bindgen_ty_3),
8397 "::",
8398 stringify!(lo)
8399 )
8400 );
8401 assert_eq!(
8402 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
8403 32usize,
8404 concat!(
8405 "Offset of field: ",
8406 stringify!(cl_uint16__bindgen_ty_3),
8407 "::",
8408 stringify!(hi)
8409 )
8410 );
8411}
8412#[test]
8413fn bindgen_test_layout_cl_uint16() {
8414 const UNINIT: ::std::mem::MaybeUninit<cl_uint16> = ::std::mem::MaybeUninit::uninit();
8415 let ptr = UNINIT.as_ptr();
8416 assert_eq!(
8417 ::std::mem::size_of::<cl_uint16>(),
8418 64usize,
8419 concat!("Size of: ", stringify!(cl_uint16))
8420 );
8421 assert_eq!(
8422 ::std::mem::align_of::<cl_uint16>(),
8423 16usize,
8424 concat!("Alignment of ", stringify!(cl_uint16))
8425 );
8426 assert_eq!(
8427 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
8428 0usize,
8429 concat!(
8430 "Offset of field: ",
8431 stringify!(cl_uint16),
8432 "::",
8433 stringify!(s)
8434 )
8435 );
8436 assert_eq!(
8437 unsafe { ::std::ptr::addr_of!((*ptr).v2) as usize - ptr as usize },
8438 0usize,
8439 concat!(
8440 "Offset of field: ",
8441 stringify!(cl_uint16),
8442 "::",
8443 stringify!(v2)
8444 )
8445 );
8446 assert_eq!(
8447 unsafe { ::std::ptr::addr_of!((*ptr).v4) as usize - ptr as usize },
8448 0usize,
8449 concat!(
8450 "Offset of field: ",
8451 stringify!(cl_uint16),
8452 "::",
8453 stringify!(v4)
8454 )
8455 );
8456}
8457#[repr(C)]
8458#[repr(align(16))]
8459#[derive(Copy, Clone)]
8460pub union cl_long2 {
8461 pub s: [cl_long; 2usize],
8462 pub __bindgen_anon_1: cl_long2__bindgen_ty_1,
8463 pub __bindgen_anon_2: cl_long2__bindgen_ty_2,
8464 pub __bindgen_anon_3: cl_long2__bindgen_ty_3,
8465 pub v2: __cl_long2,
8466}
8467#[repr(C)]
8468#[derive(Debug, Copy, Clone)]
8469pub struct cl_long2__bindgen_ty_1 {
8470 pub x: cl_long,
8471 pub y: cl_long,
8472}
8473#[test]
8474fn bindgen_test_layout_cl_long2__bindgen_ty_1() {
8475 const UNINIT: ::std::mem::MaybeUninit<cl_long2__bindgen_ty_1> =
8476 ::std::mem::MaybeUninit::uninit();
8477 let ptr = UNINIT.as_ptr();
8478 assert_eq!(
8479 ::std::mem::size_of::<cl_long2__bindgen_ty_1>(),
8480 16usize,
8481 concat!("Size of: ", stringify!(cl_long2__bindgen_ty_1))
8482 );
8483 assert_eq!(
8484 ::std::mem::align_of::<cl_long2__bindgen_ty_1>(),
8485 8usize,
8486 concat!("Alignment of ", stringify!(cl_long2__bindgen_ty_1))
8487 );
8488 assert_eq!(
8489 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
8490 0usize,
8491 concat!(
8492 "Offset of field: ",
8493 stringify!(cl_long2__bindgen_ty_1),
8494 "::",
8495 stringify!(x)
8496 )
8497 );
8498 assert_eq!(
8499 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
8500 8usize,
8501 concat!(
8502 "Offset of field: ",
8503 stringify!(cl_long2__bindgen_ty_1),
8504 "::",
8505 stringify!(y)
8506 )
8507 );
8508}
8509#[repr(C)]
8510#[derive(Debug, Copy, Clone)]
8511pub struct cl_long2__bindgen_ty_2 {
8512 pub s0: cl_long,
8513 pub s1: cl_long,
8514}
8515#[test]
8516fn bindgen_test_layout_cl_long2__bindgen_ty_2() {
8517 const UNINIT: ::std::mem::MaybeUninit<cl_long2__bindgen_ty_2> =
8518 ::std::mem::MaybeUninit::uninit();
8519 let ptr = UNINIT.as_ptr();
8520 assert_eq!(
8521 ::std::mem::size_of::<cl_long2__bindgen_ty_2>(),
8522 16usize,
8523 concat!("Size of: ", stringify!(cl_long2__bindgen_ty_2))
8524 );
8525 assert_eq!(
8526 ::std::mem::align_of::<cl_long2__bindgen_ty_2>(),
8527 8usize,
8528 concat!("Alignment of ", stringify!(cl_long2__bindgen_ty_2))
8529 );
8530 assert_eq!(
8531 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
8532 0usize,
8533 concat!(
8534 "Offset of field: ",
8535 stringify!(cl_long2__bindgen_ty_2),
8536 "::",
8537 stringify!(s0)
8538 )
8539 );
8540 assert_eq!(
8541 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
8542 8usize,
8543 concat!(
8544 "Offset of field: ",
8545 stringify!(cl_long2__bindgen_ty_2),
8546 "::",
8547 stringify!(s1)
8548 )
8549 );
8550}
8551#[repr(C)]
8552#[derive(Debug, Copy, Clone)]
8553pub struct cl_long2__bindgen_ty_3 {
8554 pub lo: cl_long,
8555 pub hi: cl_long,
8556}
8557#[test]
8558fn bindgen_test_layout_cl_long2__bindgen_ty_3() {
8559 const UNINIT: ::std::mem::MaybeUninit<cl_long2__bindgen_ty_3> =
8560 ::std::mem::MaybeUninit::uninit();
8561 let ptr = UNINIT.as_ptr();
8562 assert_eq!(
8563 ::std::mem::size_of::<cl_long2__bindgen_ty_3>(),
8564 16usize,
8565 concat!("Size of: ", stringify!(cl_long2__bindgen_ty_3))
8566 );
8567 assert_eq!(
8568 ::std::mem::align_of::<cl_long2__bindgen_ty_3>(),
8569 8usize,
8570 concat!("Alignment of ", stringify!(cl_long2__bindgen_ty_3))
8571 );
8572 assert_eq!(
8573 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
8574 0usize,
8575 concat!(
8576 "Offset of field: ",
8577 stringify!(cl_long2__bindgen_ty_3),
8578 "::",
8579 stringify!(lo)
8580 )
8581 );
8582 assert_eq!(
8583 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
8584 8usize,
8585 concat!(
8586 "Offset of field: ",
8587 stringify!(cl_long2__bindgen_ty_3),
8588 "::",
8589 stringify!(hi)
8590 )
8591 );
8592}
8593#[test]
8594fn bindgen_test_layout_cl_long2() {
8595 const UNINIT: ::std::mem::MaybeUninit<cl_long2> = ::std::mem::MaybeUninit::uninit();
8596 let ptr = UNINIT.as_ptr();
8597 assert_eq!(
8598 ::std::mem::size_of::<cl_long2>(),
8599 16usize,
8600 concat!("Size of: ", stringify!(cl_long2))
8601 );
8602 assert_eq!(
8603 ::std::mem::align_of::<cl_long2>(),
8604 16usize,
8605 concat!("Alignment of ", stringify!(cl_long2))
8606 );
8607 assert_eq!(
8608 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
8609 0usize,
8610 concat!(
8611 "Offset of field: ",
8612 stringify!(cl_long2),
8613 "::",
8614 stringify!(s)
8615 )
8616 );
8617 assert_eq!(
8618 unsafe { ::std::ptr::addr_of!((*ptr).v2) as usize - ptr as usize },
8619 0usize,
8620 concat!(
8621 "Offset of field: ",
8622 stringify!(cl_long2),
8623 "::",
8624 stringify!(v2)
8625 )
8626 );
8627}
8628#[repr(C)]
8629#[repr(align(16))]
8630#[derive(Copy, Clone)]
8631pub union cl_long4 {
8632 pub s: [cl_long; 4usize],
8633 pub __bindgen_anon_1: cl_long4__bindgen_ty_1,
8634 pub __bindgen_anon_2: cl_long4__bindgen_ty_2,
8635 pub __bindgen_anon_3: cl_long4__bindgen_ty_3,
8636 pub v2: [__cl_long2; 2usize],
8637}
8638#[repr(C)]
8639#[derive(Debug, Copy, Clone)]
8640pub struct cl_long4__bindgen_ty_1 {
8641 pub x: cl_long,
8642 pub y: cl_long,
8643 pub z: cl_long,
8644 pub w: cl_long,
8645}
8646#[test]
8647fn bindgen_test_layout_cl_long4__bindgen_ty_1() {
8648 const UNINIT: ::std::mem::MaybeUninit<cl_long4__bindgen_ty_1> =
8649 ::std::mem::MaybeUninit::uninit();
8650 let ptr = UNINIT.as_ptr();
8651 assert_eq!(
8652 ::std::mem::size_of::<cl_long4__bindgen_ty_1>(),
8653 32usize,
8654 concat!("Size of: ", stringify!(cl_long4__bindgen_ty_1))
8655 );
8656 assert_eq!(
8657 ::std::mem::align_of::<cl_long4__bindgen_ty_1>(),
8658 8usize,
8659 concat!("Alignment of ", stringify!(cl_long4__bindgen_ty_1))
8660 );
8661 assert_eq!(
8662 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
8663 0usize,
8664 concat!(
8665 "Offset of field: ",
8666 stringify!(cl_long4__bindgen_ty_1),
8667 "::",
8668 stringify!(x)
8669 )
8670 );
8671 assert_eq!(
8672 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
8673 8usize,
8674 concat!(
8675 "Offset of field: ",
8676 stringify!(cl_long4__bindgen_ty_1),
8677 "::",
8678 stringify!(y)
8679 )
8680 );
8681 assert_eq!(
8682 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
8683 16usize,
8684 concat!(
8685 "Offset of field: ",
8686 stringify!(cl_long4__bindgen_ty_1),
8687 "::",
8688 stringify!(z)
8689 )
8690 );
8691 assert_eq!(
8692 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
8693 24usize,
8694 concat!(
8695 "Offset of field: ",
8696 stringify!(cl_long4__bindgen_ty_1),
8697 "::",
8698 stringify!(w)
8699 )
8700 );
8701}
8702#[repr(C)]
8703#[derive(Debug, Copy, Clone)]
8704pub struct cl_long4__bindgen_ty_2 {
8705 pub s0: cl_long,
8706 pub s1: cl_long,
8707 pub s2: cl_long,
8708 pub s3: cl_long,
8709}
8710#[test]
8711fn bindgen_test_layout_cl_long4__bindgen_ty_2() {
8712 const UNINIT: ::std::mem::MaybeUninit<cl_long4__bindgen_ty_2> =
8713 ::std::mem::MaybeUninit::uninit();
8714 let ptr = UNINIT.as_ptr();
8715 assert_eq!(
8716 ::std::mem::size_of::<cl_long4__bindgen_ty_2>(),
8717 32usize,
8718 concat!("Size of: ", stringify!(cl_long4__bindgen_ty_2))
8719 );
8720 assert_eq!(
8721 ::std::mem::align_of::<cl_long4__bindgen_ty_2>(),
8722 8usize,
8723 concat!("Alignment of ", stringify!(cl_long4__bindgen_ty_2))
8724 );
8725 assert_eq!(
8726 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
8727 0usize,
8728 concat!(
8729 "Offset of field: ",
8730 stringify!(cl_long4__bindgen_ty_2),
8731 "::",
8732 stringify!(s0)
8733 )
8734 );
8735 assert_eq!(
8736 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
8737 8usize,
8738 concat!(
8739 "Offset of field: ",
8740 stringify!(cl_long4__bindgen_ty_2),
8741 "::",
8742 stringify!(s1)
8743 )
8744 );
8745 assert_eq!(
8746 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
8747 16usize,
8748 concat!(
8749 "Offset of field: ",
8750 stringify!(cl_long4__bindgen_ty_2),
8751 "::",
8752 stringify!(s2)
8753 )
8754 );
8755 assert_eq!(
8756 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
8757 24usize,
8758 concat!(
8759 "Offset of field: ",
8760 stringify!(cl_long4__bindgen_ty_2),
8761 "::",
8762 stringify!(s3)
8763 )
8764 );
8765}
8766#[repr(C)]
8767#[repr(align(16))]
8768#[derive(Copy, Clone)]
8769pub struct cl_long4__bindgen_ty_3 {
8770 pub lo: cl_long2,
8771 pub hi: cl_long2,
8772}
8773#[test]
8774fn bindgen_test_layout_cl_long4__bindgen_ty_3() {
8775 const UNINIT: ::std::mem::MaybeUninit<cl_long4__bindgen_ty_3> =
8776 ::std::mem::MaybeUninit::uninit();
8777 let ptr = UNINIT.as_ptr();
8778 assert_eq!(
8779 ::std::mem::size_of::<cl_long4__bindgen_ty_3>(),
8780 32usize,
8781 concat!("Size of: ", stringify!(cl_long4__bindgen_ty_3))
8782 );
8783 assert_eq!(
8784 ::std::mem::align_of::<cl_long4__bindgen_ty_3>(),
8785 16usize,
8786 concat!("Alignment of ", stringify!(cl_long4__bindgen_ty_3))
8787 );
8788 assert_eq!(
8789 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
8790 0usize,
8791 concat!(
8792 "Offset of field: ",
8793 stringify!(cl_long4__bindgen_ty_3),
8794 "::",
8795 stringify!(lo)
8796 )
8797 );
8798 assert_eq!(
8799 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
8800 16usize,
8801 concat!(
8802 "Offset of field: ",
8803 stringify!(cl_long4__bindgen_ty_3),
8804 "::",
8805 stringify!(hi)
8806 )
8807 );
8808}
8809#[test]
8810fn bindgen_test_layout_cl_long4() {
8811 const UNINIT: ::std::mem::MaybeUninit<cl_long4> = ::std::mem::MaybeUninit::uninit();
8812 let ptr = UNINIT.as_ptr();
8813 assert_eq!(
8814 ::std::mem::size_of::<cl_long4>(),
8815 32usize,
8816 concat!("Size of: ", stringify!(cl_long4))
8817 );
8818 assert_eq!(
8819 ::std::mem::align_of::<cl_long4>(),
8820 16usize,
8821 concat!("Alignment of ", stringify!(cl_long4))
8822 );
8823 assert_eq!(
8824 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
8825 0usize,
8826 concat!(
8827 "Offset of field: ",
8828 stringify!(cl_long4),
8829 "::",
8830 stringify!(s)
8831 )
8832 );
8833 assert_eq!(
8834 unsafe { ::std::ptr::addr_of!((*ptr).v2) as usize - ptr as usize },
8835 0usize,
8836 concat!(
8837 "Offset of field: ",
8838 stringify!(cl_long4),
8839 "::",
8840 stringify!(v2)
8841 )
8842 );
8843}
8844pub type cl_long3 = cl_long4;
8845#[repr(C)]
8846#[repr(align(16))]
8847#[derive(Copy, Clone)]
8848pub union cl_long8 {
8849 pub s: [cl_long; 8usize],
8850 pub __bindgen_anon_1: cl_long8__bindgen_ty_1,
8851 pub __bindgen_anon_2: cl_long8__bindgen_ty_2,
8852 pub __bindgen_anon_3: cl_long8__bindgen_ty_3,
8853 pub v2: [__cl_long2; 4usize],
8854}
8855#[repr(C)]
8856#[derive(Debug, Copy, Clone)]
8857pub struct cl_long8__bindgen_ty_1 {
8858 pub x: cl_long,
8859 pub y: cl_long,
8860 pub z: cl_long,
8861 pub w: cl_long,
8862}
8863#[test]
8864fn bindgen_test_layout_cl_long8__bindgen_ty_1() {
8865 const UNINIT: ::std::mem::MaybeUninit<cl_long8__bindgen_ty_1> =
8866 ::std::mem::MaybeUninit::uninit();
8867 let ptr = UNINIT.as_ptr();
8868 assert_eq!(
8869 ::std::mem::size_of::<cl_long8__bindgen_ty_1>(),
8870 32usize,
8871 concat!("Size of: ", stringify!(cl_long8__bindgen_ty_1))
8872 );
8873 assert_eq!(
8874 ::std::mem::align_of::<cl_long8__bindgen_ty_1>(),
8875 8usize,
8876 concat!("Alignment of ", stringify!(cl_long8__bindgen_ty_1))
8877 );
8878 assert_eq!(
8879 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
8880 0usize,
8881 concat!(
8882 "Offset of field: ",
8883 stringify!(cl_long8__bindgen_ty_1),
8884 "::",
8885 stringify!(x)
8886 )
8887 );
8888 assert_eq!(
8889 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
8890 8usize,
8891 concat!(
8892 "Offset of field: ",
8893 stringify!(cl_long8__bindgen_ty_1),
8894 "::",
8895 stringify!(y)
8896 )
8897 );
8898 assert_eq!(
8899 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
8900 16usize,
8901 concat!(
8902 "Offset of field: ",
8903 stringify!(cl_long8__bindgen_ty_1),
8904 "::",
8905 stringify!(z)
8906 )
8907 );
8908 assert_eq!(
8909 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
8910 24usize,
8911 concat!(
8912 "Offset of field: ",
8913 stringify!(cl_long8__bindgen_ty_1),
8914 "::",
8915 stringify!(w)
8916 )
8917 );
8918}
8919#[repr(C)]
8920#[derive(Debug, Copy, Clone)]
8921pub struct cl_long8__bindgen_ty_2 {
8922 pub s0: cl_long,
8923 pub s1: cl_long,
8924 pub s2: cl_long,
8925 pub s3: cl_long,
8926 pub s4: cl_long,
8927 pub s5: cl_long,
8928 pub s6: cl_long,
8929 pub s7: cl_long,
8930}
8931#[test]
8932fn bindgen_test_layout_cl_long8__bindgen_ty_2() {
8933 const UNINIT: ::std::mem::MaybeUninit<cl_long8__bindgen_ty_2> =
8934 ::std::mem::MaybeUninit::uninit();
8935 let ptr = UNINIT.as_ptr();
8936 assert_eq!(
8937 ::std::mem::size_of::<cl_long8__bindgen_ty_2>(),
8938 64usize,
8939 concat!("Size of: ", stringify!(cl_long8__bindgen_ty_2))
8940 );
8941 assert_eq!(
8942 ::std::mem::align_of::<cl_long8__bindgen_ty_2>(),
8943 8usize,
8944 concat!("Alignment of ", stringify!(cl_long8__bindgen_ty_2))
8945 );
8946 assert_eq!(
8947 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
8948 0usize,
8949 concat!(
8950 "Offset of field: ",
8951 stringify!(cl_long8__bindgen_ty_2),
8952 "::",
8953 stringify!(s0)
8954 )
8955 );
8956 assert_eq!(
8957 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
8958 8usize,
8959 concat!(
8960 "Offset of field: ",
8961 stringify!(cl_long8__bindgen_ty_2),
8962 "::",
8963 stringify!(s1)
8964 )
8965 );
8966 assert_eq!(
8967 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
8968 16usize,
8969 concat!(
8970 "Offset of field: ",
8971 stringify!(cl_long8__bindgen_ty_2),
8972 "::",
8973 stringify!(s2)
8974 )
8975 );
8976 assert_eq!(
8977 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
8978 24usize,
8979 concat!(
8980 "Offset of field: ",
8981 stringify!(cl_long8__bindgen_ty_2),
8982 "::",
8983 stringify!(s3)
8984 )
8985 );
8986 assert_eq!(
8987 unsafe { ::std::ptr::addr_of!((*ptr).s4) as usize - ptr as usize },
8988 32usize,
8989 concat!(
8990 "Offset of field: ",
8991 stringify!(cl_long8__bindgen_ty_2),
8992 "::",
8993 stringify!(s4)
8994 )
8995 );
8996 assert_eq!(
8997 unsafe { ::std::ptr::addr_of!((*ptr).s5) as usize - ptr as usize },
8998 40usize,
8999 concat!(
9000 "Offset of field: ",
9001 stringify!(cl_long8__bindgen_ty_2),
9002 "::",
9003 stringify!(s5)
9004 )
9005 );
9006 assert_eq!(
9007 unsafe { ::std::ptr::addr_of!((*ptr).s6) as usize - ptr as usize },
9008 48usize,
9009 concat!(
9010 "Offset of field: ",
9011 stringify!(cl_long8__bindgen_ty_2),
9012 "::",
9013 stringify!(s6)
9014 )
9015 );
9016 assert_eq!(
9017 unsafe { ::std::ptr::addr_of!((*ptr).s7) as usize - ptr as usize },
9018 56usize,
9019 concat!(
9020 "Offset of field: ",
9021 stringify!(cl_long8__bindgen_ty_2),
9022 "::",
9023 stringify!(s7)
9024 )
9025 );
9026}
9027#[repr(C)]
9028#[repr(align(16))]
9029#[derive(Copy, Clone)]
9030pub struct cl_long8__bindgen_ty_3 {
9031 pub lo: cl_long4,
9032 pub hi: cl_long4,
9033}
9034#[test]
9035fn bindgen_test_layout_cl_long8__bindgen_ty_3() {
9036 const UNINIT: ::std::mem::MaybeUninit<cl_long8__bindgen_ty_3> =
9037 ::std::mem::MaybeUninit::uninit();
9038 let ptr = UNINIT.as_ptr();
9039 assert_eq!(
9040 ::std::mem::size_of::<cl_long8__bindgen_ty_3>(),
9041 64usize,
9042 concat!("Size of: ", stringify!(cl_long8__bindgen_ty_3))
9043 );
9044 assert_eq!(
9045 ::std::mem::align_of::<cl_long8__bindgen_ty_3>(),
9046 16usize,
9047 concat!("Alignment of ", stringify!(cl_long8__bindgen_ty_3))
9048 );
9049 assert_eq!(
9050 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
9051 0usize,
9052 concat!(
9053 "Offset of field: ",
9054 stringify!(cl_long8__bindgen_ty_3),
9055 "::",
9056 stringify!(lo)
9057 )
9058 );
9059 assert_eq!(
9060 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
9061 32usize,
9062 concat!(
9063 "Offset of field: ",
9064 stringify!(cl_long8__bindgen_ty_3),
9065 "::",
9066 stringify!(hi)
9067 )
9068 );
9069}
9070#[test]
9071fn bindgen_test_layout_cl_long8() {
9072 const UNINIT: ::std::mem::MaybeUninit<cl_long8> = ::std::mem::MaybeUninit::uninit();
9073 let ptr = UNINIT.as_ptr();
9074 assert_eq!(
9075 ::std::mem::size_of::<cl_long8>(),
9076 64usize,
9077 concat!("Size of: ", stringify!(cl_long8))
9078 );
9079 assert_eq!(
9080 ::std::mem::align_of::<cl_long8>(),
9081 16usize,
9082 concat!("Alignment of ", stringify!(cl_long8))
9083 );
9084 assert_eq!(
9085 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
9086 0usize,
9087 concat!(
9088 "Offset of field: ",
9089 stringify!(cl_long8),
9090 "::",
9091 stringify!(s)
9092 )
9093 );
9094 assert_eq!(
9095 unsafe { ::std::ptr::addr_of!((*ptr).v2) as usize - ptr as usize },
9096 0usize,
9097 concat!(
9098 "Offset of field: ",
9099 stringify!(cl_long8),
9100 "::",
9101 stringify!(v2)
9102 )
9103 );
9104}
9105#[repr(C)]
9106#[repr(align(16))]
9107#[derive(Copy, Clone)]
9108pub union cl_long16 {
9109 pub s: [cl_long; 16usize],
9110 pub __bindgen_anon_1: cl_long16__bindgen_ty_1,
9111 pub __bindgen_anon_2: cl_long16__bindgen_ty_2,
9112 pub __bindgen_anon_3: cl_long16__bindgen_ty_3,
9113 pub v2: [__cl_long2; 8usize],
9114}
9115#[repr(C)]
9116#[derive(Debug, Copy, Clone)]
9117pub struct cl_long16__bindgen_ty_1 {
9118 pub x: cl_long,
9119 pub y: cl_long,
9120 pub z: cl_long,
9121 pub w: cl_long,
9122 pub __spacer4: cl_long,
9123 pub __spacer5: cl_long,
9124 pub __spacer6: cl_long,
9125 pub __spacer7: cl_long,
9126 pub __spacer8: cl_long,
9127 pub __spacer9: cl_long,
9128 pub sa: cl_long,
9129 pub sb: cl_long,
9130 pub sc: cl_long,
9131 pub sd: cl_long,
9132 pub se: cl_long,
9133 pub sf: cl_long,
9134}
9135#[test]
9136fn bindgen_test_layout_cl_long16__bindgen_ty_1() {
9137 const UNINIT: ::std::mem::MaybeUninit<cl_long16__bindgen_ty_1> =
9138 ::std::mem::MaybeUninit::uninit();
9139 let ptr = UNINIT.as_ptr();
9140 assert_eq!(
9141 ::std::mem::size_of::<cl_long16__bindgen_ty_1>(),
9142 128usize,
9143 concat!("Size of: ", stringify!(cl_long16__bindgen_ty_1))
9144 );
9145 assert_eq!(
9146 ::std::mem::align_of::<cl_long16__bindgen_ty_1>(),
9147 8usize,
9148 concat!("Alignment of ", stringify!(cl_long16__bindgen_ty_1))
9149 );
9150 assert_eq!(
9151 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
9152 0usize,
9153 concat!(
9154 "Offset of field: ",
9155 stringify!(cl_long16__bindgen_ty_1),
9156 "::",
9157 stringify!(x)
9158 )
9159 );
9160 assert_eq!(
9161 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
9162 8usize,
9163 concat!(
9164 "Offset of field: ",
9165 stringify!(cl_long16__bindgen_ty_1),
9166 "::",
9167 stringify!(y)
9168 )
9169 );
9170 assert_eq!(
9171 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
9172 16usize,
9173 concat!(
9174 "Offset of field: ",
9175 stringify!(cl_long16__bindgen_ty_1),
9176 "::",
9177 stringify!(z)
9178 )
9179 );
9180 assert_eq!(
9181 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
9182 24usize,
9183 concat!(
9184 "Offset of field: ",
9185 stringify!(cl_long16__bindgen_ty_1),
9186 "::",
9187 stringify!(w)
9188 )
9189 );
9190 assert_eq!(
9191 unsafe { ::std::ptr::addr_of!((*ptr).__spacer4) as usize - ptr as usize },
9192 32usize,
9193 concat!(
9194 "Offset of field: ",
9195 stringify!(cl_long16__bindgen_ty_1),
9196 "::",
9197 stringify!(__spacer4)
9198 )
9199 );
9200 assert_eq!(
9201 unsafe { ::std::ptr::addr_of!((*ptr).__spacer5) as usize - ptr as usize },
9202 40usize,
9203 concat!(
9204 "Offset of field: ",
9205 stringify!(cl_long16__bindgen_ty_1),
9206 "::",
9207 stringify!(__spacer5)
9208 )
9209 );
9210 assert_eq!(
9211 unsafe { ::std::ptr::addr_of!((*ptr).__spacer6) as usize - ptr as usize },
9212 48usize,
9213 concat!(
9214 "Offset of field: ",
9215 stringify!(cl_long16__bindgen_ty_1),
9216 "::",
9217 stringify!(__spacer6)
9218 )
9219 );
9220 assert_eq!(
9221 unsafe { ::std::ptr::addr_of!((*ptr).__spacer7) as usize - ptr as usize },
9222 56usize,
9223 concat!(
9224 "Offset of field: ",
9225 stringify!(cl_long16__bindgen_ty_1),
9226 "::",
9227 stringify!(__spacer7)
9228 )
9229 );
9230 assert_eq!(
9231 unsafe { ::std::ptr::addr_of!((*ptr).__spacer8) as usize - ptr as usize },
9232 64usize,
9233 concat!(
9234 "Offset of field: ",
9235 stringify!(cl_long16__bindgen_ty_1),
9236 "::",
9237 stringify!(__spacer8)
9238 )
9239 );
9240 assert_eq!(
9241 unsafe { ::std::ptr::addr_of!((*ptr).__spacer9) as usize - ptr as usize },
9242 72usize,
9243 concat!(
9244 "Offset of field: ",
9245 stringify!(cl_long16__bindgen_ty_1),
9246 "::",
9247 stringify!(__spacer9)
9248 )
9249 );
9250 assert_eq!(
9251 unsafe { ::std::ptr::addr_of!((*ptr).sa) as usize - ptr as usize },
9252 80usize,
9253 concat!(
9254 "Offset of field: ",
9255 stringify!(cl_long16__bindgen_ty_1),
9256 "::",
9257 stringify!(sa)
9258 )
9259 );
9260 assert_eq!(
9261 unsafe { ::std::ptr::addr_of!((*ptr).sb) as usize - ptr as usize },
9262 88usize,
9263 concat!(
9264 "Offset of field: ",
9265 stringify!(cl_long16__bindgen_ty_1),
9266 "::",
9267 stringify!(sb)
9268 )
9269 );
9270 assert_eq!(
9271 unsafe { ::std::ptr::addr_of!((*ptr).sc) as usize - ptr as usize },
9272 96usize,
9273 concat!(
9274 "Offset of field: ",
9275 stringify!(cl_long16__bindgen_ty_1),
9276 "::",
9277 stringify!(sc)
9278 )
9279 );
9280 assert_eq!(
9281 unsafe { ::std::ptr::addr_of!((*ptr).sd) as usize - ptr as usize },
9282 104usize,
9283 concat!(
9284 "Offset of field: ",
9285 stringify!(cl_long16__bindgen_ty_1),
9286 "::",
9287 stringify!(sd)
9288 )
9289 );
9290 assert_eq!(
9291 unsafe { ::std::ptr::addr_of!((*ptr).se) as usize - ptr as usize },
9292 112usize,
9293 concat!(
9294 "Offset of field: ",
9295 stringify!(cl_long16__bindgen_ty_1),
9296 "::",
9297 stringify!(se)
9298 )
9299 );
9300 assert_eq!(
9301 unsafe { ::std::ptr::addr_of!((*ptr).sf) as usize - ptr as usize },
9302 120usize,
9303 concat!(
9304 "Offset of field: ",
9305 stringify!(cl_long16__bindgen_ty_1),
9306 "::",
9307 stringify!(sf)
9308 )
9309 );
9310}
9311#[repr(C)]
9312#[derive(Debug, Copy, Clone)]
9313pub struct cl_long16__bindgen_ty_2 {
9314 pub s0: cl_long,
9315 pub s1: cl_long,
9316 pub s2: cl_long,
9317 pub s3: cl_long,
9318 pub s4: cl_long,
9319 pub s5: cl_long,
9320 pub s6: cl_long,
9321 pub s7: cl_long,
9322 pub s8: cl_long,
9323 pub s9: cl_long,
9324 pub sA: cl_long,
9325 pub sB: cl_long,
9326 pub sC: cl_long,
9327 pub sD: cl_long,
9328 pub sE: cl_long,
9329 pub sF: cl_long,
9330}
9331#[test]
9332fn bindgen_test_layout_cl_long16__bindgen_ty_2() {
9333 const UNINIT: ::std::mem::MaybeUninit<cl_long16__bindgen_ty_2> =
9334 ::std::mem::MaybeUninit::uninit();
9335 let ptr = UNINIT.as_ptr();
9336 assert_eq!(
9337 ::std::mem::size_of::<cl_long16__bindgen_ty_2>(),
9338 128usize,
9339 concat!("Size of: ", stringify!(cl_long16__bindgen_ty_2))
9340 );
9341 assert_eq!(
9342 ::std::mem::align_of::<cl_long16__bindgen_ty_2>(),
9343 8usize,
9344 concat!("Alignment of ", stringify!(cl_long16__bindgen_ty_2))
9345 );
9346 assert_eq!(
9347 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
9348 0usize,
9349 concat!(
9350 "Offset of field: ",
9351 stringify!(cl_long16__bindgen_ty_2),
9352 "::",
9353 stringify!(s0)
9354 )
9355 );
9356 assert_eq!(
9357 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
9358 8usize,
9359 concat!(
9360 "Offset of field: ",
9361 stringify!(cl_long16__bindgen_ty_2),
9362 "::",
9363 stringify!(s1)
9364 )
9365 );
9366 assert_eq!(
9367 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
9368 16usize,
9369 concat!(
9370 "Offset of field: ",
9371 stringify!(cl_long16__bindgen_ty_2),
9372 "::",
9373 stringify!(s2)
9374 )
9375 );
9376 assert_eq!(
9377 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
9378 24usize,
9379 concat!(
9380 "Offset of field: ",
9381 stringify!(cl_long16__bindgen_ty_2),
9382 "::",
9383 stringify!(s3)
9384 )
9385 );
9386 assert_eq!(
9387 unsafe { ::std::ptr::addr_of!((*ptr).s4) as usize - ptr as usize },
9388 32usize,
9389 concat!(
9390 "Offset of field: ",
9391 stringify!(cl_long16__bindgen_ty_2),
9392 "::",
9393 stringify!(s4)
9394 )
9395 );
9396 assert_eq!(
9397 unsafe { ::std::ptr::addr_of!((*ptr).s5) as usize - ptr as usize },
9398 40usize,
9399 concat!(
9400 "Offset of field: ",
9401 stringify!(cl_long16__bindgen_ty_2),
9402 "::",
9403 stringify!(s5)
9404 )
9405 );
9406 assert_eq!(
9407 unsafe { ::std::ptr::addr_of!((*ptr).s6) as usize - ptr as usize },
9408 48usize,
9409 concat!(
9410 "Offset of field: ",
9411 stringify!(cl_long16__bindgen_ty_2),
9412 "::",
9413 stringify!(s6)
9414 )
9415 );
9416 assert_eq!(
9417 unsafe { ::std::ptr::addr_of!((*ptr).s7) as usize - ptr as usize },
9418 56usize,
9419 concat!(
9420 "Offset of field: ",
9421 stringify!(cl_long16__bindgen_ty_2),
9422 "::",
9423 stringify!(s7)
9424 )
9425 );
9426 assert_eq!(
9427 unsafe { ::std::ptr::addr_of!((*ptr).s8) as usize - ptr as usize },
9428 64usize,
9429 concat!(
9430 "Offset of field: ",
9431 stringify!(cl_long16__bindgen_ty_2),
9432 "::",
9433 stringify!(s8)
9434 )
9435 );
9436 assert_eq!(
9437 unsafe { ::std::ptr::addr_of!((*ptr).s9) as usize - ptr as usize },
9438 72usize,
9439 concat!(
9440 "Offset of field: ",
9441 stringify!(cl_long16__bindgen_ty_2),
9442 "::",
9443 stringify!(s9)
9444 )
9445 );
9446 assert_eq!(
9447 unsafe { ::std::ptr::addr_of!((*ptr).sA) as usize - ptr as usize },
9448 80usize,
9449 concat!(
9450 "Offset of field: ",
9451 stringify!(cl_long16__bindgen_ty_2),
9452 "::",
9453 stringify!(sA)
9454 )
9455 );
9456 assert_eq!(
9457 unsafe { ::std::ptr::addr_of!((*ptr).sB) as usize - ptr as usize },
9458 88usize,
9459 concat!(
9460 "Offset of field: ",
9461 stringify!(cl_long16__bindgen_ty_2),
9462 "::",
9463 stringify!(sB)
9464 )
9465 );
9466 assert_eq!(
9467 unsafe { ::std::ptr::addr_of!((*ptr).sC) as usize - ptr as usize },
9468 96usize,
9469 concat!(
9470 "Offset of field: ",
9471 stringify!(cl_long16__bindgen_ty_2),
9472 "::",
9473 stringify!(sC)
9474 )
9475 );
9476 assert_eq!(
9477 unsafe { ::std::ptr::addr_of!((*ptr).sD) as usize - ptr as usize },
9478 104usize,
9479 concat!(
9480 "Offset of field: ",
9481 stringify!(cl_long16__bindgen_ty_2),
9482 "::",
9483 stringify!(sD)
9484 )
9485 );
9486 assert_eq!(
9487 unsafe { ::std::ptr::addr_of!((*ptr).sE) as usize - ptr as usize },
9488 112usize,
9489 concat!(
9490 "Offset of field: ",
9491 stringify!(cl_long16__bindgen_ty_2),
9492 "::",
9493 stringify!(sE)
9494 )
9495 );
9496 assert_eq!(
9497 unsafe { ::std::ptr::addr_of!((*ptr).sF) as usize - ptr as usize },
9498 120usize,
9499 concat!(
9500 "Offset of field: ",
9501 stringify!(cl_long16__bindgen_ty_2),
9502 "::",
9503 stringify!(sF)
9504 )
9505 );
9506}
9507#[repr(C)]
9508#[repr(align(16))]
9509#[derive(Copy, Clone)]
9510pub struct cl_long16__bindgen_ty_3 {
9511 pub lo: cl_long8,
9512 pub hi: cl_long8,
9513}
9514#[test]
9515fn bindgen_test_layout_cl_long16__bindgen_ty_3() {
9516 const UNINIT: ::std::mem::MaybeUninit<cl_long16__bindgen_ty_3> =
9517 ::std::mem::MaybeUninit::uninit();
9518 let ptr = UNINIT.as_ptr();
9519 assert_eq!(
9520 ::std::mem::size_of::<cl_long16__bindgen_ty_3>(),
9521 128usize,
9522 concat!("Size of: ", stringify!(cl_long16__bindgen_ty_3))
9523 );
9524 assert_eq!(
9525 ::std::mem::align_of::<cl_long16__bindgen_ty_3>(),
9526 16usize,
9527 concat!("Alignment of ", stringify!(cl_long16__bindgen_ty_3))
9528 );
9529 assert_eq!(
9530 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
9531 0usize,
9532 concat!(
9533 "Offset of field: ",
9534 stringify!(cl_long16__bindgen_ty_3),
9535 "::",
9536 stringify!(lo)
9537 )
9538 );
9539 assert_eq!(
9540 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
9541 64usize,
9542 concat!(
9543 "Offset of field: ",
9544 stringify!(cl_long16__bindgen_ty_3),
9545 "::",
9546 stringify!(hi)
9547 )
9548 );
9549}
9550#[test]
9551fn bindgen_test_layout_cl_long16() {
9552 const UNINIT: ::std::mem::MaybeUninit<cl_long16> = ::std::mem::MaybeUninit::uninit();
9553 let ptr = UNINIT.as_ptr();
9554 assert_eq!(
9555 ::std::mem::size_of::<cl_long16>(),
9556 128usize,
9557 concat!("Size of: ", stringify!(cl_long16))
9558 );
9559 assert_eq!(
9560 ::std::mem::align_of::<cl_long16>(),
9561 16usize,
9562 concat!("Alignment of ", stringify!(cl_long16))
9563 );
9564 assert_eq!(
9565 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
9566 0usize,
9567 concat!(
9568 "Offset of field: ",
9569 stringify!(cl_long16),
9570 "::",
9571 stringify!(s)
9572 )
9573 );
9574 assert_eq!(
9575 unsafe { ::std::ptr::addr_of!((*ptr).v2) as usize - ptr as usize },
9576 0usize,
9577 concat!(
9578 "Offset of field: ",
9579 stringify!(cl_long16),
9580 "::",
9581 stringify!(v2)
9582 )
9583 );
9584}
9585#[repr(C)]
9586#[repr(align(16))]
9587#[derive(Copy, Clone)]
9588pub union cl_ulong2 {
9589 pub s: [cl_ulong; 2usize],
9590 pub __bindgen_anon_1: cl_ulong2__bindgen_ty_1,
9591 pub __bindgen_anon_2: cl_ulong2__bindgen_ty_2,
9592 pub __bindgen_anon_3: cl_ulong2__bindgen_ty_3,
9593 pub v2: __cl_ulong2,
9594}
9595#[repr(C)]
9596#[derive(Debug, Copy, Clone)]
9597pub struct cl_ulong2__bindgen_ty_1 {
9598 pub x: cl_ulong,
9599 pub y: cl_ulong,
9600}
9601#[test]
9602fn bindgen_test_layout_cl_ulong2__bindgen_ty_1() {
9603 const UNINIT: ::std::mem::MaybeUninit<cl_ulong2__bindgen_ty_1> =
9604 ::std::mem::MaybeUninit::uninit();
9605 let ptr = UNINIT.as_ptr();
9606 assert_eq!(
9607 ::std::mem::size_of::<cl_ulong2__bindgen_ty_1>(),
9608 16usize,
9609 concat!("Size of: ", stringify!(cl_ulong2__bindgen_ty_1))
9610 );
9611 assert_eq!(
9612 ::std::mem::align_of::<cl_ulong2__bindgen_ty_1>(),
9613 8usize,
9614 concat!("Alignment of ", stringify!(cl_ulong2__bindgen_ty_1))
9615 );
9616 assert_eq!(
9617 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
9618 0usize,
9619 concat!(
9620 "Offset of field: ",
9621 stringify!(cl_ulong2__bindgen_ty_1),
9622 "::",
9623 stringify!(x)
9624 )
9625 );
9626 assert_eq!(
9627 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
9628 8usize,
9629 concat!(
9630 "Offset of field: ",
9631 stringify!(cl_ulong2__bindgen_ty_1),
9632 "::",
9633 stringify!(y)
9634 )
9635 );
9636}
9637#[repr(C)]
9638#[derive(Debug, Copy, Clone)]
9639pub struct cl_ulong2__bindgen_ty_2 {
9640 pub s0: cl_ulong,
9641 pub s1: cl_ulong,
9642}
9643#[test]
9644fn bindgen_test_layout_cl_ulong2__bindgen_ty_2() {
9645 const UNINIT: ::std::mem::MaybeUninit<cl_ulong2__bindgen_ty_2> =
9646 ::std::mem::MaybeUninit::uninit();
9647 let ptr = UNINIT.as_ptr();
9648 assert_eq!(
9649 ::std::mem::size_of::<cl_ulong2__bindgen_ty_2>(),
9650 16usize,
9651 concat!("Size of: ", stringify!(cl_ulong2__bindgen_ty_2))
9652 );
9653 assert_eq!(
9654 ::std::mem::align_of::<cl_ulong2__bindgen_ty_2>(),
9655 8usize,
9656 concat!("Alignment of ", stringify!(cl_ulong2__bindgen_ty_2))
9657 );
9658 assert_eq!(
9659 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
9660 0usize,
9661 concat!(
9662 "Offset of field: ",
9663 stringify!(cl_ulong2__bindgen_ty_2),
9664 "::",
9665 stringify!(s0)
9666 )
9667 );
9668 assert_eq!(
9669 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
9670 8usize,
9671 concat!(
9672 "Offset of field: ",
9673 stringify!(cl_ulong2__bindgen_ty_2),
9674 "::",
9675 stringify!(s1)
9676 )
9677 );
9678}
9679#[repr(C)]
9680#[derive(Debug, Copy, Clone)]
9681pub struct cl_ulong2__bindgen_ty_3 {
9682 pub lo: cl_ulong,
9683 pub hi: cl_ulong,
9684}
9685#[test]
9686fn bindgen_test_layout_cl_ulong2__bindgen_ty_3() {
9687 const UNINIT: ::std::mem::MaybeUninit<cl_ulong2__bindgen_ty_3> =
9688 ::std::mem::MaybeUninit::uninit();
9689 let ptr = UNINIT.as_ptr();
9690 assert_eq!(
9691 ::std::mem::size_of::<cl_ulong2__bindgen_ty_3>(),
9692 16usize,
9693 concat!("Size of: ", stringify!(cl_ulong2__bindgen_ty_3))
9694 );
9695 assert_eq!(
9696 ::std::mem::align_of::<cl_ulong2__bindgen_ty_3>(),
9697 8usize,
9698 concat!("Alignment of ", stringify!(cl_ulong2__bindgen_ty_3))
9699 );
9700 assert_eq!(
9701 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
9702 0usize,
9703 concat!(
9704 "Offset of field: ",
9705 stringify!(cl_ulong2__bindgen_ty_3),
9706 "::",
9707 stringify!(lo)
9708 )
9709 );
9710 assert_eq!(
9711 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
9712 8usize,
9713 concat!(
9714 "Offset of field: ",
9715 stringify!(cl_ulong2__bindgen_ty_3),
9716 "::",
9717 stringify!(hi)
9718 )
9719 );
9720}
9721#[test]
9722fn bindgen_test_layout_cl_ulong2() {
9723 const UNINIT: ::std::mem::MaybeUninit<cl_ulong2> = ::std::mem::MaybeUninit::uninit();
9724 let ptr = UNINIT.as_ptr();
9725 assert_eq!(
9726 ::std::mem::size_of::<cl_ulong2>(),
9727 16usize,
9728 concat!("Size of: ", stringify!(cl_ulong2))
9729 );
9730 assert_eq!(
9731 ::std::mem::align_of::<cl_ulong2>(),
9732 16usize,
9733 concat!("Alignment of ", stringify!(cl_ulong2))
9734 );
9735 assert_eq!(
9736 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
9737 0usize,
9738 concat!(
9739 "Offset of field: ",
9740 stringify!(cl_ulong2),
9741 "::",
9742 stringify!(s)
9743 )
9744 );
9745 assert_eq!(
9746 unsafe { ::std::ptr::addr_of!((*ptr).v2) as usize - ptr as usize },
9747 0usize,
9748 concat!(
9749 "Offset of field: ",
9750 stringify!(cl_ulong2),
9751 "::",
9752 stringify!(v2)
9753 )
9754 );
9755}
9756#[repr(C)]
9757#[repr(align(16))]
9758#[derive(Copy, Clone)]
9759pub union cl_ulong4 {
9760 pub s: [cl_ulong; 4usize],
9761 pub __bindgen_anon_1: cl_ulong4__bindgen_ty_1,
9762 pub __bindgen_anon_2: cl_ulong4__bindgen_ty_2,
9763 pub __bindgen_anon_3: cl_ulong4__bindgen_ty_3,
9764 pub v2: [__cl_ulong2; 2usize],
9765}
9766#[repr(C)]
9767#[derive(Debug, Copy, Clone)]
9768pub struct cl_ulong4__bindgen_ty_1 {
9769 pub x: cl_ulong,
9770 pub y: cl_ulong,
9771 pub z: cl_ulong,
9772 pub w: cl_ulong,
9773}
9774#[test]
9775fn bindgen_test_layout_cl_ulong4__bindgen_ty_1() {
9776 const UNINIT: ::std::mem::MaybeUninit<cl_ulong4__bindgen_ty_1> =
9777 ::std::mem::MaybeUninit::uninit();
9778 let ptr = UNINIT.as_ptr();
9779 assert_eq!(
9780 ::std::mem::size_of::<cl_ulong4__bindgen_ty_1>(),
9781 32usize,
9782 concat!("Size of: ", stringify!(cl_ulong4__bindgen_ty_1))
9783 );
9784 assert_eq!(
9785 ::std::mem::align_of::<cl_ulong4__bindgen_ty_1>(),
9786 8usize,
9787 concat!("Alignment of ", stringify!(cl_ulong4__bindgen_ty_1))
9788 );
9789 assert_eq!(
9790 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
9791 0usize,
9792 concat!(
9793 "Offset of field: ",
9794 stringify!(cl_ulong4__bindgen_ty_1),
9795 "::",
9796 stringify!(x)
9797 )
9798 );
9799 assert_eq!(
9800 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
9801 8usize,
9802 concat!(
9803 "Offset of field: ",
9804 stringify!(cl_ulong4__bindgen_ty_1),
9805 "::",
9806 stringify!(y)
9807 )
9808 );
9809 assert_eq!(
9810 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
9811 16usize,
9812 concat!(
9813 "Offset of field: ",
9814 stringify!(cl_ulong4__bindgen_ty_1),
9815 "::",
9816 stringify!(z)
9817 )
9818 );
9819 assert_eq!(
9820 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
9821 24usize,
9822 concat!(
9823 "Offset of field: ",
9824 stringify!(cl_ulong4__bindgen_ty_1),
9825 "::",
9826 stringify!(w)
9827 )
9828 );
9829}
9830#[repr(C)]
9831#[derive(Debug, Copy, Clone)]
9832pub struct cl_ulong4__bindgen_ty_2 {
9833 pub s0: cl_ulong,
9834 pub s1: cl_ulong,
9835 pub s2: cl_ulong,
9836 pub s3: cl_ulong,
9837}
9838#[test]
9839fn bindgen_test_layout_cl_ulong4__bindgen_ty_2() {
9840 const UNINIT: ::std::mem::MaybeUninit<cl_ulong4__bindgen_ty_2> =
9841 ::std::mem::MaybeUninit::uninit();
9842 let ptr = UNINIT.as_ptr();
9843 assert_eq!(
9844 ::std::mem::size_of::<cl_ulong4__bindgen_ty_2>(),
9845 32usize,
9846 concat!("Size of: ", stringify!(cl_ulong4__bindgen_ty_2))
9847 );
9848 assert_eq!(
9849 ::std::mem::align_of::<cl_ulong4__bindgen_ty_2>(),
9850 8usize,
9851 concat!("Alignment of ", stringify!(cl_ulong4__bindgen_ty_2))
9852 );
9853 assert_eq!(
9854 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
9855 0usize,
9856 concat!(
9857 "Offset of field: ",
9858 stringify!(cl_ulong4__bindgen_ty_2),
9859 "::",
9860 stringify!(s0)
9861 )
9862 );
9863 assert_eq!(
9864 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
9865 8usize,
9866 concat!(
9867 "Offset of field: ",
9868 stringify!(cl_ulong4__bindgen_ty_2),
9869 "::",
9870 stringify!(s1)
9871 )
9872 );
9873 assert_eq!(
9874 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
9875 16usize,
9876 concat!(
9877 "Offset of field: ",
9878 stringify!(cl_ulong4__bindgen_ty_2),
9879 "::",
9880 stringify!(s2)
9881 )
9882 );
9883 assert_eq!(
9884 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
9885 24usize,
9886 concat!(
9887 "Offset of field: ",
9888 stringify!(cl_ulong4__bindgen_ty_2),
9889 "::",
9890 stringify!(s3)
9891 )
9892 );
9893}
9894#[repr(C)]
9895#[repr(align(16))]
9896#[derive(Copy, Clone)]
9897pub struct cl_ulong4__bindgen_ty_3 {
9898 pub lo: cl_ulong2,
9899 pub hi: cl_ulong2,
9900}
9901#[test]
9902fn bindgen_test_layout_cl_ulong4__bindgen_ty_3() {
9903 const UNINIT: ::std::mem::MaybeUninit<cl_ulong4__bindgen_ty_3> =
9904 ::std::mem::MaybeUninit::uninit();
9905 let ptr = UNINIT.as_ptr();
9906 assert_eq!(
9907 ::std::mem::size_of::<cl_ulong4__bindgen_ty_3>(),
9908 32usize,
9909 concat!("Size of: ", stringify!(cl_ulong4__bindgen_ty_3))
9910 );
9911 assert_eq!(
9912 ::std::mem::align_of::<cl_ulong4__bindgen_ty_3>(),
9913 16usize,
9914 concat!("Alignment of ", stringify!(cl_ulong4__bindgen_ty_3))
9915 );
9916 assert_eq!(
9917 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
9918 0usize,
9919 concat!(
9920 "Offset of field: ",
9921 stringify!(cl_ulong4__bindgen_ty_3),
9922 "::",
9923 stringify!(lo)
9924 )
9925 );
9926 assert_eq!(
9927 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
9928 16usize,
9929 concat!(
9930 "Offset of field: ",
9931 stringify!(cl_ulong4__bindgen_ty_3),
9932 "::",
9933 stringify!(hi)
9934 )
9935 );
9936}
9937#[test]
9938fn bindgen_test_layout_cl_ulong4() {
9939 const UNINIT: ::std::mem::MaybeUninit<cl_ulong4> = ::std::mem::MaybeUninit::uninit();
9940 let ptr = UNINIT.as_ptr();
9941 assert_eq!(
9942 ::std::mem::size_of::<cl_ulong4>(),
9943 32usize,
9944 concat!("Size of: ", stringify!(cl_ulong4))
9945 );
9946 assert_eq!(
9947 ::std::mem::align_of::<cl_ulong4>(),
9948 16usize,
9949 concat!("Alignment of ", stringify!(cl_ulong4))
9950 );
9951 assert_eq!(
9952 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
9953 0usize,
9954 concat!(
9955 "Offset of field: ",
9956 stringify!(cl_ulong4),
9957 "::",
9958 stringify!(s)
9959 )
9960 );
9961 assert_eq!(
9962 unsafe { ::std::ptr::addr_of!((*ptr).v2) as usize - ptr as usize },
9963 0usize,
9964 concat!(
9965 "Offset of field: ",
9966 stringify!(cl_ulong4),
9967 "::",
9968 stringify!(v2)
9969 )
9970 );
9971}
9972pub type cl_ulong3 = cl_ulong4;
9973#[repr(C)]
9974#[repr(align(16))]
9975#[derive(Copy, Clone)]
9976pub union cl_ulong8 {
9977 pub s: [cl_ulong; 8usize],
9978 pub __bindgen_anon_1: cl_ulong8__bindgen_ty_1,
9979 pub __bindgen_anon_2: cl_ulong8__bindgen_ty_2,
9980 pub __bindgen_anon_3: cl_ulong8__bindgen_ty_3,
9981 pub v2: [__cl_ulong2; 4usize],
9982}
9983#[repr(C)]
9984#[derive(Debug, Copy, Clone)]
9985pub struct cl_ulong8__bindgen_ty_1 {
9986 pub x: cl_ulong,
9987 pub y: cl_ulong,
9988 pub z: cl_ulong,
9989 pub w: cl_ulong,
9990}
9991#[test]
9992fn bindgen_test_layout_cl_ulong8__bindgen_ty_1() {
9993 const UNINIT: ::std::mem::MaybeUninit<cl_ulong8__bindgen_ty_1> =
9994 ::std::mem::MaybeUninit::uninit();
9995 let ptr = UNINIT.as_ptr();
9996 assert_eq!(
9997 ::std::mem::size_of::<cl_ulong8__bindgen_ty_1>(),
9998 32usize,
9999 concat!("Size of: ", stringify!(cl_ulong8__bindgen_ty_1))
10000 );
10001 assert_eq!(
10002 ::std::mem::align_of::<cl_ulong8__bindgen_ty_1>(),
10003 8usize,
10004 concat!("Alignment of ", stringify!(cl_ulong8__bindgen_ty_1))
10005 );
10006 assert_eq!(
10007 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
10008 0usize,
10009 concat!(
10010 "Offset of field: ",
10011 stringify!(cl_ulong8__bindgen_ty_1),
10012 "::",
10013 stringify!(x)
10014 )
10015 );
10016 assert_eq!(
10017 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
10018 8usize,
10019 concat!(
10020 "Offset of field: ",
10021 stringify!(cl_ulong8__bindgen_ty_1),
10022 "::",
10023 stringify!(y)
10024 )
10025 );
10026 assert_eq!(
10027 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
10028 16usize,
10029 concat!(
10030 "Offset of field: ",
10031 stringify!(cl_ulong8__bindgen_ty_1),
10032 "::",
10033 stringify!(z)
10034 )
10035 );
10036 assert_eq!(
10037 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
10038 24usize,
10039 concat!(
10040 "Offset of field: ",
10041 stringify!(cl_ulong8__bindgen_ty_1),
10042 "::",
10043 stringify!(w)
10044 )
10045 );
10046}
10047#[repr(C)]
10048#[derive(Debug, Copy, Clone)]
10049pub struct cl_ulong8__bindgen_ty_2 {
10050 pub s0: cl_ulong,
10051 pub s1: cl_ulong,
10052 pub s2: cl_ulong,
10053 pub s3: cl_ulong,
10054 pub s4: cl_ulong,
10055 pub s5: cl_ulong,
10056 pub s6: cl_ulong,
10057 pub s7: cl_ulong,
10058}
10059#[test]
10060fn bindgen_test_layout_cl_ulong8__bindgen_ty_2() {
10061 const UNINIT: ::std::mem::MaybeUninit<cl_ulong8__bindgen_ty_2> =
10062 ::std::mem::MaybeUninit::uninit();
10063 let ptr = UNINIT.as_ptr();
10064 assert_eq!(
10065 ::std::mem::size_of::<cl_ulong8__bindgen_ty_2>(),
10066 64usize,
10067 concat!("Size of: ", stringify!(cl_ulong8__bindgen_ty_2))
10068 );
10069 assert_eq!(
10070 ::std::mem::align_of::<cl_ulong8__bindgen_ty_2>(),
10071 8usize,
10072 concat!("Alignment of ", stringify!(cl_ulong8__bindgen_ty_2))
10073 );
10074 assert_eq!(
10075 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
10076 0usize,
10077 concat!(
10078 "Offset of field: ",
10079 stringify!(cl_ulong8__bindgen_ty_2),
10080 "::",
10081 stringify!(s0)
10082 )
10083 );
10084 assert_eq!(
10085 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
10086 8usize,
10087 concat!(
10088 "Offset of field: ",
10089 stringify!(cl_ulong8__bindgen_ty_2),
10090 "::",
10091 stringify!(s1)
10092 )
10093 );
10094 assert_eq!(
10095 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
10096 16usize,
10097 concat!(
10098 "Offset of field: ",
10099 stringify!(cl_ulong8__bindgen_ty_2),
10100 "::",
10101 stringify!(s2)
10102 )
10103 );
10104 assert_eq!(
10105 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
10106 24usize,
10107 concat!(
10108 "Offset of field: ",
10109 stringify!(cl_ulong8__bindgen_ty_2),
10110 "::",
10111 stringify!(s3)
10112 )
10113 );
10114 assert_eq!(
10115 unsafe { ::std::ptr::addr_of!((*ptr).s4) as usize - ptr as usize },
10116 32usize,
10117 concat!(
10118 "Offset of field: ",
10119 stringify!(cl_ulong8__bindgen_ty_2),
10120 "::",
10121 stringify!(s4)
10122 )
10123 );
10124 assert_eq!(
10125 unsafe { ::std::ptr::addr_of!((*ptr).s5) as usize - ptr as usize },
10126 40usize,
10127 concat!(
10128 "Offset of field: ",
10129 stringify!(cl_ulong8__bindgen_ty_2),
10130 "::",
10131 stringify!(s5)
10132 )
10133 );
10134 assert_eq!(
10135 unsafe { ::std::ptr::addr_of!((*ptr).s6) as usize - ptr as usize },
10136 48usize,
10137 concat!(
10138 "Offset of field: ",
10139 stringify!(cl_ulong8__bindgen_ty_2),
10140 "::",
10141 stringify!(s6)
10142 )
10143 );
10144 assert_eq!(
10145 unsafe { ::std::ptr::addr_of!((*ptr).s7) as usize - ptr as usize },
10146 56usize,
10147 concat!(
10148 "Offset of field: ",
10149 stringify!(cl_ulong8__bindgen_ty_2),
10150 "::",
10151 stringify!(s7)
10152 )
10153 );
10154}
10155#[repr(C)]
10156#[repr(align(16))]
10157#[derive(Copy, Clone)]
10158pub struct cl_ulong8__bindgen_ty_3 {
10159 pub lo: cl_ulong4,
10160 pub hi: cl_ulong4,
10161}
10162#[test]
10163fn bindgen_test_layout_cl_ulong8__bindgen_ty_3() {
10164 const UNINIT: ::std::mem::MaybeUninit<cl_ulong8__bindgen_ty_3> =
10165 ::std::mem::MaybeUninit::uninit();
10166 let ptr = UNINIT.as_ptr();
10167 assert_eq!(
10168 ::std::mem::size_of::<cl_ulong8__bindgen_ty_3>(),
10169 64usize,
10170 concat!("Size of: ", stringify!(cl_ulong8__bindgen_ty_3))
10171 );
10172 assert_eq!(
10173 ::std::mem::align_of::<cl_ulong8__bindgen_ty_3>(),
10174 16usize,
10175 concat!("Alignment of ", stringify!(cl_ulong8__bindgen_ty_3))
10176 );
10177 assert_eq!(
10178 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
10179 0usize,
10180 concat!(
10181 "Offset of field: ",
10182 stringify!(cl_ulong8__bindgen_ty_3),
10183 "::",
10184 stringify!(lo)
10185 )
10186 );
10187 assert_eq!(
10188 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
10189 32usize,
10190 concat!(
10191 "Offset of field: ",
10192 stringify!(cl_ulong8__bindgen_ty_3),
10193 "::",
10194 stringify!(hi)
10195 )
10196 );
10197}
10198#[test]
10199fn bindgen_test_layout_cl_ulong8() {
10200 const UNINIT: ::std::mem::MaybeUninit<cl_ulong8> = ::std::mem::MaybeUninit::uninit();
10201 let ptr = UNINIT.as_ptr();
10202 assert_eq!(
10203 ::std::mem::size_of::<cl_ulong8>(),
10204 64usize,
10205 concat!("Size of: ", stringify!(cl_ulong8))
10206 );
10207 assert_eq!(
10208 ::std::mem::align_of::<cl_ulong8>(),
10209 16usize,
10210 concat!("Alignment of ", stringify!(cl_ulong8))
10211 );
10212 assert_eq!(
10213 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
10214 0usize,
10215 concat!(
10216 "Offset of field: ",
10217 stringify!(cl_ulong8),
10218 "::",
10219 stringify!(s)
10220 )
10221 );
10222 assert_eq!(
10223 unsafe { ::std::ptr::addr_of!((*ptr).v2) as usize - ptr as usize },
10224 0usize,
10225 concat!(
10226 "Offset of field: ",
10227 stringify!(cl_ulong8),
10228 "::",
10229 stringify!(v2)
10230 )
10231 );
10232}
10233#[repr(C)]
10234#[repr(align(16))]
10235#[derive(Copy, Clone)]
10236pub union cl_ulong16 {
10237 pub s: [cl_ulong; 16usize],
10238 pub __bindgen_anon_1: cl_ulong16__bindgen_ty_1,
10239 pub __bindgen_anon_2: cl_ulong16__bindgen_ty_2,
10240 pub __bindgen_anon_3: cl_ulong16__bindgen_ty_3,
10241 pub v2: [__cl_ulong2; 8usize],
10242}
10243#[repr(C)]
10244#[derive(Debug, Copy, Clone)]
10245pub struct cl_ulong16__bindgen_ty_1 {
10246 pub x: cl_ulong,
10247 pub y: cl_ulong,
10248 pub z: cl_ulong,
10249 pub w: cl_ulong,
10250 pub __spacer4: cl_ulong,
10251 pub __spacer5: cl_ulong,
10252 pub __spacer6: cl_ulong,
10253 pub __spacer7: cl_ulong,
10254 pub __spacer8: cl_ulong,
10255 pub __spacer9: cl_ulong,
10256 pub sa: cl_ulong,
10257 pub sb: cl_ulong,
10258 pub sc: cl_ulong,
10259 pub sd: cl_ulong,
10260 pub se: cl_ulong,
10261 pub sf: cl_ulong,
10262}
10263#[test]
10264fn bindgen_test_layout_cl_ulong16__bindgen_ty_1() {
10265 const UNINIT: ::std::mem::MaybeUninit<cl_ulong16__bindgen_ty_1> =
10266 ::std::mem::MaybeUninit::uninit();
10267 let ptr = UNINIT.as_ptr();
10268 assert_eq!(
10269 ::std::mem::size_of::<cl_ulong16__bindgen_ty_1>(),
10270 128usize,
10271 concat!("Size of: ", stringify!(cl_ulong16__bindgen_ty_1))
10272 );
10273 assert_eq!(
10274 ::std::mem::align_of::<cl_ulong16__bindgen_ty_1>(),
10275 8usize,
10276 concat!("Alignment of ", stringify!(cl_ulong16__bindgen_ty_1))
10277 );
10278 assert_eq!(
10279 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
10280 0usize,
10281 concat!(
10282 "Offset of field: ",
10283 stringify!(cl_ulong16__bindgen_ty_1),
10284 "::",
10285 stringify!(x)
10286 )
10287 );
10288 assert_eq!(
10289 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
10290 8usize,
10291 concat!(
10292 "Offset of field: ",
10293 stringify!(cl_ulong16__bindgen_ty_1),
10294 "::",
10295 stringify!(y)
10296 )
10297 );
10298 assert_eq!(
10299 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
10300 16usize,
10301 concat!(
10302 "Offset of field: ",
10303 stringify!(cl_ulong16__bindgen_ty_1),
10304 "::",
10305 stringify!(z)
10306 )
10307 );
10308 assert_eq!(
10309 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
10310 24usize,
10311 concat!(
10312 "Offset of field: ",
10313 stringify!(cl_ulong16__bindgen_ty_1),
10314 "::",
10315 stringify!(w)
10316 )
10317 );
10318 assert_eq!(
10319 unsafe { ::std::ptr::addr_of!((*ptr).__spacer4) as usize - ptr as usize },
10320 32usize,
10321 concat!(
10322 "Offset of field: ",
10323 stringify!(cl_ulong16__bindgen_ty_1),
10324 "::",
10325 stringify!(__spacer4)
10326 )
10327 );
10328 assert_eq!(
10329 unsafe { ::std::ptr::addr_of!((*ptr).__spacer5) as usize - ptr as usize },
10330 40usize,
10331 concat!(
10332 "Offset of field: ",
10333 stringify!(cl_ulong16__bindgen_ty_1),
10334 "::",
10335 stringify!(__spacer5)
10336 )
10337 );
10338 assert_eq!(
10339 unsafe { ::std::ptr::addr_of!((*ptr).__spacer6) as usize - ptr as usize },
10340 48usize,
10341 concat!(
10342 "Offset of field: ",
10343 stringify!(cl_ulong16__bindgen_ty_1),
10344 "::",
10345 stringify!(__spacer6)
10346 )
10347 );
10348 assert_eq!(
10349 unsafe { ::std::ptr::addr_of!((*ptr).__spacer7) as usize - ptr as usize },
10350 56usize,
10351 concat!(
10352 "Offset of field: ",
10353 stringify!(cl_ulong16__bindgen_ty_1),
10354 "::",
10355 stringify!(__spacer7)
10356 )
10357 );
10358 assert_eq!(
10359 unsafe { ::std::ptr::addr_of!((*ptr).__spacer8) as usize - ptr as usize },
10360 64usize,
10361 concat!(
10362 "Offset of field: ",
10363 stringify!(cl_ulong16__bindgen_ty_1),
10364 "::",
10365 stringify!(__spacer8)
10366 )
10367 );
10368 assert_eq!(
10369 unsafe { ::std::ptr::addr_of!((*ptr).__spacer9) as usize - ptr as usize },
10370 72usize,
10371 concat!(
10372 "Offset of field: ",
10373 stringify!(cl_ulong16__bindgen_ty_1),
10374 "::",
10375 stringify!(__spacer9)
10376 )
10377 );
10378 assert_eq!(
10379 unsafe { ::std::ptr::addr_of!((*ptr).sa) as usize - ptr as usize },
10380 80usize,
10381 concat!(
10382 "Offset of field: ",
10383 stringify!(cl_ulong16__bindgen_ty_1),
10384 "::",
10385 stringify!(sa)
10386 )
10387 );
10388 assert_eq!(
10389 unsafe { ::std::ptr::addr_of!((*ptr).sb) as usize - ptr as usize },
10390 88usize,
10391 concat!(
10392 "Offset of field: ",
10393 stringify!(cl_ulong16__bindgen_ty_1),
10394 "::",
10395 stringify!(sb)
10396 )
10397 );
10398 assert_eq!(
10399 unsafe { ::std::ptr::addr_of!((*ptr).sc) as usize - ptr as usize },
10400 96usize,
10401 concat!(
10402 "Offset of field: ",
10403 stringify!(cl_ulong16__bindgen_ty_1),
10404 "::",
10405 stringify!(sc)
10406 )
10407 );
10408 assert_eq!(
10409 unsafe { ::std::ptr::addr_of!((*ptr).sd) as usize - ptr as usize },
10410 104usize,
10411 concat!(
10412 "Offset of field: ",
10413 stringify!(cl_ulong16__bindgen_ty_1),
10414 "::",
10415 stringify!(sd)
10416 )
10417 );
10418 assert_eq!(
10419 unsafe { ::std::ptr::addr_of!((*ptr).se) as usize - ptr as usize },
10420 112usize,
10421 concat!(
10422 "Offset of field: ",
10423 stringify!(cl_ulong16__bindgen_ty_1),
10424 "::",
10425 stringify!(se)
10426 )
10427 );
10428 assert_eq!(
10429 unsafe { ::std::ptr::addr_of!((*ptr).sf) as usize - ptr as usize },
10430 120usize,
10431 concat!(
10432 "Offset of field: ",
10433 stringify!(cl_ulong16__bindgen_ty_1),
10434 "::",
10435 stringify!(sf)
10436 )
10437 );
10438}
10439#[repr(C)]
10440#[derive(Debug, Copy, Clone)]
10441pub struct cl_ulong16__bindgen_ty_2 {
10442 pub s0: cl_ulong,
10443 pub s1: cl_ulong,
10444 pub s2: cl_ulong,
10445 pub s3: cl_ulong,
10446 pub s4: cl_ulong,
10447 pub s5: cl_ulong,
10448 pub s6: cl_ulong,
10449 pub s7: cl_ulong,
10450 pub s8: cl_ulong,
10451 pub s9: cl_ulong,
10452 pub sA: cl_ulong,
10453 pub sB: cl_ulong,
10454 pub sC: cl_ulong,
10455 pub sD: cl_ulong,
10456 pub sE: cl_ulong,
10457 pub sF: cl_ulong,
10458}
10459#[test]
10460fn bindgen_test_layout_cl_ulong16__bindgen_ty_2() {
10461 const UNINIT: ::std::mem::MaybeUninit<cl_ulong16__bindgen_ty_2> =
10462 ::std::mem::MaybeUninit::uninit();
10463 let ptr = UNINIT.as_ptr();
10464 assert_eq!(
10465 ::std::mem::size_of::<cl_ulong16__bindgen_ty_2>(),
10466 128usize,
10467 concat!("Size of: ", stringify!(cl_ulong16__bindgen_ty_2))
10468 );
10469 assert_eq!(
10470 ::std::mem::align_of::<cl_ulong16__bindgen_ty_2>(),
10471 8usize,
10472 concat!("Alignment of ", stringify!(cl_ulong16__bindgen_ty_2))
10473 );
10474 assert_eq!(
10475 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
10476 0usize,
10477 concat!(
10478 "Offset of field: ",
10479 stringify!(cl_ulong16__bindgen_ty_2),
10480 "::",
10481 stringify!(s0)
10482 )
10483 );
10484 assert_eq!(
10485 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
10486 8usize,
10487 concat!(
10488 "Offset of field: ",
10489 stringify!(cl_ulong16__bindgen_ty_2),
10490 "::",
10491 stringify!(s1)
10492 )
10493 );
10494 assert_eq!(
10495 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
10496 16usize,
10497 concat!(
10498 "Offset of field: ",
10499 stringify!(cl_ulong16__bindgen_ty_2),
10500 "::",
10501 stringify!(s2)
10502 )
10503 );
10504 assert_eq!(
10505 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
10506 24usize,
10507 concat!(
10508 "Offset of field: ",
10509 stringify!(cl_ulong16__bindgen_ty_2),
10510 "::",
10511 stringify!(s3)
10512 )
10513 );
10514 assert_eq!(
10515 unsafe { ::std::ptr::addr_of!((*ptr).s4) as usize - ptr as usize },
10516 32usize,
10517 concat!(
10518 "Offset of field: ",
10519 stringify!(cl_ulong16__bindgen_ty_2),
10520 "::",
10521 stringify!(s4)
10522 )
10523 );
10524 assert_eq!(
10525 unsafe { ::std::ptr::addr_of!((*ptr).s5) as usize - ptr as usize },
10526 40usize,
10527 concat!(
10528 "Offset of field: ",
10529 stringify!(cl_ulong16__bindgen_ty_2),
10530 "::",
10531 stringify!(s5)
10532 )
10533 );
10534 assert_eq!(
10535 unsafe { ::std::ptr::addr_of!((*ptr).s6) as usize - ptr as usize },
10536 48usize,
10537 concat!(
10538 "Offset of field: ",
10539 stringify!(cl_ulong16__bindgen_ty_2),
10540 "::",
10541 stringify!(s6)
10542 )
10543 );
10544 assert_eq!(
10545 unsafe { ::std::ptr::addr_of!((*ptr).s7) as usize - ptr as usize },
10546 56usize,
10547 concat!(
10548 "Offset of field: ",
10549 stringify!(cl_ulong16__bindgen_ty_2),
10550 "::",
10551 stringify!(s7)
10552 )
10553 );
10554 assert_eq!(
10555 unsafe { ::std::ptr::addr_of!((*ptr).s8) as usize - ptr as usize },
10556 64usize,
10557 concat!(
10558 "Offset of field: ",
10559 stringify!(cl_ulong16__bindgen_ty_2),
10560 "::",
10561 stringify!(s8)
10562 )
10563 );
10564 assert_eq!(
10565 unsafe { ::std::ptr::addr_of!((*ptr).s9) as usize - ptr as usize },
10566 72usize,
10567 concat!(
10568 "Offset of field: ",
10569 stringify!(cl_ulong16__bindgen_ty_2),
10570 "::",
10571 stringify!(s9)
10572 )
10573 );
10574 assert_eq!(
10575 unsafe { ::std::ptr::addr_of!((*ptr).sA) as usize - ptr as usize },
10576 80usize,
10577 concat!(
10578 "Offset of field: ",
10579 stringify!(cl_ulong16__bindgen_ty_2),
10580 "::",
10581 stringify!(sA)
10582 )
10583 );
10584 assert_eq!(
10585 unsafe { ::std::ptr::addr_of!((*ptr).sB) as usize - ptr as usize },
10586 88usize,
10587 concat!(
10588 "Offset of field: ",
10589 stringify!(cl_ulong16__bindgen_ty_2),
10590 "::",
10591 stringify!(sB)
10592 )
10593 );
10594 assert_eq!(
10595 unsafe { ::std::ptr::addr_of!((*ptr).sC) as usize - ptr as usize },
10596 96usize,
10597 concat!(
10598 "Offset of field: ",
10599 stringify!(cl_ulong16__bindgen_ty_2),
10600 "::",
10601 stringify!(sC)
10602 )
10603 );
10604 assert_eq!(
10605 unsafe { ::std::ptr::addr_of!((*ptr).sD) as usize - ptr as usize },
10606 104usize,
10607 concat!(
10608 "Offset of field: ",
10609 stringify!(cl_ulong16__bindgen_ty_2),
10610 "::",
10611 stringify!(sD)
10612 )
10613 );
10614 assert_eq!(
10615 unsafe { ::std::ptr::addr_of!((*ptr).sE) as usize - ptr as usize },
10616 112usize,
10617 concat!(
10618 "Offset of field: ",
10619 stringify!(cl_ulong16__bindgen_ty_2),
10620 "::",
10621 stringify!(sE)
10622 )
10623 );
10624 assert_eq!(
10625 unsafe { ::std::ptr::addr_of!((*ptr).sF) as usize - ptr as usize },
10626 120usize,
10627 concat!(
10628 "Offset of field: ",
10629 stringify!(cl_ulong16__bindgen_ty_2),
10630 "::",
10631 stringify!(sF)
10632 )
10633 );
10634}
10635#[repr(C)]
10636#[repr(align(16))]
10637#[derive(Copy, Clone)]
10638pub struct cl_ulong16__bindgen_ty_3 {
10639 pub lo: cl_ulong8,
10640 pub hi: cl_ulong8,
10641}
10642#[test]
10643fn bindgen_test_layout_cl_ulong16__bindgen_ty_3() {
10644 const UNINIT: ::std::mem::MaybeUninit<cl_ulong16__bindgen_ty_3> =
10645 ::std::mem::MaybeUninit::uninit();
10646 let ptr = UNINIT.as_ptr();
10647 assert_eq!(
10648 ::std::mem::size_of::<cl_ulong16__bindgen_ty_3>(),
10649 128usize,
10650 concat!("Size of: ", stringify!(cl_ulong16__bindgen_ty_3))
10651 );
10652 assert_eq!(
10653 ::std::mem::align_of::<cl_ulong16__bindgen_ty_3>(),
10654 16usize,
10655 concat!("Alignment of ", stringify!(cl_ulong16__bindgen_ty_3))
10656 );
10657 assert_eq!(
10658 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
10659 0usize,
10660 concat!(
10661 "Offset of field: ",
10662 stringify!(cl_ulong16__bindgen_ty_3),
10663 "::",
10664 stringify!(lo)
10665 )
10666 );
10667 assert_eq!(
10668 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
10669 64usize,
10670 concat!(
10671 "Offset of field: ",
10672 stringify!(cl_ulong16__bindgen_ty_3),
10673 "::",
10674 stringify!(hi)
10675 )
10676 );
10677}
10678#[test]
10679fn bindgen_test_layout_cl_ulong16() {
10680 const UNINIT: ::std::mem::MaybeUninit<cl_ulong16> = ::std::mem::MaybeUninit::uninit();
10681 let ptr = UNINIT.as_ptr();
10682 assert_eq!(
10683 ::std::mem::size_of::<cl_ulong16>(),
10684 128usize,
10685 concat!("Size of: ", stringify!(cl_ulong16))
10686 );
10687 assert_eq!(
10688 ::std::mem::align_of::<cl_ulong16>(),
10689 16usize,
10690 concat!("Alignment of ", stringify!(cl_ulong16))
10691 );
10692 assert_eq!(
10693 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
10694 0usize,
10695 concat!(
10696 "Offset of field: ",
10697 stringify!(cl_ulong16),
10698 "::",
10699 stringify!(s)
10700 )
10701 );
10702 assert_eq!(
10703 unsafe { ::std::ptr::addr_of!((*ptr).v2) as usize - ptr as usize },
10704 0usize,
10705 concat!(
10706 "Offset of field: ",
10707 stringify!(cl_ulong16),
10708 "::",
10709 stringify!(v2)
10710 )
10711 );
10712}
10713#[repr(C)]
10714#[derive(Copy, Clone)]
10715pub union cl_float2 {
10716 pub s: [cl_float; 2usize],
10717 pub __bindgen_anon_1: cl_float2__bindgen_ty_1,
10718 pub __bindgen_anon_2: cl_float2__bindgen_ty_2,
10719 pub __bindgen_anon_3: cl_float2__bindgen_ty_3,
10720 pub v2: __cl_float2,
10721}
10722#[repr(C)]
10723#[derive(Debug, Copy, Clone)]
10724pub struct cl_float2__bindgen_ty_1 {
10725 pub x: cl_float,
10726 pub y: cl_float,
10727}
10728#[test]
10729fn bindgen_test_layout_cl_float2__bindgen_ty_1() {
10730 const UNINIT: ::std::mem::MaybeUninit<cl_float2__bindgen_ty_1> =
10731 ::std::mem::MaybeUninit::uninit();
10732 let ptr = UNINIT.as_ptr();
10733 assert_eq!(
10734 ::std::mem::size_of::<cl_float2__bindgen_ty_1>(),
10735 8usize,
10736 concat!("Size of: ", stringify!(cl_float2__bindgen_ty_1))
10737 );
10738 assert_eq!(
10739 ::std::mem::align_of::<cl_float2__bindgen_ty_1>(),
10740 4usize,
10741 concat!("Alignment of ", stringify!(cl_float2__bindgen_ty_1))
10742 );
10743 assert_eq!(
10744 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
10745 0usize,
10746 concat!(
10747 "Offset of field: ",
10748 stringify!(cl_float2__bindgen_ty_1),
10749 "::",
10750 stringify!(x)
10751 )
10752 );
10753 assert_eq!(
10754 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
10755 4usize,
10756 concat!(
10757 "Offset of field: ",
10758 stringify!(cl_float2__bindgen_ty_1),
10759 "::",
10760 stringify!(y)
10761 )
10762 );
10763}
10764#[repr(C)]
10765#[derive(Debug, Copy, Clone)]
10766pub struct cl_float2__bindgen_ty_2 {
10767 pub s0: cl_float,
10768 pub s1: cl_float,
10769}
10770#[test]
10771fn bindgen_test_layout_cl_float2__bindgen_ty_2() {
10772 const UNINIT: ::std::mem::MaybeUninit<cl_float2__bindgen_ty_2> =
10773 ::std::mem::MaybeUninit::uninit();
10774 let ptr = UNINIT.as_ptr();
10775 assert_eq!(
10776 ::std::mem::size_of::<cl_float2__bindgen_ty_2>(),
10777 8usize,
10778 concat!("Size of: ", stringify!(cl_float2__bindgen_ty_2))
10779 );
10780 assert_eq!(
10781 ::std::mem::align_of::<cl_float2__bindgen_ty_2>(),
10782 4usize,
10783 concat!("Alignment of ", stringify!(cl_float2__bindgen_ty_2))
10784 );
10785 assert_eq!(
10786 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
10787 0usize,
10788 concat!(
10789 "Offset of field: ",
10790 stringify!(cl_float2__bindgen_ty_2),
10791 "::",
10792 stringify!(s0)
10793 )
10794 );
10795 assert_eq!(
10796 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
10797 4usize,
10798 concat!(
10799 "Offset of field: ",
10800 stringify!(cl_float2__bindgen_ty_2),
10801 "::",
10802 stringify!(s1)
10803 )
10804 );
10805}
10806#[repr(C)]
10807#[derive(Debug, Copy, Clone)]
10808pub struct cl_float2__bindgen_ty_3 {
10809 pub lo: cl_float,
10810 pub hi: cl_float,
10811}
10812#[test]
10813fn bindgen_test_layout_cl_float2__bindgen_ty_3() {
10814 const UNINIT: ::std::mem::MaybeUninit<cl_float2__bindgen_ty_3> =
10815 ::std::mem::MaybeUninit::uninit();
10816 let ptr = UNINIT.as_ptr();
10817 assert_eq!(
10818 ::std::mem::size_of::<cl_float2__bindgen_ty_3>(),
10819 8usize,
10820 concat!("Size of: ", stringify!(cl_float2__bindgen_ty_3))
10821 );
10822 assert_eq!(
10823 ::std::mem::align_of::<cl_float2__bindgen_ty_3>(),
10824 4usize,
10825 concat!("Alignment of ", stringify!(cl_float2__bindgen_ty_3))
10826 );
10827 assert_eq!(
10828 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
10829 0usize,
10830 concat!(
10831 "Offset of field: ",
10832 stringify!(cl_float2__bindgen_ty_3),
10833 "::",
10834 stringify!(lo)
10835 )
10836 );
10837 assert_eq!(
10838 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
10839 4usize,
10840 concat!(
10841 "Offset of field: ",
10842 stringify!(cl_float2__bindgen_ty_3),
10843 "::",
10844 stringify!(hi)
10845 )
10846 );
10847}
10848#[test]
10849fn bindgen_test_layout_cl_float2() {
10850 const UNINIT: ::std::mem::MaybeUninit<cl_float2> = ::std::mem::MaybeUninit::uninit();
10851 let ptr = UNINIT.as_ptr();
10852 assert_eq!(
10853 ::std::mem::size_of::<cl_float2>(),
10854 8usize,
10855 concat!("Size of: ", stringify!(cl_float2))
10856 );
10857 assert_eq!(
10858 ::std::mem::align_of::<cl_float2>(),
10859 8usize,
10860 concat!("Alignment of ", stringify!(cl_float2))
10861 );
10862 assert_eq!(
10863 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
10864 0usize,
10865 concat!(
10866 "Offset of field: ",
10867 stringify!(cl_float2),
10868 "::",
10869 stringify!(s)
10870 )
10871 );
10872 assert_eq!(
10873 unsafe { ::std::ptr::addr_of!((*ptr).v2) as usize - ptr as usize },
10874 0usize,
10875 concat!(
10876 "Offset of field: ",
10877 stringify!(cl_float2),
10878 "::",
10879 stringify!(v2)
10880 )
10881 );
10882}
10883#[repr(C)]
10884#[repr(align(16))]
10885#[derive(Copy, Clone)]
10886pub union cl_float4 {
10887 pub s: [cl_float; 4usize],
10888 pub __bindgen_anon_1: cl_float4__bindgen_ty_1,
10889 pub __bindgen_anon_2: cl_float4__bindgen_ty_2,
10890 pub __bindgen_anon_3: cl_float4__bindgen_ty_3,
10891 pub v2: [__cl_float2; 2usize],
10892 pub v4: __cl_float4,
10893}
10894#[repr(C)]
10895#[derive(Debug, Copy, Clone)]
10896pub struct cl_float4__bindgen_ty_1 {
10897 pub x: cl_float,
10898 pub y: cl_float,
10899 pub z: cl_float,
10900 pub w: cl_float,
10901}
10902#[test]
10903fn bindgen_test_layout_cl_float4__bindgen_ty_1() {
10904 const UNINIT: ::std::mem::MaybeUninit<cl_float4__bindgen_ty_1> =
10905 ::std::mem::MaybeUninit::uninit();
10906 let ptr = UNINIT.as_ptr();
10907 assert_eq!(
10908 ::std::mem::size_of::<cl_float4__bindgen_ty_1>(),
10909 16usize,
10910 concat!("Size of: ", stringify!(cl_float4__bindgen_ty_1))
10911 );
10912 assert_eq!(
10913 ::std::mem::align_of::<cl_float4__bindgen_ty_1>(),
10914 4usize,
10915 concat!("Alignment of ", stringify!(cl_float4__bindgen_ty_1))
10916 );
10917 assert_eq!(
10918 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
10919 0usize,
10920 concat!(
10921 "Offset of field: ",
10922 stringify!(cl_float4__bindgen_ty_1),
10923 "::",
10924 stringify!(x)
10925 )
10926 );
10927 assert_eq!(
10928 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
10929 4usize,
10930 concat!(
10931 "Offset of field: ",
10932 stringify!(cl_float4__bindgen_ty_1),
10933 "::",
10934 stringify!(y)
10935 )
10936 );
10937 assert_eq!(
10938 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
10939 8usize,
10940 concat!(
10941 "Offset of field: ",
10942 stringify!(cl_float4__bindgen_ty_1),
10943 "::",
10944 stringify!(z)
10945 )
10946 );
10947 assert_eq!(
10948 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
10949 12usize,
10950 concat!(
10951 "Offset of field: ",
10952 stringify!(cl_float4__bindgen_ty_1),
10953 "::",
10954 stringify!(w)
10955 )
10956 );
10957}
10958#[repr(C)]
10959#[derive(Debug, Copy, Clone)]
10960pub struct cl_float4__bindgen_ty_2 {
10961 pub s0: cl_float,
10962 pub s1: cl_float,
10963 pub s2: cl_float,
10964 pub s3: cl_float,
10965}
10966#[test]
10967fn bindgen_test_layout_cl_float4__bindgen_ty_2() {
10968 const UNINIT: ::std::mem::MaybeUninit<cl_float4__bindgen_ty_2> =
10969 ::std::mem::MaybeUninit::uninit();
10970 let ptr = UNINIT.as_ptr();
10971 assert_eq!(
10972 ::std::mem::size_of::<cl_float4__bindgen_ty_2>(),
10973 16usize,
10974 concat!("Size of: ", stringify!(cl_float4__bindgen_ty_2))
10975 );
10976 assert_eq!(
10977 ::std::mem::align_of::<cl_float4__bindgen_ty_2>(),
10978 4usize,
10979 concat!("Alignment of ", stringify!(cl_float4__bindgen_ty_2))
10980 );
10981 assert_eq!(
10982 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
10983 0usize,
10984 concat!(
10985 "Offset of field: ",
10986 stringify!(cl_float4__bindgen_ty_2),
10987 "::",
10988 stringify!(s0)
10989 )
10990 );
10991 assert_eq!(
10992 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
10993 4usize,
10994 concat!(
10995 "Offset of field: ",
10996 stringify!(cl_float4__bindgen_ty_2),
10997 "::",
10998 stringify!(s1)
10999 )
11000 );
11001 assert_eq!(
11002 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
11003 8usize,
11004 concat!(
11005 "Offset of field: ",
11006 stringify!(cl_float4__bindgen_ty_2),
11007 "::",
11008 stringify!(s2)
11009 )
11010 );
11011 assert_eq!(
11012 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
11013 12usize,
11014 concat!(
11015 "Offset of field: ",
11016 stringify!(cl_float4__bindgen_ty_2),
11017 "::",
11018 stringify!(s3)
11019 )
11020 );
11021}
11022#[repr(C)]
11023#[derive(Copy, Clone)]
11024pub struct cl_float4__bindgen_ty_3 {
11025 pub lo: cl_float2,
11026 pub hi: cl_float2,
11027}
11028#[test]
11029fn bindgen_test_layout_cl_float4__bindgen_ty_3() {
11030 const UNINIT: ::std::mem::MaybeUninit<cl_float4__bindgen_ty_3> =
11031 ::std::mem::MaybeUninit::uninit();
11032 let ptr = UNINIT.as_ptr();
11033 assert_eq!(
11034 ::std::mem::size_of::<cl_float4__bindgen_ty_3>(),
11035 16usize,
11036 concat!("Size of: ", stringify!(cl_float4__bindgen_ty_3))
11037 );
11038 assert_eq!(
11039 ::std::mem::align_of::<cl_float4__bindgen_ty_3>(),
11040 8usize,
11041 concat!("Alignment of ", stringify!(cl_float4__bindgen_ty_3))
11042 );
11043 assert_eq!(
11044 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
11045 0usize,
11046 concat!(
11047 "Offset of field: ",
11048 stringify!(cl_float4__bindgen_ty_3),
11049 "::",
11050 stringify!(lo)
11051 )
11052 );
11053 assert_eq!(
11054 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
11055 8usize,
11056 concat!(
11057 "Offset of field: ",
11058 stringify!(cl_float4__bindgen_ty_3),
11059 "::",
11060 stringify!(hi)
11061 )
11062 );
11063}
11064#[test]
11065fn bindgen_test_layout_cl_float4() {
11066 const UNINIT: ::std::mem::MaybeUninit<cl_float4> = ::std::mem::MaybeUninit::uninit();
11067 let ptr = UNINIT.as_ptr();
11068 assert_eq!(
11069 ::std::mem::size_of::<cl_float4>(),
11070 16usize,
11071 concat!("Size of: ", stringify!(cl_float4))
11072 );
11073 assert_eq!(
11074 ::std::mem::align_of::<cl_float4>(),
11075 16usize,
11076 concat!("Alignment of ", stringify!(cl_float4))
11077 );
11078 assert_eq!(
11079 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
11080 0usize,
11081 concat!(
11082 "Offset of field: ",
11083 stringify!(cl_float4),
11084 "::",
11085 stringify!(s)
11086 )
11087 );
11088 assert_eq!(
11089 unsafe { ::std::ptr::addr_of!((*ptr).v2) as usize - ptr as usize },
11090 0usize,
11091 concat!(
11092 "Offset of field: ",
11093 stringify!(cl_float4),
11094 "::",
11095 stringify!(v2)
11096 )
11097 );
11098 assert_eq!(
11099 unsafe { ::std::ptr::addr_of!((*ptr).v4) as usize - ptr as usize },
11100 0usize,
11101 concat!(
11102 "Offset of field: ",
11103 stringify!(cl_float4),
11104 "::",
11105 stringify!(v4)
11106 )
11107 );
11108}
11109pub type cl_float3 = cl_float4;
11110#[repr(C)]
11111#[repr(align(16))]
11112#[derive(Copy, Clone)]
11113pub union cl_float8 {
11114 pub s: [cl_float; 8usize],
11115 pub __bindgen_anon_1: cl_float8__bindgen_ty_1,
11116 pub __bindgen_anon_2: cl_float8__bindgen_ty_2,
11117 pub __bindgen_anon_3: cl_float8__bindgen_ty_3,
11118 pub v2: [__cl_float2; 4usize],
11119 pub v4: [__cl_float4; 2usize],
11120}
11121#[repr(C)]
11122#[derive(Debug, Copy, Clone)]
11123pub struct cl_float8__bindgen_ty_1 {
11124 pub x: cl_float,
11125 pub y: cl_float,
11126 pub z: cl_float,
11127 pub w: cl_float,
11128}
11129#[test]
11130fn bindgen_test_layout_cl_float8__bindgen_ty_1() {
11131 const UNINIT: ::std::mem::MaybeUninit<cl_float8__bindgen_ty_1> =
11132 ::std::mem::MaybeUninit::uninit();
11133 let ptr = UNINIT.as_ptr();
11134 assert_eq!(
11135 ::std::mem::size_of::<cl_float8__bindgen_ty_1>(),
11136 16usize,
11137 concat!("Size of: ", stringify!(cl_float8__bindgen_ty_1))
11138 );
11139 assert_eq!(
11140 ::std::mem::align_of::<cl_float8__bindgen_ty_1>(),
11141 4usize,
11142 concat!("Alignment of ", stringify!(cl_float8__bindgen_ty_1))
11143 );
11144 assert_eq!(
11145 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
11146 0usize,
11147 concat!(
11148 "Offset of field: ",
11149 stringify!(cl_float8__bindgen_ty_1),
11150 "::",
11151 stringify!(x)
11152 )
11153 );
11154 assert_eq!(
11155 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
11156 4usize,
11157 concat!(
11158 "Offset of field: ",
11159 stringify!(cl_float8__bindgen_ty_1),
11160 "::",
11161 stringify!(y)
11162 )
11163 );
11164 assert_eq!(
11165 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
11166 8usize,
11167 concat!(
11168 "Offset of field: ",
11169 stringify!(cl_float8__bindgen_ty_1),
11170 "::",
11171 stringify!(z)
11172 )
11173 );
11174 assert_eq!(
11175 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
11176 12usize,
11177 concat!(
11178 "Offset of field: ",
11179 stringify!(cl_float8__bindgen_ty_1),
11180 "::",
11181 stringify!(w)
11182 )
11183 );
11184}
11185#[repr(C)]
11186#[derive(Debug, Copy, Clone)]
11187pub struct cl_float8__bindgen_ty_2 {
11188 pub s0: cl_float,
11189 pub s1: cl_float,
11190 pub s2: cl_float,
11191 pub s3: cl_float,
11192 pub s4: cl_float,
11193 pub s5: cl_float,
11194 pub s6: cl_float,
11195 pub s7: cl_float,
11196}
11197#[test]
11198fn bindgen_test_layout_cl_float8__bindgen_ty_2() {
11199 const UNINIT: ::std::mem::MaybeUninit<cl_float8__bindgen_ty_2> =
11200 ::std::mem::MaybeUninit::uninit();
11201 let ptr = UNINIT.as_ptr();
11202 assert_eq!(
11203 ::std::mem::size_of::<cl_float8__bindgen_ty_2>(),
11204 32usize,
11205 concat!("Size of: ", stringify!(cl_float8__bindgen_ty_2))
11206 );
11207 assert_eq!(
11208 ::std::mem::align_of::<cl_float8__bindgen_ty_2>(),
11209 4usize,
11210 concat!("Alignment of ", stringify!(cl_float8__bindgen_ty_2))
11211 );
11212 assert_eq!(
11213 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
11214 0usize,
11215 concat!(
11216 "Offset of field: ",
11217 stringify!(cl_float8__bindgen_ty_2),
11218 "::",
11219 stringify!(s0)
11220 )
11221 );
11222 assert_eq!(
11223 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
11224 4usize,
11225 concat!(
11226 "Offset of field: ",
11227 stringify!(cl_float8__bindgen_ty_2),
11228 "::",
11229 stringify!(s1)
11230 )
11231 );
11232 assert_eq!(
11233 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
11234 8usize,
11235 concat!(
11236 "Offset of field: ",
11237 stringify!(cl_float8__bindgen_ty_2),
11238 "::",
11239 stringify!(s2)
11240 )
11241 );
11242 assert_eq!(
11243 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
11244 12usize,
11245 concat!(
11246 "Offset of field: ",
11247 stringify!(cl_float8__bindgen_ty_2),
11248 "::",
11249 stringify!(s3)
11250 )
11251 );
11252 assert_eq!(
11253 unsafe { ::std::ptr::addr_of!((*ptr).s4) as usize - ptr as usize },
11254 16usize,
11255 concat!(
11256 "Offset of field: ",
11257 stringify!(cl_float8__bindgen_ty_2),
11258 "::",
11259 stringify!(s4)
11260 )
11261 );
11262 assert_eq!(
11263 unsafe { ::std::ptr::addr_of!((*ptr).s5) as usize - ptr as usize },
11264 20usize,
11265 concat!(
11266 "Offset of field: ",
11267 stringify!(cl_float8__bindgen_ty_2),
11268 "::",
11269 stringify!(s5)
11270 )
11271 );
11272 assert_eq!(
11273 unsafe { ::std::ptr::addr_of!((*ptr).s6) as usize - ptr as usize },
11274 24usize,
11275 concat!(
11276 "Offset of field: ",
11277 stringify!(cl_float8__bindgen_ty_2),
11278 "::",
11279 stringify!(s6)
11280 )
11281 );
11282 assert_eq!(
11283 unsafe { ::std::ptr::addr_of!((*ptr).s7) as usize - ptr as usize },
11284 28usize,
11285 concat!(
11286 "Offset of field: ",
11287 stringify!(cl_float8__bindgen_ty_2),
11288 "::",
11289 stringify!(s7)
11290 )
11291 );
11292}
11293#[repr(C)]
11294#[repr(align(16))]
11295#[derive(Copy, Clone)]
11296pub struct cl_float8__bindgen_ty_3 {
11297 pub lo: cl_float4,
11298 pub hi: cl_float4,
11299}
11300#[test]
11301fn bindgen_test_layout_cl_float8__bindgen_ty_3() {
11302 const UNINIT: ::std::mem::MaybeUninit<cl_float8__bindgen_ty_3> =
11303 ::std::mem::MaybeUninit::uninit();
11304 let ptr = UNINIT.as_ptr();
11305 assert_eq!(
11306 ::std::mem::size_of::<cl_float8__bindgen_ty_3>(),
11307 32usize,
11308 concat!("Size of: ", stringify!(cl_float8__bindgen_ty_3))
11309 );
11310 assert_eq!(
11311 ::std::mem::align_of::<cl_float8__bindgen_ty_3>(),
11312 16usize,
11313 concat!("Alignment of ", stringify!(cl_float8__bindgen_ty_3))
11314 );
11315 assert_eq!(
11316 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
11317 0usize,
11318 concat!(
11319 "Offset of field: ",
11320 stringify!(cl_float8__bindgen_ty_3),
11321 "::",
11322 stringify!(lo)
11323 )
11324 );
11325 assert_eq!(
11326 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
11327 16usize,
11328 concat!(
11329 "Offset of field: ",
11330 stringify!(cl_float8__bindgen_ty_3),
11331 "::",
11332 stringify!(hi)
11333 )
11334 );
11335}
11336#[test]
11337fn bindgen_test_layout_cl_float8() {
11338 const UNINIT: ::std::mem::MaybeUninit<cl_float8> = ::std::mem::MaybeUninit::uninit();
11339 let ptr = UNINIT.as_ptr();
11340 assert_eq!(
11341 ::std::mem::size_of::<cl_float8>(),
11342 32usize,
11343 concat!("Size of: ", stringify!(cl_float8))
11344 );
11345 assert_eq!(
11346 ::std::mem::align_of::<cl_float8>(),
11347 16usize,
11348 concat!("Alignment of ", stringify!(cl_float8))
11349 );
11350 assert_eq!(
11351 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
11352 0usize,
11353 concat!(
11354 "Offset of field: ",
11355 stringify!(cl_float8),
11356 "::",
11357 stringify!(s)
11358 )
11359 );
11360 assert_eq!(
11361 unsafe { ::std::ptr::addr_of!((*ptr).v2) as usize - ptr as usize },
11362 0usize,
11363 concat!(
11364 "Offset of field: ",
11365 stringify!(cl_float8),
11366 "::",
11367 stringify!(v2)
11368 )
11369 );
11370 assert_eq!(
11371 unsafe { ::std::ptr::addr_of!((*ptr).v4) as usize - ptr as usize },
11372 0usize,
11373 concat!(
11374 "Offset of field: ",
11375 stringify!(cl_float8),
11376 "::",
11377 stringify!(v4)
11378 )
11379 );
11380}
11381#[repr(C)]
11382#[repr(align(16))]
11383#[derive(Copy, Clone)]
11384pub union cl_float16 {
11385 pub s: [cl_float; 16usize],
11386 pub __bindgen_anon_1: cl_float16__bindgen_ty_1,
11387 pub __bindgen_anon_2: cl_float16__bindgen_ty_2,
11388 pub __bindgen_anon_3: cl_float16__bindgen_ty_3,
11389 pub v2: [__cl_float2; 8usize],
11390 pub v4: [__cl_float4; 4usize],
11391}
11392#[repr(C)]
11393#[derive(Debug, Copy, Clone)]
11394pub struct cl_float16__bindgen_ty_1 {
11395 pub x: cl_float,
11396 pub y: cl_float,
11397 pub z: cl_float,
11398 pub w: cl_float,
11399 pub __spacer4: cl_float,
11400 pub __spacer5: cl_float,
11401 pub __spacer6: cl_float,
11402 pub __spacer7: cl_float,
11403 pub __spacer8: cl_float,
11404 pub __spacer9: cl_float,
11405 pub sa: cl_float,
11406 pub sb: cl_float,
11407 pub sc: cl_float,
11408 pub sd: cl_float,
11409 pub se: cl_float,
11410 pub sf: cl_float,
11411}
11412#[test]
11413fn bindgen_test_layout_cl_float16__bindgen_ty_1() {
11414 const UNINIT: ::std::mem::MaybeUninit<cl_float16__bindgen_ty_1> =
11415 ::std::mem::MaybeUninit::uninit();
11416 let ptr = UNINIT.as_ptr();
11417 assert_eq!(
11418 ::std::mem::size_of::<cl_float16__bindgen_ty_1>(),
11419 64usize,
11420 concat!("Size of: ", stringify!(cl_float16__bindgen_ty_1))
11421 );
11422 assert_eq!(
11423 ::std::mem::align_of::<cl_float16__bindgen_ty_1>(),
11424 4usize,
11425 concat!("Alignment of ", stringify!(cl_float16__bindgen_ty_1))
11426 );
11427 assert_eq!(
11428 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
11429 0usize,
11430 concat!(
11431 "Offset of field: ",
11432 stringify!(cl_float16__bindgen_ty_1),
11433 "::",
11434 stringify!(x)
11435 )
11436 );
11437 assert_eq!(
11438 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
11439 4usize,
11440 concat!(
11441 "Offset of field: ",
11442 stringify!(cl_float16__bindgen_ty_1),
11443 "::",
11444 stringify!(y)
11445 )
11446 );
11447 assert_eq!(
11448 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
11449 8usize,
11450 concat!(
11451 "Offset of field: ",
11452 stringify!(cl_float16__bindgen_ty_1),
11453 "::",
11454 stringify!(z)
11455 )
11456 );
11457 assert_eq!(
11458 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
11459 12usize,
11460 concat!(
11461 "Offset of field: ",
11462 stringify!(cl_float16__bindgen_ty_1),
11463 "::",
11464 stringify!(w)
11465 )
11466 );
11467 assert_eq!(
11468 unsafe { ::std::ptr::addr_of!((*ptr).__spacer4) as usize - ptr as usize },
11469 16usize,
11470 concat!(
11471 "Offset of field: ",
11472 stringify!(cl_float16__bindgen_ty_1),
11473 "::",
11474 stringify!(__spacer4)
11475 )
11476 );
11477 assert_eq!(
11478 unsafe { ::std::ptr::addr_of!((*ptr).__spacer5) as usize - ptr as usize },
11479 20usize,
11480 concat!(
11481 "Offset of field: ",
11482 stringify!(cl_float16__bindgen_ty_1),
11483 "::",
11484 stringify!(__spacer5)
11485 )
11486 );
11487 assert_eq!(
11488 unsafe { ::std::ptr::addr_of!((*ptr).__spacer6) as usize - ptr as usize },
11489 24usize,
11490 concat!(
11491 "Offset of field: ",
11492 stringify!(cl_float16__bindgen_ty_1),
11493 "::",
11494 stringify!(__spacer6)
11495 )
11496 );
11497 assert_eq!(
11498 unsafe { ::std::ptr::addr_of!((*ptr).__spacer7) as usize - ptr as usize },
11499 28usize,
11500 concat!(
11501 "Offset of field: ",
11502 stringify!(cl_float16__bindgen_ty_1),
11503 "::",
11504 stringify!(__spacer7)
11505 )
11506 );
11507 assert_eq!(
11508 unsafe { ::std::ptr::addr_of!((*ptr).__spacer8) as usize - ptr as usize },
11509 32usize,
11510 concat!(
11511 "Offset of field: ",
11512 stringify!(cl_float16__bindgen_ty_1),
11513 "::",
11514 stringify!(__spacer8)
11515 )
11516 );
11517 assert_eq!(
11518 unsafe { ::std::ptr::addr_of!((*ptr).__spacer9) as usize - ptr as usize },
11519 36usize,
11520 concat!(
11521 "Offset of field: ",
11522 stringify!(cl_float16__bindgen_ty_1),
11523 "::",
11524 stringify!(__spacer9)
11525 )
11526 );
11527 assert_eq!(
11528 unsafe { ::std::ptr::addr_of!((*ptr).sa) as usize - ptr as usize },
11529 40usize,
11530 concat!(
11531 "Offset of field: ",
11532 stringify!(cl_float16__bindgen_ty_1),
11533 "::",
11534 stringify!(sa)
11535 )
11536 );
11537 assert_eq!(
11538 unsafe { ::std::ptr::addr_of!((*ptr).sb) as usize - ptr as usize },
11539 44usize,
11540 concat!(
11541 "Offset of field: ",
11542 stringify!(cl_float16__bindgen_ty_1),
11543 "::",
11544 stringify!(sb)
11545 )
11546 );
11547 assert_eq!(
11548 unsafe { ::std::ptr::addr_of!((*ptr).sc) as usize - ptr as usize },
11549 48usize,
11550 concat!(
11551 "Offset of field: ",
11552 stringify!(cl_float16__bindgen_ty_1),
11553 "::",
11554 stringify!(sc)
11555 )
11556 );
11557 assert_eq!(
11558 unsafe { ::std::ptr::addr_of!((*ptr).sd) as usize - ptr as usize },
11559 52usize,
11560 concat!(
11561 "Offset of field: ",
11562 stringify!(cl_float16__bindgen_ty_1),
11563 "::",
11564 stringify!(sd)
11565 )
11566 );
11567 assert_eq!(
11568 unsafe { ::std::ptr::addr_of!((*ptr).se) as usize - ptr as usize },
11569 56usize,
11570 concat!(
11571 "Offset of field: ",
11572 stringify!(cl_float16__bindgen_ty_1),
11573 "::",
11574 stringify!(se)
11575 )
11576 );
11577 assert_eq!(
11578 unsafe { ::std::ptr::addr_of!((*ptr).sf) as usize - ptr as usize },
11579 60usize,
11580 concat!(
11581 "Offset of field: ",
11582 stringify!(cl_float16__bindgen_ty_1),
11583 "::",
11584 stringify!(sf)
11585 )
11586 );
11587}
11588#[repr(C)]
11589#[derive(Debug, Copy, Clone)]
11590pub struct cl_float16__bindgen_ty_2 {
11591 pub s0: cl_float,
11592 pub s1: cl_float,
11593 pub s2: cl_float,
11594 pub s3: cl_float,
11595 pub s4: cl_float,
11596 pub s5: cl_float,
11597 pub s6: cl_float,
11598 pub s7: cl_float,
11599 pub s8: cl_float,
11600 pub s9: cl_float,
11601 pub sA: cl_float,
11602 pub sB: cl_float,
11603 pub sC: cl_float,
11604 pub sD: cl_float,
11605 pub sE: cl_float,
11606 pub sF: cl_float,
11607}
11608#[test]
11609fn bindgen_test_layout_cl_float16__bindgen_ty_2() {
11610 const UNINIT: ::std::mem::MaybeUninit<cl_float16__bindgen_ty_2> =
11611 ::std::mem::MaybeUninit::uninit();
11612 let ptr = UNINIT.as_ptr();
11613 assert_eq!(
11614 ::std::mem::size_of::<cl_float16__bindgen_ty_2>(),
11615 64usize,
11616 concat!("Size of: ", stringify!(cl_float16__bindgen_ty_2))
11617 );
11618 assert_eq!(
11619 ::std::mem::align_of::<cl_float16__bindgen_ty_2>(),
11620 4usize,
11621 concat!("Alignment of ", stringify!(cl_float16__bindgen_ty_2))
11622 );
11623 assert_eq!(
11624 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
11625 0usize,
11626 concat!(
11627 "Offset of field: ",
11628 stringify!(cl_float16__bindgen_ty_2),
11629 "::",
11630 stringify!(s0)
11631 )
11632 );
11633 assert_eq!(
11634 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
11635 4usize,
11636 concat!(
11637 "Offset of field: ",
11638 stringify!(cl_float16__bindgen_ty_2),
11639 "::",
11640 stringify!(s1)
11641 )
11642 );
11643 assert_eq!(
11644 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
11645 8usize,
11646 concat!(
11647 "Offset of field: ",
11648 stringify!(cl_float16__bindgen_ty_2),
11649 "::",
11650 stringify!(s2)
11651 )
11652 );
11653 assert_eq!(
11654 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
11655 12usize,
11656 concat!(
11657 "Offset of field: ",
11658 stringify!(cl_float16__bindgen_ty_2),
11659 "::",
11660 stringify!(s3)
11661 )
11662 );
11663 assert_eq!(
11664 unsafe { ::std::ptr::addr_of!((*ptr).s4) as usize - ptr as usize },
11665 16usize,
11666 concat!(
11667 "Offset of field: ",
11668 stringify!(cl_float16__bindgen_ty_2),
11669 "::",
11670 stringify!(s4)
11671 )
11672 );
11673 assert_eq!(
11674 unsafe { ::std::ptr::addr_of!((*ptr).s5) as usize - ptr as usize },
11675 20usize,
11676 concat!(
11677 "Offset of field: ",
11678 stringify!(cl_float16__bindgen_ty_2),
11679 "::",
11680 stringify!(s5)
11681 )
11682 );
11683 assert_eq!(
11684 unsafe { ::std::ptr::addr_of!((*ptr).s6) as usize - ptr as usize },
11685 24usize,
11686 concat!(
11687 "Offset of field: ",
11688 stringify!(cl_float16__bindgen_ty_2),
11689 "::",
11690 stringify!(s6)
11691 )
11692 );
11693 assert_eq!(
11694 unsafe { ::std::ptr::addr_of!((*ptr).s7) as usize - ptr as usize },
11695 28usize,
11696 concat!(
11697 "Offset of field: ",
11698 stringify!(cl_float16__bindgen_ty_2),
11699 "::",
11700 stringify!(s7)
11701 )
11702 );
11703 assert_eq!(
11704 unsafe { ::std::ptr::addr_of!((*ptr).s8) as usize - ptr as usize },
11705 32usize,
11706 concat!(
11707 "Offset of field: ",
11708 stringify!(cl_float16__bindgen_ty_2),
11709 "::",
11710 stringify!(s8)
11711 )
11712 );
11713 assert_eq!(
11714 unsafe { ::std::ptr::addr_of!((*ptr).s9) as usize - ptr as usize },
11715 36usize,
11716 concat!(
11717 "Offset of field: ",
11718 stringify!(cl_float16__bindgen_ty_2),
11719 "::",
11720 stringify!(s9)
11721 )
11722 );
11723 assert_eq!(
11724 unsafe { ::std::ptr::addr_of!((*ptr).sA) as usize - ptr as usize },
11725 40usize,
11726 concat!(
11727 "Offset of field: ",
11728 stringify!(cl_float16__bindgen_ty_2),
11729 "::",
11730 stringify!(sA)
11731 )
11732 );
11733 assert_eq!(
11734 unsafe { ::std::ptr::addr_of!((*ptr).sB) as usize - ptr as usize },
11735 44usize,
11736 concat!(
11737 "Offset of field: ",
11738 stringify!(cl_float16__bindgen_ty_2),
11739 "::",
11740 stringify!(sB)
11741 )
11742 );
11743 assert_eq!(
11744 unsafe { ::std::ptr::addr_of!((*ptr).sC) as usize - ptr as usize },
11745 48usize,
11746 concat!(
11747 "Offset of field: ",
11748 stringify!(cl_float16__bindgen_ty_2),
11749 "::",
11750 stringify!(sC)
11751 )
11752 );
11753 assert_eq!(
11754 unsafe { ::std::ptr::addr_of!((*ptr).sD) as usize - ptr as usize },
11755 52usize,
11756 concat!(
11757 "Offset of field: ",
11758 stringify!(cl_float16__bindgen_ty_2),
11759 "::",
11760 stringify!(sD)
11761 )
11762 );
11763 assert_eq!(
11764 unsafe { ::std::ptr::addr_of!((*ptr).sE) as usize - ptr as usize },
11765 56usize,
11766 concat!(
11767 "Offset of field: ",
11768 stringify!(cl_float16__bindgen_ty_2),
11769 "::",
11770 stringify!(sE)
11771 )
11772 );
11773 assert_eq!(
11774 unsafe { ::std::ptr::addr_of!((*ptr).sF) as usize - ptr as usize },
11775 60usize,
11776 concat!(
11777 "Offset of field: ",
11778 stringify!(cl_float16__bindgen_ty_2),
11779 "::",
11780 stringify!(sF)
11781 )
11782 );
11783}
11784#[repr(C)]
11785#[repr(align(16))]
11786#[derive(Copy, Clone)]
11787pub struct cl_float16__bindgen_ty_3 {
11788 pub lo: cl_float8,
11789 pub hi: cl_float8,
11790}
11791#[test]
11792fn bindgen_test_layout_cl_float16__bindgen_ty_3() {
11793 const UNINIT: ::std::mem::MaybeUninit<cl_float16__bindgen_ty_3> =
11794 ::std::mem::MaybeUninit::uninit();
11795 let ptr = UNINIT.as_ptr();
11796 assert_eq!(
11797 ::std::mem::size_of::<cl_float16__bindgen_ty_3>(),
11798 64usize,
11799 concat!("Size of: ", stringify!(cl_float16__bindgen_ty_3))
11800 );
11801 assert_eq!(
11802 ::std::mem::align_of::<cl_float16__bindgen_ty_3>(),
11803 16usize,
11804 concat!("Alignment of ", stringify!(cl_float16__bindgen_ty_3))
11805 );
11806 assert_eq!(
11807 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
11808 0usize,
11809 concat!(
11810 "Offset of field: ",
11811 stringify!(cl_float16__bindgen_ty_3),
11812 "::",
11813 stringify!(lo)
11814 )
11815 );
11816 assert_eq!(
11817 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
11818 32usize,
11819 concat!(
11820 "Offset of field: ",
11821 stringify!(cl_float16__bindgen_ty_3),
11822 "::",
11823 stringify!(hi)
11824 )
11825 );
11826}
11827#[test]
11828fn bindgen_test_layout_cl_float16() {
11829 const UNINIT: ::std::mem::MaybeUninit<cl_float16> = ::std::mem::MaybeUninit::uninit();
11830 let ptr = UNINIT.as_ptr();
11831 assert_eq!(
11832 ::std::mem::size_of::<cl_float16>(),
11833 64usize,
11834 concat!("Size of: ", stringify!(cl_float16))
11835 );
11836 assert_eq!(
11837 ::std::mem::align_of::<cl_float16>(),
11838 16usize,
11839 concat!("Alignment of ", stringify!(cl_float16))
11840 );
11841 assert_eq!(
11842 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
11843 0usize,
11844 concat!(
11845 "Offset of field: ",
11846 stringify!(cl_float16),
11847 "::",
11848 stringify!(s)
11849 )
11850 );
11851 assert_eq!(
11852 unsafe { ::std::ptr::addr_of!((*ptr).v2) as usize - ptr as usize },
11853 0usize,
11854 concat!(
11855 "Offset of field: ",
11856 stringify!(cl_float16),
11857 "::",
11858 stringify!(v2)
11859 )
11860 );
11861 assert_eq!(
11862 unsafe { ::std::ptr::addr_of!((*ptr).v4) as usize - ptr as usize },
11863 0usize,
11864 concat!(
11865 "Offset of field: ",
11866 stringify!(cl_float16),
11867 "::",
11868 stringify!(v4)
11869 )
11870 );
11871}
11872#[repr(C)]
11873#[repr(align(16))]
11874#[derive(Copy, Clone)]
11875pub union cl_double2 {
11876 pub s: [cl_double; 2usize],
11877 pub __bindgen_anon_1: cl_double2__bindgen_ty_1,
11878 pub __bindgen_anon_2: cl_double2__bindgen_ty_2,
11879 pub __bindgen_anon_3: cl_double2__bindgen_ty_3,
11880 pub v2: __cl_double2,
11881}
11882#[repr(C)]
11883#[derive(Debug, Copy, Clone)]
11884pub struct cl_double2__bindgen_ty_1 {
11885 pub x: cl_double,
11886 pub y: cl_double,
11887}
11888#[test]
11889fn bindgen_test_layout_cl_double2__bindgen_ty_1() {
11890 const UNINIT: ::std::mem::MaybeUninit<cl_double2__bindgen_ty_1> =
11891 ::std::mem::MaybeUninit::uninit();
11892 let ptr = UNINIT.as_ptr();
11893 assert_eq!(
11894 ::std::mem::size_of::<cl_double2__bindgen_ty_1>(),
11895 16usize,
11896 concat!("Size of: ", stringify!(cl_double2__bindgen_ty_1))
11897 );
11898 assert_eq!(
11899 ::std::mem::align_of::<cl_double2__bindgen_ty_1>(),
11900 8usize,
11901 concat!("Alignment of ", stringify!(cl_double2__bindgen_ty_1))
11902 );
11903 assert_eq!(
11904 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
11905 0usize,
11906 concat!(
11907 "Offset of field: ",
11908 stringify!(cl_double2__bindgen_ty_1),
11909 "::",
11910 stringify!(x)
11911 )
11912 );
11913 assert_eq!(
11914 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
11915 8usize,
11916 concat!(
11917 "Offset of field: ",
11918 stringify!(cl_double2__bindgen_ty_1),
11919 "::",
11920 stringify!(y)
11921 )
11922 );
11923}
11924#[repr(C)]
11925#[derive(Debug, Copy, Clone)]
11926pub struct cl_double2__bindgen_ty_2 {
11927 pub s0: cl_double,
11928 pub s1: cl_double,
11929}
11930#[test]
11931fn bindgen_test_layout_cl_double2__bindgen_ty_2() {
11932 const UNINIT: ::std::mem::MaybeUninit<cl_double2__bindgen_ty_2> =
11933 ::std::mem::MaybeUninit::uninit();
11934 let ptr = UNINIT.as_ptr();
11935 assert_eq!(
11936 ::std::mem::size_of::<cl_double2__bindgen_ty_2>(),
11937 16usize,
11938 concat!("Size of: ", stringify!(cl_double2__bindgen_ty_2))
11939 );
11940 assert_eq!(
11941 ::std::mem::align_of::<cl_double2__bindgen_ty_2>(),
11942 8usize,
11943 concat!("Alignment of ", stringify!(cl_double2__bindgen_ty_2))
11944 );
11945 assert_eq!(
11946 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
11947 0usize,
11948 concat!(
11949 "Offset of field: ",
11950 stringify!(cl_double2__bindgen_ty_2),
11951 "::",
11952 stringify!(s0)
11953 )
11954 );
11955 assert_eq!(
11956 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
11957 8usize,
11958 concat!(
11959 "Offset of field: ",
11960 stringify!(cl_double2__bindgen_ty_2),
11961 "::",
11962 stringify!(s1)
11963 )
11964 );
11965}
11966#[repr(C)]
11967#[derive(Debug, Copy, Clone)]
11968pub struct cl_double2__bindgen_ty_3 {
11969 pub lo: cl_double,
11970 pub hi: cl_double,
11971}
11972#[test]
11973fn bindgen_test_layout_cl_double2__bindgen_ty_3() {
11974 const UNINIT: ::std::mem::MaybeUninit<cl_double2__bindgen_ty_3> =
11975 ::std::mem::MaybeUninit::uninit();
11976 let ptr = UNINIT.as_ptr();
11977 assert_eq!(
11978 ::std::mem::size_of::<cl_double2__bindgen_ty_3>(),
11979 16usize,
11980 concat!("Size of: ", stringify!(cl_double2__bindgen_ty_3))
11981 );
11982 assert_eq!(
11983 ::std::mem::align_of::<cl_double2__bindgen_ty_3>(),
11984 8usize,
11985 concat!("Alignment of ", stringify!(cl_double2__bindgen_ty_3))
11986 );
11987 assert_eq!(
11988 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
11989 0usize,
11990 concat!(
11991 "Offset of field: ",
11992 stringify!(cl_double2__bindgen_ty_3),
11993 "::",
11994 stringify!(lo)
11995 )
11996 );
11997 assert_eq!(
11998 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
11999 8usize,
12000 concat!(
12001 "Offset of field: ",
12002 stringify!(cl_double2__bindgen_ty_3),
12003 "::",
12004 stringify!(hi)
12005 )
12006 );
12007}
12008#[test]
12009fn bindgen_test_layout_cl_double2() {
12010 const UNINIT: ::std::mem::MaybeUninit<cl_double2> = ::std::mem::MaybeUninit::uninit();
12011 let ptr = UNINIT.as_ptr();
12012 assert_eq!(
12013 ::std::mem::size_of::<cl_double2>(),
12014 16usize,
12015 concat!("Size of: ", stringify!(cl_double2))
12016 );
12017 assert_eq!(
12018 ::std::mem::align_of::<cl_double2>(),
12019 16usize,
12020 concat!("Alignment of ", stringify!(cl_double2))
12021 );
12022 assert_eq!(
12023 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
12024 0usize,
12025 concat!(
12026 "Offset of field: ",
12027 stringify!(cl_double2),
12028 "::",
12029 stringify!(s)
12030 )
12031 );
12032 assert_eq!(
12033 unsafe { ::std::ptr::addr_of!((*ptr).v2) as usize - ptr as usize },
12034 0usize,
12035 concat!(
12036 "Offset of field: ",
12037 stringify!(cl_double2),
12038 "::",
12039 stringify!(v2)
12040 )
12041 );
12042}
12043#[repr(C)]
12044#[repr(align(16))]
12045#[derive(Copy, Clone)]
12046pub union cl_double4 {
12047 pub s: [cl_double; 4usize],
12048 pub __bindgen_anon_1: cl_double4__bindgen_ty_1,
12049 pub __bindgen_anon_2: cl_double4__bindgen_ty_2,
12050 pub __bindgen_anon_3: cl_double4__bindgen_ty_3,
12051 pub v2: [__cl_double2; 2usize],
12052}
12053#[repr(C)]
12054#[derive(Debug, Copy, Clone)]
12055pub struct cl_double4__bindgen_ty_1 {
12056 pub x: cl_double,
12057 pub y: cl_double,
12058 pub z: cl_double,
12059 pub w: cl_double,
12060}
12061#[test]
12062fn bindgen_test_layout_cl_double4__bindgen_ty_1() {
12063 const UNINIT: ::std::mem::MaybeUninit<cl_double4__bindgen_ty_1> =
12064 ::std::mem::MaybeUninit::uninit();
12065 let ptr = UNINIT.as_ptr();
12066 assert_eq!(
12067 ::std::mem::size_of::<cl_double4__bindgen_ty_1>(),
12068 32usize,
12069 concat!("Size of: ", stringify!(cl_double4__bindgen_ty_1))
12070 );
12071 assert_eq!(
12072 ::std::mem::align_of::<cl_double4__bindgen_ty_1>(),
12073 8usize,
12074 concat!("Alignment of ", stringify!(cl_double4__bindgen_ty_1))
12075 );
12076 assert_eq!(
12077 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
12078 0usize,
12079 concat!(
12080 "Offset of field: ",
12081 stringify!(cl_double4__bindgen_ty_1),
12082 "::",
12083 stringify!(x)
12084 )
12085 );
12086 assert_eq!(
12087 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
12088 8usize,
12089 concat!(
12090 "Offset of field: ",
12091 stringify!(cl_double4__bindgen_ty_1),
12092 "::",
12093 stringify!(y)
12094 )
12095 );
12096 assert_eq!(
12097 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
12098 16usize,
12099 concat!(
12100 "Offset of field: ",
12101 stringify!(cl_double4__bindgen_ty_1),
12102 "::",
12103 stringify!(z)
12104 )
12105 );
12106 assert_eq!(
12107 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
12108 24usize,
12109 concat!(
12110 "Offset of field: ",
12111 stringify!(cl_double4__bindgen_ty_1),
12112 "::",
12113 stringify!(w)
12114 )
12115 );
12116}
12117#[repr(C)]
12118#[derive(Debug, Copy, Clone)]
12119pub struct cl_double4__bindgen_ty_2 {
12120 pub s0: cl_double,
12121 pub s1: cl_double,
12122 pub s2: cl_double,
12123 pub s3: cl_double,
12124}
12125#[test]
12126fn bindgen_test_layout_cl_double4__bindgen_ty_2() {
12127 const UNINIT: ::std::mem::MaybeUninit<cl_double4__bindgen_ty_2> =
12128 ::std::mem::MaybeUninit::uninit();
12129 let ptr = UNINIT.as_ptr();
12130 assert_eq!(
12131 ::std::mem::size_of::<cl_double4__bindgen_ty_2>(),
12132 32usize,
12133 concat!("Size of: ", stringify!(cl_double4__bindgen_ty_2))
12134 );
12135 assert_eq!(
12136 ::std::mem::align_of::<cl_double4__bindgen_ty_2>(),
12137 8usize,
12138 concat!("Alignment of ", stringify!(cl_double4__bindgen_ty_2))
12139 );
12140 assert_eq!(
12141 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
12142 0usize,
12143 concat!(
12144 "Offset of field: ",
12145 stringify!(cl_double4__bindgen_ty_2),
12146 "::",
12147 stringify!(s0)
12148 )
12149 );
12150 assert_eq!(
12151 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
12152 8usize,
12153 concat!(
12154 "Offset of field: ",
12155 stringify!(cl_double4__bindgen_ty_2),
12156 "::",
12157 stringify!(s1)
12158 )
12159 );
12160 assert_eq!(
12161 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
12162 16usize,
12163 concat!(
12164 "Offset of field: ",
12165 stringify!(cl_double4__bindgen_ty_2),
12166 "::",
12167 stringify!(s2)
12168 )
12169 );
12170 assert_eq!(
12171 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
12172 24usize,
12173 concat!(
12174 "Offset of field: ",
12175 stringify!(cl_double4__bindgen_ty_2),
12176 "::",
12177 stringify!(s3)
12178 )
12179 );
12180}
12181#[repr(C)]
12182#[repr(align(16))]
12183#[derive(Copy, Clone)]
12184pub struct cl_double4__bindgen_ty_3 {
12185 pub lo: cl_double2,
12186 pub hi: cl_double2,
12187}
12188#[test]
12189fn bindgen_test_layout_cl_double4__bindgen_ty_3() {
12190 const UNINIT: ::std::mem::MaybeUninit<cl_double4__bindgen_ty_3> =
12191 ::std::mem::MaybeUninit::uninit();
12192 let ptr = UNINIT.as_ptr();
12193 assert_eq!(
12194 ::std::mem::size_of::<cl_double4__bindgen_ty_3>(),
12195 32usize,
12196 concat!("Size of: ", stringify!(cl_double4__bindgen_ty_3))
12197 );
12198 assert_eq!(
12199 ::std::mem::align_of::<cl_double4__bindgen_ty_3>(),
12200 16usize,
12201 concat!("Alignment of ", stringify!(cl_double4__bindgen_ty_3))
12202 );
12203 assert_eq!(
12204 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
12205 0usize,
12206 concat!(
12207 "Offset of field: ",
12208 stringify!(cl_double4__bindgen_ty_3),
12209 "::",
12210 stringify!(lo)
12211 )
12212 );
12213 assert_eq!(
12214 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
12215 16usize,
12216 concat!(
12217 "Offset of field: ",
12218 stringify!(cl_double4__bindgen_ty_3),
12219 "::",
12220 stringify!(hi)
12221 )
12222 );
12223}
12224#[test]
12225fn bindgen_test_layout_cl_double4() {
12226 const UNINIT: ::std::mem::MaybeUninit<cl_double4> = ::std::mem::MaybeUninit::uninit();
12227 let ptr = UNINIT.as_ptr();
12228 assert_eq!(
12229 ::std::mem::size_of::<cl_double4>(),
12230 32usize,
12231 concat!("Size of: ", stringify!(cl_double4))
12232 );
12233 assert_eq!(
12234 ::std::mem::align_of::<cl_double4>(),
12235 16usize,
12236 concat!("Alignment of ", stringify!(cl_double4))
12237 );
12238 assert_eq!(
12239 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
12240 0usize,
12241 concat!(
12242 "Offset of field: ",
12243 stringify!(cl_double4),
12244 "::",
12245 stringify!(s)
12246 )
12247 );
12248 assert_eq!(
12249 unsafe { ::std::ptr::addr_of!((*ptr).v2) as usize - ptr as usize },
12250 0usize,
12251 concat!(
12252 "Offset of field: ",
12253 stringify!(cl_double4),
12254 "::",
12255 stringify!(v2)
12256 )
12257 );
12258}
12259pub type cl_double3 = cl_double4;
12260#[repr(C)]
12261#[repr(align(16))]
12262#[derive(Copy, Clone)]
12263pub union cl_double8 {
12264 pub s: [cl_double; 8usize],
12265 pub __bindgen_anon_1: cl_double8__bindgen_ty_1,
12266 pub __bindgen_anon_2: cl_double8__bindgen_ty_2,
12267 pub __bindgen_anon_3: cl_double8__bindgen_ty_3,
12268 pub v2: [__cl_double2; 4usize],
12269}
12270#[repr(C)]
12271#[derive(Debug, Copy, Clone)]
12272pub struct cl_double8__bindgen_ty_1 {
12273 pub x: cl_double,
12274 pub y: cl_double,
12275 pub z: cl_double,
12276 pub w: cl_double,
12277}
12278#[test]
12279fn bindgen_test_layout_cl_double8__bindgen_ty_1() {
12280 const UNINIT: ::std::mem::MaybeUninit<cl_double8__bindgen_ty_1> =
12281 ::std::mem::MaybeUninit::uninit();
12282 let ptr = UNINIT.as_ptr();
12283 assert_eq!(
12284 ::std::mem::size_of::<cl_double8__bindgen_ty_1>(),
12285 32usize,
12286 concat!("Size of: ", stringify!(cl_double8__bindgen_ty_1))
12287 );
12288 assert_eq!(
12289 ::std::mem::align_of::<cl_double8__bindgen_ty_1>(),
12290 8usize,
12291 concat!("Alignment of ", stringify!(cl_double8__bindgen_ty_1))
12292 );
12293 assert_eq!(
12294 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
12295 0usize,
12296 concat!(
12297 "Offset of field: ",
12298 stringify!(cl_double8__bindgen_ty_1),
12299 "::",
12300 stringify!(x)
12301 )
12302 );
12303 assert_eq!(
12304 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
12305 8usize,
12306 concat!(
12307 "Offset of field: ",
12308 stringify!(cl_double8__bindgen_ty_1),
12309 "::",
12310 stringify!(y)
12311 )
12312 );
12313 assert_eq!(
12314 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
12315 16usize,
12316 concat!(
12317 "Offset of field: ",
12318 stringify!(cl_double8__bindgen_ty_1),
12319 "::",
12320 stringify!(z)
12321 )
12322 );
12323 assert_eq!(
12324 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
12325 24usize,
12326 concat!(
12327 "Offset of field: ",
12328 stringify!(cl_double8__bindgen_ty_1),
12329 "::",
12330 stringify!(w)
12331 )
12332 );
12333}
12334#[repr(C)]
12335#[derive(Debug, Copy, Clone)]
12336pub struct cl_double8__bindgen_ty_2 {
12337 pub s0: cl_double,
12338 pub s1: cl_double,
12339 pub s2: cl_double,
12340 pub s3: cl_double,
12341 pub s4: cl_double,
12342 pub s5: cl_double,
12343 pub s6: cl_double,
12344 pub s7: cl_double,
12345}
12346#[test]
12347fn bindgen_test_layout_cl_double8__bindgen_ty_2() {
12348 const UNINIT: ::std::mem::MaybeUninit<cl_double8__bindgen_ty_2> =
12349 ::std::mem::MaybeUninit::uninit();
12350 let ptr = UNINIT.as_ptr();
12351 assert_eq!(
12352 ::std::mem::size_of::<cl_double8__bindgen_ty_2>(),
12353 64usize,
12354 concat!("Size of: ", stringify!(cl_double8__bindgen_ty_2))
12355 );
12356 assert_eq!(
12357 ::std::mem::align_of::<cl_double8__bindgen_ty_2>(),
12358 8usize,
12359 concat!("Alignment of ", stringify!(cl_double8__bindgen_ty_2))
12360 );
12361 assert_eq!(
12362 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
12363 0usize,
12364 concat!(
12365 "Offset of field: ",
12366 stringify!(cl_double8__bindgen_ty_2),
12367 "::",
12368 stringify!(s0)
12369 )
12370 );
12371 assert_eq!(
12372 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
12373 8usize,
12374 concat!(
12375 "Offset of field: ",
12376 stringify!(cl_double8__bindgen_ty_2),
12377 "::",
12378 stringify!(s1)
12379 )
12380 );
12381 assert_eq!(
12382 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
12383 16usize,
12384 concat!(
12385 "Offset of field: ",
12386 stringify!(cl_double8__bindgen_ty_2),
12387 "::",
12388 stringify!(s2)
12389 )
12390 );
12391 assert_eq!(
12392 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
12393 24usize,
12394 concat!(
12395 "Offset of field: ",
12396 stringify!(cl_double8__bindgen_ty_2),
12397 "::",
12398 stringify!(s3)
12399 )
12400 );
12401 assert_eq!(
12402 unsafe { ::std::ptr::addr_of!((*ptr).s4) as usize - ptr as usize },
12403 32usize,
12404 concat!(
12405 "Offset of field: ",
12406 stringify!(cl_double8__bindgen_ty_2),
12407 "::",
12408 stringify!(s4)
12409 )
12410 );
12411 assert_eq!(
12412 unsafe { ::std::ptr::addr_of!((*ptr).s5) as usize - ptr as usize },
12413 40usize,
12414 concat!(
12415 "Offset of field: ",
12416 stringify!(cl_double8__bindgen_ty_2),
12417 "::",
12418 stringify!(s5)
12419 )
12420 );
12421 assert_eq!(
12422 unsafe { ::std::ptr::addr_of!((*ptr).s6) as usize - ptr as usize },
12423 48usize,
12424 concat!(
12425 "Offset of field: ",
12426 stringify!(cl_double8__bindgen_ty_2),
12427 "::",
12428 stringify!(s6)
12429 )
12430 );
12431 assert_eq!(
12432 unsafe { ::std::ptr::addr_of!((*ptr).s7) as usize - ptr as usize },
12433 56usize,
12434 concat!(
12435 "Offset of field: ",
12436 stringify!(cl_double8__bindgen_ty_2),
12437 "::",
12438 stringify!(s7)
12439 )
12440 );
12441}
12442#[repr(C)]
12443#[repr(align(16))]
12444#[derive(Copy, Clone)]
12445pub struct cl_double8__bindgen_ty_3 {
12446 pub lo: cl_double4,
12447 pub hi: cl_double4,
12448}
12449#[test]
12450fn bindgen_test_layout_cl_double8__bindgen_ty_3() {
12451 const UNINIT: ::std::mem::MaybeUninit<cl_double8__bindgen_ty_3> =
12452 ::std::mem::MaybeUninit::uninit();
12453 let ptr = UNINIT.as_ptr();
12454 assert_eq!(
12455 ::std::mem::size_of::<cl_double8__bindgen_ty_3>(),
12456 64usize,
12457 concat!("Size of: ", stringify!(cl_double8__bindgen_ty_3))
12458 );
12459 assert_eq!(
12460 ::std::mem::align_of::<cl_double8__bindgen_ty_3>(),
12461 16usize,
12462 concat!("Alignment of ", stringify!(cl_double8__bindgen_ty_3))
12463 );
12464 assert_eq!(
12465 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
12466 0usize,
12467 concat!(
12468 "Offset of field: ",
12469 stringify!(cl_double8__bindgen_ty_3),
12470 "::",
12471 stringify!(lo)
12472 )
12473 );
12474 assert_eq!(
12475 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
12476 32usize,
12477 concat!(
12478 "Offset of field: ",
12479 stringify!(cl_double8__bindgen_ty_3),
12480 "::",
12481 stringify!(hi)
12482 )
12483 );
12484}
12485#[test]
12486fn bindgen_test_layout_cl_double8() {
12487 const UNINIT: ::std::mem::MaybeUninit<cl_double8> = ::std::mem::MaybeUninit::uninit();
12488 let ptr = UNINIT.as_ptr();
12489 assert_eq!(
12490 ::std::mem::size_of::<cl_double8>(),
12491 64usize,
12492 concat!("Size of: ", stringify!(cl_double8))
12493 );
12494 assert_eq!(
12495 ::std::mem::align_of::<cl_double8>(),
12496 16usize,
12497 concat!("Alignment of ", stringify!(cl_double8))
12498 );
12499 assert_eq!(
12500 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
12501 0usize,
12502 concat!(
12503 "Offset of field: ",
12504 stringify!(cl_double8),
12505 "::",
12506 stringify!(s)
12507 )
12508 );
12509 assert_eq!(
12510 unsafe { ::std::ptr::addr_of!((*ptr).v2) as usize - ptr as usize },
12511 0usize,
12512 concat!(
12513 "Offset of field: ",
12514 stringify!(cl_double8),
12515 "::",
12516 stringify!(v2)
12517 )
12518 );
12519}
12520#[repr(C)]
12521#[repr(align(16))]
12522#[derive(Copy, Clone)]
12523pub union cl_double16 {
12524 pub s: [cl_double; 16usize],
12525 pub __bindgen_anon_1: cl_double16__bindgen_ty_1,
12526 pub __bindgen_anon_2: cl_double16__bindgen_ty_2,
12527 pub __bindgen_anon_3: cl_double16__bindgen_ty_3,
12528 pub v2: [__cl_double2; 8usize],
12529}
12530#[repr(C)]
12531#[derive(Debug, Copy, Clone)]
12532pub struct cl_double16__bindgen_ty_1 {
12533 pub x: cl_double,
12534 pub y: cl_double,
12535 pub z: cl_double,
12536 pub w: cl_double,
12537 pub __spacer4: cl_double,
12538 pub __spacer5: cl_double,
12539 pub __spacer6: cl_double,
12540 pub __spacer7: cl_double,
12541 pub __spacer8: cl_double,
12542 pub __spacer9: cl_double,
12543 pub sa: cl_double,
12544 pub sb: cl_double,
12545 pub sc: cl_double,
12546 pub sd: cl_double,
12547 pub se: cl_double,
12548 pub sf: cl_double,
12549}
12550#[test]
12551fn bindgen_test_layout_cl_double16__bindgen_ty_1() {
12552 const UNINIT: ::std::mem::MaybeUninit<cl_double16__bindgen_ty_1> =
12553 ::std::mem::MaybeUninit::uninit();
12554 let ptr = UNINIT.as_ptr();
12555 assert_eq!(
12556 ::std::mem::size_of::<cl_double16__bindgen_ty_1>(),
12557 128usize,
12558 concat!("Size of: ", stringify!(cl_double16__bindgen_ty_1))
12559 );
12560 assert_eq!(
12561 ::std::mem::align_of::<cl_double16__bindgen_ty_1>(),
12562 8usize,
12563 concat!("Alignment of ", stringify!(cl_double16__bindgen_ty_1))
12564 );
12565 assert_eq!(
12566 unsafe { ::std::ptr::addr_of!((*ptr).x) as usize - ptr as usize },
12567 0usize,
12568 concat!(
12569 "Offset of field: ",
12570 stringify!(cl_double16__bindgen_ty_1),
12571 "::",
12572 stringify!(x)
12573 )
12574 );
12575 assert_eq!(
12576 unsafe { ::std::ptr::addr_of!((*ptr).y) as usize - ptr as usize },
12577 8usize,
12578 concat!(
12579 "Offset of field: ",
12580 stringify!(cl_double16__bindgen_ty_1),
12581 "::",
12582 stringify!(y)
12583 )
12584 );
12585 assert_eq!(
12586 unsafe { ::std::ptr::addr_of!((*ptr).z) as usize - ptr as usize },
12587 16usize,
12588 concat!(
12589 "Offset of field: ",
12590 stringify!(cl_double16__bindgen_ty_1),
12591 "::",
12592 stringify!(z)
12593 )
12594 );
12595 assert_eq!(
12596 unsafe { ::std::ptr::addr_of!((*ptr).w) as usize - ptr as usize },
12597 24usize,
12598 concat!(
12599 "Offset of field: ",
12600 stringify!(cl_double16__bindgen_ty_1),
12601 "::",
12602 stringify!(w)
12603 )
12604 );
12605 assert_eq!(
12606 unsafe { ::std::ptr::addr_of!((*ptr).__spacer4) as usize - ptr as usize },
12607 32usize,
12608 concat!(
12609 "Offset of field: ",
12610 stringify!(cl_double16__bindgen_ty_1),
12611 "::",
12612 stringify!(__spacer4)
12613 )
12614 );
12615 assert_eq!(
12616 unsafe { ::std::ptr::addr_of!((*ptr).__spacer5) as usize - ptr as usize },
12617 40usize,
12618 concat!(
12619 "Offset of field: ",
12620 stringify!(cl_double16__bindgen_ty_1),
12621 "::",
12622 stringify!(__spacer5)
12623 )
12624 );
12625 assert_eq!(
12626 unsafe { ::std::ptr::addr_of!((*ptr).__spacer6) as usize - ptr as usize },
12627 48usize,
12628 concat!(
12629 "Offset of field: ",
12630 stringify!(cl_double16__bindgen_ty_1),
12631 "::",
12632 stringify!(__spacer6)
12633 )
12634 );
12635 assert_eq!(
12636 unsafe { ::std::ptr::addr_of!((*ptr).__spacer7) as usize - ptr as usize },
12637 56usize,
12638 concat!(
12639 "Offset of field: ",
12640 stringify!(cl_double16__bindgen_ty_1),
12641 "::",
12642 stringify!(__spacer7)
12643 )
12644 );
12645 assert_eq!(
12646 unsafe { ::std::ptr::addr_of!((*ptr).__spacer8) as usize - ptr as usize },
12647 64usize,
12648 concat!(
12649 "Offset of field: ",
12650 stringify!(cl_double16__bindgen_ty_1),
12651 "::",
12652 stringify!(__spacer8)
12653 )
12654 );
12655 assert_eq!(
12656 unsafe { ::std::ptr::addr_of!((*ptr).__spacer9) as usize - ptr as usize },
12657 72usize,
12658 concat!(
12659 "Offset of field: ",
12660 stringify!(cl_double16__bindgen_ty_1),
12661 "::",
12662 stringify!(__spacer9)
12663 )
12664 );
12665 assert_eq!(
12666 unsafe { ::std::ptr::addr_of!((*ptr).sa) as usize - ptr as usize },
12667 80usize,
12668 concat!(
12669 "Offset of field: ",
12670 stringify!(cl_double16__bindgen_ty_1),
12671 "::",
12672 stringify!(sa)
12673 )
12674 );
12675 assert_eq!(
12676 unsafe { ::std::ptr::addr_of!((*ptr).sb) as usize - ptr as usize },
12677 88usize,
12678 concat!(
12679 "Offset of field: ",
12680 stringify!(cl_double16__bindgen_ty_1),
12681 "::",
12682 stringify!(sb)
12683 )
12684 );
12685 assert_eq!(
12686 unsafe { ::std::ptr::addr_of!((*ptr).sc) as usize - ptr as usize },
12687 96usize,
12688 concat!(
12689 "Offset of field: ",
12690 stringify!(cl_double16__bindgen_ty_1),
12691 "::",
12692 stringify!(sc)
12693 )
12694 );
12695 assert_eq!(
12696 unsafe { ::std::ptr::addr_of!((*ptr).sd) as usize - ptr as usize },
12697 104usize,
12698 concat!(
12699 "Offset of field: ",
12700 stringify!(cl_double16__bindgen_ty_1),
12701 "::",
12702 stringify!(sd)
12703 )
12704 );
12705 assert_eq!(
12706 unsafe { ::std::ptr::addr_of!((*ptr).se) as usize - ptr as usize },
12707 112usize,
12708 concat!(
12709 "Offset of field: ",
12710 stringify!(cl_double16__bindgen_ty_1),
12711 "::",
12712 stringify!(se)
12713 )
12714 );
12715 assert_eq!(
12716 unsafe { ::std::ptr::addr_of!((*ptr).sf) as usize - ptr as usize },
12717 120usize,
12718 concat!(
12719 "Offset of field: ",
12720 stringify!(cl_double16__bindgen_ty_1),
12721 "::",
12722 stringify!(sf)
12723 )
12724 );
12725}
12726#[repr(C)]
12727#[derive(Debug, Copy, Clone)]
12728pub struct cl_double16__bindgen_ty_2 {
12729 pub s0: cl_double,
12730 pub s1: cl_double,
12731 pub s2: cl_double,
12732 pub s3: cl_double,
12733 pub s4: cl_double,
12734 pub s5: cl_double,
12735 pub s6: cl_double,
12736 pub s7: cl_double,
12737 pub s8: cl_double,
12738 pub s9: cl_double,
12739 pub sA: cl_double,
12740 pub sB: cl_double,
12741 pub sC: cl_double,
12742 pub sD: cl_double,
12743 pub sE: cl_double,
12744 pub sF: cl_double,
12745}
12746#[test]
12747fn bindgen_test_layout_cl_double16__bindgen_ty_2() {
12748 const UNINIT: ::std::mem::MaybeUninit<cl_double16__bindgen_ty_2> =
12749 ::std::mem::MaybeUninit::uninit();
12750 let ptr = UNINIT.as_ptr();
12751 assert_eq!(
12752 ::std::mem::size_of::<cl_double16__bindgen_ty_2>(),
12753 128usize,
12754 concat!("Size of: ", stringify!(cl_double16__bindgen_ty_2))
12755 );
12756 assert_eq!(
12757 ::std::mem::align_of::<cl_double16__bindgen_ty_2>(),
12758 8usize,
12759 concat!("Alignment of ", stringify!(cl_double16__bindgen_ty_2))
12760 );
12761 assert_eq!(
12762 unsafe { ::std::ptr::addr_of!((*ptr).s0) as usize - ptr as usize },
12763 0usize,
12764 concat!(
12765 "Offset of field: ",
12766 stringify!(cl_double16__bindgen_ty_2),
12767 "::",
12768 stringify!(s0)
12769 )
12770 );
12771 assert_eq!(
12772 unsafe { ::std::ptr::addr_of!((*ptr).s1) as usize - ptr as usize },
12773 8usize,
12774 concat!(
12775 "Offset of field: ",
12776 stringify!(cl_double16__bindgen_ty_2),
12777 "::",
12778 stringify!(s1)
12779 )
12780 );
12781 assert_eq!(
12782 unsafe { ::std::ptr::addr_of!((*ptr).s2) as usize - ptr as usize },
12783 16usize,
12784 concat!(
12785 "Offset of field: ",
12786 stringify!(cl_double16__bindgen_ty_2),
12787 "::",
12788 stringify!(s2)
12789 )
12790 );
12791 assert_eq!(
12792 unsafe { ::std::ptr::addr_of!((*ptr).s3) as usize - ptr as usize },
12793 24usize,
12794 concat!(
12795 "Offset of field: ",
12796 stringify!(cl_double16__bindgen_ty_2),
12797 "::",
12798 stringify!(s3)
12799 )
12800 );
12801 assert_eq!(
12802 unsafe { ::std::ptr::addr_of!((*ptr).s4) as usize - ptr as usize },
12803 32usize,
12804 concat!(
12805 "Offset of field: ",
12806 stringify!(cl_double16__bindgen_ty_2),
12807 "::",
12808 stringify!(s4)
12809 )
12810 );
12811 assert_eq!(
12812 unsafe { ::std::ptr::addr_of!((*ptr).s5) as usize - ptr as usize },
12813 40usize,
12814 concat!(
12815 "Offset of field: ",
12816 stringify!(cl_double16__bindgen_ty_2),
12817 "::",
12818 stringify!(s5)
12819 )
12820 );
12821 assert_eq!(
12822 unsafe { ::std::ptr::addr_of!((*ptr).s6) as usize - ptr as usize },
12823 48usize,
12824 concat!(
12825 "Offset of field: ",
12826 stringify!(cl_double16__bindgen_ty_2),
12827 "::",
12828 stringify!(s6)
12829 )
12830 );
12831 assert_eq!(
12832 unsafe { ::std::ptr::addr_of!((*ptr).s7) as usize - ptr as usize },
12833 56usize,
12834 concat!(
12835 "Offset of field: ",
12836 stringify!(cl_double16__bindgen_ty_2),
12837 "::",
12838 stringify!(s7)
12839 )
12840 );
12841 assert_eq!(
12842 unsafe { ::std::ptr::addr_of!((*ptr).s8) as usize - ptr as usize },
12843 64usize,
12844 concat!(
12845 "Offset of field: ",
12846 stringify!(cl_double16__bindgen_ty_2),
12847 "::",
12848 stringify!(s8)
12849 )
12850 );
12851 assert_eq!(
12852 unsafe { ::std::ptr::addr_of!((*ptr).s9) as usize - ptr as usize },
12853 72usize,
12854 concat!(
12855 "Offset of field: ",
12856 stringify!(cl_double16__bindgen_ty_2),
12857 "::",
12858 stringify!(s9)
12859 )
12860 );
12861 assert_eq!(
12862 unsafe { ::std::ptr::addr_of!((*ptr).sA) as usize - ptr as usize },
12863 80usize,
12864 concat!(
12865 "Offset of field: ",
12866 stringify!(cl_double16__bindgen_ty_2),
12867 "::",
12868 stringify!(sA)
12869 )
12870 );
12871 assert_eq!(
12872 unsafe { ::std::ptr::addr_of!((*ptr).sB) as usize - ptr as usize },
12873 88usize,
12874 concat!(
12875 "Offset of field: ",
12876 stringify!(cl_double16__bindgen_ty_2),
12877 "::",
12878 stringify!(sB)
12879 )
12880 );
12881 assert_eq!(
12882 unsafe { ::std::ptr::addr_of!((*ptr).sC) as usize - ptr as usize },
12883 96usize,
12884 concat!(
12885 "Offset of field: ",
12886 stringify!(cl_double16__bindgen_ty_2),
12887 "::",
12888 stringify!(sC)
12889 )
12890 );
12891 assert_eq!(
12892 unsafe { ::std::ptr::addr_of!((*ptr).sD) as usize - ptr as usize },
12893 104usize,
12894 concat!(
12895 "Offset of field: ",
12896 stringify!(cl_double16__bindgen_ty_2),
12897 "::",
12898 stringify!(sD)
12899 )
12900 );
12901 assert_eq!(
12902 unsafe { ::std::ptr::addr_of!((*ptr).sE) as usize - ptr as usize },
12903 112usize,
12904 concat!(
12905 "Offset of field: ",
12906 stringify!(cl_double16__bindgen_ty_2),
12907 "::",
12908 stringify!(sE)
12909 )
12910 );
12911 assert_eq!(
12912 unsafe { ::std::ptr::addr_of!((*ptr).sF) as usize - ptr as usize },
12913 120usize,
12914 concat!(
12915 "Offset of field: ",
12916 stringify!(cl_double16__bindgen_ty_2),
12917 "::",
12918 stringify!(sF)
12919 )
12920 );
12921}
12922#[repr(C)]
12923#[repr(align(16))]
12924#[derive(Copy, Clone)]
12925pub struct cl_double16__bindgen_ty_3 {
12926 pub lo: cl_double8,
12927 pub hi: cl_double8,
12928}
12929#[test]
12930fn bindgen_test_layout_cl_double16__bindgen_ty_3() {
12931 const UNINIT: ::std::mem::MaybeUninit<cl_double16__bindgen_ty_3> =
12932 ::std::mem::MaybeUninit::uninit();
12933 let ptr = UNINIT.as_ptr();
12934 assert_eq!(
12935 ::std::mem::size_of::<cl_double16__bindgen_ty_3>(),
12936 128usize,
12937 concat!("Size of: ", stringify!(cl_double16__bindgen_ty_3))
12938 );
12939 assert_eq!(
12940 ::std::mem::align_of::<cl_double16__bindgen_ty_3>(),
12941 16usize,
12942 concat!("Alignment of ", stringify!(cl_double16__bindgen_ty_3))
12943 );
12944 assert_eq!(
12945 unsafe { ::std::ptr::addr_of!((*ptr).lo) as usize - ptr as usize },
12946 0usize,
12947 concat!(
12948 "Offset of field: ",
12949 stringify!(cl_double16__bindgen_ty_3),
12950 "::",
12951 stringify!(lo)
12952 )
12953 );
12954 assert_eq!(
12955 unsafe { ::std::ptr::addr_of!((*ptr).hi) as usize - ptr as usize },
12956 64usize,
12957 concat!(
12958 "Offset of field: ",
12959 stringify!(cl_double16__bindgen_ty_3),
12960 "::",
12961 stringify!(hi)
12962 )
12963 );
12964}
12965#[test]
12966fn bindgen_test_layout_cl_double16() {
12967 const UNINIT: ::std::mem::MaybeUninit<cl_double16> = ::std::mem::MaybeUninit::uninit();
12968 let ptr = UNINIT.as_ptr();
12969 assert_eq!(
12970 ::std::mem::size_of::<cl_double16>(),
12971 128usize,
12972 concat!("Size of: ", stringify!(cl_double16))
12973 );
12974 assert_eq!(
12975 ::std::mem::align_of::<cl_double16>(),
12976 16usize,
12977 concat!("Alignment of ", stringify!(cl_double16))
12978 );
12979 assert_eq!(
12980 unsafe { ::std::ptr::addr_of!((*ptr).s) as usize - ptr as usize },
12981 0usize,
12982 concat!(
12983 "Offset of field: ",
12984 stringify!(cl_double16),
12985 "::",
12986 stringify!(s)
12987 )
12988 );
12989 assert_eq!(
12990 unsafe { ::std::ptr::addr_of!((*ptr).v2) as usize - ptr as usize },
12991 0usize,
12992 concat!(
12993 "Offset of field: ",
12994 stringify!(cl_double16),
12995 "::",
12996 stringify!(v2)
12997 )
12998 );
12999}
13000#[repr(C)]
13001#[derive(Debug, Copy, Clone)]
13002pub struct _cl_platform_id {
13003 _unused: [u8; 0],
13004}
13005pub type cl_platform_id = *mut _cl_platform_id;
13006#[repr(C)]
13007#[derive(Debug, Copy, Clone)]
13008pub struct _cl_device_id {
13009 _unused: [u8; 0],
13010}
13011pub type cl_device_id = *mut _cl_device_id;
13012#[repr(C)]
13013#[derive(Debug, Copy, Clone)]
13014pub struct _cl_context {
13015 _unused: [u8; 0],
13016}
13017pub type cl_context = *mut _cl_context;
13018#[repr(C)]
13019#[derive(Debug, Copy, Clone)]
13020pub struct _cl_command_queue {
13021 _unused: [u8; 0],
13022}
13023pub type cl_command_queue = *mut _cl_command_queue;
13024#[repr(C)]
13025#[derive(Debug, Copy, Clone)]
13026pub struct _cl_mem {
13027 _unused: [u8; 0],
13028}
13029pub type cl_mem = *mut _cl_mem;
13030#[repr(C)]
13031#[derive(Debug, Copy, Clone)]
13032pub struct _cl_program {
13033 _unused: [u8; 0],
13034}
13035pub type cl_program = *mut _cl_program;
13036#[repr(C)]
13037#[derive(Debug, Copy, Clone)]
13038pub struct _cl_kernel {
13039 _unused: [u8; 0],
13040}
13041pub type cl_kernel = *mut _cl_kernel;
13042#[repr(C)]
13043#[derive(Debug, Copy, Clone)]
13044pub struct _cl_event {
13045 _unused: [u8; 0],
13046}
13047pub type cl_event = *mut _cl_event;
13048#[repr(C)]
13049#[derive(Debug, Copy, Clone)]
13050pub struct _cl_sampler {
13051 _unused: [u8; 0],
13052}
13053pub type cl_sampler = *mut _cl_sampler;
13054pub type cl_bool = cl_uint;
13055pub type cl_bitfield = cl_ulong;
13056pub type cl_properties = cl_ulong;
13057pub type cl_device_type = cl_bitfield;
13058pub type cl_platform_info = cl_uint;
13059pub type cl_device_info = cl_uint;
13060pub type cl_device_fp_config = cl_bitfield;
13061pub type cl_device_mem_cache_type = cl_uint;
13062pub type cl_device_local_mem_type = cl_uint;
13063pub type cl_device_exec_capabilities = cl_bitfield;
13064pub type cl_device_svm_capabilities = cl_bitfield;
13065pub type cl_command_queue_properties = cl_bitfield;
13066pub type cl_device_partition_property = isize;
13067pub type cl_device_affinity_domain = cl_bitfield;
13068pub type cl_context_properties = isize;
13069pub type cl_context_info = cl_uint;
13070pub type cl_queue_properties = cl_properties;
13071pub type cl_command_queue_info = cl_uint;
13072pub type cl_channel_order = cl_uint;
13073pub type cl_channel_type = cl_uint;
13074pub type cl_mem_flags = cl_bitfield;
13075pub type cl_svm_mem_flags = cl_bitfield;
13076pub type cl_mem_object_type = cl_uint;
13077pub type cl_mem_info = cl_uint;
13078pub type cl_mem_migration_flags = cl_bitfield;
13079pub type cl_image_info = cl_uint;
13080pub type cl_buffer_create_type = cl_uint;
13081pub type cl_addressing_mode = cl_uint;
13082pub type cl_filter_mode = cl_uint;
13083pub type cl_sampler_info = cl_uint;
13084pub type cl_map_flags = cl_bitfield;
13085pub type cl_pipe_properties = isize;
13086pub type cl_pipe_info = cl_uint;
13087pub type cl_program_info = cl_uint;
13088pub type cl_program_build_info = cl_uint;
13089pub type cl_program_binary_type = cl_uint;
13090pub type cl_build_status = cl_int;
13091pub type cl_kernel_info = cl_uint;
13092pub type cl_kernel_arg_info = cl_uint;
13093pub type cl_kernel_arg_address_qualifier = cl_uint;
13094pub type cl_kernel_arg_access_qualifier = cl_uint;
13095pub type cl_kernel_arg_type_qualifier = cl_bitfield;
13096pub type cl_kernel_work_group_info = cl_uint;
13097pub type cl_kernel_sub_group_info = cl_uint;
13098pub type cl_event_info = cl_uint;
13099pub type cl_command_type = cl_uint;
13100pub type cl_profiling_info = cl_uint;
13101pub type cl_sampler_properties = cl_properties;
13102pub type cl_kernel_exec_info = cl_uint;
13103pub type cl_device_atomic_capabilities = cl_bitfield;
13104pub type cl_device_device_enqueue_capabilities = cl_bitfield;
13105pub type cl_khronos_vendor_id = cl_uint;
13106pub type cl_mem_properties = cl_properties;
13107pub type cl_version = cl_uint;
13108#[repr(C)]
13109#[derive(Debug, Copy, Clone)]
13110pub struct _cl_image_format {
13111 pub image_channel_order: cl_channel_order,
13112 pub image_channel_data_type: cl_channel_type,
13113}
13114#[test]
13115fn bindgen_test_layout__cl_image_format() {
13116 const UNINIT: ::std::mem::MaybeUninit<_cl_image_format> = ::std::mem::MaybeUninit::uninit();
13117 let ptr = UNINIT.as_ptr();
13118 assert_eq!(
13119 ::std::mem::size_of::<_cl_image_format>(),
13120 8usize,
13121 concat!("Size of: ", stringify!(_cl_image_format))
13122 );
13123 assert_eq!(
13124 ::std::mem::align_of::<_cl_image_format>(),
13125 4usize,
13126 concat!("Alignment of ", stringify!(_cl_image_format))
13127 );
13128 assert_eq!(
13129 unsafe { ::std::ptr::addr_of!((*ptr).image_channel_order) as usize - ptr as usize },
13130 0usize,
13131 concat!(
13132 "Offset of field: ",
13133 stringify!(_cl_image_format),
13134 "::",
13135 stringify!(image_channel_order)
13136 )
13137 );
13138 assert_eq!(
13139 unsafe { ::std::ptr::addr_of!((*ptr).image_channel_data_type) as usize - ptr as usize },
13140 4usize,
13141 concat!(
13142 "Offset of field: ",
13143 stringify!(_cl_image_format),
13144 "::",
13145 stringify!(image_channel_data_type)
13146 )
13147 );
13148}
13149pub type cl_image_format = _cl_image_format;
13150#[repr(C)]
13151#[derive(Copy, Clone)]
13152pub struct _cl_image_desc {
13153 pub image_type: cl_mem_object_type,
13154 pub image_width: usize,
13155 pub image_height: usize,
13156 pub image_depth: usize,
13157 pub image_array_size: usize,
13158 pub image_row_pitch: usize,
13159 pub image_slice_pitch: usize,
13160 pub num_mip_levels: cl_uint,
13161 pub num_samples: cl_uint,
13162 pub __bindgen_anon_1: _cl_image_desc__bindgen_ty_1,
13163}
13164#[repr(C)]
13165#[derive(Copy, Clone)]
13166pub union _cl_image_desc__bindgen_ty_1 {
13167 pub buffer: cl_mem,
13168 pub mem_object: cl_mem,
13169}
13170#[test]
13171fn bindgen_test_layout__cl_image_desc__bindgen_ty_1() {
13172 const UNINIT: ::std::mem::MaybeUninit<_cl_image_desc__bindgen_ty_1> =
13173 ::std::mem::MaybeUninit::uninit();
13174 let ptr = UNINIT.as_ptr();
13175 assert_eq!(
13176 ::std::mem::size_of::<_cl_image_desc__bindgen_ty_1>(),
13177 8usize,
13178 concat!("Size of: ", stringify!(_cl_image_desc__bindgen_ty_1))
13179 );
13180 assert_eq!(
13181 ::std::mem::align_of::<_cl_image_desc__bindgen_ty_1>(),
13182 8usize,
13183 concat!("Alignment of ", stringify!(_cl_image_desc__bindgen_ty_1))
13184 );
13185 assert_eq!(
13186 unsafe { ::std::ptr::addr_of!((*ptr).buffer) as usize - ptr as usize },
13187 0usize,
13188 concat!(
13189 "Offset of field: ",
13190 stringify!(_cl_image_desc__bindgen_ty_1),
13191 "::",
13192 stringify!(buffer)
13193 )
13194 );
13195 assert_eq!(
13196 unsafe { ::std::ptr::addr_of!((*ptr).mem_object) as usize - ptr as usize },
13197 0usize,
13198 concat!(
13199 "Offset of field: ",
13200 stringify!(_cl_image_desc__bindgen_ty_1),
13201 "::",
13202 stringify!(mem_object)
13203 )
13204 );
13205}
13206#[test]
13207fn bindgen_test_layout__cl_image_desc() {
13208 const UNINIT: ::std::mem::MaybeUninit<_cl_image_desc> = ::std::mem::MaybeUninit::uninit();
13209 let ptr = UNINIT.as_ptr();
13210 assert_eq!(
13211 ::std::mem::size_of::<_cl_image_desc>(),
13212 72usize,
13213 concat!("Size of: ", stringify!(_cl_image_desc))
13214 );
13215 assert_eq!(
13216 ::std::mem::align_of::<_cl_image_desc>(),
13217 8usize,
13218 concat!("Alignment of ", stringify!(_cl_image_desc))
13219 );
13220 assert_eq!(
13221 unsafe { ::std::ptr::addr_of!((*ptr).image_type) as usize - ptr as usize },
13222 0usize,
13223 concat!(
13224 "Offset of field: ",
13225 stringify!(_cl_image_desc),
13226 "::",
13227 stringify!(image_type)
13228 )
13229 );
13230 assert_eq!(
13231 unsafe { ::std::ptr::addr_of!((*ptr).image_width) as usize - ptr as usize },
13232 8usize,
13233 concat!(
13234 "Offset of field: ",
13235 stringify!(_cl_image_desc),
13236 "::",
13237 stringify!(image_width)
13238 )
13239 );
13240 assert_eq!(
13241 unsafe { ::std::ptr::addr_of!((*ptr).image_height) as usize - ptr as usize },
13242 16usize,
13243 concat!(
13244 "Offset of field: ",
13245 stringify!(_cl_image_desc),
13246 "::",
13247 stringify!(image_height)
13248 )
13249 );
13250 assert_eq!(
13251 unsafe { ::std::ptr::addr_of!((*ptr).image_depth) as usize - ptr as usize },
13252 24usize,
13253 concat!(
13254 "Offset of field: ",
13255 stringify!(_cl_image_desc),
13256 "::",
13257 stringify!(image_depth)
13258 )
13259 );
13260 assert_eq!(
13261 unsafe { ::std::ptr::addr_of!((*ptr).image_array_size) as usize - ptr as usize },
13262 32usize,
13263 concat!(
13264 "Offset of field: ",
13265 stringify!(_cl_image_desc),
13266 "::",
13267 stringify!(image_array_size)
13268 )
13269 );
13270 assert_eq!(
13271 unsafe { ::std::ptr::addr_of!((*ptr).image_row_pitch) as usize - ptr as usize },
13272 40usize,
13273 concat!(
13274 "Offset of field: ",
13275 stringify!(_cl_image_desc),
13276 "::",
13277 stringify!(image_row_pitch)
13278 )
13279 );
13280 assert_eq!(
13281 unsafe { ::std::ptr::addr_of!((*ptr).image_slice_pitch) as usize - ptr as usize },
13282 48usize,
13283 concat!(
13284 "Offset of field: ",
13285 stringify!(_cl_image_desc),
13286 "::",
13287 stringify!(image_slice_pitch)
13288 )
13289 );
13290 assert_eq!(
13291 unsafe { ::std::ptr::addr_of!((*ptr).num_mip_levels) as usize - ptr as usize },
13292 56usize,
13293 concat!(
13294 "Offset of field: ",
13295 stringify!(_cl_image_desc),
13296 "::",
13297 stringify!(num_mip_levels)
13298 )
13299 );
13300 assert_eq!(
13301 unsafe { ::std::ptr::addr_of!((*ptr).num_samples) as usize - ptr as usize },
13302 60usize,
13303 concat!(
13304 "Offset of field: ",
13305 stringify!(_cl_image_desc),
13306 "::",
13307 stringify!(num_samples)
13308 )
13309 );
13310}
13311pub type cl_image_desc = _cl_image_desc;
13312#[repr(C)]
13313#[derive(Debug, Copy, Clone)]
13314pub struct _cl_buffer_region {
13315 pub origin: usize,
13316 pub size: usize,
13317}
13318#[test]
13319fn bindgen_test_layout__cl_buffer_region() {
13320 const UNINIT: ::std::mem::MaybeUninit<_cl_buffer_region> = ::std::mem::MaybeUninit::uninit();
13321 let ptr = UNINIT.as_ptr();
13322 assert_eq!(
13323 ::std::mem::size_of::<_cl_buffer_region>(),
13324 16usize,
13325 concat!("Size of: ", stringify!(_cl_buffer_region))
13326 );
13327 assert_eq!(
13328 ::std::mem::align_of::<_cl_buffer_region>(),
13329 8usize,
13330 concat!("Alignment of ", stringify!(_cl_buffer_region))
13331 );
13332 assert_eq!(
13333 unsafe { ::std::ptr::addr_of!((*ptr).origin) as usize - ptr as usize },
13334 0usize,
13335 concat!(
13336 "Offset of field: ",
13337 stringify!(_cl_buffer_region),
13338 "::",
13339 stringify!(origin)
13340 )
13341 );
13342 assert_eq!(
13343 unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize },
13344 8usize,
13345 concat!(
13346 "Offset of field: ",
13347 stringify!(_cl_buffer_region),
13348 "::",
13349 stringify!(size)
13350 )
13351 );
13352}
13353pub type cl_buffer_region = _cl_buffer_region;
13354#[repr(C)]
13355#[derive(Debug, Copy, Clone)]
13356pub struct _cl_name_version {
13357 pub version: cl_version,
13358 pub name: [::std::os::raw::c_char; 64usize],
13359}
13360#[test]
13361fn bindgen_test_layout__cl_name_version() {
13362 const UNINIT: ::std::mem::MaybeUninit<_cl_name_version> = ::std::mem::MaybeUninit::uninit();
13363 let ptr = UNINIT.as_ptr();
13364 assert_eq!(
13365 ::std::mem::size_of::<_cl_name_version>(),
13366 68usize,
13367 concat!("Size of: ", stringify!(_cl_name_version))
13368 );
13369 assert_eq!(
13370 ::std::mem::align_of::<_cl_name_version>(),
13371 4usize,
13372 concat!("Alignment of ", stringify!(_cl_name_version))
13373 );
13374 assert_eq!(
13375 unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize },
13376 0usize,
13377 concat!(
13378 "Offset of field: ",
13379 stringify!(_cl_name_version),
13380 "::",
13381 stringify!(version)
13382 )
13383 );
13384 assert_eq!(
13385 unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
13386 4usize,
13387 concat!(
13388 "Offset of field: ",
13389 stringify!(_cl_name_version),
13390 "::",
13391 stringify!(name)
13392 )
13393 );
13394}
13395pub type cl_name_version = _cl_name_version;
13396unsafe extern "C" {
13397 pub fn clGetPlatformIDs(
13398 num_entries: cl_uint,
13399 platforms: *mut cl_platform_id,
13400 num_platforms: *mut cl_uint,
13401 ) -> cl_int;
13402}
13403unsafe extern "C" {
13404 pub fn clGetPlatformInfo(
13405 platform: cl_platform_id,
13406 param_name: cl_platform_info,
13407 param_value_size: usize,
13408 param_value: *mut ::std::os::raw::c_void,
13409 param_value_size_ret: *mut usize,
13410 ) -> cl_int;
13411}
13412unsafe extern "C" {
13413 pub fn clGetDeviceIDs(
13414 platform: cl_platform_id,
13415 device_type: cl_device_type,
13416 num_entries: cl_uint,
13417 devices: *mut cl_device_id,
13418 num_devices: *mut cl_uint,
13419 ) -> cl_int;
13420}
13421unsafe extern "C" {
13422 pub fn clGetDeviceInfo(
13423 device: cl_device_id,
13424 param_name: cl_device_info,
13425 param_value_size: usize,
13426 param_value: *mut ::std::os::raw::c_void,
13427 param_value_size_ret: *mut usize,
13428 ) -> cl_int;
13429}
13430unsafe extern "C" {
13431 pub fn clCreateSubDevices(
13432 in_device: cl_device_id,
13433 properties: *const cl_device_partition_property,
13434 num_devices: cl_uint,
13435 out_devices: *mut cl_device_id,
13436 num_devices_ret: *mut cl_uint,
13437 ) -> cl_int;
13438}
13439unsafe extern "C" {
13440 pub fn clRetainDevice(device: cl_device_id) -> cl_int;
13441}
13442unsafe extern "C" {
13443 pub fn clReleaseDevice(device: cl_device_id) -> cl_int;
13444}
13445unsafe extern "C" {
13446 pub fn clSetDefaultDeviceCommandQueue(
13447 context: cl_context,
13448 device: cl_device_id,
13449 command_queue: cl_command_queue,
13450 ) -> cl_int;
13451}
13452unsafe extern "C" {
13453 pub fn clGetDeviceAndHostTimer(
13454 device: cl_device_id,
13455 device_timestamp: *mut cl_ulong,
13456 host_timestamp: *mut cl_ulong,
13457 ) -> cl_int;
13458}
13459unsafe extern "C" {
13460 pub fn clGetHostTimer(device: cl_device_id, host_timestamp: *mut cl_ulong) -> cl_int;
13461}
13462unsafe extern "C" {
13463 pub fn clCreateContext(
13464 properties: *const cl_context_properties,
13465 num_devices: cl_uint,
13466 devices: *const cl_device_id,
13467 pfn_notify: ::std::option::Option<
13468 unsafe extern "C" fn(
13469 errinfo: *const ::std::os::raw::c_char,
13470 private_info: *const ::std::os::raw::c_void,
13471 cb: usize,
13472 user_data: *mut ::std::os::raw::c_void,
13473 ),
13474 >,
13475 user_data: *mut ::std::os::raw::c_void,
13476 errcode_ret: *mut cl_int,
13477 ) -> cl_context;
13478}
13479unsafe extern "C" {
13480 pub fn clCreateContextFromType(
13481 properties: *const cl_context_properties,
13482 device_type: cl_device_type,
13483 pfn_notify: ::std::option::Option<
13484 unsafe extern "C" fn(
13485 errinfo: *const ::std::os::raw::c_char,
13486 private_info: *const ::std::os::raw::c_void,
13487 cb: usize,
13488 user_data: *mut ::std::os::raw::c_void,
13489 ),
13490 >,
13491 user_data: *mut ::std::os::raw::c_void,
13492 errcode_ret: *mut cl_int,
13493 ) -> cl_context;
13494}
13495unsafe extern "C" {
13496 pub fn clRetainContext(context: cl_context) -> cl_int;
13497}
13498unsafe extern "C" {
13499 pub fn clReleaseContext(context: cl_context) -> cl_int;
13500}
13501unsafe extern "C" {
13502 pub fn clGetContextInfo(
13503 context: cl_context,
13504 param_name: cl_context_info,
13505 param_value_size: usize,
13506 param_value: *mut ::std::os::raw::c_void,
13507 param_value_size_ret: *mut usize,
13508 ) -> cl_int;
13509}
13510unsafe extern "C" {
13511 pub fn clSetContextDestructorCallback(
13512 context: cl_context,
13513 pfn_notify: ::std::option::Option<
13514 unsafe extern "C" fn(context: cl_context, user_data: *mut ::std::os::raw::c_void),
13515 >,
13516 user_data: *mut ::std::os::raw::c_void,
13517 ) -> cl_int;
13518}
13519unsafe extern "C" {
13520 pub fn clCreateCommandQueueWithProperties(
13521 context: cl_context,
13522 device: cl_device_id,
13523 properties: *const cl_queue_properties,
13524 errcode_ret: *mut cl_int,
13525 ) -> cl_command_queue;
13526}
13527unsafe extern "C" {
13528 pub fn clRetainCommandQueue(command_queue: cl_command_queue) -> cl_int;
13529}
13530unsafe extern "C" {
13531 pub fn clReleaseCommandQueue(command_queue: cl_command_queue) -> cl_int;
13532}
13533unsafe extern "C" {
13534 pub fn clGetCommandQueueInfo(
13535 command_queue: cl_command_queue,
13536 param_name: cl_command_queue_info,
13537 param_value_size: usize,
13538 param_value: *mut ::std::os::raw::c_void,
13539 param_value_size_ret: *mut usize,
13540 ) -> cl_int;
13541}
13542unsafe extern "C" {
13543 pub fn clCreateBuffer(
13544 context: cl_context,
13545 flags: cl_mem_flags,
13546 size: usize,
13547 host_ptr: *mut ::std::os::raw::c_void,
13548 errcode_ret: *mut cl_int,
13549 ) -> cl_mem;
13550}
13551unsafe extern "C" {
13552 pub fn clCreateSubBuffer(
13553 buffer: cl_mem,
13554 flags: cl_mem_flags,
13555 buffer_create_type: cl_buffer_create_type,
13556 buffer_create_info: *const ::std::os::raw::c_void,
13557 errcode_ret: *mut cl_int,
13558 ) -> cl_mem;
13559}
13560unsafe extern "C" {
13561 pub fn clCreateImage(
13562 context: cl_context,
13563 flags: cl_mem_flags,
13564 image_format: *const cl_image_format,
13565 image_desc: *const cl_image_desc,
13566 host_ptr: *mut ::std::os::raw::c_void,
13567 errcode_ret: *mut cl_int,
13568 ) -> cl_mem;
13569}
13570unsafe extern "C" {
13571 pub fn clCreatePipe(
13572 context: cl_context,
13573 flags: cl_mem_flags,
13574 pipe_packet_size: cl_uint,
13575 pipe_max_packets: cl_uint,
13576 properties: *const cl_pipe_properties,
13577 errcode_ret: *mut cl_int,
13578 ) -> cl_mem;
13579}
13580unsafe extern "C" {
13581 pub fn clCreateBufferWithProperties(
13582 context: cl_context,
13583 properties: *const cl_mem_properties,
13584 flags: cl_mem_flags,
13585 size: usize,
13586 host_ptr: *mut ::std::os::raw::c_void,
13587 errcode_ret: *mut cl_int,
13588 ) -> cl_mem;
13589}
13590unsafe extern "C" {
13591 pub fn clCreateImageWithProperties(
13592 context: cl_context,
13593 properties: *const cl_mem_properties,
13594 flags: cl_mem_flags,
13595 image_format: *const cl_image_format,
13596 image_desc: *const cl_image_desc,
13597 host_ptr: *mut ::std::os::raw::c_void,
13598 errcode_ret: *mut cl_int,
13599 ) -> cl_mem;
13600}
13601unsafe extern "C" {
13602 pub fn clRetainMemObject(memobj: cl_mem) -> cl_int;
13603}
13604unsafe extern "C" {
13605 pub fn clReleaseMemObject(memobj: cl_mem) -> cl_int;
13606}
13607unsafe extern "C" {
13608 pub fn clGetSupportedImageFormats(
13609 context: cl_context,
13610 flags: cl_mem_flags,
13611 image_type: cl_mem_object_type,
13612 num_entries: cl_uint,
13613 image_formats: *mut cl_image_format,
13614 num_image_formats: *mut cl_uint,
13615 ) -> cl_int;
13616}
13617unsafe extern "C" {
13618 pub fn clGetMemObjectInfo(
13619 memobj: cl_mem,
13620 param_name: cl_mem_info,
13621 param_value_size: usize,
13622 param_value: *mut ::std::os::raw::c_void,
13623 param_value_size_ret: *mut usize,
13624 ) -> cl_int;
13625}
13626unsafe extern "C" {
13627 pub fn clGetImageInfo(
13628 image: cl_mem,
13629 param_name: cl_image_info,
13630 param_value_size: usize,
13631 param_value: *mut ::std::os::raw::c_void,
13632 param_value_size_ret: *mut usize,
13633 ) -> cl_int;
13634}
13635unsafe extern "C" {
13636 pub fn clGetPipeInfo(
13637 pipe: cl_mem,
13638 param_name: cl_pipe_info,
13639 param_value_size: usize,
13640 param_value: *mut ::std::os::raw::c_void,
13641 param_value_size_ret: *mut usize,
13642 ) -> cl_int;
13643}
13644unsafe extern "C" {
13645 pub fn clSetMemObjectDestructorCallback(
13646 memobj: cl_mem,
13647 pfn_notify: ::std::option::Option<
13648 unsafe extern "C" fn(memobj: cl_mem, user_data: *mut ::std::os::raw::c_void),
13649 >,
13650 user_data: *mut ::std::os::raw::c_void,
13651 ) -> cl_int;
13652}
13653unsafe extern "C" {
13654 pub fn clSVMAlloc(
13655 context: cl_context,
13656 flags: cl_svm_mem_flags,
13657 size: usize,
13658 alignment: cl_uint,
13659 ) -> *mut ::std::os::raw::c_void;
13660}
13661unsafe extern "C" {
13662 pub fn clSVMFree(context: cl_context, svm_pointer: *mut ::std::os::raw::c_void);
13663}
13664unsafe extern "C" {
13665 pub fn clCreateSamplerWithProperties(
13666 context: cl_context,
13667 sampler_properties: *const cl_sampler_properties,
13668 errcode_ret: *mut cl_int,
13669 ) -> cl_sampler;
13670}
13671unsafe extern "C" {
13672 pub fn clRetainSampler(sampler: cl_sampler) -> cl_int;
13673}
13674unsafe extern "C" {
13675 pub fn clReleaseSampler(sampler: cl_sampler) -> cl_int;
13676}
13677unsafe extern "C" {
13678 pub fn clGetSamplerInfo(
13679 sampler: cl_sampler,
13680 param_name: cl_sampler_info,
13681 param_value_size: usize,
13682 param_value: *mut ::std::os::raw::c_void,
13683 param_value_size_ret: *mut usize,
13684 ) -> cl_int;
13685}
13686unsafe extern "C" {
13687 pub fn clCreateProgramWithSource(
13688 context: cl_context,
13689 count: cl_uint,
13690 strings: *mut *const ::std::os::raw::c_char,
13691 lengths: *const usize,
13692 errcode_ret: *mut cl_int,
13693 ) -> cl_program;
13694}
13695unsafe extern "C" {
13696 pub fn clCreateProgramWithBinary(
13697 context: cl_context,
13698 num_devices: cl_uint,
13699 device_list: *const cl_device_id,
13700 lengths: *const usize,
13701 binaries: *mut *const ::std::os::raw::c_uchar,
13702 binary_status: *mut cl_int,
13703 errcode_ret: *mut cl_int,
13704 ) -> cl_program;
13705}
13706unsafe extern "C" {
13707 pub fn clCreateProgramWithBuiltInKernels(
13708 context: cl_context,
13709 num_devices: cl_uint,
13710 device_list: *const cl_device_id,
13711 kernel_names: *const ::std::os::raw::c_char,
13712 errcode_ret: *mut cl_int,
13713 ) -> cl_program;
13714}
13715unsafe extern "C" {
13716 pub fn clCreateProgramWithIL(
13717 context: cl_context,
13718 il: *const ::std::os::raw::c_void,
13719 length: usize,
13720 errcode_ret: *mut cl_int,
13721 ) -> cl_program;
13722}
13723unsafe extern "C" {
13724 pub fn clRetainProgram(program: cl_program) -> cl_int;
13725}
13726unsafe extern "C" {
13727 pub fn clReleaseProgram(program: cl_program) -> cl_int;
13728}
13729unsafe extern "C" {
13730 pub fn clBuildProgram(
13731 program: cl_program,
13732 num_devices: cl_uint,
13733 device_list: *const cl_device_id,
13734 options: *const ::std::os::raw::c_char,
13735 pfn_notify: ::std::option::Option<
13736 unsafe extern "C" fn(program: cl_program, user_data: *mut ::std::os::raw::c_void),
13737 >,
13738 user_data: *mut ::std::os::raw::c_void,
13739 ) -> cl_int;
13740}
13741unsafe extern "C" {
13742 pub fn clCompileProgram(
13743 program: cl_program,
13744 num_devices: cl_uint,
13745 device_list: *const cl_device_id,
13746 options: *const ::std::os::raw::c_char,
13747 num_input_headers: cl_uint,
13748 input_headers: *const cl_program,
13749 header_include_names: *mut *const ::std::os::raw::c_char,
13750 pfn_notify: ::std::option::Option<
13751 unsafe extern "C" fn(program: cl_program, user_data: *mut ::std::os::raw::c_void),
13752 >,
13753 user_data: *mut ::std::os::raw::c_void,
13754 ) -> cl_int;
13755}
13756unsafe extern "C" {
13757 pub fn clLinkProgram(
13758 context: cl_context,
13759 num_devices: cl_uint,
13760 device_list: *const cl_device_id,
13761 options: *const ::std::os::raw::c_char,
13762 num_input_programs: cl_uint,
13763 input_programs: *const cl_program,
13764 pfn_notify: ::std::option::Option<
13765 unsafe extern "C" fn(program: cl_program, user_data: *mut ::std::os::raw::c_void),
13766 >,
13767 user_data: *mut ::std::os::raw::c_void,
13768 errcode_ret: *mut cl_int,
13769 ) -> cl_program;
13770}
13771unsafe extern "C" {
13772 pub fn clSetProgramReleaseCallback(
13773 program: cl_program,
13774 pfn_notify: ::std::option::Option<
13775 unsafe extern "C" fn(program: cl_program, user_data: *mut ::std::os::raw::c_void),
13776 >,
13777 user_data: *mut ::std::os::raw::c_void,
13778 ) -> cl_int;
13779}
13780unsafe extern "C" {
13781 pub fn clSetProgramSpecializationConstant(
13782 program: cl_program,
13783 spec_id: cl_uint,
13784 spec_size: usize,
13785 spec_value: *const ::std::os::raw::c_void,
13786 ) -> cl_int;
13787}
13788unsafe extern "C" {
13789 pub fn clUnloadPlatformCompiler(platform: cl_platform_id) -> cl_int;
13790}
13791unsafe extern "C" {
13792 pub fn clGetProgramInfo(
13793 program: cl_program,
13794 param_name: cl_program_info,
13795 param_value_size: usize,
13796 param_value: *mut ::std::os::raw::c_void,
13797 param_value_size_ret: *mut usize,
13798 ) -> cl_int;
13799}
13800unsafe extern "C" {
13801 pub fn clGetProgramBuildInfo(
13802 program: cl_program,
13803 device: cl_device_id,
13804 param_name: cl_program_build_info,
13805 param_value_size: usize,
13806 param_value: *mut ::std::os::raw::c_void,
13807 param_value_size_ret: *mut usize,
13808 ) -> cl_int;
13809}
13810unsafe extern "C" {
13811 pub fn clCreateKernel(
13812 program: cl_program,
13813 kernel_name: *const ::std::os::raw::c_char,
13814 errcode_ret: *mut cl_int,
13815 ) -> cl_kernel;
13816}
13817unsafe extern "C" {
13818 pub fn clCreateKernelsInProgram(
13819 program: cl_program,
13820 num_kernels: cl_uint,
13821 kernels: *mut cl_kernel,
13822 num_kernels_ret: *mut cl_uint,
13823 ) -> cl_int;
13824}
13825unsafe extern "C" {
13826 pub fn clCloneKernel(source_kernel: cl_kernel, errcode_ret: *mut cl_int) -> cl_kernel;
13827}
13828unsafe extern "C" {
13829 pub fn clRetainKernel(kernel: cl_kernel) -> cl_int;
13830}
13831unsafe extern "C" {
13832 pub fn clReleaseKernel(kernel: cl_kernel) -> cl_int;
13833}
13834unsafe extern "C" {
13835 pub fn clSetKernelArg(
13836 kernel: cl_kernel,
13837 arg_index: cl_uint,
13838 arg_size: usize,
13839 arg_value: *const ::std::os::raw::c_void,
13840 ) -> cl_int;
13841}
13842unsafe extern "C" {
13843 pub fn clSetKernelArgSVMPointer(
13844 kernel: cl_kernel,
13845 arg_index: cl_uint,
13846 arg_value: *const ::std::os::raw::c_void,
13847 ) -> cl_int;
13848}
13849unsafe extern "C" {
13850 pub fn clSetKernelExecInfo(
13851 kernel: cl_kernel,
13852 param_name: cl_kernel_exec_info,
13853 param_value_size: usize,
13854 param_value: *const ::std::os::raw::c_void,
13855 ) -> cl_int;
13856}
13857unsafe extern "C" {
13858 pub fn clGetKernelInfo(
13859 kernel: cl_kernel,
13860 param_name: cl_kernel_info,
13861 param_value_size: usize,
13862 param_value: *mut ::std::os::raw::c_void,
13863 param_value_size_ret: *mut usize,
13864 ) -> cl_int;
13865}
13866unsafe extern "C" {
13867 pub fn clGetKernelArgInfo(
13868 kernel: cl_kernel,
13869 arg_indx: cl_uint,
13870 param_name: cl_kernel_arg_info,
13871 param_value_size: usize,
13872 param_value: *mut ::std::os::raw::c_void,
13873 param_value_size_ret: *mut usize,
13874 ) -> cl_int;
13875}
13876unsafe extern "C" {
13877 pub fn clGetKernelWorkGroupInfo(
13878 kernel: cl_kernel,
13879 device: cl_device_id,
13880 param_name: cl_kernel_work_group_info,
13881 param_value_size: usize,
13882 param_value: *mut ::std::os::raw::c_void,
13883 param_value_size_ret: *mut usize,
13884 ) -> cl_int;
13885}
13886unsafe extern "C" {
13887 pub fn clGetKernelSubGroupInfo(
13888 kernel: cl_kernel,
13889 device: cl_device_id,
13890 param_name: cl_kernel_sub_group_info,
13891 input_value_size: usize,
13892 input_value: *const ::std::os::raw::c_void,
13893 param_value_size: usize,
13894 param_value: *mut ::std::os::raw::c_void,
13895 param_value_size_ret: *mut usize,
13896 ) -> cl_int;
13897}
13898unsafe extern "C" {
13899 pub fn clWaitForEvents(num_events: cl_uint, event_list: *const cl_event) -> cl_int;
13900}
13901unsafe extern "C" {
13902 pub fn clGetEventInfo(
13903 event: cl_event,
13904 param_name: cl_event_info,
13905 param_value_size: usize,
13906 param_value: *mut ::std::os::raw::c_void,
13907 param_value_size_ret: *mut usize,
13908 ) -> cl_int;
13909}
13910unsafe extern "C" {
13911 pub fn clCreateUserEvent(context: cl_context, errcode_ret: *mut cl_int) -> cl_event;
13912}
13913unsafe extern "C" {
13914 pub fn clRetainEvent(event: cl_event) -> cl_int;
13915}
13916unsafe extern "C" {
13917 pub fn clReleaseEvent(event: cl_event) -> cl_int;
13918}
13919unsafe extern "C" {
13920 pub fn clSetUserEventStatus(event: cl_event, execution_status: cl_int) -> cl_int;
13921}
13922unsafe extern "C" {
13923 pub fn clSetEventCallback(
13924 event: cl_event,
13925 command_exec_callback_type: cl_int,
13926 pfn_notify: ::std::option::Option<
13927 unsafe extern "C" fn(
13928 event: cl_event,
13929 event_command_status: cl_int,
13930 user_data: *mut ::std::os::raw::c_void,
13931 ),
13932 >,
13933 user_data: *mut ::std::os::raw::c_void,
13934 ) -> cl_int;
13935}
13936unsafe extern "C" {
13937 pub fn clGetEventProfilingInfo(
13938 event: cl_event,
13939 param_name: cl_profiling_info,
13940 param_value_size: usize,
13941 param_value: *mut ::std::os::raw::c_void,
13942 param_value_size_ret: *mut usize,
13943 ) -> cl_int;
13944}
13945unsafe extern "C" {
13946 pub fn clFlush(command_queue: cl_command_queue) -> cl_int;
13947}
13948unsafe extern "C" {
13949 pub fn clFinish(command_queue: cl_command_queue) -> cl_int;
13950}
13951unsafe extern "C" {
13952 pub fn clEnqueueReadBuffer(
13953 command_queue: cl_command_queue,
13954 buffer: cl_mem,
13955 blocking_read: cl_bool,
13956 offset: usize,
13957 size: usize,
13958 ptr: *mut ::std::os::raw::c_void,
13959 num_events_in_wait_list: cl_uint,
13960 event_wait_list: *const cl_event,
13961 event: *mut cl_event,
13962 ) -> cl_int;
13963}
13964unsafe extern "C" {
13965 pub fn clEnqueueReadBufferRect(
13966 command_queue: cl_command_queue,
13967 buffer: cl_mem,
13968 blocking_read: cl_bool,
13969 buffer_origin: *const usize,
13970 host_origin: *const usize,
13971 region: *const usize,
13972 buffer_row_pitch: usize,
13973 buffer_slice_pitch: usize,
13974 host_row_pitch: usize,
13975 host_slice_pitch: usize,
13976 ptr: *mut ::std::os::raw::c_void,
13977 num_events_in_wait_list: cl_uint,
13978 event_wait_list: *const cl_event,
13979 event: *mut cl_event,
13980 ) -> cl_int;
13981}
13982unsafe extern "C" {
13983 pub fn clEnqueueWriteBuffer(
13984 command_queue: cl_command_queue,
13985 buffer: cl_mem,
13986 blocking_write: cl_bool,
13987 offset: usize,
13988 size: usize,
13989 ptr: *const ::std::os::raw::c_void,
13990 num_events_in_wait_list: cl_uint,
13991 event_wait_list: *const cl_event,
13992 event: *mut cl_event,
13993 ) -> cl_int;
13994}
13995unsafe extern "C" {
13996 pub fn clEnqueueWriteBufferRect(
13997 command_queue: cl_command_queue,
13998 buffer: cl_mem,
13999 blocking_write: cl_bool,
14000 buffer_origin: *const usize,
14001 host_origin: *const usize,
14002 region: *const usize,
14003 buffer_row_pitch: usize,
14004 buffer_slice_pitch: usize,
14005 host_row_pitch: usize,
14006 host_slice_pitch: usize,
14007 ptr: *const ::std::os::raw::c_void,
14008 num_events_in_wait_list: cl_uint,
14009 event_wait_list: *const cl_event,
14010 event: *mut cl_event,
14011 ) -> cl_int;
14012}
14013unsafe extern "C" {
14014 pub fn clEnqueueFillBuffer(
14015 command_queue: cl_command_queue,
14016 buffer: cl_mem,
14017 pattern: *const ::std::os::raw::c_void,
14018 pattern_size: usize,
14019 offset: usize,
14020 size: usize,
14021 num_events_in_wait_list: cl_uint,
14022 event_wait_list: *const cl_event,
14023 event: *mut cl_event,
14024 ) -> cl_int;
14025}
14026unsafe extern "C" {
14027 pub fn clEnqueueCopyBuffer(
14028 command_queue: cl_command_queue,
14029 src_buffer: cl_mem,
14030 dst_buffer: cl_mem,
14031 src_offset: usize,
14032 dst_offset: usize,
14033 size: usize,
14034 num_events_in_wait_list: cl_uint,
14035 event_wait_list: *const cl_event,
14036 event: *mut cl_event,
14037 ) -> cl_int;
14038}
14039unsafe extern "C" {
14040 pub fn clEnqueueCopyBufferRect(
14041 command_queue: cl_command_queue,
14042 src_buffer: cl_mem,
14043 dst_buffer: cl_mem,
14044 src_origin: *const usize,
14045 dst_origin: *const usize,
14046 region: *const usize,
14047 src_row_pitch: usize,
14048 src_slice_pitch: usize,
14049 dst_row_pitch: usize,
14050 dst_slice_pitch: usize,
14051 num_events_in_wait_list: cl_uint,
14052 event_wait_list: *const cl_event,
14053 event: *mut cl_event,
14054 ) -> cl_int;
14055}
14056unsafe extern "C" {
14057 pub fn clEnqueueReadImage(
14058 command_queue: cl_command_queue,
14059 image: cl_mem,
14060 blocking_read: cl_bool,
14061 origin: *const usize,
14062 region: *const usize,
14063 row_pitch: usize,
14064 slice_pitch: usize,
14065 ptr: *mut ::std::os::raw::c_void,
14066 num_events_in_wait_list: cl_uint,
14067 event_wait_list: *const cl_event,
14068 event: *mut cl_event,
14069 ) -> cl_int;
14070}
14071unsafe extern "C" {
14072 pub fn clEnqueueWriteImage(
14073 command_queue: cl_command_queue,
14074 image: cl_mem,
14075 blocking_write: cl_bool,
14076 origin: *const usize,
14077 region: *const usize,
14078 input_row_pitch: usize,
14079 input_slice_pitch: usize,
14080 ptr: *const ::std::os::raw::c_void,
14081 num_events_in_wait_list: cl_uint,
14082 event_wait_list: *const cl_event,
14083 event: *mut cl_event,
14084 ) -> cl_int;
14085}
14086unsafe extern "C" {
14087 pub fn clEnqueueFillImage(
14088 command_queue: cl_command_queue,
14089 image: cl_mem,
14090 fill_color: *const ::std::os::raw::c_void,
14091 origin: *const usize,
14092 region: *const usize,
14093 num_events_in_wait_list: cl_uint,
14094 event_wait_list: *const cl_event,
14095 event: *mut cl_event,
14096 ) -> cl_int;
14097}
14098unsafe extern "C" {
14099 pub fn clEnqueueCopyImage(
14100 command_queue: cl_command_queue,
14101 src_image: cl_mem,
14102 dst_image: cl_mem,
14103 src_origin: *const usize,
14104 dst_origin: *const usize,
14105 region: *const usize,
14106 num_events_in_wait_list: cl_uint,
14107 event_wait_list: *const cl_event,
14108 event: *mut cl_event,
14109 ) -> cl_int;
14110}
14111unsafe extern "C" {
14112 pub fn clEnqueueCopyImageToBuffer(
14113 command_queue: cl_command_queue,
14114 src_image: cl_mem,
14115 dst_buffer: cl_mem,
14116 src_origin: *const usize,
14117 region: *const usize,
14118 dst_offset: usize,
14119 num_events_in_wait_list: cl_uint,
14120 event_wait_list: *const cl_event,
14121 event: *mut cl_event,
14122 ) -> cl_int;
14123}
14124unsafe extern "C" {
14125 pub fn clEnqueueCopyBufferToImage(
14126 command_queue: cl_command_queue,
14127 src_buffer: cl_mem,
14128 dst_image: cl_mem,
14129 src_offset: usize,
14130 dst_origin: *const usize,
14131 region: *const usize,
14132 num_events_in_wait_list: cl_uint,
14133 event_wait_list: *const cl_event,
14134 event: *mut cl_event,
14135 ) -> cl_int;
14136}
14137unsafe extern "C" {
14138 pub fn clEnqueueMapBuffer(
14139 command_queue: cl_command_queue,
14140 buffer: cl_mem,
14141 blocking_map: cl_bool,
14142 map_flags: cl_map_flags,
14143 offset: usize,
14144 size: usize,
14145 num_events_in_wait_list: cl_uint,
14146 event_wait_list: *const cl_event,
14147 event: *mut cl_event,
14148 errcode_ret: *mut cl_int,
14149 ) -> *mut ::std::os::raw::c_void;
14150}
14151unsafe extern "C" {
14152 pub fn clEnqueueMapImage(
14153 command_queue: cl_command_queue,
14154 image: cl_mem,
14155 blocking_map: cl_bool,
14156 map_flags: cl_map_flags,
14157 origin: *const usize,
14158 region: *const usize,
14159 image_row_pitch: *mut usize,
14160 image_slice_pitch: *mut usize,
14161 num_events_in_wait_list: cl_uint,
14162 event_wait_list: *const cl_event,
14163 event: *mut cl_event,
14164 errcode_ret: *mut cl_int,
14165 ) -> *mut ::std::os::raw::c_void;
14166}
14167unsafe extern "C" {
14168 pub fn clEnqueueUnmapMemObject(
14169 command_queue: cl_command_queue,
14170 memobj: cl_mem,
14171 mapped_ptr: *mut ::std::os::raw::c_void,
14172 num_events_in_wait_list: cl_uint,
14173 event_wait_list: *const cl_event,
14174 event: *mut cl_event,
14175 ) -> cl_int;
14176}
14177unsafe extern "C" {
14178 pub fn clEnqueueMigrateMemObjects(
14179 command_queue: cl_command_queue,
14180 num_mem_objects: cl_uint,
14181 mem_objects: *const cl_mem,
14182 flags: cl_mem_migration_flags,
14183 num_events_in_wait_list: cl_uint,
14184 event_wait_list: *const cl_event,
14185 event: *mut cl_event,
14186 ) -> cl_int;
14187}
14188unsafe extern "C" {
14189 pub fn clEnqueueNDRangeKernel(
14190 command_queue: cl_command_queue,
14191 kernel: cl_kernel,
14192 work_dim: cl_uint,
14193 global_work_offset: *const usize,
14194 global_work_size: *const usize,
14195 local_work_size: *const usize,
14196 num_events_in_wait_list: cl_uint,
14197 event_wait_list: *const cl_event,
14198 event: *mut cl_event,
14199 ) -> cl_int;
14200}
14201unsafe extern "C" {
14202 pub fn clEnqueueNativeKernel(
14203 command_queue: cl_command_queue,
14204 user_func: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
14205 args: *mut ::std::os::raw::c_void,
14206 cb_args: usize,
14207 num_mem_objects: cl_uint,
14208 mem_list: *const cl_mem,
14209 args_mem_loc: *mut *const ::std::os::raw::c_void,
14210 num_events_in_wait_list: cl_uint,
14211 event_wait_list: *const cl_event,
14212 event: *mut cl_event,
14213 ) -> cl_int;
14214}
14215unsafe extern "C" {
14216 pub fn clEnqueueMarkerWithWaitList(
14217 command_queue: cl_command_queue,
14218 num_events_in_wait_list: cl_uint,
14219 event_wait_list: *const cl_event,
14220 event: *mut cl_event,
14221 ) -> cl_int;
14222}
14223unsafe extern "C" {
14224 pub fn clEnqueueBarrierWithWaitList(
14225 command_queue: cl_command_queue,
14226 num_events_in_wait_list: cl_uint,
14227 event_wait_list: *const cl_event,
14228 event: *mut cl_event,
14229 ) -> cl_int;
14230}
14231unsafe extern "C" {
14232 pub fn clEnqueueSVMFree(
14233 command_queue: cl_command_queue,
14234 num_svm_pointers: cl_uint,
14235 svm_pointers: *mut *mut ::std::os::raw::c_void,
14236 pfn_free_func: ::std::option::Option<
14237 unsafe extern "C" fn(
14238 queue: cl_command_queue,
14239 num_svm_pointers: cl_uint,
14240 svm_pointers: *mut *mut ::std::os::raw::c_void,
14241 user_data: *mut ::std::os::raw::c_void,
14242 ),
14243 >,
14244 user_data: *mut ::std::os::raw::c_void,
14245 num_events_in_wait_list: cl_uint,
14246 event_wait_list: *const cl_event,
14247 event: *mut cl_event,
14248 ) -> cl_int;
14249}
14250unsafe extern "C" {
14251 pub fn clEnqueueSVMMemcpy(
14252 command_queue: cl_command_queue,
14253 blocking_copy: cl_bool,
14254 dst_ptr: *mut ::std::os::raw::c_void,
14255 src_ptr: *const ::std::os::raw::c_void,
14256 size: usize,
14257 num_events_in_wait_list: cl_uint,
14258 event_wait_list: *const cl_event,
14259 event: *mut cl_event,
14260 ) -> cl_int;
14261}
14262unsafe extern "C" {
14263 pub fn clEnqueueSVMMemFill(
14264 command_queue: cl_command_queue,
14265 svm_ptr: *mut ::std::os::raw::c_void,
14266 pattern: *const ::std::os::raw::c_void,
14267 pattern_size: usize,
14268 size: usize,
14269 num_events_in_wait_list: cl_uint,
14270 event_wait_list: *const cl_event,
14271 event: *mut cl_event,
14272 ) -> cl_int;
14273}
14274unsafe extern "C" {
14275 pub fn clEnqueueSVMMap(
14276 command_queue: cl_command_queue,
14277 blocking_map: cl_bool,
14278 flags: cl_map_flags,
14279 svm_ptr: *mut ::std::os::raw::c_void,
14280 size: usize,
14281 num_events_in_wait_list: cl_uint,
14282 event_wait_list: *const cl_event,
14283 event: *mut cl_event,
14284 ) -> cl_int;
14285}
14286unsafe extern "C" {
14287 pub fn clEnqueueSVMUnmap(
14288 command_queue: cl_command_queue,
14289 svm_ptr: *mut ::std::os::raw::c_void,
14290 num_events_in_wait_list: cl_uint,
14291 event_wait_list: *const cl_event,
14292 event: *mut cl_event,
14293 ) -> cl_int;
14294}
14295unsafe extern "C" {
14296 pub fn clEnqueueSVMMigrateMem(
14297 command_queue: cl_command_queue,
14298 num_svm_pointers: cl_uint,
14299 svm_pointers: *mut *const ::std::os::raw::c_void,
14300 sizes: *const usize,
14301 flags: cl_mem_migration_flags,
14302 num_events_in_wait_list: cl_uint,
14303 event_wait_list: *const cl_event,
14304 event: *mut cl_event,
14305 ) -> cl_int;
14306}
14307unsafe extern "C" {
14308 pub fn clGetExtensionFunctionAddressForPlatform(
14309 platform: cl_platform_id,
14310 func_name: *const ::std::os::raw::c_char,
14311 ) -> *mut ::std::os::raw::c_void;
14312}
14313unsafe extern "C" {
14314 pub fn clCreateImage2D(
14315 context: cl_context,
14316 flags: cl_mem_flags,
14317 image_format: *const cl_image_format,
14318 image_width: usize,
14319 image_height: usize,
14320 image_row_pitch: usize,
14321 host_ptr: *mut ::std::os::raw::c_void,
14322 errcode_ret: *mut cl_int,
14323 ) -> cl_mem;
14324}
14325unsafe extern "C" {
14326 pub fn clCreateImage3D(
14327 context: cl_context,
14328 flags: cl_mem_flags,
14329 image_format: *const cl_image_format,
14330 image_width: usize,
14331 image_height: usize,
14332 image_depth: usize,
14333 image_row_pitch: usize,
14334 image_slice_pitch: usize,
14335 host_ptr: *mut ::std::os::raw::c_void,
14336 errcode_ret: *mut cl_int,
14337 ) -> cl_mem;
14338}
14339unsafe extern "C" {
14340 pub fn clEnqueueMarker(command_queue: cl_command_queue, event: *mut cl_event) -> cl_int;
14341}
14342unsafe extern "C" {
14343 pub fn clEnqueueWaitForEvents(
14344 command_queue: cl_command_queue,
14345 num_events: cl_uint,
14346 event_list: *const cl_event,
14347 ) -> cl_int;
14348}
14349unsafe extern "C" {
14350 pub fn clEnqueueBarrier(command_queue: cl_command_queue) -> cl_int;
14351}
14352unsafe extern "C" {
14353 pub fn clUnloadCompiler() -> cl_int;
14354}
14355unsafe extern "C" {
14356 pub fn clGetExtensionFunctionAddress(
14357 func_name: *const ::std::os::raw::c_char,
14358 ) -> *mut ::std::os::raw::c_void;
14359}
14360unsafe extern "C" {
14361 pub fn clCreateCommandQueue(
14362 context: cl_context,
14363 device: cl_device_id,
14364 properties: cl_command_queue_properties,
14365 errcode_ret: *mut cl_int,
14366 ) -> cl_command_queue;
14367}
14368unsafe extern "C" {
14369 pub fn clCreateSampler(
14370 context: cl_context,
14371 normalized_coords: cl_bool,
14372 addressing_mode: cl_addressing_mode,
14373 filter_mode: cl_filter_mode,
14374 errcode_ret: *mut cl_int,
14375 ) -> cl_sampler;
14376}
14377unsafe extern "C" {
14378 pub fn clEnqueueTask(
14379 command_queue: cl_command_queue,
14380 kernel: cl_kernel,
14381 num_events_in_wait_list: cl_uint,
14382 event_wait_list: *const cl_event,
14383 event: *mut cl_event,
14384 ) -> cl_int;
14385}