opencl-c.h revision 327952
1//===--- opencl-c.h - OpenCL C language builtin function header -----------===//
2//
3//                     The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef _OPENCL_H_
11#define _OPENCL_H_
12
13#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
14#ifndef cl_khr_depth_images
15#define cl_khr_depth_images
16#endif //cl_khr_depth_images
17#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
18
19#if __OPENCL_C_VERSION__ < CL_VERSION_2_0
20#ifdef cl_khr_3d_image_writes
21#pragma OPENCL EXTENSION cl_khr_3d_image_writes : enable
22#endif //cl_khr_3d_image_writes
23#endif //__OPENCL_C_VERSION__ < CL_VERSION_2_0
24
25#define __ovld __attribute__((overloadable))
26#define __conv __attribute__((convergent))
27
28// Optimizations
29#define __purefn __attribute__((pure))
30#define __cnfn __attribute__((const))
31
32// built-in scalar data types:
33
34/**
35 * An unsigned 8-bit integer.
36 */
37typedef unsigned char uchar;
38
39/**
40 * An unsigned 16-bit integer.
41 */
42typedef unsigned short ushort;
43
44/**
45 * An unsigned 32-bit integer.
46 */
47typedef unsigned int uint;
48
49/**
50 * An unsigned 64-bit integer.
51 */
52typedef unsigned long ulong;
53
54/**
55 * The unsigned integer type of the result of the sizeof operator. This
56 * is a 32-bit unsigned integer if CL_DEVICE_ADDRESS_BITS
57 * defined in table 4.3 is 32-bits and is a 64-bit unsigned integer if
58 * CL_DEVICE_ADDRESS_BITS is 64-bits.
59 */
60typedef __SIZE_TYPE__ size_t;
61
62/**
63 * A signed integer type that is the result of subtracting two pointers.
64 * This is a 32-bit signed integer if CL_DEVICE_ADDRESS_BITS
65 * defined in table 4.3 is 32-bits and is a 64-bit signed integer if
66 * CL_DEVICE_ADDRESS_BITS is 64-bits.
67 */
68typedef __PTRDIFF_TYPE__ ptrdiff_t;
69
70/**
71* A signed integer type with the property that any valid pointer to
72* void can be converted to this type, then converted back to pointer
73* to void, and the result will compare equal to the original pointer.
74*/
75typedef __INTPTR_TYPE__ intptr_t;
76
77/**
78* An unsigned integer type with the property that any valid pointer to
79* void can be converted to this type, then converted back to pointer
80* to void, and the result will compare equal to the original pointer.
81*/
82typedef __UINTPTR_TYPE__ uintptr_t;
83
84// built-in vector data types:
85typedef char char2 __attribute__((ext_vector_type(2)));
86typedef char char3 __attribute__((ext_vector_type(3)));
87typedef char char4 __attribute__((ext_vector_type(4)));
88typedef char char8 __attribute__((ext_vector_type(8)));
89typedef char char16 __attribute__((ext_vector_type(16)));
90typedef uchar uchar2 __attribute__((ext_vector_type(2)));
91typedef uchar uchar3 __attribute__((ext_vector_type(3)));
92typedef uchar uchar4 __attribute__((ext_vector_type(4)));
93typedef uchar uchar8 __attribute__((ext_vector_type(8)));
94typedef uchar uchar16 __attribute__((ext_vector_type(16)));
95typedef short short2 __attribute__((ext_vector_type(2)));
96typedef short short3 __attribute__((ext_vector_type(3)));
97typedef short short4 __attribute__((ext_vector_type(4)));
98typedef short short8 __attribute__((ext_vector_type(8)));
99typedef short short16 __attribute__((ext_vector_type(16)));
100typedef ushort ushort2 __attribute__((ext_vector_type(2)));
101typedef ushort ushort3 __attribute__((ext_vector_type(3)));
102typedef ushort ushort4 __attribute__((ext_vector_type(4)));
103typedef ushort ushort8 __attribute__((ext_vector_type(8)));
104typedef ushort ushort16 __attribute__((ext_vector_type(16)));
105typedef int int2 __attribute__((ext_vector_type(2)));
106typedef int int3 __attribute__((ext_vector_type(3)));
107typedef int int4 __attribute__((ext_vector_type(4)));
108typedef int int8 __attribute__((ext_vector_type(8)));
109typedef int int16 __attribute__((ext_vector_type(16)));
110typedef uint uint2 __attribute__((ext_vector_type(2)));
111typedef uint uint3 __attribute__((ext_vector_type(3)));
112typedef uint uint4 __attribute__((ext_vector_type(4)));
113typedef uint uint8 __attribute__((ext_vector_type(8)));
114typedef uint uint16 __attribute__((ext_vector_type(16)));
115typedef long long2 __attribute__((ext_vector_type(2)));
116typedef long long3 __attribute__((ext_vector_type(3)));
117typedef long long4 __attribute__((ext_vector_type(4)));
118typedef long long8 __attribute__((ext_vector_type(8)));
119typedef long long16 __attribute__((ext_vector_type(16)));
120typedef ulong ulong2 __attribute__((ext_vector_type(2)));
121typedef ulong ulong3 __attribute__((ext_vector_type(3)));
122typedef ulong ulong4 __attribute__((ext_vector_type(4)));
123typedef ulong ulong8 __attribute__((ext_vector_type(8)));
124typedef ulong ulong16 __attribute__((ext_vector_type(16)));
125typedef float float2 __attribute__((ext_vector_type(2)));
126typedef float float3 __attribute__((ext_vector_type(3)));
127typedef float float4 __attribute__((ext_vector_type(4)));
128typedef float float8 __attribute__((ext_vector_type(8)));
129typedef float float16 __attribute__((ext_vector_type(16)));
130#ifdef cl_khr_fp16
131#pragma OPENCL EXTENSION cl_khr_fp16 : enable
132typedef half half2 __attribute__((ext_vector_type(2)));
133typedef half half3 __attribute__((ext_vector_type(3)));
134typedef half half4 __attribute__((ext_vector_type(4)));
135typedef half half8 __attribute__((ext_vector_type(8)));
136typedef half half16 __attribute__((ext_vector_type(16)));
137#endif
138#ifdef cl_khr_fp64
139#if __OPENCL_C_VERSION__ < CL_VERSION_1_2
140#pragma OPENCL EXTENSION cl_khr_fp64 : enable
141#endif
142typedef double double2 __attribute__((ext_vector_type(2)));
143typedef double double3 __attribute__((ext_vector_type(3)));
144typedef double double4 __attribute__((ext_vector_type(4)));
145typedef double double8 __attribute__((ext_vector_type(8)));
146typedef double double16 __attribute__((ext_vector_type(16)));
147#endif
148
149#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
150#define NULL ((void*)0)
151#endif
152
153/**
154 * Value of maximum non-infinite single-precision floating-point
155 * number.
156 */
157#define MAXFLOAT 0x1.fffffep127f
158
159/**
160 * A positive float constant expression. HUGE_VALF evaluates
161 * to +infinity. Used as an error value returned by the built-in
162 * math functions.
163 */
164#define HUGE_VALF (__builtin_huge_valf())
165
166/**
167 * A positive double constant expression. HUGE_VAL evaluates
168 * to +infinity. Used as an error value returned by the built-in
169 * math functions.
170 */
171#define HUGE_VAL (__builtin_huge_val())
172
173/**
174 * A constant expression of type float representing positive or
175 * unsigned infinity.
176 */
177#define INFINITY (__builtin_inff())
178
179/**
180 * A constant expression of type float representing a quiet NaN.
181 */
182#define NAN as_float(INT_MAX)
183
184#define FP_ILOGB0    INT_MIN
185#define FP_ILOGBNAN    INT_MAX
186
187#define FLT_DIG 6
188#define FLT_MANT_DIG 24
189#define FLT_MAX_10_EXP +38
190#define FLT_MAX_EXP +128
191#define FLT_MIN_10_EXP -37
192#define FLT_MIN_EXP -125
193#define FLT_RADIX 2
194#define FLT_MAX 0x1.fffffep127f
195#define FLT_MIN 0x1.0p-126f
196#define FLT_EPSILON 0x1.0p-23f
197
198#define M_E_F         2.71828182845904523536028747135266250f
199#define M_LOG2E_F     1.44269504088896340735992468100189214f
200#define M_LOG10E_F    0.434294481903251827651128918916605082f
201#define M_LN2_F       0.693147180559945309417232121458176568f
202#define M_LN10_F      2.30258509299404568401799145468436421f
203#define M_PI_F        3.14159265358979323846264338327950288f
204#define M_PI_2_F      1.57079632679489661923132169163975144f
205#define M_PI_4_F      0.785398163397448309615660845819875721f
206#define M_1_PI_F      0.318309886183790671537767526745028724f
207#define M_2_PI_F      0.636619772367581343075535053490057448f
208#define M_2_SQRTPI_F  1.12837916709551257389615890312154517f
209#define M_SQRT2_F     1.41421356237309504880168872420969808f
210#define M_SQRT1_2_F   0.707106781186547524400844362104849039f
211
212#define DBL_DIG 15
213#define DBL_MANT_DIG 53
214#define DBL_MAX_10_EXP +308
215#define DBL_MAX_EXP +1024
216#define DBL_MIN_10_EXP -307
217#define DBL_MIN_EXP -1021
218#define DBL_RADIX 2
219#define DBL_MAX 0x1.fffffffffffffp1023
220#define DBL_MIN 0x1.0p-1022
221#define DBL_EPSILON 0x1.0p-52
222
223#define M_E           0x1.5bf0a8b145769p+1
224#define M_LOG2E       0x1.71547652b82fep+0
225#define M_LOG10E      0x1.bcb7b1526e50ep-2
226#define M_LN2         0x1.62e42fefa39efp-1
227#define M_LN10        0x1.26bb1bbb55516p+1
228#define M_PI          0x1.921fb54442d18p+1
229#define M_PI_2        0x1.921fb54442d18p+0
230#define M_PI_4        0x1.921fb54442d18p-1
231#define M_1_PI        0x1.45f306dc9c883p-2
232#define M_2_PI        0x1.45f306dc9c883p-1
233#define M_2_SQRTPI    0x1.20dd750429b6dp+0
234#define M_SQRT2       0x1.6a09e667f3bcdp+0
235#define M_SQRT1_2     0x1.6a09e667f3bcdp-1
236
237#ifdef cl_khr_fp16
238
239#define HALF_DIG 3
240#define HALF_MANT_DIG 11
241#define HALF_MAX_10_EXP +4
242#define HALF_MAX_EXP +16
243#define HALF_MIN_10_EXP -4
244#define HALF_MIN_EXP -13
245#define HALF_RADIX 2
246#define HALF_MAX ((0x1.ffcp15h))
247#define HALF_MIN ((0x1.0p-14h))
248#define HALF_EPSILON ((0x1.0p-10h))
249
250#define M_E_H         2.71828182845904523536028747135266250h
251#define M_LOG2E_H     1.44269504088896340735992468100189214h
252#define M_LOG10E_H    0.434294481903251827651128918916605082h
253#define M_LN2_H       0.693147180559945309417232121458176568h
254#define M_LN10_H      2.30258509299404568401799145468436421h
255#define M_PI_H        3.14159265358979323846264338327950288h
256#define M_PI_2_H      1.57079632679489661923132169163975144h
257#define M_PI_4_H      0.785398163397448309615660845819875721h
258#define M_1_PI_H      0.318309886183790671537767526745028724h
259#define M_2_PI_H      0.636619772367581343075535053490057448h
260#define M_2_SQRTPI_H  1.12837916709551257389615890312154517h
261#define M_SQRT2_H     1.41421356237309504880168872420969808h
262#define M_SQRT1_2_H   0.707106781186547524400844362104849039h
263
264#endif //cl_khr_fp16
265
266#define CHAR_BIT    8
267#define SCHAR_MAX  127
268#define SCHAR_MIN  (-128)
269#define UCHAR_MAX  255
270#define CHAR_MAX  SCHAR_MAX
271#define CHAR_MIN  SCHAR_MIN
272#define USHRT_MAX  65535
273#define SHRT_MAX  32767
274#define SHRT_MIN  (-32768)
275#define UINT_MAX  0xffffffff
276#define INT_MAX    2147483647
277#define INT_MIN    (-2147483647-1)
278#define ULONG_MAX  0xffffffffffffffffUL
279#define LONG_MAX  0x7fffffffffffffffL
280#define LONG_MIN  (-0x7fffffffffffffffL-1)
281
282// OpenCL v1.1/1.2/2.0 s6.2.3 - Explicit conversions
283
284char __ovld __cnfn convert_char_rte(char);
285char __ovld __cnfn convert_char_sat_rte(char);
286char __ovld __cnfn convert_char_rtz(char);
287char __ovld __cnfn convert_char_sat_rtz(char);
288char __ovld __cnfn convert_char_rtp(char);
289char __ovld __cnfn convert_char_sat_rtp(char);
290char __ovld __cnfn convert_char_rtn(char);
291char __ovld __cnfn convert_char_sat_rtn(char);
292char __ovld __cnfn convert_char(char);
293char __ovld __cnfn convert_char_sat(char);
294char __ovld __cnfn convert_char_rte(uchar);
295char __ovld __cnfn convert_char_sat_rte(uchar);
296char __ovld __cnfn convert_char_rtz(uchar);
297char __ovld __cnfn convert_char_sat_rtz(uchar);
298char __ovld __cnfn convert_char_rtp(uchar);
299char __ovld __cnfn convert_char_sat_rtp(uchar);
300char __ovld __cnfn convert_char_rtn(uchar);
301char __ovld __cnfn convert_char_sat_rtn(uchar);
302char __ovld __cnfn convert_char(uchar);
303char __ovld __cnfn convert_char_sat(uchar);
304char __ovld __cnfn convert_char_rte(short);
305char __ovld __cnfn convert_char_sat_rte(short);
306char __ovld __cnfn convert_char_rtz(short);
307char __ovld __cnfn convert_char_sat_rtz(short);
308char __ovld __cnfn convert_char_rtp(short);
309char __ovld __cnfn convert_char_sat_rtp(short);
310char __ovld __cnfn convert_char_rtn(short);
311char __ovld __cnfn convert_char_sat_rtn(short);
312char __ovld __cnfn convert_char(short);
313char __ovld __cnfn convert_char_sat(short);
314char __ovld __cnfn convert_char_rte(ushort);
315char __ovld __cnfn convert_char_sat_rte(ushort);
316char __ovld __cnfn convert_char_rtz(ushort);
317char __ovld __cnfn convert_char_sat_rtz(ushort);
318char __ovld __cnfn convert_char_rtp(ushort);
319char __ovld __cnfn convert_char_sat_rtp(ushort);
320char __ovld __cnfn convert_char_rtn(ushort);
321char __ovld __cnfn convert_char_sat_rtn(ushort);
322char __ovld __cnfn convert_char(ushort);
323char __ovld __cnfn convert_char_sat(ushort);
324char __ovld __cnfn convert_char_rte(int);
325char __ovld __cnfn convert_char_sat_rte(int);
326char __ovld __cnfn convert_char_rtz(int);
327char __ovld __cnfn convert_char_sat_rtz(int);
328char __ovld __cnfn convert_char_rtp(int);
329char __ovld __cnfn convert_char_sat_rtp(int);
330char __ovld __cnfn convert_char_rtn(int);
331char __ovld __cnfn convert_char_sat_rtn(int);
332char __ovld __cnfn convert_char(int);
333char __ovld __cnfn convert_char_sat(int);
334char __ovld __cnfn convert_char_rte(uint);
335char __ovld __cnfn convert_char_sat_rte(uint);
336char __ovld __cnfn convert_char_rtz(uint);
337char __ovld __cnfn convert_char_sat_rtz(uint);
338char __ovld __cnfn convert_char_rtp(uint);
339char __ovld __cnfn convert_char_sat_rtp(uint);
340char __ovld __cnfn convert_char_rtn(uint);
341char __ovld __cnfn convert_char_sat_rtn(uint);
342char __ovld __cnfn convert_char(uint);
343char __ovld __cnfn convert_char_sat(uint);
344char __ovld __cnfn convert_char_rte(long);
345char __ovld __cnfn convert_char_sat_rte(long);
346char __ovld __cnfn convert_char_rtz(long);
347char __ovld __cnfn convert_char_sat_rtz(long);
348char __ovld __cnfn convert_char_rtp(long);
349char __ovld __cnfn convert_char_sat_rtp(long);
350char __ovld __cnfn convert_char_rtn(long);
351char __ovld __cnfn convert_char_sat_rtn(long);
352char __ovld __cnfn convert_char(long);
353char __ovld __cnfn convert_char_sat(long);
354char __ovld __cnfn convert_char_rte(ulong);
355char __ovld __cnfn convert_char_sat_rte(ulong);
356char __ovld __cnfn convert_char_rtz(ulong);
357char __ovld __cnfn convert_char_sat_rtz(ulong);
358char __ovld __cnfn convert_char_rtp(ulong);
359char __ovld __cnfn convert_char_sat_rtp(ulong);
360char __ovld __cnfn convert_char_rtn(ulong);
361char __ovld __cnfn convert_char_sat_rtn(ulong);
362char __ovld __cnfn convert_char(ulong);
363char __ovld __cnfn convert_char_sat(ulong);
364char __ovld __cnfn convert_char_rte(float);
365char __ovld __cnfn convert_char_sat_rte(float);
366char __ovld __cnfn convert_char_rtz(float);
367char __ovld __cnfn convert_char_sat_rtz(float);
368char __ovld __cnfn convert_char_rtp(float);
369char __ovld __cnfn convert_char_sat_rtp(float);
370char __ovld __cnfn convert_char_rtn(float);
371char __ovld __cnfn convert_char_sat_rtn(float);
372char __ovld __cnfn convert_char(float);
373char __ovld __cnfn convert_char_sat(float);
374uchar __ovld __cnfn convert_uchar_rte(char);
375uchar __ovld __cnfn convert_uchar_sat_rte(char);
376uchar __ovld __cnfn convert_uchar_rtz(char);
377uchar __ovld __cnfn convert_uchar_sat_rtz(char);
378uchar __ovld __cnfn convert_uchar_rtp(char);
379uchar __ovld __cnfn convert_uchar_sat_rtp(char);
380uchar __ovld __cnfn convert_uchar_rtn(char);
381uchar __ovld __cnfn convert_uchar_sat_rtn(char);
382uchar __ovld __cnfn convert_uchar(char);
383uchar __ovld __cnfn convert_uchar_sat(char);
384uchar __ovld __cnfn convert_uchar_rte(uchar);
385uchar __ovld __cnfn convert_uchar_sat_rte(uchar);
386uchar __ovld __cnfn convert_uchar_rtz(uchar);
387uchar __ovld __cnfn convert_uchar_sat_rtz(uchar);
388uchar __ovld __cnfn convert_uchar_rtp(uchar);
389uchar __ovld __cnfn convert_uchar_sat_rtp(uchar);
390uchar __ovld __cnfn convert_uchar_rtn(uchar);
391uchar __ovld __cnfn convert_uchar_sat_rtn(uchar);
392uchar __ovld __cnfn convert_uchar(uchar);
393uchar __ovld __cnfn convert_uchar_sat(uchar);
394uchar __ovld __cnfn convert_uchar_rte(short);
395uchar __ovld __cnfn convert_uchar_sat_rte(short);
396uchar __ovld __cnfn convert_uchar_rtz(short);
397uchar __ovld __cnfn convert_uchar_sat_rtz(short);
398uchar __ovld __cnfn convert_uchar_rtp(short);
399uchar __ovld __cnfn convert_uchar_sat_rtp(short);
400uchar __ovld __cnfn convert_uchar_rtn(short);
401uchar __ovld __cnfn convert_uchar_sat_rtn(short);
402uchar __ovld __cnfn convert_uchar(short);
403uchar __ovld __cnfn convert_uchar_sat(short);
404uchar __ovld __cnfn convert_uchar_rte(ushort);
405uchar __ovld __cnfn convert_uchar_sat_rte(ushort);
406uchar __ovld __cnfn convert_uchar_rtz(ushort);
407uchar __ovld __cnfn convert_uchar_sat_rtz(ushort);
408uchar __ovld __cnfn convert_uchar_rtp(ushort);
409uchar __ovld __cnfn convert_uchar_sat_rtp(ushort);
410uchar __ovld __cnfn convert_uchar_rtn(ushort);
411uchar __ovld __cnfn convert_uchar_sat_rtn(ushort);
412uchar __ovld __cnfn convert_uchar(ushort);
413uchar __ovld __cnfn convert_uchar_sat(ushort);
414uchar __ovld __cnfn convert_uchar_rte(int);
415uchar __ovld __cnfn convert_uchar_sat_rte(int);
416uchar __ovld __cnfn convert_uchar_rtz(int);
417uchar __ovld __cnfn convert_uchar_sat_rtz(int);
418uchar __ovld __cnfn convert_uchar_rtp(int);
419uchar __ovld __cnfn convert_uchar_sat_rtp(int);
420uchar __ovld __cnfn convert_uchar_rtn(int);
421uchar __ovld __cnfn convert_uchar_sat_rtn(int);
422uchar __ovld __cnfn convert_uchar(int);
423uchar __ovld __cnfn convert_uchar_sat(int);
424uchar __ovld __cnfn convert_uchar_rte(uint);
425uchar __ovld __cnfn convert_uchar_sat_rte(uint);
426uchar __ovld __cnfn convert_uchar_rtz(uint);
427uchar __ovld __cnfn convert_uchar_sat_rtz(uint);
428uchar __ovld __cnfn convert_uchar_rtp(uint);
429uchar __ovld __cnfn convert_uchar_sat_rtp(uint);
430uchar __ovld __cnfn convert_uchar_rtn(uint);
431uchar __ovld __cnfn convert_uchar_sat_rtn(uint);
432uchar __ovld __cnfn convert_uchar(uint);
433uchar __ovld __cnfn convert_uchar_sat(uint);
434uchar __ovld __cnfn convert_uchar_rte(long);
435uchar __ovld __cnfn convert_uchar_sat_rte(long);
436uchar __ovld __cnfn convert_uchar_rtz(long);
437uchar __ovld __cnfn convert_uchar_sat_rtz(long);
438uchar __ovld __cnfn convert_uchar_rtp(long);
439uchar __ovld __cnfn convert_uchar_sat_rtp(long);
440uchar __ovld __cnfn convert_uchar_rtn(long);
441uchar __ovld __cnfn convert_uchar_sat_rtn(long);
442uchar __ovld __cnfn convert_uchar(long);
443uchar __ovld __cnfn convert_uchar_sat(long);
444uchar __ovld __cnfn convert_uchar_rte(ulong);
445uchar __ovld __cnfn convert_uchar_sat_rte(ulong);
446uchar __ovld __cnfn convert_uchar_rtz(ulong);
447uchar __ovld __cnfn convert_uchar_sat_rtz(ulong);
448uchar __ovld __cnfn convert_uchar_rtp(ulong);
449uchar __ovld __cnfn convert_uchar_sat_rtp(ulong);
450uchar __ovld __cnfn convert_uchar_rtn(ulong);
451uchar __ovld __cnfn convert_uchar_sat_rtn(ulong);
452uchar __ovld __cnfn convert_uchar(ulong);
453uchar __ovld __cnfn convert_uchar_sat(ulong);
454uchar __ovld __cnfn convert_uchar_rte(float);
455uchar __ovld __cnfn convert_uchar_sat_rte(float);
456uchar __ovld __cnfn convert_uchar_rtz(float);
457uchar __ovld __cnfn convert_uchar_sat_rtz(float);
458uchar __ovld __cnfn convert_uchar_rtp(float);
459uchar __ovld __cnfn convert_uchar_sat_rtp(float);
460uchar __ovld __cnfn convert_uchar_rtn(float);
461uchar __ovld __cnfn convert_uchar_sat_rtn(float);
462uchar __ovld __cnfn convert_uchar(float);
463uchar __ovld __cnfn convert_uchar_sat(float);
464
465short __ovld __cnfn convert_short_rte(char);
466short __ovld __cnfn convert_short_sat_rte(char);
467short __ovld __cnfn convert_short_rtz(char);
468short __ovld __cnfn convert_short_sat_rtz(char);
469short __ovld __cnfn convert_short_rtp(char);
470short __ovld __cnfn convert_short_sat_rtp(char);
471short __ovld __cnfn convert_short_rtn(char);
472short __ovld __cnfn convert_short_sat_rtn(char);
473short __ovld __cnfn convert_short(char);
474short __ovld __cnfn convert_short_sat(char);
475short __ovld __cnfn convert_short_rte(uchar);
476short __ovld __cnfn convert_short_sat_rte(uchar);
477short __ovld __cnfn convert_short_rtz(uchar);
478short __ovld __cnfn convert_short_sat_rtz(uchar);
479short __ovld __cnfn convert_short_rtp(uchar);
480short __ovld __cnfn convert_short_sat_rtp(uchar);
481short __ovld __cnfn convert_short_rtn(uchar);
482short __ovld __cnfn convert_short_sat_rtn(uchar);
483short __ovld __cnfn convert_short(uchar);
484short __ovld __cnfn convert_short_sat(uchar);
485short __ovld __cnfn convert_short_rte(short);
486short __ovld __cnfn convert_short_sat_rte(short);
487short __ovld __cnfn convert_short_rtz(short);
488short __ovld __cnfn convert_short_sat_rtz(short);
489short __ovld __cnfn convert_short_rtp(short);
490short __ovld __cnfn convert_short_sat_rtp(short);
491short __ovld __cnfn convert_short_rtn(short);
492short __ovld __cnfn convert_short_sat_rtn(short);
493short __ovld __cnfn convert_short(short);
494short __ovld __cnfn convert_short_sat(short);
495short __ovld __cnfn convert_short_rte(ushort);
496short __ovld __cnfn convert_short_sat_rte(ushort);
497short __ovld __cnfn convert_short_rtz(ushort);
498short __ovld __cnfn convert_short_sat_rtz(ushort);
499short __ovld __cnfn convert_short_rtp(ushort);
500short __ovld __cnfn convert_short_sat_rtp(ushort);
501short __ovld __cnfn convert_short_rtn(ushort);
502short __ovld __cnfn convert_short_sat_rtn(ushort);
503short __ovld __cnfn convert_short(ushort);
504short __ovld __cnfn convert_short_sat(ushort);
505short __ovld __cnfn convert_short_rte(int);
506short __ovld __cnfn convert_short_sat_rte(int);
507short __ovld __cnfn convert_short_rtz(int);
508short __ovld __cnfn convert_short_sat_rtz(int);
509short __ovld __cnfn convert_short_rtp(int);
510short __ovld __cnfn convert_short_sat_rtp(int);
511short __ovld __cnfn convert_short_rtn(int);
512short __ovld __cnfn convert_short_sat_rtn(int);
513short __ovld __cnfn convert_short(int);
514short __ovld __cnfn convert_short_sat(int);
515short __ovld __cnfn convert_short_rte(uint);
516short __ovld __cnfn convert_short_sat_rte(uint);
517short __ovld __cnfn convert_short_rtz(uint);
518short __ovld __cnfn convert_short_sat_rtz(uint);
519short __ovld __cnfn convert_short_rtp(uint);
520short __ovld __cnfn convert_short_sat_rtp(uint);
521short __ovld __cnfn convert_short_rtn(uint);
522short __ovld __cnfn convert_short_sat_rtn(uint);
523short __ovld __cnfn convert_short(uint);
524short __ovld __cnfn convert_short_sat(uint);
525short __ovld __cnfn convert_short_rte(long);
526short __ovld __cnfn convert_short_sat_rte(long);
527short __ovld __cnfn convert_short_rtz(long);
528short __ovld __cnfn convert_short_sat_rtz(long);
529short __ovld __cnfn convert_short_rtp(long);
530short __ovld __cnfn convert_short_sat_rtp(long);
531short __ovld __cnfn convert_short_rtn(long);
532short __ovld __cnfn convert_short_sat_rtn(long);
533short __ovld __cnfn convert_short(long);
534short __ovld __cnfn convert_short_sat(long);
535short __ovld __cnfn convert_short_rte(ulong);
536short __ovld __cnfn convert_short_sat_rte(ulong);
537short __ovld __cnfn convert_short_rtz(ulong);
538short __ovld __cnfn convert_short_sat_rtz(ulong);
539short __ovld __cnfn convert_short_rtp(ulong);
540short __ovld __cnfn convert_short_sat_rtp(ulong);
541short __ovld __cnfn convert_short_rtn(ulong);
542short __ovld __cnfn convert_short_sat_rtn(ulong);
543short __ovld __cnfn convert_short(ulong);
544short __ovld __cnfn convert_short_sat(ulong);
545short __ovld __cnfn convert_short_rte(float);
546short __ovld __cnfn convert_short_sat_rte(float);
547short __ovld __cnfn convert_short_rtz(float);
548short __ovld __cnfn convert_short_sat_rtz(float);
549short __ovld __cnfn convert_short_rtp(float);
550short __ovld __cnfn convert_short_sat_rtp(float);
551short __ovld __cnfn convert_short_rtn(float);
552short __ovld __cnfn convert_short_sat_rtn(float);
553short __ovld __cnfn convert_short(float);
554short __ovld __cnfn convert_short_sat(float);
555ushort __ovld __cnfn convert_ushort_rte(char);
556ushort __ovld __cnfn convert_ushort_sat_rte(char);
557ushort __ovld __cnfn convert_ushort_rtz(char);
558ushort __ovld __cnfn convert_ushort_sat_rtz(char);
559ushort __ovld __cnfn convert_ushort_rtp(char);
560ushort __ovld __cnfn convert_ushort_sat_rtp(char);
561ushort __ovld __cnfn convert_ushort_rtn(char);
562ushort __ovld __cnfn convert_ushort_sat_rtn(char);
563ushort __ovld __cnfn convert_ushort(char);
564ushort __ovld __cnfn convert_ushort_sat(char);
565ushort __ovld __cnfn convert_ushort_rte(uchar);
566ushort __ovld __cnfn convert_ushort_sat_rte(uchar);
567ushort __ovld __cnfn convert_ushort_rtz(uchar);
568ushort __ovld __cnfn convert_ushort_sat_rtz(uchar);
569ushort __ovld __cnfn convert_ushort_rtp(uchar);
570ushort __ovld __cnfn convert_ushort_sat_rtp(uchar);
571ushort __ovld __cnfn convert_ushort_rtn(uchar);
572ushort __ovld __cnfn convert_ushort_sat_rtn(uchar);
573ushort __ovld __cnfn convert_ushort(uchar);
574ushort __ovld __cnfn convert_ushort_sat(uchar);
575ushort __ovld __cnfn convert_ushort_rte(short);
576ushort __ovld __cnfn convert_ushort_sat_rte(short);
577ushort __ovld __cnfn convert_ushort_rtz(short);
578ushort __ovld __cnfn convert_ushort_sat_rtz(short);
579ushort __ovld __cnfn convert_ushort_rtp(short);
580ushort __ovld __cnfn convert_ushort_sat_rtp(short);
581ushort __ovld __cnfn convert_ushort_rtn(short);
582ushort __ovld __cnfn convert_ushort_sat_rtn(short);
583ushort __ovld __cnfn convert_ushort(short);
584ushort __ovld __cnfn convert_ushort_sat(short);
585ushort __ovld __cnfn convert_ushort_rte(ushort);
586ushort __ovld __cnfn convert_ushort_sat_rte(ushort);
587ushort __ovld __cnfn convert_ushort_rtz(ushort);
588ushort __ovld __cnfn convert_ushort_sat_rtz(ushort);
589ushort __ovld __cnfn convert_ushort_rtp(ushort);
590ushort __ovld __cnfn convert_ushort_sat_rtp(ushort);
591ushort __ovld __cnfn convert_ushort_rtn(ushort);
592ushort __ovld __cnfn convert_ushort_sat_rtn(ushort);
593ushort __ovld __cnfn convert_ushort(ushort);
594ushort __ovld __cnfn convert_ushort_sat(ushort);
595ushort __ovld __cnfn convert_ushort_rte(int);
596ushort __ovld __cnfn convert_ushort_sat_rte(int);
597ushort __ovld __cnfn convert_ushort_rtz(int);
598ushort __ovld __cnfn convert_ushort_sat_rtz(int);
599ushort __ovld __cnfn convert_ushort_rtp(int);
600ushort __ovld __cnfn convert_ushort_sat_rtp(int);
601ushort __ovld __cnfn convert_ushort_rtn(int);
602ushort __ovld __cnfn convert_ushort_sat_rtn(int);
603ushort __ovld __cnfn convert_ushort(int);
604ushort __ovld __cnfn convert_ushort_sat(int);
605ushort __ovld __cnfn convert_ushort_rte(uint);
606ushort __ovld __cnfn convert_ushort_sat_rte(uint);
607ushort __ovld __cnfn convert_ushort_rtz(uint);
608ushort __ovld __cnfn convert_ushort_sat_rtz(uint);
609ushort __ovld __cnfn convert_ushort_rtp(uint);
610ushort __ovld __cnfn convert_ushort_sat_rtp(uint);
611ushort __ovld __cnfn convert_ushort_rtn(uint);
612ushort __ovld __cnfn convert_ushort_sat_rtn(uint);
613ushort __ovld __cnfn convert_ushort(uint);
614ushort __ovld __cnfn convert_ushort_sat(uint);
615ushort __ovld __cnfn convert_ushort_rte(long);
616ushort __ovld __cnfn convert_ushort_sat_rte(long);
617ushort __ovld __cnfn convert_ushort_rtz(long);
618ushort __ovld __cnfn convert_ushort_sat_rtz(long);
619ushort __ovld __cnfn convert_ushort_rtp(long);
620ushort __ovld __cnfn convert_ushort_sat_rtp(long);
621ushort __ovld __cnfn convert_ushort_rtn(long);
622ushort __ovld __cnfn convert_ushort_sat_rtn(long);
623ushort __ovld __cnfn convert_ushort(long);
624ushort __ovld __cnfn convert_ushort_sat(long);
625ushort __ovld __cnfn convert_ushort_rte(ulong);
626ushort __ovld __cnfn convert_ushort_sat_rte(ulong);
627ushort __ovld __cnfn convert_ushort_rtz(ulong);
628ushort __ovld __cnfn convert_ushort_sat_rtz(ulong);
629ushort __ovld __cnfn convert_ushort_rtp(ulong);
630ushort __ovld __cnfn convert_ushort_sat_rtp(ulong);
631ushort __ovld __cnfn convert_ushort_rtn(ulong);
632ushort __ovld __cnfn convert_ushort_sat_rtn(ulong);
633ushort __ovld __cnfn convert_ushort(ulong);
634ushort __ovld __cnfn convert_ushort_sat(ulong);
635ushort __ovld __cnfn convert_ushort_rte(float);
636ushort __ovld __cnfn convert_ushort_sat_rte(float);
637ushort __ovld __cnfn convert_ushort_rtz(float);
638ushort __ovld __cnfn convert_ushort_sat_rtz(float);
639ushort __ovld __cnfn convert_ushort_rtp(float);
640ushort __ovld __cnfn convert_ushort_sat_rtp(float);
641ushort __ovld __cnfn convert_ushort_rtn(float);
642ushort __ovld __cnfn convert_ushort_sat_rtn(float);
643ushort __ovld __cnfn convert_ushort(float);
644ushort __ovld __cnfn convert_ushort_sat(float);
645int __ovld __cnfn convert_int_rte(char);
646int __ovld __cnfn convert_int_sat_rte(char);
647int __ovld __cnfn convert_int_rtz(char);
648int __ovld __cnfn convert_int_sat_rtz(char);
649int __ovld __cnfn convert_int_rtp(char);
650int __ovld __cnfn convert_int_sat_rtp(char);
651int __ovld __cnfn convert_int_rtn(char);
652int __ovld __cnfn convert_int_sat_rtn(char);
653int __ovld __cnfn convert_int(char);
654int __ovld __cnfn convert_int_sat(char);
655int __ovld __cnfn convert_int_rte(uchar);
656int __ovld __cnfn convert_int_sat_rte(uchar);
657int __ovld __cnfn convert_int_rtz(uchar);
658int __ovld __cnfn convert_int_sat_rtz(uchar);
659int __ovld __cnfn convert_int_rtp(uchar);
660int __ovld __cnfn convert_int_sat_rtp(uchar);
661int __ovld __cnfn convert_int_rtn(uchar);
662int __ovld __cnfn convert_int_sat_rtn(uchar);
663int __ovld __cnfn convert_int(uchar);
664int __ovld __cnfn convert_int_sat(uchar);
665int __ovld __cnfn convert_int_rte(short);
666int __ovld __cnfn convert_int_sat_rte(short);
667int __ovld __cnfn convert_int_rtz(short);
668int __ovld __cnfn convert_int_sat_rtz(short);
669int __ovld __cnfn convert_int_rtp(short);
670int __ovld __cnfn convert_int_sat_rtp(short);
671int __ovld __cnfn convert_int_rtn(short);
672int __ovld __cnfn convert_int_sat_rtn(short);
673int __ovld __cnfn convert_int(short);
674int __ovld __cnfn convert_int_sat(short);
675int __ovld __cnfn convert_int_rte(ushort);
676int __ovld __cnfn convert_int_sat_rte(ushort);
677int __ovld __cnfn convert_int_rtz(ushort);
678int __ovld __cnfn convert_int_sat_rtz(ushort);
679int __ovld __cnfn convert_int_rtp(ushort);
680int __ovld __cnfn convert_int_sat_rtp(ushort);
681int __ovld __cnfn convert_int_rtn(ushort);
682int __ovld __cnfn convert_int_sat_rtn(ushort);
683int __ovld __cnfn convert_int(ushort);
684int __ovld __cnfn convert_int_sat(ushort);
685int __ovld __cnfn convert_int_rte(int);
686int __ovld __cnfn convert_int_sat_rte(int);
687int __ovld __cnfn convert_int_rtz(int);
688int __ovld __cnfn convert_int_sat_rtz(int);
689int __ovld __cnfn convert_int_rtp(int);
690int __ovld __cnfn convert_int_sat_rtp(int);
691int __ovld __cnfn convert_int_rtn(int);
692int __ovld __cnfn convert_int_sat_rtn(int);
693int __ovld __cnfn convert_int(int);
694int __ovld __cnfn convert_int_sat(int);
695int __ovld __cnfn convert_int_rte(uint);
696int __ovld __cnfn convert_int_sat_rte(uint);
697int __ovld __cnfn convert_int_rtz(uint);
698int __ovld __cnfn convert_int_sat_rtz(uint);
699int __ovld __cnfn convert_int_rtp(uint);
700int __ovld __cnfn convert_int_sat_rtp(uint);
701int __ovld __cnfn convert_int_rtn(uint);
702int __ovld __cnfn convert_int_sat_rtn(uint);
703int __ovld __cnfn convert_int(uint);
704int __ovld __cnfn convert_int_sat(uint);
705int __ovld __cnfn convert_int_rte(long);
706int __ovld __cnfn convert_int_sat_rte(long);
707int __ovld __cnfn convert_int_rtz(long);
708int __ovld __cnfn convert_int_sat_rtz(long);
709int __ovld __cnfn convert_int_rtp(long);
710int __ovld __cnfn convert_int_sat_rtp(long);
711int __ovld __cnfn convert_int_rtn(long);
712int __ovld __cnfn convert_int_sat_rtn(long);
713int __ovld __cnfn convert_int(long);
714int __ovld __cnfn convert_int_sat(long);
715int __ovld __cnfn convert_int_rte(ulong);
716int __ovld __cnfn convert_int_sat_rte(ulong);
717int __ovld __cnfn convert_int_rtz(ulong);
718int __ovld __cnfn convert_int_sat_rtz(ulong);
719int __ovld __cnfn convert_int_rtp(ulong);
720int __ovld __cnfn convert_int_sat_rtp(ulong);
721int __ovld __cnfn convert_int_rtn(ulong);
722int __ovld __cnfn convert_int_sat_rtn(ulong);
723int __ovld __cnfn convert_int(ulong);
724int __ovld __cnfn convert_int_sat(ulong);
725int __ovld __cnfn convert_int_rte(float);
726int __ovld __cnfn convert_int_sat_rte(float);
727int __ovld __cnfn convert_int_rtz(float);
728int __ovld __cnfn convert_int_sat_rtz(float);
729int __ovld __cnfn convert_int_rtp(float);
730int __ovld __cnfn convert_int_sat_rtp(float);
731int __ovld __cnfn convert_int_rtn(float);
732int __ovld __cnfn convert_int_sat_rtn(float);
733int __ovld __cnfn convert_int(float);
734int __ovld __cnfn convert_int_sat(float);
735uint __ovld __cnfn convert_uint_rte(char);
736uint __ovld __cnfn convert_uint_sat_rte(char);
737uint __ovld __cnfn convert_uint_rtz(char);
738uint __ovld __cnfn convert_uint_sat_rtz(char);
739uint __ovld __cnfn convert_uint_rtp(char);
740uint __ovld __cnfn convert_uint_sat_rtp(char);
741uint __ovld __cnfn convert_uint_rtn(char);
742uint __ovld __cnfn convert_uint_sat_rtn(char);
743uint __ovld __cnfn convert_uint(char);
744uint __ovld __cnfn convert_uint_sat(char);
745uint __ovld __cnfn convert_uint_rte(uchar);
746uint __ovld __cnfn convert_uint_sat_rte(uchar);
747uint __ovld __cnfn convert_uint_rtz(uchar);
748uint __ovld __cnfn convert_uint_sat_rtz(uchar);
749uint __ovld __cnfn convert_uint_rtp(uchar);
750uint __ovld __cnfn convert_uint_sat_rtp(uchar);
751uint __ovld __cnfn convert_uint_rtn(uchar);
752uint __ovld __cnfn convert_uint_sat_rtn(uchar);
753uint __ovld __cnfn convert_uint(uchar);
754uint __ovld __cnfn convert_uint_sat(uchar);
755uint __ovld __cnfn convert_uint_rte(short);
756uint __ovld __cnfn convert_uint_sat_rte(short);
757uint __ovld __cnfn convert_uint_rtz(short);
758uint __ovld __cnfn convert_uint_sat_rtz(short);
759uint __ovld __cnfn convert_uint_rtp(short);
760uint __ovld __cnfn convert_uint_sat_rtp(short);
761uint __ovld __cnfn convert_uint_rtn(short);
762uint __ovld __cnfn convert_uint_sat_rtn(short);
763uint __ovld __cnfn convert_uint(short);
764uint __ovld __cnfn convert_uint_sat(short);
765uint __ovld __cnfn convert_uint_rte(ushort);
766uint __ovld __cnfn convert_uint_sat_rte(ushort);
767uint __ovld __cnfn convert_uint_rtz(ushort);
768uint __ovld __cnfn convert_uint_sat_rtz(ushort);
769uint __ovld __cnfn convert_uint_rtp(ushort);
770uint __ovld __cnfn convert_uint_sat_rtp(ushort);
771uint __ovld __cnfn convert_uint_rtn(ushort);
772uint __ovld __cnfn convert_uint_sat_rtn(ushort);
773uint __ovld __cnfn convert_uint(ushort);
774uint __ovld __cnfn convert_uint_sat(ushort);
775uint __ovld __cnfn convert_uint_rte(int);
776uint __ovld __cnfn convert_uint_sat_rte(int);
777uint __ovld __cnfn convert_uint_rtz(int);
778uint __ovld __cnfn convert_uint_sat_rtz(int);
779uint __ovld __cnfn convert_uint_rtp(int);
780uint __ovld __cnfn convert_uint_sat_rtp(int);
781uint __ovld __cnfn convert_uint_rtn(int);
782uint __ovld __cnfn convert_uint_sat_rtn(int);
783uint __ovld __cnfn convert_uint(int);
784uint __ovld __cnfn convert_uint_sat(int);
785uint __ovld __cnfn convert_uint_rte(uint);
786uint __ovld __cnfn convert_uint_sat_rte(uint);
787uint __ovld __cnfn convert_uint_rtz(uint);
788uint __ovld __cnfn convert_uint_sat_rtz(uint);
789uint __ovld __cnfn convert_uint_rtp(uint);
790uint __ovld __cnfn convert_uint_sat_rtp(uint);
791uint __ovld __cnfn convert_uint_rtn(uint);
792uint __ovld __cnfn convert_uint_sat_rtn(uint);
793uint __ovld __cnfn convert_uint(uint);
794uint __ovld __cnfn convert_uint_sat(uint);
795uint __ovld __cnfn convert_uint_rte(long);
796uint __ovld __cnfn convert_uint_sat_rte(long);
797uint __ovld __cnfn convert_uint_rtz(long);
798uint __ovld __cnfn convert_uint_sat_rtz(long);
799uint __ovld __cnfn convert_uint_rtp(long);
800uint __ovld __cnfn convert_uint_sat_rtp(long);
801uint __ovld __cnfn convert_uint_rtn(long);
802uint __ovld __cnfn convert_uint_sat_rtn(long);
803uint __ovld __cnfn convert_uint(long);
804uint __ovld __cnfn convert_uint_sat(long);
805uint __ovld __cnfn convert_uint_rte(ulong);
806uint __ovld __cnfn convert_uint_sat_rte(ulong);
807uint __ovld __cnfn convert_uint_rtz(ulong);
808uint __ovld __cnfn convert_uint_sat_rtz(ulong);
809uint __ovld __cnfn convert_uint_rtp(ulong);
810uint __ovld __cnfn convert_uint_sat_rtp(ulong);
811uint __ovld __cnfn convert_uint_rtn(ulong);
812uint __ovld __cnfn convert_uint_sat_rtn(ulong);
813uint __ovld __cnfn convert_uint(ulong);
814uint __ovld __cnfn convert_uint_sat(ulong);
815uint __ovld __cnfn convert_uint_rte(float);
816uint __ovld __cnfn convert_uint_sat_rte(float);
817uint __ovld __cnfn convert_uint_rtz(float);
818uint __ovld __cnfn convert_uint_sat_rtz(float);
819uint __ovld __cnfn convert_uint_rtp(float);
820uint __ovld __cnfn convert_uint_sat_rtp(float);
821uint __ovld __cnfn convert_uint_rtn(float);
822uint __ovld __cnfn convert_uint_sat_rtn(float);
823uint __ovld __cnfn convert_uint(float);
824uint __ovld __cnfn convert_uint_sat(float);
825long __ovld __cnfn convert_long_rte(char);
826long __ovld __cnfn convert_long_sat_rte(char);
827long __ovld __cnfn convert_long_rtz(char);
828long __ovld __cnfn convert_long_sat_rtz(char);
829long __ovld __cnfn convert_long_rtp(char);
830long __ovld __cnfn convert_long_sat_rtp(char);
831long __ovld __cnfn convert_long_rtn(char);
832long __ovld __cnfn convert_long_sat_rtn(char);
833long __ovld __cnfn convert_long(char);
834long __ovld __cnfn convert_long_sat(char);
835long __ovld __cnfn convert_long_rte(uchar);
836long __ovld __cnfn convert_long_sat_rte(uchar);
837long __ovld __cnfn convert_long_rtz(uchar);
838long __ovld __cnfn convert_long_sat_rtz(uchar);
839long __ovld __cnfn convert_long_rtp(uchar);
840long __ovld __cnfn convert_long_sat_rtp(uchar);
841long __ovld __cnfn convert_long_rtn(uchar);
842long __ovld __cnfn convert_long_sat_rtn(uchar);
843long __ovld __cnfn convert_long(uchar);
844long __ovld __cnfn convert_long_sat(uchar);
845long __ovld __cnfn convert_long_rte(short);
846long __ovld __cnfn convert_long_sat_rte(short);
847long __ovld __cnfn convert_long_rtz(short);
848long __ovld __cnfn convert_long_sat_rtz(short);
849long __ovld __cnfn convert_long_rtp(short);
850long __ovld __cnfn convert_long_sat_rtp(short);
851long __ovld __cnfn convert_long_rtn(short);
852long __ovld __cnfn convert_long_sat_rtn(short);
853long __ovld __cnfn convert_long(short);
854long __ovld __cnfn convert_long_sat(short);
855long __ovld __cnfn convert_long_rte(ushort);
856long __ovld __cnfn convert_long_sat_rte(ushort);
857long __ovld __cnfn convert_long_rtz(ushort);
858long __ovld __cnfn convert_long_sat_rtz(ushort);
859long __ovld __cnfn convert_long_rtp(ushort);
860long __ovld __cnfn convert_long_sat_rtp(ushort);
861long __ovld __cnfn convert_long_rtn(ushort);
862long __ovld __cnfn convert_long_sat_rtn(ushort);
863long __ovld __cnfn convert_long(ushort);
864long __ovld __cnfn convert_long_sat(ushort);
865long __ovld __cnfn convert_long_rte(int);
866long __ovld __cnfn convert_long_sat_rte(int);
867long __ovld __cnfn convert_long_rtz(int);
868long __ovld __cnfn convert_long_sat_rtz(int);
869long __ovld __cnfn convert_long_rtp(int);
870long __ovld __cnfn convert_long_sat_rtp(int);
871long __ovld __cnfn convert_long_rtn(int);
872long __ovld __cnfn convert_long_sat_rtn(int);
873long __ovld __cnfn convert_long(int);
874long __ovld __cnfn convert_long_sat(int);
875long __ovld __cnfn convert_long_rte(uint);
876long __ovld __cnfn convert_long_sat_rte(uint);
877long __ovld __cnfn convert_long_rtz(uint);
878long __ovld __cnfn convert_long_sat_rtz(uint);
879long __ovld __cnfn convert_long_rtp(uint);
880long __ovld __cnfn convert_long_sat_rtp(uint);
881long __ovld __cnfn convert_long_rtn(uint);
882long __ovld __cnfn convert_long_sat_rtn(uint);
883long __ovld __cnfn convert_long(uint);
884long __ovld __cnfn convert_long_sat(uint);
885long __ovld __cnfn convert_long_rte(long);
886long __ovld __cnfn convert_long_sat_rte(long);
887long __ovld __cnfn convert_long_rtz(long);
888long __ovld __cnfn convert_long_sat_rtz(long);
889long __ovld __cnfn convert_long_rtp(long);
890long __ovld __cnfn convert_long_sat_rtp(long);
891long __ovld __cnfn convert_long_rtn(long);
892long __ovld __cnfn convert_long_sat_rtn(long);
893long __ovld __cnfn convert_long(long);
894long __ovld __cnfn convert_long_sat(long);
895long __ovld __cnfn convert_long_rte(ulong);
896long __ovld __cnfn convert_long_sat_rte(ulong);
897long __ovld __cnfn convert_long_rtz(ulong);
898long __ovld __cnfn convert_long_sat_rtz(ulong);
899long __ovld __cnfn convert_long_rtp(ulong);
900long __ovld __cnfn convert_long_sat_rtp(ulong);
901long __ovld __cnfn convert_long_rtn(ulong);
902long __ovld __cnfn convert_long_sat_rtn(ulong);
903long __ovld __cnfn convert_long(ulong);
904long __ovld __cnfn convert_long_sat(ulong);
905long __ovld __cnfn convert_long_rte(float);
906long __ovld __cnfn convert_long_sat_rte(float);
907long __ovld __cnfn convert_long_rtz(float);
908long __ovld __cnfn convert_long_sat_rtz(float);
909long __ovld __cnfn convert_long_rtp(float);
910long __ovld __cnfn convert_long_sat_rtp(float);
911long __ovld __cnfn convert_long_rtn(float);
912long __ovld __cnfn convert_long_sat_rtn(float);
913long __ovld __cnfn convert_long(float);
914long __ovld __cnfn convert_long_sat(float);
915ulong __ovld __cnfn convert_ulong_rte(char);
916ulong __ovld __cnfn convert_ulong_sat_rte(char);
917ulong __ovld __cnfn convert_ulong_rtz(char);
918ulong __ovld __cnfn convert_ulong_sat_rtz(char);
919ulong __ovld __cnfn convert_ulong_rtp(char);
920ulong __ovld __cnfn convert_ulong_sat_rtp(char);
921ulong __ovld __cnfn convert_ulong_rtn(char);
922ulong __ovld __cnfn convert_ulong_sat_rtn(char);
923ulong __ovld __cnfn convert_ulong(char);
924ulong __ovld __cnfn convert_ulong_sat(char);
925ulong __ovld __cnfn convert_ulong_rte(uchar);
926ulong __ovld __cnfn convert_ulong_sat_rte(uchar);
927ulong __ovld __cnfn convert_ulong_rtz(uchar);
928ulong __ovld __cnfn convert_ulong_sat_rtz(uchar);
929ulong __ovld __cnfn convert_ulong_rtp(uchar);
930ulong __ovld __cnfn convert_ulong_sat_rtp(uchar);
931ulong __ovld __cnfn convert_ulong_rtn(uchar);
932ulong __ovld __cnfn convert_ulong_sat_rtn(uchar);
933ulong __ovld __cnfn convert_ulong(uchar);
934ulong __ovld __cnfn convert_ulong_sat(uchar);
935ulong __ovld __cnfn convert_ulong_rte(short);
936ulong __ovld __cnfn convert_ulong_sat_rte(short);
937ulong __ovld __cnfn convert_ulong_rtz(short);
938ulong __ovld __cnfn convert_ulong_sat_rtz(short);
939ulong __ovld __cnfn convert_ulong_rtp(short);
940ulong __ovld __cnfn convert_ulong_sat_rtp(short);
941ulong __ovld __cnfn convert_ulong_rtn(short);
942ulong __ovld __cnfn convert_ulong_sat_rtn(short);
943ulong __ovld __cnfn convert_ulong(short);
944ulong __ovld __cnfn convert_ulong_sat(short);
945ulong __ovld __cnfn convert_ulong_rte(ushort);
946ulong __ovld __cnfn convert_ulong_sat_rte(ushort);
947ulong __ovld __cnfn convert_ulong_rtz(ushort);
948ulong __ovld __cnfn convert_ulong_sat_rtz(ushort);
949ulong __ovld __cnfn convert_ulong_rtp(ushort);
950ulong __ovld __cnfn convert_ulong_sat_rtp(ushort);
951ulong __ovld __cnfn convert_ulong_rtn(ushort);
952ulong __ovld __cnfn convert_ulong_sat_rtn(ushort);
953ulong __ovld __cnfn convert_ulong(ushort);
954ulong __ovld __cnfn convert_ulong_sat(ushort);
955ulong __ovld __cnfn convert_ulong_rte(int);
956ulong __ovld __cnfn convert_ulong_sat_rte(int);
957ulong __ovld __cnfn convert_ulong_rtz(int);
958ulong __ovld __cnfn convert_ulong_sat_rtz(int);
959ulong __ovld __cnfn convert_ulong_rtp(int);
960ulong __ovld __cnfn convert_ulong_sat_rtp(int);
961ulong __ovld __cnfn convert_ulong_rtn(int);
962ulong __ovld __cnfn convert_ulong_sat_rtn(int);
963ulong __ovld __cnfn convert_ulong(int);
964ulong __ovld __cnfn convert_ulong_sat(int);
965ulong __ovld __cnfn convert_ulong_rte(uint);
966ulong __ovld __cnfn convert_ulong_sat_rte(uint);
967ulong __ovld __cnfn convert_ulong_rtz(uint);
968ulong __ovld __cnfn convert_ulong_sat_rtz(uint);
969ulong __ovld __cnfn convert_ulong_rtp(uint);
970ulong __ovld __cnfn convert_ulong_sat_rtp(uint);
971ulong __ovld __cnfn convert_ulong_rtn(uint);
972ulong __ovld __cnfn convert_ulong_sat_rtn(uint);
973ulong __ovld __cnfn convert_ulong(uint);
974ulong __ovld __cnfn convert_ulong_sat(uint);
975ulong __ovld __cnfn convert_ulong_rte(long);
976ulong __ovld __cnfn convert_ulong_sat_rte(long);
977ulong __ovld __cnfn convert_ulong_rtz(long);
978ulong __ovld __cnfn convert_ulong_sat_rtz(long);
979ulong __ovld __cnfn convert_ulong_rtp(long);
980ulong __ovld __cnfn convert_ulong_sat_rtp(long);
981ulong __ovld __cnfn convert_ulong_rtn(long);
982ulong __ovld __cnfn convert_ulong_sat_rtn(long);
983ulong __ovld __cnfn convert_ulong(long);
984ulong __ovld __cnfn convert_ulong_sat(long);
985ulong __ovld __cnfn convert_ulong_rte(ulong);
986ulong __ovld __cnfn convert_ulong_sat_rte(ulong);
987ulong __ovld __cnfn convert_ulong_rtz(ulong);
988ulong __ovld __cnfn convert_ulong_sat_rtz(ulong);
989ulong __ovld __cnfn convert_ulong_rtp(ulong);
990ulong __ovld __cnfn convert_ulong_sat_rtp(ulong);
991ulong __ovld __cnfn convert_ulong_rtn(ulong);
992ulong __ovld __cnfn convert_ulong_sat_rtn(ulong);
993ulong __ovld __cnfn convert_ulong(ulong);
994ulong __ovld __cnfn convert_ulong_sat(ulong);
995ulong __ovld __cnfn convert_ulong_rte(float);
996ulong __ovld __cnfn convert_ulong_sat_rte(float);
997ulong __ovld __cnfn convert_ulong_rtz(float);
998ulong __ovld __cnfn convert_ulong_sat_rtz(float);
999ulong __ovld __cnfn convert_ulong_rtp(float);
1000ulong __ovld __cnfn convert_ulong_sat_rtp(float);
1001ulong __ovld __cnfn convert_ulong_rtn(float);
1002ulong __ovld __cnfn convert_ulong_sat_rtn(float);
1003ulong __ovld __cnfn convert_ulong(float);
1004ulong __ovld __cnfn convert_ulong_sat(float);
1005float __ovld __cnfn convert_float_rte(char);
1006float __ovld __cnfn convert_float_rtz(char);
1007float __ovld __cnfn convert_float_rtp(char);
1008float __ovld __cnfn convert_float_rtn(char);
1009float __ovld __cnfn convert_float(char);
1010float __ovld __cnfn convert_float_rte(uchar);
1011float __ovld __cnfn convert_float_rtz(uchar);
1012float __ovld __cnfn convert_float_rtp(uchar);
1013float __ovld __cnfn convert_float_rtn(uchar);
1014float __ovld __cnfn convert_float(uchar);
1015float __ovld __cnfn convert_float_rte(short);
1016float __ovld __cnfn convert_float_rtz(short);
1017float __ovld __cnfn convert_float_rtp(short);
1018float __ovld __cnfn convert_float_rtn(short);
1019float __ovld __cnfn convert_float(short);
1020float __ovld __cnfn convert_float_rte(ushort);
1021float __ovld __cnfn convert_float_rtz(ushort);
1022float __ovld __cnfn convert_float_rtp(ushort);
1023float __ovld __cnfn convert_float_rtn(ushort);
1024float __ovld __cnfn convert_float(ushort);
1025float __ovld __cnfn convert_float_rte(int);
1026float __ovld __cnfn convert_float_rtz(int);
1027float __ovld __cnfn convert_float_rtp(int);
1028float __ovld __cnfn convert_float_rtn(int);
1029float __ovld __cnfn convert_float(int);
1030float __ovld __cnfn convert_float_rte(uint);
1031float __ovld __cnfn convert_float_rtz(uint);
1032float __ovld __cnfn convert_float_rtp(uint);
1033float __ovld __cnfn convert_float_rtn(uint);
1034float __ovld __cnfn convert_float(uint);
1035float __ovld __cnfn convert_float_rte(long);
1036float __ovld __cnfn convert_float_rtz(long);
1037float __ovld __cnfn convert_float_rtp(long);
1038float __ovld __cnfn convert_float_rtn(long);
1039float __ovld __cnfn convert_float(long);
1040float __ovld __cnfn convert_float_rte(ulong);
1041float __ovld __cnfn convert_float_rtz(ulong);
1042float __ovld __cnfn convert_float_rtp(ulong);
1043float __ovld __cnfn convert_float_rtn(ulong);
1044float __ovld __cnfn convert_float(ulong);
1045float __ovld __cnfn convert_float_rte(float);
1046float __ovld __cnfn convert_float_rtz(float);
1047float __ovld __cnfn convert_float_rtp(float);
1048float __ovld __cnfn convert_float_rtn(float);
1049float __ovld __cnfn convert_float(float);
1050char2 __ovld __cnfn convert_char2_rte(char2);
1051char2 __ovld __cnfn convert_char2_sat_rte(char2);
1052char2 __ovld __cnfn convert_char2_rtz(char2);
1053char2 __ovld __cnfn convert_char2_sat_rtz(char2);
1054char2 __ovld __cnfn convert_char2_rtp(char2);
1055char2 __ovld __cnfn convert_char2_sat_rtp(char2);
1056char2 __ovld __cnfn convert_char2_rtn(char2);
1057char2 __ovld __cnfn convert_char2_sat_rtn(char2);
1058char2 __ovld __cnfn convert_char2(char2);
1059char2 __ovld __cnfn convert_char2_sat(char2);
1060char2 __ovld __cnfn convert_char2_rte(uchar2);
1061char2 __ovld __cnfn convert_char2_sat_rte(uchar2);
1062char2 __ovld __cnfn convert_char2_rtz(uchar2);
1063char2 __ovld __cnfn convert_char2_sat_rtz(uchar2);
1064char2 __ovld __cnfn convert_char2_rtp(uchar2);
1065char2 __ovld __cnfn convert_char2_sat_rtp(uchar2);
1066char2 __ovld __cnfn convert_char2_rtn(uchar2);
1067char2 __ovld __cnfn convert_char2_sat_rtn(uchar2);
1068char2 __ovld __cnfn convert_char2(uchar2);
1069char2 __ovld __cnfn convert_char2_sat(uchar2);
1070char2 __ovld __cnfn convert_char2_rte(short2);
1071char2 __ovld __cnfn convert_char2_sat_rte(short2);
1072char2 __ovld __cnfn convert_char2_rtz(short2);
1073char2 __ovld __cnfn convert_char2_sat_rtz(short2);
1074char2 __ovld __cnfn convert_char2_rtp(short2);
1075char2 __ovld __cnfn convert_char2_sat_rtp(short2);
1076char2 __ovld __cnfn convert_char2_rtn(short2);
1077char2 __ovld __cnfn convert_char2_sat_rtn(short2);
1078char2 __ovld __cnfn convert_char2(short2);
1079char2 __ovld __cnfn convert_char2_sat(short2);
1080char2 __ovld __cnfn convert_char2_rte(ushort2);
1081char2 __ovld __cnfn convert_char2_sat_rte(ushort2);
1082char2 __ovld __cnfn convert_char2_rtz(ushort2);
1083char2 __ovld __cnfn convert_char2_sat_rtz(ushort2);
1084char2 __ovld __cnfn convert_char2_rtp(ushort2);
1085char2 __ovld __cnfn convert_char2_sat_rtp(ushort2);
1086char2 __ovld __cnfn convert_char2_rtn(ushort2);
1087char2 __ovld __cnfn convert_char2_sat_rtn(ushort2);
1088char2 __ovld __cnfn convert_char2(ushort2);
1089char2 __ovld __cnfn convert_char2_sat(ushort2);
1090char2 __ovld __cnfn convert_char2_rte(int2);
1091char2 __ovld __cnfn convert_char2_sat_rte(int2);
1092char2 __ovld __cnfn convert_char2_rtz(int2);
1093char2 __ovld __cnfn convert_char2_sat_rtz(int2);
1094char2 __ovld __cnfn convert_char2_rtp(int2);
1095char2 __ovld __cnfn convert_char2_sat_rtp(int2);
1096char2 __ovld __cnfn convert_char2_rtn(int2);
1097char2 __ovld __cnfn convert_char2_sat_rtn(int2);
1098char2 __ovld __cnfn convert_char2(int2);
1099char2 __ovld __cnfn convert_char2_sat(int2);
1100char2 __ovld __cnfn convert_char2_rte(uint2);
1101char2 __ovld __cnfn convert_char2_sat_rte(uint2);
1102char2 __ovld __cnfn convert_char2_rtz(uint2);
1103char2 __ovld __cnfn convert_char2_sat_rtz(uint2);
1104char2 __ovld __cnfn convert_char2_rtp(uint2);
1105char2 __ovld __cnfn convert_char2_sat_rtp(uint2);
1106char2 __ovld __cnfn convert_char2_rtn(uint2);
1107char2 __ovld __cnfn convert_char2_sat_rtn(uint2);
1108char2 __ovld __cnfn convert_char2(uint2);
1109char2 __ovld __cnfn convert_char2_sat(uint2);
1110char2 __ovld __cnfn convert_char2_rte(long2);
1111char2 __ovld __cnfn convert_char2_sat_rte(long2);
1112char2 __ovld __cnfn convert_char2_rtz(long2);
1113char2 __ovld __cnfn convert_char2_sat_rtz(long2);
1114char2 __ovld __cnfn convert_char2_rtp(long2);
1115char2 __ovld __cnfn convert_char2_sat_rtp(long2);
1116char2 __ovld __cnfn convert_char2_rtn(long2);
1117char2 __ovld __cnfn convert_char2_sat_rtn(long2);
1118char2 __ovld __cnfn convert_char2(long2);
1119char2 __ovld __cnfn convert_char2_sat(long2);
1120char2 __ovld __cnfn convert_char2_rte(ulong2);
1121char2 __ovld __cnfn convert_char2_sat_rte(ulong2);
1122char2 __ovld __cnfn convert_char2_rtz(ulong2);
1123char2 __ovld __cnfn convert_char2_sat_rtz(ulong2);
1124char2 __ovld __cnfn convert_char2_rtp(ulong2);
1125char2 __ovld __cnfn convert_char2_sat_rtp(ulong2);
1126char2 __ovld __cnfn convert_char2_rtn(ulong2);
1127char2 __ovld __cnfn convert_char2_sat_rtn(ulong2);
1128char2 __ovld __cnfn convert_char2(ulong2);
1129char2 __ovld __cnfn convert_char2_sat(ulong2);
1130char2 __ovld __cnfn convert_char2_rte(float2);
1131char2 __ovld __cnfn convert_char2_sat_rte(float2);
1132char2 __ovld __cnfn convert_char2_rtz(float2);
1133char2 __ovld __cnfn convert_char2_sat_rtz(float2);
1134char2 __ovld __cnfn convert_char2_rtp(float2);
1135char2 __ovld __cnfn convert_char2_sat_rtp(float2);
1136char2 __ovld __cnfn convert_char2_rtn(float2);
1137char2 __ovld __cnfn convert_char2_sat_rtn(float2);
1138char2 __ovld __cnfn convert_char2(float2);
1139char2 __ovld __cnfn convert_char2_sat(float2);
1140uchar2 __ovld __cnfn convert_uchar2_rte(char2);
1141uchar2 __ovld __cnfn convert_uchar2_sat_rte(char2);
1142uchar2 __ovld __cnfn convert_uchar2_rtz(char2);
1143uchar2 __ovld __cnfn convert_uchar2_sat_rtz(char2);
1144uchar2 __ovld __cnfn convert_uchar2_rtp(char2);
1145uchar2 __ovld __cnfn convert_uchar2_sat_rtp(char2);
1146uchar2 __ovld __cnfn convert_uchar2_rtn(char2);
1147uchar2 __ovld __cnfn convert_uchar2_sat_rtn(char2);
1148uchar2 __ovld __cnfn convert_uchar2(char2);
1149uchar2 __ovld __cnfn convert_uchar2_sat(char2);
1150uchar2 __ovld __cnfn convert_uchar2_rte(uchar2);
1151uchar2 __ovld __cnfn convert_uchar2_sat_rte(uchar2);
1152uchar2 __ovld __cnfn convert_uchar2_rtz(uchar2);
1153uchar2 __ovld __cnfn convert_uchar2_sat_rtz(uchar2);
1154uchar2 __ovld __cnfn convert_uchar2_rtp(uchar2);
1155uchar2 __ovld __cnfn convert_uchar2_sat_rtp(uchar2);
1156uchar2 __ovld __cnfn convert_uchar2_rtn(uchar2);
1157uchar2 __ovld __cnfn convert_uchar2_sat_rtn(uchar2);
1158uchar2 __ovld __cnfn convert_uchar2(uchar2);
1159uchar2 __ovld __cnfn convert_uchar2_sat(uchar2);
1160uchar2 __ovld __cnfn convert_uchar2_rte(short2);
1161uchar2 __ovld __cnfn convert_uchar2_sat_rte(short2);
1162uchar2 __ovld __cnfn convert_uchar2_rtz(short2);
1163uchar2 __ovld __cnfn convert_uchar2_sat_rtz(short2);
1164uchar2 __ovld __cnfn convert_uchar2_rtp(short2);
1165uchar2 __ovld __cnfn convert_uchar2_sat_rtp(short2);
1166uchar2 __ovld __cnfn convert_uchar2_rtn(short2);
1167uchar2 __ovld __cnfn convert_uchar2_sat_rtn(short2);
1168uchar2 __ovld __cnfn convert_uchar2(short2);
1169uchar2 __ovld __cnfn convert_uchar2_sat(short2);
1170uchar2 __ovld __cnfn convert_uchar2_rte(ushort2);
1171uchar2 __ovld __cnfn convert_uchar2_sat_rte(ushort2);
1172uchar2 __ovld __cnfn convert_uchar2_rtz(ushort2);
1173uchar2 __ovld __cnfn convert_uchar2_sat_rtz(ushort2);
1174uchar2 __ovld __cnfn convert_uchar2_rtp(ushort2);
1175uchar2 __ovld __cnfn convert_uchar2_sat_rtp(ushort2);
1176uchar2 __ovld __cnfn convert_uchar2_rtn(ushort2);
1177uchar2 __ovld __cnfn convert_uchar2_sat_rtn(ushort2);
1178uchar2 __ovld __cnfn convert_uchar2(ushort2);
1179uchar2 __ovld __cnfn convert_uchar2_sat(ushort2);
1180uchar2 __ovld __cnfn convert_uchar2_rte(int2);
1181uchar2 __ovld __cnfn convert_uchar2_sat_rte(int2);
1182uchar2 __ovld __cnfn convert_uchar2_rtz(int2);
1183uchar2 __ovld __cnfn convert_uchar2_sat_rtz(int2);
1184uchar2 __ovld __cnfn convert_uchar2_rtp(int2);
1185uchar2 __ovld __cnfn convert_uchar2_sat_rtp(int2);
1186uchar2 __ovld __cnfn convert_uchar2_rtn(int2);
1187uchar2 __ovld __cnfn convert_uchar2_sat_rtn(int2);
1188uchar2 __ovld __cnfn convert_uchar2(int2);
1189uchar2 __ovld __cnfn convert_uchar2_sat(int2);
1190uchar2 __ovld __cnfn convert_uchar2_rte(uint2);
1191uchar2 __ovld __cnfn convert_uchar2_sat_rte(uint2);
1192uchar2 __ovld __cnfn convert_uchar2_rtz(uint2);
1193uchar2 __ovld __cnfn convert_uchar2_sat_rtz(uint2);
1194uchar2 __ovld __cnfn convert_uchar2_rtp(uint2);
1195uchar2 __ovld __cnfn convert_uchar2_sat_rtp(uint2);
1196uchar2 __ovld __cnfn convert_uchar2_rtn(uint2);
1197uchar2 __ovld __cnfn convert_uchar2_sat_rtn(uint2);
1198uchar2 __ovld __cnfn convert_uchar2(uint2);
1199uchar2 __ovld __cnfn convert_uchar2_sat(uint2);
1200uchar2 __ovld __cnfn convert_uchar2_rte(long2);
1201uchar2 __ovld __cnfn convert_uchar2_sat_rte(long2);
1202uchar2 __ovld __cnfn convert_uchar2_rtz(long2);
1203uchar2 __ovld __cnfn convert_uchar2_sat_rtz(long2);
1204uchar2 __ovld __cnfn convert_uchar2_rtp(long2);
1205uchar2 __ovld __cnfn convert_uchar2_sat_rtp(long2);
1206uchar2 __ovld __cnfn convert_uchar2_rtn(long2);
1207uchar2 __ovld __cnfn convert_uchar2_sat_rtn(long2);
1208uchar2 __ovld __cnfn convert_uchar2(long2);
1209uchar2 __ovld __cnfn convert_uchar2_sat(long2);
1210uchar2 __ovld __cnfn convert_uchar2_rte(ulong2);
1211uchar2 __ovld __cnfn convert_uchar2_sat_rte(ulong2);
1212uchar2 __ovld __cnfn convert_uchar2_rtz(ulong2);
1213uchar2 __ovld __cnfn convert_uchar2_sat_rtz(ulong2);
1214uchar2 __ovld __cnfn convert_uchar2_rtp(ulong2);
1215uchar2 __ovld __cnfn convert_uchar2_sat_rtp(ulong2);
1216uchar2 __ovld __cnfn convert_uchar2_rtn(ulong2);
1217uchar2 __ovld __cnfn convert_uchar2_sat_rtn(ulong2);
1218uchar2 __ovld __cnfn convert_uchar2(ulong2);
1219uchar2 __ovld __cnfn convert_uchar2_sat(ulong2);
1220uchar2 __ovld __cnfn convert_uchar2_rte(float2);
1221uchar2 __ovld __cnfn convert_uchar2_sat_rte(float2);
1222uchar2 __ovld __cnfn convert_uchar2_rtz(float2);
1223uchar2 __ovld __cnfn convert_uchar2_sat_rtz(float2);
1224uchar2 __ovld __cnfn convert_uchar2_rtp(float2);
1225uchar2 __ovld __cnfn convert_uchar2_sat_rtp(float2);
1226uchar2 __ovld __cnfn convert_uchar2_rtn(float2);
1227uchar2 __ovld __cnfn convert_uchar2_sat_rtn(float2);
1228uchar2 __ovld __cnfn convert_uchar2(float2);
1229uchar2 __ovld __cnfn convert_uchar2_sat(float2);
1230short2 __ovld __cnfn convert_short2_rte(char2);
1231short2 __ovld __cnfn convert_short2_sat_rte(char2);
1232short2 __ovld __cnfn convert_short2_rtz(char2);
1233short2 __ovld __cnfn convert_short2_sat_rtz(char2);
1234short2 __ovld __cnfn convert_short2_rtp(char2);
1235short2 __ovld __cnfn convert_short2_sat_rtp(char2);
1236short2 __ovld __cnfn convert_short2_rtn(char2);
1237short2 __ovld __cnfn convert_short2_sat_rtn(char2);
1238short2 __ovld __cnfn convert_short2(char2);
1239short2 __ovld __cnfn convert_short2_sat(char2);
1240short2 __ovld __cnfn convert_short2_rte(uchar2);
1241short2 __ovld __cnfn convert_short2_sat_rte(uchar2);
1242short2 __ovld __cnfn convert_short2_rtz(uchar2);
1243short2 __ovld __cnfn convert_short2_sat_rtz(uchar2);
1244short2 __ovld __cnfn convert_short2_rtp(uchar2);
1245short2 __ovld __cnfn convert_short2_sat_rtp(uchar2);
1246short2 __ovld __cnfn convert_short2_rtn(uchar2);
1247short2 __ovld __cnfn convert_short2_sat_rtn(uchar2);
1248short2 __ovld __cnfn convert_short2(uchar2);
1249short2 __ovld __cnfn convert_short2_sat(uchar2);
1250short2 __ovld __cnfn convert_short2_rte(short2);
1251short2 __ovld __cnfn convert_short2_sat_rte(short2);
1252short2 __ovld __cnfn convert_short2_rtz(short2);
1253short2 __ovld __cnfn convert_short2_sat_rtz(short2);
1254short2 __ovld __cnfn convert_short2_rtp(short2);
1255short2 __ovld __cnfn convert_short2_sat_rtp(short2);
1256short2 __ovld __cnfn convert_short2_rtn(short2);
1257short2 __ovld __cnfn convert_short2_sat_rtn(short2);
1258short2 __ovld __cnfn convert_short2(short2);
1259short2 __ovld __cnfn convert_short2_sat(short2);
1260short2 __ovld __cnfn convert_short2_rte(ushort2);
1261short2 __ovld __cnfn convert_short2_sat_rte(ushort2);
1262short2 __ovld __cnfn convert_short2_rtz(ushort2);
1263short2 __ovld __cnfn convert_short2_sat_rtz(ushort2);
1264short2 __ovld __cnfn convert_short2_rtp(ushort2);
1265short2 __ovld __cnfn convert_short2_sat_rtp(ushort2);
1266short2 __ovld __cnfn convert_short2_rtn(ushort2);
1267short2 __ovld __cnfn convert_short2_sat_rtn(ushort2);
1268short2 __ovld __cnfn convert_short2(ushort2);
1269short2 __ovld __cnfn convert_short2_sat(ushort2);
1270short2 __ovld __cnfn convert_short2_rte(int2);
1271short2 __ovld __cnfn convert_short2_sat_rte(int2);
1272short2 __ovld __cnfn convert_short2_rtz(int2);
1273short2 __ovld __cnfn convert_short2_sat_rtz(int2);
1274short2 __ovld __cnfn convert_short2_rtp(int2);
1275short2 __ovld __cnfn convert_short2_sat_rtp(int2);
1276short2 __ovld __cnfn convert_short2_rtn(int2);
1277short2 __ovld __cnfn convert_short2_sat_rtn(int2);
1278short2 __ovld __cnfn convert_short2(int2);
1279short2 __ovld __cnfn convert_short2_sat(int2);
1280short2 __ovld __cnfn convert_short2_rte(uint2);
1281short2 __ovld __cnfn convert_short2_sat_rte(uint2);
1282short2 __ovld __cnfn convert_short2_rtz(uint2);
1283short2 __ovld __cnfn convert_short2_sat_rtz(uint2);
1284short2 __ovld __cnfn convert_short2_rtp(uint2);
1285short2 __ovld __cnfn convert_short2_sat_rtp(uint2);
1286short2 __ovld __cnfn convert_short2_rtn(uint2);
1287short2 __ovld __cnfn convert_short2_sat_rtn(uint2);
1288short2 __ovld __cnfn convert_short2(uint2);
1289short2 __ovld __cnfn convert_short2_sat(uint2);
1290short2 __ovld __cnfn convert_short2_rte(long2);
1291short2 __ovld __cnfn convert_short2_sat_rte(long2);
1292short2 __ovld __cnfn convert_short2_rtz(long2);
1293short2 __ovld __cnfn convert_short2_sat_rtz(long2);
1294short2 __ovld __cnfn convert_short2_rtp(long2);
1295short2 __ovld __cnfn convert_short2_sat_rtp(long2);
1296short2 __ovld __cnfn convert_short2_rtn(long2);
1297short2 __ovld __cnfn convert_short2_sat_rtn(long2);
1298short2 __ovld __cnfn convert_short2(long2);
1299short2 __ovld __cnfn convert_short2_sat(long2);
1300short2 __ovld __cnfn convert_short2_rte(ulong2);
1301short2 __ovld __cnfn convert_short2_sat_rte(ulong2);
1302short2 __ovld __cnfn convert_short2_rtz(ulong2);
1303short2 __ovld __cnfn convert_short2_sat_rtz(ulong2);
1304short2 __ovld __cnfn convert_short2_rtp(ulong2);
1305short2 __ovld __cnfn convert_short2_sat_rtp(ulong2);
1306short2 __ovld __cnfn convert_short2_rtn(ulong2);
1307short2 __ovld __cnfn convert_short2_sat_rtn(ulong2);
1308short2 __ovld __cnfn convert_short2(ulong2);
1309short2 __ovld __cnfn convert_short2_sat(ulong2);
1310short2 __ovld __cnfn convert_short2_rte(float2);
1311short2 __ovld __cnfn convert_short2_sat_rte(float2);
1312short2 __ovld __cnfn convert_short2_rtz(float2);
1313short2 __ovld __cnfn convert_short2_sat_rtz(float2);
1314short2 __ovld __cnfn convert_short2_rtp(float2);
1315short2 __ovld __cnfn convert_short2_sat_rtp(float2);
1316short2 __ovld __cnfn convert_short2_rtn(float2);
1317short2 __ovld __cnfn convert_short2_sat_rtn(float2);
1318short2 __ovld __cnfn convert_short2(float2);
1319short2 __ovld __cnfn convert_short2_sat(float2);
1320ushort2 __ovld __cnfn convert_ushort2_rte(char2);
1321ushort2 __ovld __cnfn convert_ushort2_sat_rte(char2);
1322ushort2 __ovld __cnfn convert_ushort2_rtz(char2);
1323ushort2 __ovld __cnfn convert_ushort2_sat_rtz(char2);
1324ushort2 __ovld __cnfn convert_ushort2_rtp(char2);
1325ushort2 __ovld __cnfn convert_ushort2_sat_rtp(char2);
1326ushort2 __ovld __cnfn convert_ushort2_rtn(char2);
1327ushort2 __ovld __cnfn convert_ushort2_sat_rtn(char2);
1328ushort2 __ovld __cnfn convert_ushort2(char2);
1329ushort2 __ovld __cnfn convert_ushort2_sat(char2);
1330ushort2 __ovld __cnfn convert_ushort2_rte(uchar2);
1331ushort2 __ovld __cnfn convert_ushort2_sat_rte(uchar2);
1332ushort2 __ovld __cnfn convert_ushort2_rtz(uchar2);
1333ushort2 __ovld __cnfn convert_ushort2_sat_rtz(uchar2);
1334ushort2 __ovld __cnfn convert_ushort2_rtp(uchar2);
1335ushort2 __ovld __cnfn convert_ushort2_sat_rtp(uchar2);
1336ushort2 __ovld __cnfn convert_ushort2_rtn(uchar2);
1337ushort2 __ovld __cnfn convert_ushort2_sat_rtn(uchar2);
1338ushort2 __ovld __cnfn convert_ushort2(uchar2);
1339ushort2 __ovld __cnfn convert_ushort2_sat(uchar2);
1340ushort2 __ovld __cnfn convert_ushort2_rte(short2);
1341ushort2 __ovld __cnfn convert_ushort2_sat_rte(short2);
1342ushort2 __ovld __cnfn convert_ushort2_rtz(short2);
1343ushort2 __ovld __cnfn convert_ushort2_sat_rtz(short2);
1344ushort2 __ovld __cnfn convert_ushort2_rtp(short2);
1345ushort2 __ovld __cnfn convert_ushort2_sat_rtp(short2);
1346ushort2 __ovld __cnfn convert_ushort2_rtn(short2);
1347ushort2 __ovld __cnfn convert_ushort2_sat_rtn(short2);
1348ushort2 __ovld __cnfn convert_ushort2(short2);
1349ushort2 __ovld __cnfn convert_ushort2_sat(short2);
1350ushort2 __ovld __cnfn convert_ushort2_rte(ushort2);
1351ushort2 __ovld __cnfn convert_ushort2_sat_rte(ushort2);
1352ushort2 __ovld __cnfn convert_ushort2_rtz(ushort2);
1353ushort2 __ovld __cnfn convert_ushort2_sat_rtz(ushort2);
1354ushort2 __ovld __cnfn convert_ushort2_rtp(ushort2);
1355ushort2 __ovld __cnfn convert_ushort2_sat_rtp(ushort2);
1356ushort2 __ovld __cnfn convert_ushort2_rtn(ushort2);
1357ushort2 __ovld __cnfn convert_ushort2_sat_rtn(ushort2);
1358ushort2 __ovld __cnfn convert_ushort2(ushort2);
1359ushort2 __ovld __cnfn convert_ushort2_sat(ushort2);
1360ushort2 __ovld __cnfn convert_ushort2_rte(int2);
1361ushort2 __ovld __cnfn convert_ushort2_sat_rte(int2);
1362ushort2 __ovld __cnfn convert_ushort2_rtz(int2);
1363ushort2 __ovld __cnfn convert_ushort2_sat_rtz(int2);
1364ushort2 __ovld __cnfn convert_ushort2_rtp(int2);
1365ushort2 __ovld __cnfn convert_ushort2_sat_rtp(int2);
1366ushort2 __ovld __cnfn convert_ushort2_rtn(int2);
1367ushort2 __ovld __cnfn convert_ushort2_sat_rtn(int2);
1368ushort2 __ovld __cnfn convert_ushort2(int2);
1369ushort2 __ovld __cnfn convert_ushort2_sat(int2);
1370ushort2 __ovld __cnfn convert_ushort2_rte(uint2);
1371ushort2 __ovld __cnfn convert_ushort2_sat_rte(uint2);
1372ushort2 __ovld __cnfn convert_ushort2_rtz(uint2);
1373ushort2 __ovld __cnfn convert_ushort2_sat_rtz(uint2);
1374ushort2 __ovld __cnfn convert_ushort2_rtp(uint2);
1375ushort2 __ovld __cnfn convert_ushort2_sat_rtp(uint2);
1376ushort2 __ovld __cnfn convert_ushort2_rtn(uint2);
1377ushort2 __ovld __cnfn convert_ushort2_sat_rtn(uint2);
1378ushort2 __ovld __cnfn convert_ushort2(uint2);
1379ushort2 __ovld __cnfn convert_ushort2_sat(uint2);
1380ushort2 __ovld __cnfn convert_ushort2_rte(long2);
1381ushort2 __ovld __cnfn convert_ushort2_sat_rte(long2);
1382ushort2 __ovld __cnfn convert_ushort2_rtz(long2);
1383ushort2 __ovld __cnfn convert_ushort2_sat_rtz(long2);
1384ushort2 __ovld __cnfn convert_ushort2_rtp(long2);
1385ushort2 __ovld __cnfn convert_ushort2_sat_rtp(long2);
1386ushort2 __ovld __cnfn convert_ushort2_rtn(long2);
1387ushort2 __ovld __cnfn convert_ushort2_sat_rtn(long2);
1388ushort2 __ovld __cnfn convert_ushort2(long2);
1389ushort2 __ovld __cnfn convert_ushort2_sat(long2);
1390ushort2 __ovld __cnfn convert_ushort2_rte(ulong2);
1391ushort2 __ovld __cnfn convert_ushort2_sat_rte(ulong2);
1392ushort2 __ovld __cnfn convert_ushort2_rtz(ulong2);
1393ushort2 __ovld __cnfn convert_ushort2_sat_rtz(ulong2);
1394ushort2 __ovld __cnfn convert_ushort2_rtp(ulong2);
1395ushort2 __ovld __cnfn convert_ushort2_sat_rtp(ulong2);
1396ushort2 __ovld __cnfn convert_ushort2_rtn(ulong2);
1397ushort2 __ovld __cnfn convert_ushort2_sat_rtn(ulong2);
1398ushort2 __ovld __cnfn convert_ushort2(ulong2);
1399ushort2 __ovld __cnfn convert_ushort2_sat(ulong2);
1400ushort2 __ovld __cnfn convert_ushort2_rte(float2);
1401ushort2 __ovld __cnfn convert_ushort2_sat_rte(float2);
1402ushort2 __ovld __cnfn convert_ushort2_rtz(float2);
1403ushort2 __ovld __cnfn convert_ushort2_sat_rtz(float2);
1404ushort2 __ovld __cnfn convert_ushort2_rtp(float2);
1405ushort2 __ovld __cnfn convert_ushort2_sat_rtp(float2);
1406ushort2 __ovld __cnfn convert_ushort2_rtn(float2);
1407ushort2 __ovld __cnfn convert_ushort2_sat_rtn(float2);
1408ushort2 __ovld __cnfn convert_ushort2(float2);
1409ushort2 __ovld __cnfn convert_ushort2_sat(float2);
1410int2 __ovld __cnfn convert_int2_rte(char2);
1411int2 __ovld __cnfn convert_int2_sat_rte(char2);
1412int2 __ovld __cnfn convert_int2_rtz(char2);
1413int2 __ovld __cnfn convert_int2_sat_rtz(char2);
1414int2 __ovld __cnfn convert_int2_rtp(char2);
1415int2 __ovld __cnfn convert_int2_sat_rtp(char2);
1416int2 __ovld __cnfn convert_int2_rtn(char2);
1417int2 __ovld __cnfn convert_int2_sat_rtn(char2);
1418int2 __ovld __cnfn convert_int2(char2);
1419int2 __ovld __cnfn convert_int2_sat(char2);
1420int2 __ovld __cnfn convert_int2_rte(uchar2);
1421int2 __ovld __cnfn convert_int2_sat_rte(uchar2);
1422int2 __ovld __cnfn convert_int2_rtz(uchar2);
1423int2 __ovld __cnfn convert_int2_sat_rtz(uchar2);
1424int2 __ovld __cnfn convert_int2_rtp(uchar2);
1425int2 __ovld __cnfn convert_int2_sat_rtp(uchar2);
1426int2 __ovld __cnfn convert_int2_rtn(uchar2);
1427int2 __ovld __cnfn convert_int2_sat_rtn(uchar2);
1428int2 __ovld __cnfn convert_int2(uchar2);
1429int2 __ovld __cnfn convert_int2_sat(uchar2);
1430int2 __ovld __cnfn convert_int2_rte(short2);
1431int2 __ovld __cnfn convert_int2_sat_rte(short2);
1432int2 __ovld __cnfn convert_int2_rtz(short2);
1433int2 __ovld __cnfn convert_int2_sat_rtz(short2);
1434int2 __ovld __cnfn convert_int2_rtp(short2);
1435int2 __ovld __cnfn convert_int2_sat_rtp(short2);
1436int2 __ovld __cnfn convert_int2_rtn(short2);
1437int2 __ovld __cnfn convert_int2_sat_rtn(short2);
1438int2 __ovld __cnfn convert_int2(short2);
1439int2 __ovld __cnfn convert_int2_sat(short2);
1440int2 __ovld __cnfn convert_int2_rte(ushort2);
1441int2 __ovld __cnfn convert_int2_sat_rte(ushort2);
1442int2 __ovld __cnfn convert_int2_rtz(ushort2);
1443int2 __ovld __cnfn convert_int2_sat_rtz(ushort2);
1444int2 __ovld __cnfn convert_int2_rtp(ushort2);
1445int2 __ovld __cnfn convert_int2_sat_rtp(ushort2);
1446int2 __ovld __cnfn convert_int2_rtn(ushort2);
1447int2 __ovld __cnfn convert_int2_sat_rtn(ushort2);
1448int2 __ovld __cnfn convert_int2(ushort2);
1449int2 __ovld __cnfn convert_int2_sat(ushort2);
1450int2 __ovld __cnfn convert_int2_rte(int2);
1451int2 __ovld __cnfn convert_int2_sat_rte(int2);
1452int2 __ovld __cnfn convert_int2_rtz(int2);
1453int2 __ovld __cnfn convert_int2_sat_rtz(int2);
1454int2 __ovld __cnfn convert_int2_rtp(int2);
1455int2 __ovld __cnfn convert_int2_sat_rtp(int2);
1456int2 __ovld __cnfn convert_int2_rtn(int2);
1457int2 __ovld __cnfn convert_int2_sat_rtn(int2);
1458int2 __ovld __cnfn convert_int2(int2);
1459int2 __ovld __cnfn convert_int2_sat(int2);
1460int2 __ovld __cnfn convert_int2_rte(uint2);
1461int2 __ovld __cnfn convert_int2_sat_rte(uint2);
1462int2 __ovld __cnfn convert_int2_rtz(uint2);
1463int2 __ovld __cnfn convert_int2_sat_rtz(uint2);
1464int2 __ovld __cnfn convert_int2_rtp(uint2);
1465int2 __ovld __cnfn convert_int2_sat_rtp(uint2);
1466int2 __ovld __cnfn convert_int2_rtn(uint2);
1467int2 __ovld __cnfn convert_int2_sat_rtn(uint2);
1468int2 __ovld __cnfn convert_int2(uint2);
1469int2 __ovld __cnfn convert_int2_sat(uint2);
1470int2 __ovld __cnfn convert_int2_rte(long2);
1471int2 __ovld __cnfn convert_int2_sat_rte(long2);
1472int2 __ovld __cnfn convert_int2_rtz(long2);
1473int2 __ovld __cnfn convert_int2_sat_rtz(long2);
1474int2 __ovld __cnfn convert_int2_rtp(long2);
1475int2 __ovld __cnfn convert_int2_sat_rtp(long2);
1476int2 __ovld __cnfn convert_int2_rtn(long2);
1477int2 __ovld __cnfn convert_int2_sat_rtn(long2);
1478int2 __ovld __cnfn convert_int2(long2);
1479int2 __ovld __cnfn convert_int2_sat(long2);
1480int2 __ovld __cnfn convert_int2_rte(ulong2);
1481int2 __ovld __cnfn convert_int2_sat_rte(ulong2);
1482int2 __ovld __cnfn convert_int2_rtz(ulong2);
1483int2 __ovld __cnfn convert_int2_sat_rtz(ulong2);
1484int2 __ovld __cnfn convert_int2_rtp(ulong2);
1485int2 __ovld __cnfn convert_int2_sat_rtp(ulong2);
1486int2 __ovld __cnfn convert_int2_rtn(ulong2);
1487int2 __ovld __cnfn convert_int2_sat_rtn(ulong2);
1488int2 __ovld __cnfn convert_int2(ulong2);
1489int2 __ovld __cnfn convert_int2_sat(ulong2);
1490int2 __ovld __cnfn convert_int2_rte(float2);
1491int2 __ovld __cnfn convert_int2_sat_rte(float2);
1492int2 __ovld __cnfn convert_int2_rtz(float2);
1493int2 __ovld __cnfn convert_int2_sat_rtz(float2);
1494int2 __ovld __cnfn convert_int2_rtp(float2);
1495int2 __ovld __cnfn convert_int2_sat_rtp(float2);
1496int2 __ovld __cnfn convert_int2_rtn(float2);
1497int2 __ovld __cnfn convert_int2_sat_rtn(float2);
1498int2 __ovld __cnfn convert_int2(float2);
1499int2 __ovld __cnfn convert_int2_sat(float2);
1500uint2 __ovld __cnfn convert_uint2_rte(char2);
1501uint2 __ovld __cnfn convert_uint2_sat_rte(char2);
1502uint2 __ovld __cnfn convert_uint2_rtz(char2);
1503uint2 __ovld __cnfn convert_uint2_sat_rtz(char2);
1504uint2 __ovld __cnfn convert_uint2_rtp(char2);
1505uint2 __ovld __cnfn convert_uint2_sat_rtp(char2);
1506uint2 __ovld __cnfn convert_uint2_rtn(char2);
1507uint2 __ovld __cnfn convert_uint2_sat_rtn(char2);
1508uint2 __ovld __cnfn convert_uint2(char2);
1509uint2 __ovld __cnfn convert_uint2_sat(char2);
1510uint2 __ovld __cnfn convert_uint2_rte(uchar2);
1511uint2 __ovld __cnfn convert_uint2_sat_rte(uchar2);
1512uint2 __ovld __cnfn convert_uint2_rtz(uchar2);
1513uint2 __ovld __cnfn convert_uint2_sat_rtz(uchar2);
1514uint2 __ovld __cnfn convert_uint2_rtp(uchar2);
1515uint2 __ovld __cnfn convert_uint2_sat_rtp(uchar2);
1516uint2 __ovld __cnfn convert_uint2_rtn(uchar2);
1517uint2 __ovld __cnfn convert_uint2_sat_rtn(uchar2);
1518uint2 __ovld __cnfn convert_uint2(uchar2);
1519uint2 __ovld __cnfn convert_uint2_sat(uchar2);
1520uint2 __ovld __cnfn convert_uint2_rte(short2);
1521uint2 __ovld __cnfn convert_uint2_sat_rte(short2);
1522uint2 __ovld __cnfn convert_uint2_rtz(short2);
1523uint2 __ovld __cnfn convert_uint2_sat_rtz(short2);
1524uint2 __ovld __cnfn convert_uint2_rtp(short2);
1525uint2 __ovld __cnfn convert_uint2_sat_rtp(short2);
1526uint2 __ovld __cnfn convert_uint2_rtn(short2);
1527uint2 __ovld __cnfn convert_uint2_sat_rtn(short2);
1528uint2 __ovld __cnfn convert_uint2(short2);
1529uint2 __ovld __cnfn convert_uint2_sat(short2);
1530uint2 __ovld __cnfn convert_uint2_rte(ushort2);
1531uint2 __ovld __cnfn convert_uint2_sat_rte(ushort2);
1532uint2 __ovld __cnfn convert_uint2_rtz(ushort2);
1533uint2 __ovld __cnfn convert_uint2_sat_rtz(ushort2);
1534uint2 __ovld __cnfn convert_uint2_rtp(ushort2);
1535uint2 __ovld __cnfn convert_uint2_sat_rtp(ushort2);
1536uint2 __ovld __cnfn convert_uint2_rtn(ushort2);
1537uint2 __ovld __cnfn convert_uint2_sat_rtn(ushort2);
1538uint2 __ovld __cnfn convert_uint2(ushort2);
1539uint2 __ovld __cnfn convert_uint2_sat(ushort2);
1540uint2 __ovld __cnfn convert_uint2_rte(int2);
1541uint2 __ovld __cnfn convert_uint2_sat_rte(int2);
1542uint2 __ovld __cnfn convert_uint2_rtz(int2);
1543uint2 __ovld __cnfn convert_uint2_sat_rtz(int2);
1544uint2 __ovld __cnfn convert_uint2_rtp(int2);
1545uint2 __ovld __cnfn convert_uint2_sat_rtp(int2);
1546uint2 __ovld __cnfn convert_uint2_rtn(int2);
1547uint2 __ovld __cnfn convert_uint2_sat_rtn(int2);
1548uint2 __ovld __cnfn convert_uint2(int2);
1549uint2 __ovld __cnfn convert_uint2_sat(int2);
1550uint2 __ovld __cnfn convert_uint2_rte(uint2);
1551uint2 __ovld __cnfn convert_uint2_sat_rte(uint2);
1552uint2 __ovld __cnfn convert_uint2_rtz(uint2);
1553uint2 __ovld __cnfn convert_uint2_sat_rtz(uint2);
1554uint2 __ovld __cnfn convert_uint2_rtp(uint2);
1555uint2 __ovld __cnfn convert_uint2_sat_rtp(uint2);
1556uint2 __ovld __cnfn convert_uint2_rtn(uint2);
1557uint2 __ovld __cnfn convert_uint2_sat_rtn(uint2);
1558uint2 __ovld __cnfn convert_uint2(uint2);
1559uint2 __ovld __cnfn convert_uint2_sat(uint2);
1560uint2 __ovld __cnfn convert_uint2_rte(long2);
1561uint2 __ovld __cnfn convert_uint2_sat_rte(long2);
1562uint2 __ovld __cnfn convert_uint2_rtz(long2);
1563uint2 __ovld __cnfn convert_uint2_sat_rtz(long2);
1564uint2 __ovld __cnfn convert_uint2_rtp(long2);
1565uint2 __ovld __cnfn convert_uint2_sat_rtp(long2);
1566uint2 __ovld __cnfn convert_uint2_rtn(long2);
1567uint2 __ovld __cnfn convert_uint2_sat_rtn(long2);
1568uint2 __ovld __cnfn convert_uint2(long2);
1569uint2 __ovld __cnfn convert_uint2_sat(long2);
1570uint2 __ovld __cnfn convert_uint2_rte(ulong2);
1571uint2 __ovld __cnfn convert_uint2_sat_rte(ulong2);
1572uint2 __ovld __cnfn convert_uint2_rtz(ulong2);
1573uint2 __ovld __cnfn convert_uint2_sat_rtz(ulong2);
1574uint2 __ovld __cnfn convert_uint2_rtp(ulong2);
1575uint2 __ovld __cnfn convert_uint2_sat_rtp(ulong2);
1576uint2 __ovld __cnfn convert_uint2_rtn(ulong2);
1577uint2 __ovld __cnfn convert_uint2_sat_rtn(ulong2);
1578uint2 __ovld __cnfn convert_uint2(ulong2);
1579uint2 __ovld __cnfn convert_uint2_sat(ulong2);
1580uint2 __ovld __cnfn convert_uint2_rte(float2);
1581uint2 __ovld __cnfn convert_uint2_sat_rte(float2);
1582uint2 __ovld __cnfn convert_uint2_rtz(float2);
1583uint2 __ovld __cnfn convert_uint2_sat_rtz(float2);
1584uint2 __ovld __cnfn convert_uint2_rtp(float2);
1585uint2 __ovld __cnfn convert_uint2_sat_rtp(float2);
1586uint2 __ovld __cnfn convert_uint2_rtn(float2);
1587uint2 __ovld __cnfn convert_uint2_sat_rtn(float2);
1588uint2 __ovld __cnfn convert_uint2(float2);
1589uint2 __ovld __cnfn convert_uint2_sat(float2);
1590long2 __ovld __cnfn convert_long2_rte(char2);
1591long2 __ovld __cnfn convert_long2_sat_rte(char2);
1592long2 __ovld __cnfn convert_long2_rtz(char2);
1593long2 __ovld __cnfn convert_long2_sat_rtz(char2);
1594long2 __ovld __cnfn convert_long2_rtp(char2);
1595long2 __ovld __cnfn convert_long2_sat_rtp(char2);
1596long2 __ovld __cnfn convert_long2_rtn(char2);
1597long2 __ovld __cnfn convert_long2_sat_rtn(char2);
1598long2 __ovld __cnfn convert_long2(char2);
1599long2 __ovld __cnfn convert_long2_sat(char2);
1600long2 __ovld __cnfn convert_long2_rte(uchar2);
1601long2 __ovld __cnfn convert_long2_sat_rte(uchar2);
1602long2 __ovld __cnfn convert_long2_rtz(uchar2);
1603long2 __ovld __cnfn convert_long2_sat_rtz(uchar2);
1604long2 __ovld __cnfn convert_long2_rtp(uchar2);
1605long2 __ovld __cnfn convert_long2_sat_rtp(uchar2);
1606long2 __ovld __cnfn convert_long2_rtn(uchar2);
1607long2 __ovld __cnfn convert_long2_sat_rtn(uchar2);
1608long2 __ovld __cnfn convert_long2(uchar2);
1609long2 __ovld __cnfn convert_long2_sat(uchar2);
1610long2 __ovld __cnfn convert_long2_rte(short2);
1611long2 __ovld __cnfn convert_long2_sat_rte(short2);
1612long2 __ovld __cnfn convert_long2_rtz(short2);
1613long2 __ovld __cnfn convert_long2_sat_rtz(short2);
1614long2 __ovld __cnfn convert_long2_rtp(short2);
1615long2 __ovld __cnfn convert_long2_sat_rtp(short2);
1616long2 __ovld __cnfn convert_long2_rtn(short2);
1617long2 __ovld __cnfn convert_long2_sat_rtn(short2);
1618long2 __ovld __cnfn convert_long2(short2);
1619long2 __ovld __cnfn convert_long2_sat(short2);
1620long2 __ovld __cnfn convert_long2_rte(ushort2);
1621long2 __ovld __cnfn convert_long2_sat_rte(ushort2);
1622long2 __ovld __cnfn convert_long2_rtz(ushort2);
1623long2 __ovld __cnfn convert_long2_sat_rtz(ushort2);
1624long2 __ovld __cnfn convert_long2_rtp(ushort2);
1625long2 __ovld __cnfn convert_long2_sat_rtp(ushort2);
1626long2 __ovld __cnfn convert_long2_rtn(ushort2);
1627long2 __ovld __cnfn convert_long2_sat_rtn(ushort2);
1628long2 __ovld __cnfn convert_long2(ushort2);
1629long2 __ovld __cnfn convert_long2_sat(ushort2);
1630long2 __ovld __cnfn convert_long2_rte(int2);
1631long2 __ovld __cnfn convert_long2_sat_rte(int2);
1632long2 __ovld __cnfn convert_long2_rtz(int2);
1633long2 __ovld __cnfn convert_long2_sat_rtz(int2);
1634long2 __ovld __cnfn convert_long2_rtp(int2);
1635long2 __ovld __cnfn convert_long2_sat_rtp(int2);
1636long2 __ovld __cnfn convert_long2_rtn(int2);
1637long2 __ovld __cnfn convert_long2_sat_rtn(int2);
1638long2 __ovld __cnfn convert_long2(int2);
1639long2 __ovld __cnfn convert_long2_sat(int2);
1640long2 __ovld __cnfn convert_long2_rte(uint2);
1641long2 __ovld __cnfn convert_long2_sat_rte(uint2);
1642long2 __ovld __cnfn convert_long2_rtz(uint2);
1643long2 __ovld __cnfn convert_long2_sat_rtz(uint2);
1644long2 __ovld __cnfn convert_long2_rtp(uint2);
1645long2 __ovld __cnfn convert_long2_sat_rtp(uint2);
1646long2 __ovld __cnfn convert_long2_rtn(uint2);
1647long2 __ovld __cnfn convert_long2_sat_rtn(uint2);
1648long2 __ovld __cnfn convert_long2(uint2);
1649long2 __ovld __cnfn convert_long2_sat(uint2);
1650long2 __ovld __cnfn convert_long2_rte(long2);
1651long2 __ovld __cnfn convert_long2_sat_rte(long2);
1652long2 __ovld __cnfn convert_long2_rtz(long2);
1653long2 __ovld __cnfn convert_long2_sat_rtz(long2);
1654long2 __ovld __cnfn convert_long2_rtp(long2);
1655long2 __ovld __cnfn convert_long2_sat_rtp(long2);
1656long2 __ovld __cnfn convert_long2_rtn(long2);
1657long2 __ovld __cnfn convert_long2_sat_rtn(long2);
1658long2 __ovld __cnfn convert_long2(long2);
1659long2 __ovld __cnfn convert_long2_sat(long2);
1660long2 __ovld __cnfn convert_long2_rte(ulong2);
1661long2 __ovld __cnfn convert_long2_sat_rte(ulong2);
1662long2 __ovld __cnfn convert_long2_rtz(ulong2);
1663long2 __ovld __cnfn convert_long2_sat_rtz(ulong2);
1664long2 __ovld __cnfn convert_long2_rtp(ulong2);
1665long2 __ovld __cnfn convert_long2_sat_rtp(ulong2);
1666long2 __ovld __cnfn convert_long2_rtn(ulong2);
1667long2 __ovld __cnfn convert_long2_sat_rtn(ulong2);
1668long2 __ovld __cnfn convert_long2(ulong2);
1669long2 __ovld __cnfn convert_long2_sat(ulong2);
1670long2 __ovld __cnfn convert_long2_rte(float2);
1671long2 __ovld __cnfn convert_long2_sat_rte(float2);
1672long2 __ovld __cnfn convert_long2_rtz(float2);
1673long2 __ovld __cnfn convert_long2_sat_rtz(float2);
1674long2 __ovld __cnfn convert_long2_rtp(float2);
1675long2 __ovld __cnfn convert_long2_sat_rtp(float2);
1676long2 __ovld __cnfn convert_long2_rtn(float2);
1677long2 __ovld __cnfn convert_long2_sat_rtn(float2);
1678long2 __ovld __cnfn convert_long2(float2);
1679long2 __ovld __cnfn convert_long2_sat(float2);
1680ulong2 __ovld __cnfn convert_ulong2_rte(char2);
1681ulong2 __ovld __cnfn convert_ulong2_sat_rte(char2);
1682ulong2 __ovld __cnfn convert_ulong2_rtz(char2);
1683ulong2 __ovld __cnfn convert_ulong2_sat_rtz(char2);
1684ulong2 __ovld __cnfn convert_ulong2_rtp(char2);
1685ulong2 __ovld __cnfn convert_ulong2_sat_rtp(char2);
1686ulong2 __ovld __cnfn convert_ulong2_rtn(char2);
1687ulong2 __ovld __cnfn convert_ulong2_sat_rtn(char2);
1688ulong2 __ovld __cnfn convert_ulong2(char2);
1689ulong2 __ovld __cnfn convert_ulong2_sat(char2);
1690ulong2 __ovld __cnfn convert_ulong2_rte(uchar2);
1691ulong2 __ovld __cnfn convert_ulong2_sat_rte(uchar2);
1692ulong2 __ovld __cnfn convert_ulong2_rtz(uchar2);
1693ulong2 __ovld __cnfn convert_ulong2_sat_rtz(uchar2);
1694ulong2 __ovld __cnfn convert_ulong2_rtp(uchar2);
1695ulong2 __ovld __cnfn convert_ulong2_sat_rtp(uchar2);
1696ulong2 __ovld __cnfn convert_ulong2_rtn(uchar2);
1697ulong2 __ovld __cnfn convert_ulong2_sat_rtn(uchar2);
1698ulong2 __ovld __cnfn convert_ulong2(uchar2);
1699ulong2 __ovld __cnfn convert_ulong2_sat(uchar2);
1700ulong2 __ovld __cnfn convert_ulong2_rte(short2);
1701ulong2 __ovld __cnfn convert_ulong2_sat_rte(short2);
1702ulong2 __ovld __cnfn convert_ulong2_rtz(short2);
1703ulong2 __ovld __cnfn convert_ulong2_sat_rtz(short2);
1704ulong2 __ovld __cnfn convert_ulong2_rtp(short2);
1705ulong2 __ovld __cnfn convert_ulong2_sat_rtp(short2);
1706ulong2 __ovld __cnfn convert_ulong2_rtn(short2);
1707ulong2 __ovld __cnfn convert_ulong2_sat_rtn(short2);
1708ulong2 __ovld __cnfn convert_ulong2(short2);
1709ulong2 __ovld __cnfn convert_ulong2_sat(short2);
1710ulong2 __ovld __cnfn convert_ulong2_rte(ushort2);
1711ulong2 __ovld __cnfn convert_ulong2_sat_rte(ushort2);
1712ulong2 __ovld __cnfn convert_ulong2_rtz(ushort2);
1713ulong2 __ovld __cnfn convert_ulong2_sat_rtz(ushort2);
1714ulong2 __ovld __cnfn convert_ulong2_rtp(ushort2);
1715ulong2 __ovld __cnfn convert_ulong2_sat_rtp(ushort2);
1716ulong2 __ovld __cnfn convert_ulong2_rtn(ushort2);
1717ulong2 __ovld __cnfn convert_ulong2_sat_rtn(ushort2);
1718ulong2 __ovld __cnfn convert_ulong2(ushort2);
1719ulong2 __ovld __cnfn convert_ulong2_sat(ushort2);
1720ulong2 __ovld __cnfn convert_ulong2_rte(int2);
1721ulong2 __ovld __cnfn convert_ulong2_sat_rte(int2);
1722ulong2 __ovld __cnfn convert_ulong2_rtz(int2);
1723ulong2 __ovld __cnfn convert_ulong2_sat_rtz(int2);
1724ulong2 __ovld __cnfn convert_ulong2_rtp(int2);
1725ulong2 __ovld __cnfn convert_ulong2_sat_rtp(int2);
1726ulong2 __ovld __cnfn convert_ulong2_rtn(int2);
1727ulong2 __ovld __cnfn convert_ulong2_sat_rtn(int2);
1728ulong2 __ovld __cnfn convert_ulong2(int2);
1729ulong2 __ovld __cnfn convert_ulong2_sat(int2);
1730ulong2 __ovld __cnfn convert_ulong2_rte(uint2);
1731ulong2 __ovld __cnfn convert_ulong2_sat_rte(uint2);
1732ulong2 __ovld __cnfn convert_ulong2_rtz(uint2);
1733ulong2 __ovld __cnfn convert_ulong2_sat_rtz(uint2);
1734ulong2 __ovld __cnfn convert_ulong2_rtp(uint2);
1735ulong2 __ovld __cnfn convert_ulong2_sat_rtp(uint2);
1736ulong2 __ovld __cnfn convert_ulong2_rtn(uint2);
1737ulong2 __ovld __cnfn convert_ulong2_sat_rtn(uint2);
1738ulong2 __ovld __cnfn convert_ulong2(uint2);
1739ulong2 __ovld __cnfn convert_ulong2_sat(uint2);
1740ulong2 __ovld __cnfn convert_ulong2_rte(long2);
1741ulong2 __ovld __cnfn convert_ulong2_sat_rte(long2);
1742ulong2 __ovld __cnfn convert_ulong2_rtz(long2);
1743ulong2 __ovld __cnfn convert_ulong2_sat_rtz(long2);
1744ulong2 __ovld __cnfn convert_ulong2_rtp(long2);
1745ulong2 __ovld __cnfn convert_ulong2_sat_rtp(long2);
1746ulong2 __ovld __cnfn convert_ulong2_rtn(long2);
1747ulong2 __ovld __cnfn convert_ulong2_sat_rtn(long2);
1748ulong2 __ovld __cnfn convert_ulong2(long2);
1749ulong2 __ovld __cnfn convert_ulong2_sat(long2);
1750ulong2 __ovld __cnfn convert_ulong2_rte(ulong2);
1751ulong2 __ovld __cnfn convert_ulong2_sat_rte(ulong2);
1752ulong2 __ovld __cnfn convert_ulong2_rtz(ulong2);
1753ulong2 __ovld __cnfn convert_ulong2_sat_rtz(ulong2);
1754ulong2 __ovld __cnfn convert_ulong2_rtp(ulong2);
1755ulong2 __ovld __cnfn convert_ulong2_sat_rtp(ulong2);
1756ulong2 __ovld __cnfn convert_ulong2_rtn(ulong2);
1757ulong2 __ovld __cnfn convert_ulong2_sat_rtn(ulong2);
1758ulong2 __ovld __cnfn convert_ulong2(ulong2);
1759ulong2 __ovld __cnfn convert_ulong2_sat(ulong2);
1760ulong2 __ovld __cnfn convert_ulong2_rte(float2);
1761ulong2 __ovld __cnfn convert_ulong2_sat_rte(float2);
1762ulong2 __ovld __cnfn convert_ulong2_rtz(float2);
1763ulong2 __ovld __cnfn convert_ulong2_sat_rtz(float2);
1764ulong2 __ovld __cnfn convert_ulong2_rtp(float2);
1765ulong2 __ovld __cnfn convert_ulong2_sat_rtp(float2);
1766ulong2 __ovld __cnfn convert_ulong2_rtn(float2);
1767ulong2 __ovld __cnfn convert_ulong2_sat_rtn(float2);
1768ulong2 __ovld __cnfn convert_ulong2(float2);
1769ulong2 __ovld __cnfn convert_ulong2_sat(float2);
1770float2 __ovld __cnfn convert_float2_rte(char2);
1771float2 __ovld __cnfn convert_float2_rtz(char2);
1772float2 __ovld __cnfn convert_float2_rtp(char2);
1773float2 __ovld __cnfn convert_float2_rtn(char2);
1774float2 __ovld __cnfn convert_float2(char2);
1775float2 __ovld __cnfn convert_float2_rte(uchar2);
1776float2 __ovld __cnfn convert_float2_rtz(uchar2);
1777float2 __ovld __cnfn convert_float2_rtp(uchar2);
1778float2 __ovld __cnfn convert_float2_rtn(uchar2);
1779float2 __ovld __cnfn convert_float2(uchar2);
1780float2 __ovld __cnfn convert_float2_rte(short2);
1781float2 __ovld __cnfn convert_float2_rtz(short2);
1782float2 __ovld __cnfn convert_float2_rtp(short2);
1783float2 __ovld __cnfn convert_float2_rtn(short2);
1784float2 __ovld __cnfn convert_float2(short2);
1785float2 __ovld __cnfn convert_float2_rte(ushort2);
1786float2 __ovld __cnfn convert_float2_rtz(ushort2);
1787float2 __ovld __cnfn convert_float2_rtp(ushort2);
1788float2 __ovld __cnfn convert_float2_rtn(ushort2);
1789float2 __ovld __cnfn convert_float2(ushort2);
1790float2 __ovld __cnfn convert_float2_rte(int2);
1791float2 __ovld __cnfn convert_float2_rtz(int2);
1792float2 __ovld __cnfn convert_float2_rtp(int2);
1793float2 __ovld __cnfn convert_float2_rtn(int2);
1794float2 __ovld __cnfn convert_float2(int2);
1795float2 __ovld __cnfn convert_float2_rte(uint2);
1796float2 __ovld __cnfn convert_float2_rtz(uint2);
1797float2 __ovld __cnfn convert_float2_rtp(uint2);
1798float2 __ovld __cnfn convert_float2_rtn(uint2);
1799float2 __ovld __cnfn convert_float2(uint2);
1800float2 __ovld __cnfn convert_float2_rte(long2);
1801float2 __ovld __cnfn convert_float2_rtz(long2);
1802float2 __ovld __cnfn convert_float2_rtp(long2);
1803float2 __ovld __cnfn convert_float2_rtn(long2);
1804float2 __ovld __cnfn convert_float2(long2);
1805float2 __ovld __cnfn convert_float2_rte(ulong2);
1806float2 __ovld __cnfn convert_float2_rtz(ulong2);
1807float2 __ovld __cnfn convert_float2_rtp(ulong2);
1808float2 __ovld __cnfn convert_float2_rtn(ulong2);
1809float2 __ovld __cnfn convert_float2(ulong2);
1810float2 __ovld __cnfn convert_float2_rte(float2);
1811float2 __ovld __cnfn convert_float2_rtz(float2);
1812float2 __ovld __cnfn convert_float2_rtp(float2);
1813float2 __ovld __cnfn convert_float2_rtn(float2);
1814float2 __ovld __cnfn convert_float2(float2);
1815char3 __ovld __cnfn convert_char3_rte(char3);
1816char3 __ovld __cnfn convert_char3_sat_rte(char3);
1817char3 __ovld __cnfn convert_char3_rtz(char3);
1818char3 __ovld __cnfn convert_char3_sat_rtz(char3);
1819char3 __ovld __cnfn convert_char3_rtp(char3);
1820char3 __ovld __cnfn convert_char3_sat_rtp(char3);
1821char3 __ovld __cnfn convert_char3_rtn(char3);
1822char3 __ovld __cnfn convert_char3_sat_rtn(char3);
1823char3 __ovld __cnfn convert_char3(char3);
1824char3 __ovld __cnfn convert_char3_sat(char3);
1825char3 __ovld __cnfn convert_char3_rte(uchar3);
1826char3 __ovld __cnfn convert_char3_sat_rte(uchar3);
1827char3 __ovld __cnfn convert_char3_rtz(uchar3);
1828char3 __ovld __cnfn convert_char3_sat_rtz(uchar3);
1829char3 __ovld __cnfn convert_char3_rtp(uchar3);
1830char3 __ovld __cnfn convert_char3_sat_rtp(uchar3);
1831char3 __ovld __cnfn convert_char3_rtn(uchar3);
1832char3 __ovld __cnfn convert_char3_sat_rtn(uchar3);
1833char3 __ovld __cnfn convert_char3(uchar3);
1834char3 __ovld __cnfn convert_char3_sat(uchar3);
1835char3 __ovld __cnfn convert_char3_rte(short3);
1836char3 __ovld __cnfn convert_char3_sat_rte(short3);
1837char3 __ovld __cnfn convert_char3_rtz(short3);
1838char3 __ovld __cnfn convert_char3_sat_rtz(short3);
1839char3 __ovld __cnfn convert_char3_rtp(short3);
1840char3 __ovld __cnfn convert_char3_sat_rtp(short3);
1841char3 __ovld __cnfn convert_char3_rtn(short3);
1842char3 __ovld __cnfn convert_char3_sat_rtn(short3);
1843char3 __ovld __cnfn convert_char3(short3);
1844char3 __ovld __cnfn convert_char3_sat(short3);
1845char3 __ovld __cnfn convert_char3_rte(ushort3);
1846char3 __ovld __cnfn convert_char3_sat_rte(ushort3);
1847char3 __ovld __cnfn convert_char3_rtz(ushort3);
1848char3 __ovld __cnfn convert_char3_sat_rtz(ushort3);
1849char3 __ovld __cnfn convert_char3_rtp(ushort3);
1850char3 __ovld __cnfn convert_char3_sat_rtp(ushort3);
1851char3 __ovld __cnfn convert_char3_rtn(ushort3);
1852char3 __ovld __cnfn convert_char3_sat_rtn(ushort3);
1853char3 __ovld __cnfn convert_char3(ushort3);
1854char3 __ovld __cnfn convert_char3_sat(ushort3);
1855char3 __ovld __cnfn convert_char3_rte(int3);
1856char3 __ovld __cnfn convert_char3_sat_rte(int3);
1857char3 __ovld __cnfn convert_char3_rtz(int3);
1858char3 __ovld __cnfn convert_char3_sat_rtz(int3);
1859char3 __ovld __cnfn convert_char3_rtp(int3);
1860char3 __ovld __cnfn convert_char3_sat_rtp(int3);
1861char3 __ovld __cnfn convert_char3_rtn(int3);
1862char3 __ovld __cnfn convert_char3_sat_rtn(int3);
1863char3 __ovld __cnfn convert_char3(int3);
1864char3 __ovld __cnfn convert_char3_sat(int3);
1865char3 __ovld __cnfn convert_char3_rte(uint3);
1866char3 __ovld __cnfn convert_char3_sat_rte(uint3);
1867char3 __ovld __cnfn convert_char3_rtz(uint3);
1868char3 __ovld __cnfn convert_char3_sat_rtz(uint3);
1869char3 __ovld __cnfn convert_char3_rtp(uint3);
1870char3 __ovld __cnfn convert_char3_sat_rtp(uint3);
1871char3 __ovld __cnfn convert_char3_rtn(uint3);
1872char3 __ovld __cnfn convert_char3_sat_rtn(uint3);
1873char3 __ovld __cnfn convert_char3(uint3);
1874char3 __ovld __cnfn convert_char3_sat(uint3);
1875char3 __ovld __cnfn convert_char3_rte(long3);
1876char3 __ovld __cnfn convert_char3_sat_rte(long3);
1877char3 __ovld __cnfn convert_char3_rtz(long3);
1878char3 __ovld __cnfn convert_char3_sat_rtz(long3);
1879char3 __ovld __cnfn convert_char3_rtp(long3);
1880char3 __ovld __cnfn convert_char3_sat_rtp(long3);
1881char3 __ovld __cnfn convert_char3_rtn(long3);
1882char3 __ovld __cnfn convert_char3_sat_rtn(long3);
1883char3 __ovld __cnfn convert_char3(long3);
1884char3 __ovld __cnfn convert_char3_sat(long3);
1885char3 __ovld __cnfn convert_char3_rte(ulong3);
1886char3 __ovld __cnfn convert_char3_sat_rte(ulong3);
1887char3 __ovld __cnfn convert_char3_rtz(ulong3);
1888char3 __ovld __cnfn convert_char3_sat_rtz(ulong3);
1889char3 __ovld __cnfn convert_char3_rtp(ulong3);
1890char3 __ovld __cnfn convert_char3_sat_rtp(ulong3);
1891char3 __ovld __cnfn convert_char3_rtn(ulong3);
1892char3 __ovld __cnfn convert_char3_sat_rtn(ulong3);
1893char3 __ovld __cnfn convert_char3(ulong3);
1894char3 __ovld __cnfn convert_char3_sat(ulong3);
1895char3 __ovld __cnfn convert_char3_rte(float3);
1896char3 __ovld __cnfn convert_char3_sat_rte(float3);
1897char3 __ovld __cnfn convert_char3_rtz(float3);
1898char3 __ovld __cnfn convert_char3_sat_rtz(float3);
1899char3 __ovld __cnfn convert_char3_rtp(float3);
1900char3 __ovld __cnfn convert_char3_sat_rtp(float3);
1901char3 __ovld __cnfn convert_char3_rtn(float3);
1902char3 __ovld __cnfn convert_char3_sat_rtn(float3);
1903char3 __ovld __cnfn convert_char3(float3);
1904char3 __ovld __cnfn convert_char3_sat(float3);
1905uchar3 __ovld __cnfn convert_uchar3_rte(char3);
1906uchar3 __ovld __cnfn convert_uchar3_sat_rte(char3);
1907uchar3 __ovld __cnfn convert_uchar3_rtz(char3);
1908uchar3 __ovld __cnfn convert_uchar3_sat_rtz(char3);
1909uchar3 __ovld __cnfn convert_uchar3_rtp(char3);
1910uchar3 __ovld __cnfn convert_uchar3_sat_rtp(char3);
1911uchar3 __ovld __cnfn convert_uchar3_rtn(char3);
1912uchar3 __ovld __cnfn convert_uchar3_sat_rtn(char3);
1913uchar3 __ovld __cnfn convert_uchar3(char3);
1914uchar3 __ovld __cnfn convert_uchar3_sat(char3);
1915uchar3 __ovld __cnfn convert_uchar3_rte(uchar3);
1916uchar3 __ovld __cnfn convert_uchar3_sat_rte(uchar3);
1917uchar3 __ovld __cnfn convert_uchar3_rtz(uchar3);
1918uchar3 __ovld __cnfn convert_uchar3_sat_rtz(uchar3);
1919uchar3 __ovld __cnfn convert_uchar3_rtp(uchar3);
1920uchar3 __ovld __cnfn convert_uchar3_sat_rtp(uchar3);
1921uchar3 __ovld __cnfn convert_uchar3_rtn(uchar3);
1922uchar3 __ovld __cnfn convert_uchar3_sat_rtn(uchar3);
1923uchar3 __ovld __cnfn convert_uchar3(uchar3);
1924uchar3 __ovld __cnfn convert_uchar3_sat(uchar3);
1925uchar3 __ovld __cnfn convert_uchar3_rte(short3);
1926uchar3 __ovld __cnfn convert_uchar3_sat_rte(short3);
1927uchar3 __ovld __cnfn convert_uchar3_rtz(short3);
1928uchar3 __ovld __cnfn convert_uchar3_sat_rtz(short3);
1929uchar3 __ovld __cnfn convert_uchar3_rtp(short3);
1930uchar3 __ovld __cnfn convert_uchar3_sat_rtp(short3);
1931uchar3 __ovld __cnfn convert_uchar3_rtn(short3);
1932uchar3 __ovld __cnfn convert_uchar3_sat_rtn(short3);
1933uchar3 __ovld __cnfn convert_uchar3(short3);
1934uchar3 __ovld __cnfn convert_uchar3_sat(short3);
1935uchar3 __ovld __cnfn convert_uchar3_rte(ushort3);
1936uchar3 __ovld __cnfn convert_uchar3_sat_rte(ushort3);
1937uchar3 __ovld __cnfn convert_uchar3_rtz(ushort3);
1938uchar3 __ovld __cnfn convert_uchar3_sat_rtz(ushort3);
1939uchar3 __ovld __cnfn convert_uchar3_rtp(ushort3);
1940uchar3 __ovld __cnfn convert_uchar3_sat_rtp(ushort3);
1941uchar3 __ovld __cnfn convert_uchar3_rtn(ushort3);
1942uchar3 __ovld __cnfn convert_uchar3_sat_rtn(ushort3);
1943uchar3 __ovld __cnfn convert_uchar3(ushort3);
1944uchar3 __ovld __cnfn convert_uchar3_sat(ushort3);
1945uchar3 __ovld __cnfn convert_uchar3_rte(int3);
1946uchar3 __ovld __cnfn convert_uchar3_sat_rte(int3);
1947uchar3 __ovld __cnfn convert_uchar3_rtz(int3);
1948uchar3 __ovld __cnfn convert_uchar3_sat_rtz(int3);
1949uchar3 __ovld __cnfn convert_uchar3_rtp(int3);
1950uchar3 __ovld __cnfn convert_uchar3_sat_rtp(int3);
1951uchar3 __ovld __cnfn convert_uchar3_rtn(int3);
1952uchar3 __ovld __cnfn convert_uchar3_sat_rtn(int3);
1953uchar3 __ovld __cnfn convert_uchar3(int3);
1954uchar3 __ovld __cnfn convert_uchar3_sat(int3);
1955uchar3 __ovld __cnfn convert_uchar3_rte(uint3);
1956uchar3 __ovld __cnfn convert_uchar3_sat_rte(uint3);
1957uchar3 __ovld __cnfn convert_uchar3_rtz(uint3);
1958uchar3 __ovld __cnfn convert_uchar3_sat_rtz(uint3);
1959uchar3 __ovld __cnfn convert_uchar3_rtp(uint3);
1960uchar3 __ovld __cnfn convert_uchar3_sat_rtp(uint3);
1961uchar3 __ovld __cnfn convert_uchar3_rtn(uint3);
1962uchar3 __ovld __cnfn convert_uchar3_sat_rtn(uint3);
1963uchar3 __ovld __cnfn convert_uchar3(uint3);
1964uchar3 __ovld __cnfn convert_uchar3_sat(uint3);
1965uchar3 __ovld __cnfn convert_uchar3_rte(long3);
1966uchar3 __ovld __cnfn convert_uchar3_sat_rte(long3);
1967uchar3 __ovld __cnfn convert_uchar3_rtz(long3);
1968uchar3 __ovld __cnfn convert_uchar3_sat_rtz(long3);
1969uchar3 __ovld __cnfn convert_uchar3_rtp(long3);
1970uchar3 __ovld __cnfn convert_uchar3_sat_rtp(long3);
1971uchar3 __ovld __cnfn convert_uchar3_rtn(long3);
1972uchar3 __ovld __cnfn convert_uchar3_sat_rtn(long3);
1973uchar3 __ovld __cnfn convert_uchar3(long3);
1974uchar3 __ovld __cnfn convert_uchar3_sat(long3);
1975uchar3 __ovld __cnfn convert_uchar3_rte(ulong3);
1976uchar3 __ovld __cnfn convert_uchar3_sat_rte(ulong3);
1977uchar3 __ovld __cnfn convert_uchar3_rtz(ulong3);
1978uchar3 __ovld __cnfn convert_uchar3_sat_rtz(ulong3);
1979uchar3 __ovld __cnfn convert_uchar3_rtp(ulong3);
1980uchar3 __ovld __cnfn convert_uchar3_sat_rtp(ulong3);
1981uchar3 __ovld __cnfn convert_uchar3_rtn(ulong3);
1982uchar3 __ovld __cnfn convert_uchar3_sat_rtn(ulong3);
1983uchar3 __ovld __cnfn convert_uchar3(ulong3);
1984uchar3 __ovld __cnfn convert_uchar3_sat(ulong3);
1985uchar3 __ovld __cnfn convert_uchar3_rte(float3);
1986uchar3 __ovld __cnfn convert_uchar3_sat_rte(float3);
1987uchar3 __ovld __cnfn convert_uchar3_rtz(float3);
1988uchar3 __ovld __cnfn convert_uchar3_sat_rtz(float3);
1989uchar3 __ovld __cnfn convert_uchar3_rtp(float3);
1990uchar3 __ovld __cnfn convert_uchar3_sat_rtp(float3);
1991uchar3 __ovld __cnfn convert_uchar3_rtn(float3);
1992uchar3 __ovld __cnfn convert_uchar3_sat_rtn(float3);
1993uchar3 __ovld __cnfn convert_uchar3(float3);
1994uchar3 __ovld __cnfn convert_uchar3_sat(float3);
1995short3 __ovld __cnfn convert_short3_rte(char3);
1996short3 __ovld __cnfn convert_short3_sat_rte(char3);
1997short3 __ovld __cnfn convert_short3_rtz(char3);
1998short3 __ovld __cnfn convert_short3_sat_rtz(char3);
1999short3 __ovld __cnfn convert_short3_rtp(char3);
2000short3 __ovld __cnfn convert_short3_sat_rtp(char3);
2001short3 __ovld __cnfn convert_short3_rtn(char3);
2002short3 __ovld __cnfn convert_short3_sat_rtn(char3);
2003short3 __ovld __cnfn convert_short3(char3);
2004short3 __ovld __cnfn convert_short3_sat(char3);
2005short3 __ovld __cnfn convert_short3_rte(uchar3);
2006short3 __ovld __cnfn convert_short3_sat_rte(uchar3);
2007short3 __ovld __cnfn convert_short3_rtz(uchar3);
2008short3 __ovld __cnfn convert_short3_sat_rtz(uchar3);
2009short3 __ovld __cnfn convert_short3_rtp(uchar3);
2010short3 __ovld __cnfn convert_short3_sat_rtp(uchar3);
2011short3 __ovld __cnfn convert_short3_rtn(uchar3);
2012short3 __ovld __cnfn convert_short3_sat_rtn(uchar3);
2013short3 __ovld __cnfn convert_short3(uchar3);
2014short3 __ovld __cnfn convert_short3_sat(uchar3);
2015short3 __ovld __cnfn convert_short3_rte(short3);
2016short3 __ovld __cnfn convert_short3_sat_rte(short3);
2017short3 __ovld __cnfn convert_short3_rtz(short3);
2018short3 __ovld __cnfn convert_short3_sat_rtz(short3);
2019short3 __ovld __cnfn convert_short3_rtp(short3);
2020short3 __ovld __cnfn convert_short3_sat_rtp(short3);
2021short3 __ovld __cnfn convert_short3_rtn(short3);
2022short3 __ovld __cnfn convert_short3_sat_rtn(short3);
2023short3 __ovld __cnfn convert_short3(short3);
2024short3 __ovld __cnfn convert_short3_sat(short3);
2025short3 __ovld __cnfn convert_short3_rte(ushort3);
2026short3 __ovld __cnfn convert_short3_sat_rte(ushort3);
2027short3 __ovld __cnfn convert_short3_rtz(ushort3);
2028short3 __ovld __cnfn convert_short3_sat_rtz(ushort3);
2029short3 __ovld __cnfn convert_short3_rtp(ushort3);
2030short3 __ovld __cnfn convert_short3_sat_rtp(ushort3);
2031short3 __ovld __cnfn convert_short3_rtn(ushort3);
2032short3 __ovld __cnfn convert_short3_sat_rtn(ushort3);
2033short3 __ovld __cnfn convert_short3(ushort3);
2034short3 __ovld __cnfn convert_short3_sat(ushort3);
2035short3 __ovld __cnfn convert_short3_rte(int3);
2036short3 __ovld __cnfn convert_short3_sat_rte(int3);
2037short3 __ovld __cnfn convert_short3_rtz(int3);
2038short3 __ovld __cnfn convert_short3_sat_rtz(int3);
2039short3 __ovld __cnfn convert_short3_rtp(int3);
2040short3 __ovld __cnfn convert_short3_sat_rtp(int3);
2041short3 __ovld __cnfn convert_short3_rtn(int3);
2042short3 __ovld __cnfn convert_short3_sat_rtn(int3);
2043short3 __ovld __cnfn convert_short3(int3);
2044short3 __ovld __cnfn convert_short3_sat(int3);
2045short3 __ovld __cnfn convert_short3_rte(uint3);
2046short3 __ovld __cnfn convert_short3_sat_rte(uint3);
2047short3 __ovld __cnfn convert_short3_rtz(uint3);
2048short3 __ovld __cnfn convert_short3_sat_rtz(uint3);
2049short3 __ovld __cnfn convert_short3_rtp(uint3);
2050short3 __ovld __cnfn convert_short3_sat_rtp(uint3);
2051short3 __ovld __cnfn convert_short3_rtn(uint3);
2052short3 __ovld __cnfn convert_short3_sat_rtn(uint3);
2053short3 __ovld __cnfn convert_short3(uint3);
2054short3 __ovld __cnfn convert_short3_sat(uint3);
2055short3 __ovld __cnfn convert_short3_rte(long3);
2056short3 __ovld __cnfn convert_short3_sat_rte(long3);
2057short3 __ovld __cnfn convert_short3_rtz(long3);
2058short3 __ovld __cnfn convert_short3_sat_rtz(long3);
2059short3 __ovld __cnfn convert_short3_rtp(long3);
2060short3 __ovld __cnfn convert_short3_sat_rtp(long3);
2061short3 __ovld __cnfn convert_short3_rtn(long3);
2062short3 __ovld __cnfn convert_short3_sat_rtn(long3);
2063short3 __ovld __cnfn convert_short3(long3);
2064short3 __ovld __cnfn convert_short3_sat(long3);
2065short3 __ovld __cnfn convert_short3_rte(ulong3);
2066short3 __ovld __cnfn convert_short3_sat_rte(ulong3);
2067short3 __ovld __cnfn convert_short3_rtz(ulong3);
2068short3 __ovld __cnfn convert_short3_sat_rtz(ulong3);
2069short3 __ovld __cnfn convert_short3_rtp(ulong3);
2070short3 __ovld __cnfn convert_short3_sat_rtp(ulong3);
2071short3 __ovld __cnfn convert_short3_rtn(ulong3);
2072short3 __ovld __cnfn convert_short3_sat_rtn(ulong3);
2073short3 __ovld __cnfn convert_short3(ulong3);
2074short3 __ovld __cnfn convert_short3_sat(ulong3);
2075short3 __ovld __cnfn convert_short3_rte(float3);
2076short3 __ovld __cnfn convert_short3_sat_rte(float3);
2077short3 __ovld __cnfn convert_short3_rtz(float3);
2078short3 __ovld __cnfn convert_short3_sat_rtz(float3);
2079short3 __ovld __cnfn convert_short3_rtp(float3);
2080short3 __ovld __cnfn convert_short3_sat_rtp(float3);
2081short3 __ovld __cnfn convert_short3_rtn(float3);
2082short3 __ovld __cnfn convert_short3_sat_rtn(float3);
2083short3 __ovld __cnfn convert_short3(float3);
2084short3 __ovld __cnfn convert_short3_sat(float3);
2085ushort3 __ovld __cnfn convert_ushort3_rte(char3);
2086ushort3 __ovld __cnfn convert_ushort3_sat_rte(char3);
2087ushort3 __ovld __cnfn convert_ushort3_rtz(char3);
2088ushort3 __ovld __cnfn convert_ushort3_sat_rtz(char3);
2089ushort3 __ovld __cnfn convert_ushort3_rtp(char3);
2090ushort3 __ovld __cnfn convert_ushort3_sat_rtp(char3);
2091ushort3 __ovld __cnfn convert_ushort3_rtn(char3);
2092ushort3 __ovld __cnfn convert_ushort3_sat_rtn(char3);
2093ushort3 __ovld __cnfn convert_ushort3(char3);
2094ushort3 __ovld __cnfn convert_ushort3_sat(char3);
2095ushort3 __ovld __cnfn convert_ushort3_rte(uchar3);
2096ushort3 __ovld __cnfn convert_ushort3_sat_rte(uchar3);
2097ushort3 __ovld __cnfn convert_ushort3_rtz(uchar3);
2098ushort3 __ovld __cnfn convert_ushort3_sat_rtz(uchar3);
2099ushort3 __ovld __cnfn convert_ushort3_rtp(uchar3);
2100ushort3 __ovld __cnfn convert_ushort3_sat_rtp(uchar3);
2101ushort3 __ovld __cnfn convert_ushort3_rtn(uchar3);
2102ushort3 __ovld __cnfn convert_ushort3_sat_rtn(uchar3);
2103ushort3 __ovld __cnfn convert_ushort3(uchar3);
2104ushort3 __ovld __cnfn convert_ushort3_sat(uchar3);
2105ushort3 __ovld __cnfn convert_ushort3_rte(short3);
2106ushort3 __ovld __cnfn convert_ushort3_sat_rte(short3);
2107ushort3 __ovld __cnfn convert_ushort3_rtz(short3);
2108ushort3 __ovld __cnfn convert_ushort3_sat_rtz(short3);
2109ushort3 __ovld __cnfn convert_ushort3_rtp(short3);
2110ushort3 __ovld __cnfn convert_ushort3_sat_rtp(short3);
2111ushort3 __ovld __cnfn convert_ushort3_rtn(short3);
2112ushort3 __ovld __cnfn convert_ushort3_sat_rtn(short3);
2113ushort3 __ovld __cnfn convert_ushort3(short3);
2114ushort3 __ovld __cnfn convert_ushort3_sat(short3);
2115ushort3 __ovld __cnfn convert_ushort3_rte(ushort3);
2116ushort3 __ovld __cnfn convert_ushort3_sat_rte(ushort3);
2117ushort3 __ovld __cnfn convert_ushort3_rtz(ushort3);
2118ushort3 __ovld __cnfn convert_ushort3_sat_rtz(ushort3);
2119ushort3 __ovld __cnfn convert_ushort3_rtp(ushort3);
2120ushort3 __ovld __cnfn convert_ushort3_sat_rtp(ushort3);
2121ushort3 __ovld __cnfn convert_ushort3_rtn(ushort3);
2122ushort3 __ovld __cnfn convert_ushort3_sat_rtn(ushort3);
2123ushort3 __ovld __cnfn convert_ushort3(ushort3);
2124ushort3 __ovld __cnfn convert_ushort3_sat(ushort3);
2125ushort3 __ovld __cnfn convert_ushort3_rte(int3);
2126ushort3 __ovld __cnfn convert_ushort3_sat_rte(int3);
2127ushort3 __ovld __cnfn convert_ushort3_rtz(int3);
2128ushort3 __ovld __cnfn convert_ushort3_sat_rtz(int3);
2129ushort3 __ovld __cnfn convert_ushort3_rtp(int3);
2130ushort3 __ovld __cnfn convert_ushort3_sat_rtp(int3);
2131ushort3 __ovld __cnfn convert_ushort3_rtn(int3);
2132ushort3 __ovld __cnfn convert_ushort3_sat_rtn(int3);
2133ushort3 __ovld __cnfn convert_ushort3(int3);
2134ushort3 __ovld __cnfn convert_ushort3_sat(int3);
2135ushort3 __ovld __cnfn convert_ushort3_rte(uint3);
2136ushort3 __ovld __cnfn convert_ushort3_sat_rte(uint3);
2137ushort3 __ovld __cnfn convert_ushort3_rtz(uint3);
2138ushort3 __ovld __cnfn convert_ushort3_sat_rtz(uint3);
2139ushort3 __ovld __cnfn convert_ushort3_rtp(uint3);
2140ushort3 __ovld __cnfn convert_ushort3_sat_rtp(uint3);
2141ushort3 __ovld __cnfn convert_ushort3_rtn(uint3);
2142ushort3 __ovld __cnfn convert_ushort3_sat_rtn(uint3);
2143ushort3 __ovld __cnfn convert_ushort3(uint3);
2144ushort3 __ovld __cnfn convert_ushort3_sat(uint3);
2145ushort3 __ovld __cnfn convert_ushort3_rte(long3);
2146ushort3 __ovld __cnfn convert_ushort3_sat_rte(long3);
2147ushort3 __ovld __cnfn convert_ushort3_rtz(long3);
2148ushort3 __ovld __cnfn convert_ushort3_sat_rtz(long3);
2149ushort3 __ovld __cnfn convert_ushort3_rtp(long3);
2150ushort3 __ovld __cnfn convert_ushort3_sat_rtp(long3);
2151ushort3 __ovld __cnfn convert_ushort3_rtn(long3);
2152ushort3 __ovld __cnfn convert_ushort3_sat_rtn(long3);
2153ushort3 __ovld __cnfn convert_ushort3(long3);
2154ushort3 __ovld __cnfn convert_ushort3_sat(long3);
2155ushort3 __ovld __cnfn convert_ushort3_rte(ulong3);
2156ushort3 __ovld __cnfn convert_ushort3_sat_rte(ulong3);
2157ushort3 __ovld __cnfn convert_ushort3_rtz(ulong3);
2158ushort3 __ovld __cnfn convert_ushort3_sat_rtz(ulong3);
2159ushort3 __ovld __cnfn convert_ushort3_rtp(ulong3);
2160ushort3 __ovld __cnfn convert_ushort3_sat_rtp(ulong3);
2161ushort3 __ovld __cnfn convert_ushort3_rtn(ulong3);
2162ushort3 __ovld __cnfn convert_ushort3_sat_rtn(ulong3);
2163ushort3 __ovld __cnfn convert_ushort3(ulong3);
2164ushort3 __ovld __cnfn convert_ushort3_sat(ulong3);
2165ushort3 __ovld __cnfn convert_ushort3_rte(float3);
2166ushort3 __ovld __cnfn convert_ushort3_sat_rte(float3);
2167ushort3 __ovld __cnfn convert_ushort3_rtz(float3);
2168ushort3 __ovld __cnfn convert_ushort3_sat_rtz(float3);
2169ushort3 __ovld __cnfn convert_ushort3_rtp(float3);
2170ushort3 __ovld __cnfn convert_ushort3_sat_rtp(float3);
2171ushort3 __ovld __cnfn convert_ushort3_rtn(float3);
2172ushort3 __ovld __cnfn convert_ushort3_sat_rtn(float3);
2173ushort3 __ovld __cnfn convert_ushort3(float3);
2174ushort3 __ovld __cnfn convert_ushort3_sat(float3);
2175int3 __ovld __cnfn convert_int3_rte(char3);
2176int3 __ovld __cnfn convert_int3_sat_rte(char3);
2177int3 __ovld __cnfn convert_int3_rtz(char3);
2178int3 __ovld __cnfn convert_int3_sat_rtz(char3);
2179int3 __ovld __cnfn convert_int3_rtp(char3);
2180int3 __ovld __cnfn convert_int3_sat_rtp(char3);
2181int3 __ovld __cnfn convert_int3_rtn(char3);
2182int3 __ovld __cnfn convert_int3_sat_rtn(char3);
2183int3 __ovld __cnfn convert_int3(char3);
2184int3 __ovld __cnfn convert_int3_sat(char3);
2185int3 __ovld __cnfn convert_int3_rte(uchar3);
2186int3 __ovld __cnfn convert_int3_sat_rte(uchar3);
2187int3 __ovld __cnfn convert_int3_rtz(uchar3);
2188int3 __ovld __cnfn convert_int3_sat_rtz(uchar3);
2189int3 __ovld __cnfn convert_int3_rtp(uchar3);
2190int3 __ovld __cnfn convert_int3_sat_rtp(uchar3);
2191int3 __ovld __cnfn convert_int3_rtn(uchar3);
2192int3 __ovld __cnfn convert_int3_sat_rtn(uchar3);
2193int3 __ovld __cnfn convert_int3(uchar3);
2194int3 __ovld __cnfn convert_int3_sat(uchar3);
2195int3 __ovld __cnfn convert_int3_rte(short3);
2196int3 __ovld __cnfn convert_int3_sat_rte(short3);
2197int3 __ovld __cnfn convert_int3_rtz(short3);
2198int3 __ovld __cnfn convert_int3_sat_rtz(short3);
2199int3 __ovld __cnfn convert_int3_rtp(short3);
2200int3 __ovld __cnfn convert_int3_sat_rtp(short3);
2201int3 __ovld __cnfn convert_int3_rtn(short3);
2202int3 __ovld __cnfn convert_int3_sat_rtn(short3);
2203int3 __ovld __cnfn convert_int3(short3);
2204int3 __ovld __cnfn convert_int3_sat(short3);
2205int3 __ovld __cnfn convert_int3_rte(ushort3);
2206int3 __ovld __cnfn convert_int3_sat_rte(ushort3);
2207int3 __ovld __cnfn convert_int3_rtz(ushort3);
2208int3 __ovld __cnfn convert_int3_sat_rtz(ushort3);
2209int3 __ovld __cnfn convert_int3_rtp(ushort3);
2210int3 __ovld __cnfn convert_int3_sat_rtp(ushort3);
2211int3 __ovld __cnfn convert_int3_rtn(ushort3);
2212int3 __ovld __cnfn convert_int3_sat_rtn(ushort3);
2213int3 __ovld __cnfn convert_int3(ushort3);
2214int3 __ovld __cnfn convert_int3_sat(ushort3);
2215int3 __ovld __cnfn convert_int3_rte(int3);
2216int3 __ovld __cnfn convert_int3_sat_rte(int3);
2217int3 __ovld __cnfn convert_int3_rtz(int3);
2218int3 __ovld __cnfn convert_int3_sat_rtz(int3);
2219int3 __ovld __cnfn convert_int3_rtp(int3);
2220int3 __ovld __cnfn convert_int3_sat_rtp(int3);
2221int3 __ovld __cnfn convert_int3_rtn(int3);
2222int3 __ovld __cnfn convert_int3_sat_rtn(int3);
2223int3 __ovld __cnfn convert_int3(int3);
2224int3 __ovld __cnfn convert_int3_sat(int3);
2225int3 __ovld __cnfn convert_int3_rte(uint3);
2226int3 __ovld __cnfn convert_int3_sat_rte(uint3);
2227int3 __ovld __cnfn convert_int3_rtz(uint3);
2228int3 __ovld __cnfn convert_int3_sat_rtz(uint3);
2229int3 __ovld __cnfn convert_int3_rtp(uint3);
2230int3 __ovld __cnfn convert_int3_sat_rtp(uint3);
2231int3 __ovld __cnfn convert_int3_rtn(uint3);
2232int3 __ovld __cnfn convert_int3_sat_rtn(uint3);
2233int3 __ovld __cnfn convert_int3(uint3);
2234int3 __ovld __cnfn convert_int3_sat(uint3);
2235int3 __ovld __cnfn convert_int3_rte(long3);
2236int3 __ovld __cnfn convert_int3_sat_rte(long3);
2237int3 __ovld __cnfn convert_int3_rtz(long3);
2238int3 __ovld __cnfn convert_int3_sat_rtz(long3);
2239int3 __ovld __cnfn convert_int3_rtp(long3);
2240int3 __ovld __cnfn convert_int3_sat_rtp(long3);
2241int3 __ovld __cnfn convert_int3_rtn(long3);
2242int3 __ovld __cnfn convert_int3_sat_rtn(long3);
2243int3 __ovld __cnfn convert_int3(long3);
2244int3 __ovld __cnfn convert_int3_sat(long3);
2245int3 __ovld __cnfn convert_int3_rte(ulong3);
2246int3 __ovld __cnfn convert_int3_sat_rte(ulong3);
2247int3 __ovld __cnfn convert_int3_rtz(ulong3);
2248int3 __ovld __cnfn convert_int3_sat_rtz(ulong3);
2249int3 __ovld __cnfn convert_int3_rtp(ulong3);
2250int3 __ovld __cnfn convert_int3_sat_rtp(ulong3);
2251int3 __ovld __cnfn convert_int3_rtn(ulong3);
2252int3 __ovld __cnfn convert_int3_sat_rtn(ulong3);
2253int3 __ovld __cnfn convert_int3(ulong3);
2254int3 __ovld __cnfn convert_int3_sat(ulong3);
2255int3 __ovld __cnfn convert_int3_rte(float3);
2256int3 __ovld __cnfn convert_int3_sat_rte(float3);
2257int3 __ovld __cnfn convert_int3_rtz(float3);
2258int3 __ovld __cnfn convert_int3_sat_rtz(float3);
2259int3 __ovld __cnfn convert_int3_rtp(float3);
2260int3 __ovld __cnfn convert_int3_sat_rtp(float3);
2261int3 __ovld __cnfn convert_int3_rtn(float3);
2262int3 __ovld __cnfn convert_int3_sat_rtn(float3);
2263int3 __ovld __cnfn convert_int3(float3);
2264int3 __ovld __cnfn convert_int3_sat(float3);
2265uint3 __ovld __cnfn convert_uint3_rte(char3);
2266uint3 __ovld __cnfn convert_uint3_sat_rte(char3);
2267uint3 __ovld __cnfn convert_uint3_rtz(char3);
2268uint3 __ovld __cnfn convert_uint3_sat_rtz(char3);
2269uint3 __ovld __cnfn convert_uint3_rtp(char3);
2270uint3 __ovld __cnfn convert_uint3_sat_rtp(char3);
2271uint3 __ovld __cnfn convert_uint3_rtn(char3);
2272uint3 __ovld __cnfn convert_uint3_sat_rtn(char3);
2273uint3 __ovld __cnfn convert_uint3(char3);
2274uint3 __ovld __cnfn convert_uint3_sat(char3);
2275uint3 __ovld __cnfn convert_uint3_rte(uchar3);
2276uint3 __ovld __cnfn convert_uint3_sat_rte(uchar3);
2277uint3 __ovld __cnfn convert_uint3_rtz(uchar3);
2278uint3 __ovld __cnfn convert_uint3_sat_rtz(uchar3);
2279uint3 __ovld __cnfn convert_uint3_rtp(uchar3);
2280uint3 __ovld __cnfn convert_uint3_sat_rtp(uchar3);
2281uint3 __ovld __cnfn convert_uint3_rtn(uchar3);
2282uint3 __ovld __cnfn convert_uint3_sat_rtn(uchar3);
2283uint3 __ovld __cnfn convert_uint3(uchar3);
2284uint3 __ovld __cnfn convert_uint3_sat(uchar3);
2285uint3 __ovld __cnfn convert_uint3_rte(short3);
2286uint3 __ovld __cnfn convert_uint3_sat_rte(short3);
2287uint3 __ovld __cnfn convert_uint3_rtz(short3);
2288uint3 __ovld __cnfn convert_uint3_sat_rtz(short3);
2289uint3 __ovld __cnfn convert_uint3_rtp(short3);
2290uint3 __ovld __cnfn convert_uint3_sat_rtp(short3);
2291uint3 __ovld __cnfn convert_uint3_rtn(short3);
2292uint3 __ovld __cnfn convert_uint3_sat_rtn(short3);
2293uint3 __ovld __cnfn convert_uint3(short3);
2294uint3 __ovld __cnfn convert_uint3_sat(short3);
2295uint3 __ovld __cnfn convert_uint3_rte(ushort3);
2296uint3 __ovld __cnfn convert_uint3_sat_rte(ushort3);
2297uint3 __ovld __cnfn convert_uint3_rtz(ushort3);
2298uint3 __ovld __cnfn convert_uint3_sat_rtz(ushort3);
2299uint3 __ovld __cnfn convert_uint3_rtp(ushort3);
2300uint3 __ovld __cnfn convert_uint3_sat_rtp(ushort3);
2301uint3 __ovld __cnfn convert_uint3_rtn(ushort3);
2302uint3 __ovld __cnfn convert_uint3_sat_rtn(ushort3);
2303uint3 __ovld __cnfn convert_uint3(ushort3);
2304uint3 __ovld __cnfn convert_uint3_sat(ushort3);
2305uint3 __ovld __cnfn convert_uint3_rte(int3);
2306uint3 __ovld __cnfn convert_uint3_sat_rte(int3);
2307uint3 __ovld __cnfn convert_uint3_rtz(int3);
2308uint3 __ovld __cnfn convert_uint3_sat_rtz(int3);
2309uint3 __ovld __cnfn convert_uint3_rtp(int3);
2310uint3 __ovld __cnfn convert_uint3_sat_rtp(int3);
2311uint3 __ovld __cnfn convert_uint3_rtn(int3);
2312uint3 __ovld __cnfn convert_uint3_sat_rtn(int3);
2313uint3 __ovld __cnfn convert_uint3(int3);
2314uint3 __ovld __cnfn convert_uint3_sat(int3);
2315uint3 __ovld __cnfn convert_uint3_rte(uint3);
2316uint3 __ovld __cnfn convert_uint3_sat_rte(uint3);
2317uint3 __ovld __cnfn convert_uint3_rtz(uint3);
2318uint3 __ovld __cnfn convert_uint3_sat_rtz(uint3);
2319uint3 __ovld __cnfn convert_uint3_rtp(uint3);
2320uint3 __ovld __cnfn convert_uint3_sat_rtp(uint3);
2321uint3 __ovld __cnfn convert_uint3_rtn(uint3);
2322uint3 __ovld __cnfn convert_uint3_sat_rtn(uint3);
2323uint3 __ovld __cnfn convert_uint3(uint3);
2324uint3 __ovld __cnfn convert_uint3_sat(uint3);
2325uint3 __ovld __cnfn convert_uint3_rte(long3);
2326uint3 __ovld __cnfn convert_uint3_sat_rte(long3);
2327uint3 __ovld __cnfn convert_uint3_rtz(long3);
2328uint3 __ovld __cnfn convert_uint3_sat_rtz(long3);
2329uint3 __ovld __cnfn convert_uint3_rtp(long3);
2330uint3 __ovld __cnfn convert_uint3_sat_rtp(long3);
2331uint3 __ovld __cnfn convert_uint3_rtn(long3);
2332uint3 __ovld __cnfn convert_uint3_sat_rtn(long3);
2333uint3 __ovld __cnfn convert_uint3(long3);
2334uint3 __ovld __cnfn convert_uint3_sat(long3);
2335uint3 __ovld __cnfn convert_uint3_rte(ulong3);
2336uint3 __ovld __cnfn convert_uint3_sat_rte(ulong3);
2337uint3 __ovld __cnfn convert_uint3_rtz(ulong3);
2338uint3 __ovld __cnfn convert_uint3_sat_rtz(ulong3);
2339uint3 __ovld __cnfn convert_uint3_rtp(ulong3);
2340uint3 __ovld __cnfn convert_uint3_sat_rtp(ulong3);
2341uint3 __ovld __cnfn convert_uint3_rtn(ulong3);
2342uint3 __ovld __cnfn convert_uint3_sat_rtn(ulong3);
2343uint3 __ovld __cnfn convert_uint3(ulong3);
2344uint3 __ovld __cnfn convert_uint3_sat(ulong3);
2345uint3 __ovld __cnfn convert_uint3_rte(float3);
2346uint3 __ovld __cnfn convert_uint3_sat_rte(float3);
2347uint3 __ovld __cnfn convert_uint3_rtz(float3);
2348uint3 __ovld __cnfn convert_uint3_sat_rtz(float3);
2349uint3 __ovld __cnfn convert_uint3_rtp(float3);
2350uint3 __ovld __cnfn convert_uint3_sat_rtp(float3);
2351uint3 __ovld __cnfn convert_uint3_rtn(float3);
2352uint3 __ovld __cnfn convert_uint3_sat_rtn(float3);
2353uint3 __ovld __cnfn convert_uint3(float3);
2354uint3 __ovld __cnfn convert_uint3_sat(float3);
2355long3 __ovld __cnfn convert_long3_rte(char3);
2356long3 __ovld __cnfn convert_long3_sat_rte(char3);
2357long3 __ovld __cnfn convert_long3_rtz(char3);
2358long3 __ovld __cnfn convert_long3_sat_rtz(char3);
2359long3 __ovld __cnfn convert_long3_rtp(char3);
2360long3 __ovld __cnfn convert_long3_sat_rtp(char3);
2361long3 __ovld __cnfn convert_long3_rtn(char3);
2362long3 __ovld __cnfn convert_long3_sat_rtn(char3);
2363long3 __ovld __cnfn convert_long3(char3);
2364long3 __ovld __cnfn convert_long3_sat(char3);
2365long3 __ovld __cnfn convert_long3_rte(uchar3);
2366long3 __ovld __cnfn convert_long3_sat_rte(uchar3);
2367long3 __ovld __cnfn convert_long3_rtz(uchar3);
2368long3 __ovld __cnfn convert_long3_sat_rtz(uchar3);
2369long3 __ovld __cnfn convert_long3_rtp(uchar3);
2370long3 __ovld __cnfn convert_long3_sat_rtp(uchar3);
2371long3 __ovld __cnfn convert_long3_rtn(uchar3);
2372long3 __ovld __cnfn convert_long3_sat_rtn(uchar3);
2373long3 __ovld __cnfn convert_long3(uchar3);
2374long3 __ovld __cnfn convert_long3_sat(uchar3);
2375long3 __ovld __cnfn convert_long3_rte(short3);
2376long3 __ovld __cnfn convert_long3_sat_rte(short3);
2377long3 __ovld __cnfn convert_long3_rtz(short3);
2378long3 __ovld __cnfn convert_long3_sat_rtz(short3);
2379long3 __ovld __cnfn convert_long3_rtp(short3);
2380long3 __ovld __cnfn convert_long3_sat_rtp(short3);
2381long3 __ovld __cnfn convert_long3_rtn(short3);
2382long3 __ovld __cnfn convert_long3_sat_rtn(short3);
2383long3 __ovld __cnfn convert_long3(short3);
2384long3 __ovld __cnfn convert_long3_sat(short3);
2385long3 __ovld __cnfn convert_long3_rte(ushort3);
2386long3 __ovld __cnfn convert_long3_sat_rte(ushort3);
2387long3 __ovld __cnfn convert_long3_rtz(ushort3);
2388long3 __ovld __cnfn convert_long3_sat_rtz(ushort3);
2389long3 __ovld __cnfn convert_long3_rtp(ushort3);
2390long3 __ovld __cnfn convert_long3_sat_rtp(ushort3);
2391long3 __ovld __cnfn convert_long3_rtn(ushort3);
2392long3 __ovld __cnfn convert_long3_sat_rtn(ushort3);
2393long3 __ovld __cnfn convert_long3(ushort3);
2394long3 __ovld __cnfn convert_long3_sat(ushort3);
2395long3 __ovld __cnfn convert_long3_rte(int3);
2396long3 __ovld __cnfn convert_long3_sat_rte(int3);
2397long3 __ovld __cnfn convert_long3_rtz(int3);
2398long3 __ovld __cnfn convert_long3_sat_rtz(int3);
2399long3 __ovld __cnfn convert_long3_rtp(int3);
2400long3 __ovld __cnfn convert_long3_sat_rtp(int3);
2401long3 __ovld __cnfn convert_long3_rtn(int3);
2402long3 __ovld __cnfn convert_long3_sat_rtn(int3);
2403long3 __ovld __cnfn convert_long3(int3);
2404long3 __ovld __cnfn convert_long3_sat(int3);
2405long3 __ovld __cnfn convert_long3_rte(uint3);
2406long3 __ovld __cnfn convert_long3_sat_rte(uint3);
2407long3 __ovld __cnfn convert_long3_rtz(uint3);
2408long3 __ovld __cnfn convert_long3_sat_rtz(uint3);
2409long3 __ovld __cnfn convert_long3_rtp(uint3);
2410long3 __ovld __cnfn convert_long3_sat_rtp(uint3);
2411long3 __ovld __cnfn convert_long3_rtn(uint3);
2412long3 __ovld __cnfn convert_long3_sat_rtn(uint3);
2413long3 __ovld __cnfn convert_long3(uint3);
2414long3 __ovld __cnfn convert_long3_sat(uint3);
2415long3 __ovld __cnfn convert_long3_rte(long3);
2416long3 __ovld __cnfn convert_long3_sat_rte(long3);
2417long3 __ovld __cnfn convert_long3_rtz(long3);
2418long3 __ovld __cnfn convert_long3_sat_rtz(long3);
2419long3 __ovld __cnfn convert_long3_rtp(long3);
2420long3 __ovld __cnfn convert_long3_sat_rtp(long3);
2421long3 __ovld __cnfn convert_long3_rtn(long3);
2422long3 __ovld __cnfn convert_long3_sat_rtn(long3);
2423long3 __ovld __cnfn convert_long3(long3);
2424long3 __ovld __cnfn convert_long3_sat(long3);
2425long3 __ovld __cnfn convert_long3_rte(ulong3);
2426long3 __ovld __cnfn convert_long3_sat_rte(ulong3);
2427long3 __ovld __cnfn convert_long3_rtz(ulong3);
2428long3 __ovld __cnfn convert_long3_sat_rtz(ulong3);
2429long3 __ovld __cnfn convert_long3_rtp(ulong3);
2430long3 __ovld __cnfn convert_long3_sat_rtp(ulong3);
2431long3 __ovld __cnfn convert_long3_rtn(ulong3);
2432long3 __ovld __cnfn convert_long3_sat_rtn(ulong3);
2433long3 __ovld __cnfn convert_long3(ulong3);
2434long3 __ovld __cnfn convert_long3_sat(ulong3);
2435long3 __ovld __cnfn convert_long3_rte(float3);
2436long3 __ovld __cnfn convert_long3_sat_rte(float3);
2437long3 __ovld __cnfn convert_long3_rtz(float3);
2438long3 __ovld __cnfn convert_long3_sat_rtz(float3);
2439long3 __ovld __cnfn convert_long3_rtp(float3);
2440long3 __ovld __cnfn convert_long3_sat_rtp(float3);
2441long3 __ovld __cnfn convert_long3_rtn(float3);
2442long3 __ovld __cnfn convert_long3_sat_rtn(float3);
2443long3 __ovld __cnfn convert_long3(float3);
2444long3 __ovld __cnfn convert_long3_sat(float3);
2445ulong3 __ovld __cnfn convert_ulong3_rte(char3);
2446ulong3 __ovld __cnfn convert_ulong3_sat_rte(char3);
2447ulong3 __ovld __cnfn convert_ulong3_rtz(char3);
2448ulong3 __ovld __cnfn convert_ulong3_sat_rtz(char3);
2449ulong3 __ovld __cnfn convert_ulong3_rtp(char3);
2450ulong3 __ovld __cnfn convert_ulong3_sat_rtp(char3);
2451ulong3 __ovld __cnfn convert_ulong3_rtn(char3);
2452ulong3 __ovld __cnfn convert_ulong3_sat_rtn(char3);
2453ulong3 __ovld __cnfn convert_ulong3(char3);
2454ulong3 __ovld __cnfn convert_ulong3_sat(char3);
2455ulong3 __ovld __cnfn convert_ulong3_rte(uchar3);
2456ulong3 __ovld __cnfn convert_ulong3_sat_rte(uchar3);
2457ulong3 __ovld __cnfn convert_ulong3_rtz(uchar3);
2458ulong3 __ovld __cnfn convert_ulong3_sat_rtz(uchar3);
2459ulong3 __ovld __cnfn convert_ulong3_rtp(uchar3);
2460ulong3 __ovld __cnfn convert_ulong3_sat_rtp(uchar3);
2461ulong3 __ovld __cnfn convert_ulong3_rtn(uchar3);
2462ulong3 __ovld __cnfn convert_ulong3_sat_rtn(uchar3);
2463ulong3 __ovld __cnfn convert_ulong3(uchar3);
2464ulong3 __ovld __cnfn convert_ulong3_sat(uchar3);
2465ulong3 __ovld __cnfn convert_ulong3_rte(short3);
2466ulong3 __ovld __cnfn convert_ulong3_sat_rte(short3);
2467ulong3 __ovld __cnfn convert_ulong3_rtz(short3);
2468ulong3 __ovld __cnfn convert_ulong3_sat_rtz(short3);
2469ulong3 __ovld __cnfn convert_ulong3_rtp(short3);
2470ulong3 __ovld __cnfn convert_ulong3_sat_rtp(short3);
2471ulong3 __ovld __cnfn convert_ulong3_rtn(short3);
2472ulong3 __ovld __cnfn convert_ulong3_sat_rtn(short3);
2473ulong3 __ovld __cnfn convert_ulong3(short3);
2474ulong3 __ovld __cnfn convert_ulong3_sat(short3);
2475ulong3 __ovld __cnfn convert_ulong3_rte(ushort3);
2476ulong3 __ovld __cnfn convert_ulong3_sat_rte(ushort3);
2477ulong3 __ovld __cnfn convert_ulong3_rtz(ushort3);
2478ulong3 __ovld __cnfn convert_ulong3_sat_rtz(ushort3);
2479ulong3 __ovld __cnfn convert_ulong3_rtp(ushort3);
2480ulong3 __ovld __cnfn convert_ulong3_sat_rtp(ushort3);
2481ulong3 __ovld __cnfn convert_ulong3_rtn(ushort3);
2482ulong3 __ovld __cnfn convert_ulong3_sat_rtn(ushort3);
2483ulong3 __ovld __cnfn convert_ulong3(ushort3);
2484ulong3 __ovld __cnfn convert_ulong3_sat(ushort3);
2485ulong3 __ovld __cnfn convert_ulong3_rte(int3);
2486ulong3 __ovld __cnfn convert_ulong3_sat_rte(int3);
2487ulong3 __ovld __cnfn convert_ulong3_rtz(int3);
2488ulong3 __ovld __cnfn convert_ulong3_sat_rtz(int3);
2489ulong3 __ovld __cnfn convert_ulong3_rtp(int3);
2490ulong3 __ovld __cnfn convert_ulong3_sat_rtp(int3);
2491ulong3 __ovld __cnfn convert_ulong3_rtn(int3);
2492ulong3 __ovld __cnfn convert_ulong3_sat_rtn(int3);
2493ulong3 __ovld __cnfn convert_ulong3(int3);
2494ulong3 __ovld __cnfn convert_ulong3_sat(int3);
2495ulong3 __ovld __cnfn convert_ulong3_rte(uint3);
2496ulong3 __ovld __cnfn convert_ulong3_sat_rte(uint3);
2497ulong3 __ovld __cnfn convert_ulong3_rtz(uint3);
2498ulong3 __ovld __cnfn convert_ulong3_sat_rtz(uint3);
2499ulong3 __ovld __cnfn convert_ulong3_rtp(uint3);
2500ulong3 __ovld __cnfn convert_ulong3_sat_rtp(uint3);
2501ulong3 __ovld __cnfn convert_ulong3_rtn(uint3);
2502ulong3 __ovld __cnfn convert_ulong3_sat_rtn(uint3);
2503ulong3 __ovld __cnfn convert_ulong3(uint3);
2504ulong3 __ovld __cnfn convert_ulong3_sat(uint3);
2505ulong3 __ovld __cnfn convert_ulong3_rte(long3);
2506ulong3 __ovld __cnfn convert_ulong3_sat_rte(long3);
2507ulong3 __ovld __cnfn convert_ulong3_rtz(long3);
2508ulong3 __ovld __cnfn convert_ulong3_sat_rtz(long3);
2509ulong3 __ovld __cnfn convert_ulong3_rtp(long3);
2510ulong3 __ovld __cnfn convert_ulong3_sat_rtp(long3);
2511ulong3 __ovld __cnfn convert_ulong3_rtn(long3);
2512ulong3 __ovld __cnfn convert_ulong3_sat_rtn(long3);
2513ulong3 __ovld __cnfn convert_ulong3(long3);
2514ulong3 __ovld __cnfn convert_ulong3_sat(long3);
2515ulong3 __ovld __cnfn convert_ulong3_rte(ulong3);
2516ulong3 __ovld __cnfn convert_ulong3_sat_rte(ulong3);
2517ulong3 __ovld __cnfn convert_ulong3_rtz(ulong3);
2518ulong3 __ovld __cnfn convert_ulong3_sat_rtz(ulong3);
2519ulong3 __ovld __cnfn convert_ulong3_rtp(ulong3);
2520ulong3 __ovld __cnfn convert_ulong3_sat_rtp(ulong3);
2521ulong3 __ovld __cnfn convert_ulong3_rtn(ulong3);
2522ulong3 __ovld __cnfn convert_ulong3_sat_rtn(ulong3);
2523ulong3 __ovld __cnfn convert_ulong3(ulong3);
2524ulong3 __ovld __cnfn convert_ulong3_sat(ulong3);
2525ulong3 __ovld __cnfn convert_ulong3_rte(float3);
2526ulong3 __ovld __cnfn convert_ulong3_sat_rte(float3);
2527ulong3 __ovld __cnfn convert_ulong3_rtz(float3);
2528ulong3 __ovld __cnfn convert_ulong3_sat_rtz(float3);
2529ulong3 __ovld __cnfn convert_ulong3_rtp(float3);
2530ulong3 __ovld __cnfn convert_ulong3_sat_rtp(float3);
2531ulong3 __ovld __cnfn convert_ulong3_rtn(float3);
2532ulong3 __ovld __cnfn convert_ulong3_sat_rtn(float3);
2533ulong3 __ovld __cnfn convert_ulong3(float3);
2534ulong3 __ovld __cnfn convert_ulong3_sat(float3);
2535float3 __ovld __cnfn convert_float3_rte(char3);
2536float3 __ovld __cnfn convert_float3_rtz(char3);
2537float3 __ovld __cnfn convert_float3_rtp(char3);
2538float3 __ovld __cnfn convert_float3_rtn(char3);
2539float3 __ovld __cnfn convert_float3(char3);
2540float3 __ovld __cnfn convert_float3_rte(uchar3);
2541float3 __ovld __cnfn convert_float3_rtz(uchar3);
2542float3 __ovld __cnfn convert_float3_rtp(uchar3);
2543float3 __ovld __cnfn convert_float3_rtn(uchar3);
2544float3 __ovld __cnfn convert_float3(uchar3);
2545float3 __ovld __cnfn convert_float3_rte(short3);
2546float3 __ovld __cnfn convert_float3_rtz(short3);
2547float3 __ovld __cnfn convert_float3_rtp(short3);
2548float3 __ovld __cnfn convert_float3_rtn(short3);
2549float3 __ovld __cnfn convert_float3(short3);
2550float3 __ovld __cnfn convert_float3_rte(ushort3);
2551float3 __ovld __cnfn convert_float3_rtz(ushort3);
2552float3 __ovld __cnfn convert_float3_rtp(ushort3);
2553float3 __ovld __cnfn convert_float3_rtn(ushort3);
2554float3 __ovld __cnfn convert_float3(ushort3);
2555float3 __ovld __cnfn convert_float3_rte(int3);
2556float3 __ovld __cnfn convert_float3_rtz(int3);
2557float3 __ovld __cnfn convert_float3_rtp(int3);
2558float3 __ovld __cnfn convert_float3_rtn(int3);
2559float3 __ovld __cnfn convert_float3(int3);
2560float3 __ovld __cnfn convert_float3_rte(uint3);
2561float3 __ovld __cnfn convert_float3_rtz(uint3);
2562float3 __ovld __cnfn convert_float3_rtp(uint3);
2563float3 __ovld __cnfn convert_float3_rtn(uint3);
2564float3 __ovld __cnfn convert_float3(uint3);
2565float3 __ovld __cnfn convert_float3_rte(long3);
2566float3 __ovld __cnfn convert_float3_rtz(long3);
2567float3 __ovld __cnfn convert_float3_rtp(long3);
2568float3 __ovld __cnfn convert_float3_rtn(long3);
2569float3 __ovld __cnfn convert_float3(long3);
2570float3 __ovld __cnfn convert_float3_rte(ulong3);
2571float3 __ovld __cnfn convert_float3_rtz(ulong3);
2572float3 __ovld __cnfn convert_float3_rtp(ulong3);
2573float3 __ovld __cnfn convert_float3_rtn(ulong3);
2574float3 __ovld __cnfn convert_float3(ulong3);
2575float3 __ovld __cnfn convert_float3_rte(float3);
2576float3 __ovld __cnfn convert_float3_rtz(float3);
2577float3 __ovld __cnfn convert_float3_rtp(float3);
2578float3 __ovld __cnfn convert_float3_rtn(float3);
2579float3 __ovld __cnfn convert_float3(float3);
2580char4 __ovld __cnfn convert_char4_rte(char4);
2581char4 __ovld __cnfn convert_char4_sat_rte(char4);
2582char4 __ovld __cnfn convert_char4_rtz(char4);
2583char4 __ovld __cnfn convert_char4_sat_rtz(char4);
2584char4 __ovld __cnfn convert_char4_rtp(char4);
2585char4 __ovld __cnfn convert_char4_sat_rtp(char4);
2586char4 __ovld __cnfn convert_char4_rtn(char4);
2587char4 __ovld __cnfn convert_char4_sat_rtn(char4);
2588char4 __ovld __cnfn convert_char4(char4);
2589char4 __ovld __cnfn convert_char4_sat(char4);
2590char4 __ovld __cnfn convert_char4_rte(uchar4);
2591char4 __ovld __cnfn convert_char4_sat_rte(uchar4);
2592char4 __ovld __cnfn convert_char4_rtz(uchar4);
2593char4 __ovld __cnfn convert_char4_sat_rtz(uchar4);
2594char4 __ovld __cnfn convert_char4_rtp(uchar4);
2595char4 __ovld __cnfn convert_char4_sat_rtp(uchar4);
2596char4 __ovld __cnfn convert_char4_rtn(uchar4);
2597char4 __ovld __cnfn convert_char4_sat_rtn(uchar4);
2598char4 __ovld __cnfn convert_char4(uchar4);
2599char4 __ovld __cnfn convert_char4_sat(uchar4);
2600char4 __ovld __cnfn convert_char4_rte(short4);
2601char4 __ovld __cnfn convert_char4_sat_rte(short4);
2602char4 __ovld __cnfn convert_char4_rtz(short4);
2603char4 __ovld __cnfn convert_char4_sat_rtz(short4);
2604char4 __ovld __cnfn convert_char4_rtp(short4);
2605char4 __ovld __cnfn convert_char4_sat_rtp(short4);
2606char4 __ovld __cnfn convert_char4_rtn(short4);
2607char4 __ovld __cnfn convert_char4_sat_rtn(short4);
2608char4 __ovld __cnfn convert_char4(short4);
2609char4 __ovld __cnfn convert_char4_sat(short4);
2610char4 __ovld __cnfn convert_char4_rte(ushort4);
2611char4 __ovld __cnfn convert_char4_sat_rte(ushort4);
2612char4 __ovld __cnfn convert_char4_rtz(ushort4);
2613char4 __ovld __cnfn convert_char4_sat_rtz(ushort4);
2614char4 __ovld __cnfn convert_char4_rtp(ushort4);
2615char4 __ovld __cnfn convert_char4_sat_rtp(ushort4);
2616char4 __ovld __cnfn convert_char4_rtn(ushort4);
2617char4 __ovld __cnfn convert_char4_sat_rtn(ushort4);
2618char4 __ovld __cnfn convert_char4(ushort4);
2619char4 __ovld __cnfn convert_char4_sat(ushort4);
2620char4 __ovld __cnfn convert_char4_rte(int4);
2621char4 __ovld __cnfn convert_char4_sat_rte(int4);
2622char4 __ovld __cnfn convert_char4_rtz(int4);
2623char4 __ovld __cnfn convert_char4_sat_rtz(int4);
2624char4 __ovld __cnfn convert_char4_rtp(int4);
2625char4 __ovld __cnfn convert_char4_sat_rtp(int4);
2626char4 __ovld __cnfn convert_char4_rtn(int4);
2627char4 __ovld __cnfn convert_char4_sat_rtn(int4);
2628char4 __ovld __cnfn convert_char4(int4);
2629char4 __ovld __cnfn convert_char4_sat(int4);
2630char4 __ovld __cnfn convert_char4_rte(uint4);
2631char4 __ovld __cnfn convert_char4_sat_rte(uint4);
2632char4 __ovld __cnfn convert_char4_rtz(uint4);
2633char4 __ovld __cnfn convert_char4_sat_rtz(uint4);
2634char4 __ovld __cnfn convert_char4_rtp(uint4);
2635char4 __ovld __cnfn convert_char4_sat_rtp(uint4);
2636char4 __ovld __cnfn convert_char4_rtn(uint4);
2637char4 __ovld __cnfn convert_char4_sat_rtn(uint4);
2638char4 __ovld __cnfn convert_char4(uint4);
2639char4 __ovld __cnfn convert_char4_sat(uint4);
2640char4 __ovld __cnfn convert_char4_rte(long4);
2641char4 __ovld __cnfn convert_char4_sat_rte(long4);
2642char4 __ovld __cnfn convert_char4_rtz(long4);
2643char4 __ovld __cnfn convert_char4_sat_rtz(long4);
2644char4 __ovld __cnfn convert_char4_rtp(long4);
2645char4 __ovld __cnfn convert_char4_sat_rtp(long4);
2646char4 __ovld __cnfn convert_char4_rtn(long4);
2647char4 __ovld __cnfn convert_char4_sat_rtn(long4);
2648char4 __ovld __cnfn convert_char4(long4);
2649char4 __ovld __cnfn convert_char4_sat(long4);
2650char4 __ovld __cnfn convert_char4_rte(ulong4);
2651char4 __ovld __cnfn convert_char4_sat_rte(ulong4);
2652char4 __ovld __cnfn convert_char4_rtz(ulong4);
2653char4 __ovld __cnfn convert_char4_sat_rtz(ulong4);
2654char4 __ovld __cnfn convert_char4_rtp(ulong4);
2655char4 __ovld __cnfn convert_char4_sat_rtp(ulong4);
2656char4 __ovld __cnfn convert_char4_rtn(ulong4);
2657char4 __ovld __cnfn convert_char4_sat_rtn(ulong4);
2658char4 __ovld __cnfn convert_char4(ulong4);
2659char4 __ovld __cnfn convert_char4_sat(ulong4);
2660char4 __ovld __cnfn convert_char4_rte(float4);
2661char4 __ovld __cnfn convert_char4_sat_rte(float4);
2662char4 __ovld __cnfn convert_char4_rtz(float4);
2663char4 __ovld __cnfn convert_char4_sat_rtz(float4);
2664char4 __ovld __cnfn convert_char4_rtp(float4);
2665char4 __ovld __cnfn convert_char4_sat_rtp(float4);
2666char4 __ovld __cnfn convert_char4_rtn(float4);
2667char4 __ovld __cnfn convert_char4_sat_rtn(float4);
2668char4 __ovld __cnfn convert_char4(float4);
2669char4 __ovld __cnfn convert_char4_sat(float4);
2670uchar4 __ovld __cnfn convert_uchar4_rte(char4);
2671uchar4 __ovld __cnfn convert_uchar4_sat_rte(char4);
2672uchar4 __ovld __cnfn convert_uchar4_rtz(char4);
2673uchar4 __ovld __cnfn convert_uchar4_sat_rtz(char4);
2674uchar4 __ovld __cnfn convert_uchar4_rtp(char4);
2675uchar4 __ovld __cnfn convert_uchar4_sat_rtp(char4);
2676uchar4 __ovld __cnfn convert_uchar4_rtn(char4);
2677uchar4 __ovld __cnfn convert_uchar4_sat_rtn(char4);
2678uchar4 __ovld __cnfn convert_uchar4(char4);
2679uchar4 __ovld __cnfn convert_uchar4_sat(char4);
2680uchar4 __ovld __cnfn convert_uchar4_rte(uchar4);
2681uchar4 __ovld __cnfn convert_uchar4_sat_rte(uchar4);
2682uchar4 __ovld __cnfn convert_uchar4_rtz(uchar4);
2683uchar4 __ovld __cnfn convert_uchar4_sat_rtz(uchar4);
2684uchar4 __ovld __cnfn convert_uchar4_rtp(uchar4);
2685uchar4 __ovld __cnfn convert_uchar4_sat_rtp(uchar4);
2686uchar4 __ovld __cnfn convert_uchar4_rtn(uchar4);
2687uchar4 __ovld __cnfn convert_uchar4_sat_rtn(uchar4);
2688uchar4 __ovld __cnfn convert_uchar4(uchar4);
2689uchar4 __ovld __cnfn convert_uchar4_sat(uchar4);
2690uchar4 __ovld __cnfn convert_uchar4_rte(short4);
2691uchar4 __ovld __cnfn convert_uchar4_sat_rte(short4);
2692uchar4 __ovld __cnfn convert_uchar4_rtz(short4);
2693uchar4 __ovld __cnfn convert_uchar4_sat_rtz(short4);
2694uchar4 __ovld __cnfn convert_uchar4_rtp(short4);
2695uchar4 __ovld __cnfn convert_uchar4_sat_rtp(short4);
2696uchar4 __ovld __cnfn convert_uchar4_rtn(short4);
2697uchar4 __ovld __cnfn convert_uchar4_sat_rtn(short4);
2698uchar4 __ovld __cnfn convert_uchar4(short4);
2699uchar4 __ovld __cnfn convert_uchar4_sat(short4);
2700uchar4 __ovld __cnfn convert_uchar4_rte(ushort4);
2701uchar4 __ovld __cnfn convert_uchar4_sat_rte(ushort4);
2702uchar4 __ovld __cnfn convert_uchar4_rtz(ushort4);
2703uchar4 __ovld __cnfn convert_uchar4_sat_rtz(ushort4);
2704uchar4 __ovld __cnfn convert_uchar4_rtp(ushort4);
2705uchar4 __ovld __cnfn convert_uchar4_sat_rtp(ushort4);
2706uchar4 __ovld __cnfn convert_uchar4_rtn(ushort4);
2707uchar4 __ovld __cnfn convert_uchar4_sat_rtn(ushort4);
2708uchar4 __ovld __cnfn convert_uchar4(ushort4);
2709uchar4 __ovld __cnfn convert_uchar4_sat(ushort4);
2710uchar4 __ovld __cnfn convert_uchar4_rte(int4);
2711uchar4 __ovld __cnfn convert_uchar4_sat_rte(int4);
2712uchar4 __ovld __cnfn convert_uchar4_rtz(int4);
2713uchar4 __ovld __cnfn convert_uchar4_sat_rtz(int4);
2714uchar4 __ovld __cnfn convert_uchar4_rtp(int4);
2715uchar4 __ovld __cnfn convert_uchar4_sat_rtp(int4);
2716uchar4 __ovld __cnfn convert_uchar4_rtn(int4);
2717uchar4 __ovld __cnfn convert_uchar4_sat_rtn(int4);
2718uchar4 __ovld __cnfn convert_uchar4(int4);
2719uchar4 __ovld __cnfn convert_uchar4_sat(int4);
2720uchar4 __ovld __cnfn convert_uchar4_rte(uint4);
2721uchar4 __ovld __cnfn convert_uchar4_sat_rte(uint4);
2722uchar4 __ovld __cnfn convert_uchar4_rtz(uint4);
2723uchar4 __ovld __cnfn convert_uchar4_sat_rtz(uint4);
2724uchar4 __ovld __cnfn convert_uchar4_rtp(uint4);
2725uchar4 __ovld __cnfn convert_uchar4_sat_rtp(uint4);
2726uchar4 __ovld __cnfn convert_uchar4_rtn(uint4);
2727uchar4 __ovld __cnfn convert_uchar4_sat_rtn(uint4);
2728uchar4 __ovld __cnfn convert_uchar4(uint4);
2729uchar4 __ovld __cnfn convert_uchar4_sat(uint4);
2730uchar4 __ovld __cnfn convert_uchar4_rte(long4);
2731uchar4 __ovld __cnfn convert_uchar4_sat_rte(long4);
2732uchar4 __ovld __cnfn convert_uchar4_rtz(long4);
2733uchar4 __ovld __cnfn convert_uchar4_sat_rtz(long4);
2734uchar4 __ovld __cnfn convert_uchar4_rtp(long4);
2735uchar4 __ovld __cnfn convert_uchar4_sat_rtp(long4);
2736uchar4 __ovld __cnfn convert_uchar4_rtn(long4);
2737uchar4 __ovld __cnfn convert_uchar4_sat_rtn(long4);
2738uchar4 __ovld __cnfn convert_uchar4(long4);
2739uchar4 __ovld __cnfn convert_uchar4_sat(long4);
2740uchar4 __ovld __cnfn convert_uchar4_rte(ulong4);
2741uchar4 __ovld __cnfn convert_uchar4_sat_rte(ulong4);
2742uchar4 __ovld __cnfn convert_uchar4_rtz(ulong4);
2743uchar4 __ovld __cnfn convert_uchar4_sat_rtz(ulong4);
2744uchar4 __ovld __cnfn convert_uchar4_rtp(ulong4);
2745uchar4 __ovld __cnfn convert_uchar4_sat_rtp(ulong4);
2746uchar4 __ovld __cnfn convert_uchar4_rtn(ulong4);
2747uchar4 __ovld __cnfn convert_uchar4_sat_rtn(ulong4);
2748uchar4 __ovld __cnfn convert_uchar4(ulong4);
2749uchar4 __ovld __cnfn convert_uchar4_sat(ulong4);
2750uchar4 __ovld __cnfn convert_uchar4_rte(float4);
2751uchar4 __ovld __cnfn convert_uchar4_sat_rte(float4);
2752uchar4 __ovld __cnfn convert_uchar4_rtz(float4);
2753uchar4 __ovld __cnfn convert_uchar4_sat_rtz(float4);
2754uchar4 __ovld __cnfn convert_uchar4_rtp(float4);
2755uchar4 __ovld __cnfn convert_uchar4_sat_rtp(float4);
2756uchar4 __ovld __cnfn convert_uchar4_rtn(float4);
2757uchar4 __ovld __cnfn convert_uchar4_sat_rtn(float4);
2758uchar4 __ovld __cnfn convert_uchar4(float4);
2759uchar4 __ovld __cnfn convert_uchar4_sat(float4);
2760short4 __ovld __cnfn convert_short4_rte(char4);
2761short4 __ovld __cnfn convert_short4_sat_rte(char4);
2762short4 __ovld __cnfn convert_short4_rtz(char4);
2763short4 __ovld __cnfn convert_short4_sat_rtz(char4);
2764short4 __ovld __cnfn convert_short4_rtp(char4);
2765short4 __ovld __cnfn convert_short4_sat_rtp(char4);
2766short4 __ovld __cnfn convert_short4_rtn(char4);
2767short4 __ovld __cnfn convert_short4_sat_rtn(char4);
2768short4 __ovld __cnfn convert_short4(char4);
2769short4 __ovld __cnfn convert_short4_sat(char4);
2770short4 __ovld __cnfn convert_short4_rte(uchar4);
2771short4 __ovld __cnfn convert_short4_sat_rte(uchar4);
2772short4 __ovld __cnfn convert_short4_rtz(uchar4);
2773short4 __ovld __cnfn convert_short4_sat_rtz(uchar4);
2774short4 __ovld __cnfn convert_short4_rtp(uchar4);
2775short4 __ovld __cnfn convert_short4_sat_rtp(uchar4);
2776short4 __ovld __cnfn convert_short4_rtn(uchar4);
2777short4 __ovld __cnfn convert_short4_sat_rtn(uchar4);
2778short4 __ovld __cnfn convert_short4(uchar4);
2779short4 __ovld __cnfn convert_short4_sat(uchar4);
2780short4 __ovld __cnfn convert_short4_rte(short4);
2781short4 __ovld __cnfn convert_short4_sat_rte(short4);
2782short4 __ovld __cnfn convert_short4_rtz(short4);
2783short4 __ovld __cnfn convert_short4_sat_rtz(short4);
2784short4 __ovld __cnfn convert_short4_rtp(short4);
2785short4 __ovld __cnfn convert_short4_sat_rtp(short4);
2786short4 __ovld __cnfn convert_short4_rtn(short4);
2787short4 __ovld __cnfn convert_short4_sat_rtn(short4);
2788short4 __ovld __cnfn convert_short4(short4);
2789short4 __ovld __cnfn convert_short4_sat(short4);
2790short4 __ovld __cnfn convert_short4_rte(ushort4);
2791short4 __ovld __cnfn convert_short4_sat_rte(ushort4);
2792short4 __ovld __cnfn convert_short4_rtz(ushort4);
2793short4 __ovld __cnfn convert_short4_sat_rtz(ushort4);
2794short4 __ovld __cnfn convert_short4_rtp(ushort4);
2795short4 __ovld __cnfn convert_short4_sat_rtp(ushort4);
2796short4 __ovld __cnfn convert_short4_rtn(ushort4);
2797short4 __ovld __cnfn convert_short4_sat_rtn(ushort4);
2798short4 __ovld __cnfn convert_short4(ushort4);
2799short4 __ovld __cnfn convert_short4_sat(ushort4);
2800short4 __ovld __cnfn convert_short4_rte(int4);
2801short4 __ovld __cnfn convert_short4_sat_rte(int4);
2802short4 __ovld __cnfn convert_short4_rtz(int4);
2803short4 __ovld __cnfn convert_short4_sat_rtz(int4);
2804short4 __ovld __cnfn convert_short4_rtp(int4);
2805short4 __ovld __cnfn convert_short4_sat_rtp(int4);
2806short4 __ovld __cnfn convert_short4_rtn(int4);
2807short4 __ovld __cnfn convert_short4_sat_rtn(int4);
2808short4 __ovld __cnfn convert_short4(int4);
2809short4 __ovld __cnfn convert_short4_sat(int4);
2810short4 __ovld __cnfn convert_short4_rte(uint4);
2811short4 __ovld __cnfn convert_short4_sat_rte(uint4);
2812short4 __ovld __cnfn convert_short4_rtz(uint4);
2813short4 __ovld __cnfn convert_short4_sat_rtz(uint4);
2814short4 __ovld __cnfn convert_short4_rtp(uint4);
2815short4 __ovld __cnfn convert_short4_sat_rtp(uint4);
2816short4 __ovld __cnfn convert_short4_rtn(uint4);
2817short4 __ovld __cnfn convert_short4_sat_rtn(uint4);
2818short4 __ovld __cnfn convert_short4(uint4);
2819short4 __ovld __cnfn convert_short4_sat(uint4);
2820short4 __ovld __cnfn convert_short4_rte(long4);
2821short4 __ovld __cnfn convert_short4_sat_rte(long4);
2822short4 __ovld __cnfn convert_short4_rtz(long4);
2823short4 __ovld __cnfn convert_short4_sat_rtz(long4);
2824short4 __ovld __cnfn convert_short4_rtp(long4);
2825short4 __ovld __cnfn convert_short4_sat_rtp(long4);
2826short4 __ovld __cnfn convert_short4_rtn(long4);
2827short4 __ovld __cnfn convert_short4_sat_rtn(long4);
2828short4 __ovld __cnfn convert_short4(long4);
2829short4 __ovld __cnfn convert_short4_sat(long4);
2830short4 __ovld __cnfn convert_short4_rte(ulong4);
2831short4 __ovld __cnfn convert_short4_sat_rte(ulong4);
2832short4 __ovld __cnfn convert_short4_rtz(ulong4);
2833short4 __ovld __cnfn convert_short4_sat_rtz(ulong4);
2834short4 __ovld __cnfn convert_short4_rtp(ulong4);
2835short4 __ovld __cnfn convert_short4_sat_rtp(ulong4);
2836short4 __ovld __cnfn convert_short4_rtn(ulong4);
2837short4 __ovld __cnfn convert_short4_sat_rtn(ulong4);
2838short4 __ovld __cnfn convert_short4(ulong4);
2839short4 __ovld __cnfn convert_short4_sat(ulong4);
2840short4 __ovld __cnfn convert_short4_rte(float4);
2841short4 __ovld __cnfn convert_short4_sat_rte(float4);
2842short4 __ovld __cnfn convert_short4_rtz(float4);
2843short4 __ovld __cnfn convert_short4_sat_rtz(float4);
2844short4 __ovld __cnfn convert_short4_rtp(float4);
2845short4 __ovld __cnfn convert_short4_sat_rtp(float4);
2846short4 __ovld __cnfn convert_short4_rtn(float4);
2847short4 __ovld __cnfn convert_short4_sat_rtn(float4);
2848short4 __ovld __cnfn convert_short4(float4);
2849short4 __ovld __cnfn convert_short4_sat(float4);
2850ushort4 __ovld __cnfn convert_ushort4_rte(char4);
2851ushort4 __ovld __cnfn convert_ushort4_sat_rte(char4);
2852ushort4 __ovld __cnfn convert_ushort4_rtz(char4);
2853ushort4 __ovld __cnfn convert_ushort4_sat_rtz(char4);
2854ushort4 __ovld __cnfn convert_ushort4_rtp(char4);
2855ushort4 __ovld __cnfn convert_ushort4_sat_rtp(char4);
2856ushort4 __ovld __cnfn convert_ushort4_rtn(char4);
2857ushort4 __ovld __cnfn convert_ushort4_sat_rtn(char4);
2858ushort4 __ovld __cnfn convert_ushort4(char4);
2859ushort4 __ovld __cnfn convert_ushort4_sat(char4);
2860ushort4 __ovld __cnfn convert_ushort4_rte(uchar4);
2861ushort4 __ovld __cnfn convert_ushort4_sat_rte(uchar4);
2862ushort4 __ovld __cnfn convert_ushort4_rtz(uchar4);
2863ushort4 __ovld __cnfn convert_ushort4_sat_rtz(uchar4);
2864ushort4 __ovld __cnfn convert_ushort4_rtp(uchar4);
2865ushort4 __ovld __cnfn convert_ushort4_sat_rtp(uchar4);
2866ushort4 __ovld __cnfn convert_ushort4_rtn(uchar4);
2867ushort4 __ovld __cnfn convert_ushort4_sat_rtn(uchar4);
2868ushort4 __ovld __cnfn convert_ushort4(uchar4);
2869ushort4 __ovld __cnfn convert_ushort4_sat(uchar4);
2870ushort4 __ovld __cnfn convert_ushort4_rte(short4);
2871ushort4 __ovld __cnfn convert_ushort4_sat_rte(short4);
2872ushort4 __ovld __cnfn convert_ushort4_rtz(short4);
2873ushort4 __ovld __cnfn convert_ushort4_sat_rtz(short4);
2874ushort4 __ovld __cnfn convert_ushort4_rtp(short4);
2875ushort4 __ovld __cnfn convert_ushort4_sat_rtp(short4);
2876ushort4 __ovld __cnfn convert_ushort4_rtn(short4);
2877ushort4 __ovld __cnfn convert_ushort4_sat_rtn(short4);
2878ushort4 __ovld __cnfn convert_ushort4(short4);
2879ushort4 __ovld __cnfn convert_ushort4_sat(short4);
2880ushort4 __ovld __cnfn convert_ushort4_rte(ushort4);
2881ushort4 __ovld __cnfn convert_ushort4_sat_rte(ushort4);
2882ushort4 __ovld __cnfn convert_ushort4_rtz(ushort4);
2883ushort4 __ovld __cnfn convert_ushort4_sat_rtz(ushort4);
2884ushort4 __ovld __cnfn convert_ushort4_rtp(ushort4);
2885ushort4 __ovld __cnfn convert_ushort4_sat_rtp(ushort4);
2886ushort4 __ovld __cnfn convert_ushort4_rtn(ushort4);
2887ushort4 __ovld __cnfn convert_ushort4_sat_rtn(ushort4);
2888ushort4 __ovld __cnfn convert_ushort4(ushort4);
2889ushort4 __ovld __cnfn convert_ushort4_sat(ushort4);
2890ushort4 __ovld __cnfn convert_ushort4_rte(int4);
2891ushort4 __ovld __cnfn convert_ushort4_sat_rte(int4);
2892ushort4 __ovld __cnfn convert_ushort4_rtz(int4);
2893ushort4 __ovld __cnfn convert_ushort4_sat_rtz(int4);
2894ushort4 __ovld __cnfn convert_ushort4_rtp(int4);
2895ushort4 __ovld __cnfn convert_ushort4_sat_rtp(int4);
2896ushort4 __ovld __cnfn convert_ushort4_rtn(int4);
2897ushort4 __ovld __cnfn convert_ushort4_sat_rtn(int4);
2898ushort4 __ovld __cnfn convert_ushort4(int4);
2899ushort4 __ovld __cnfn convert_ushort4_sat(int4);
2900ushort4 __ovld __cnfn convert_ushort4_rte(uint4);
2901ushort4 __ovld __cnfn convert_ushort4_sat_rte(uint4);
2902ushort4 __ovld __cnfn convert_ushort4_rtz(uint4);
2903ushort4 __ovld __cnfn convert_ushort4_sat_rtz(uint4);
2904ushort4 __ovld __cnfn convert_ushort4_rtp(uint4);
2905ushort4 __ovld __cnfn convert_ushort4_sat_rtp(uint4);
2906ushort4 __ovld __cnfn convert_ushort4_rtn(uint4);
2907ushort4 __ovld __cnfn convert_ushort4_sat_rtn(uint4);
2908ushort4 __ovld __cnfn convert_ushort4(uint4);
2909ushort4 __ovld __cnfn convert_ushort4_sat(uint4);
2910ushort4 __ovld __cnfn convert_ushort4_rte(long4);
2911ushort4 __ovld __cnfn convert_ushort4_sat_rte(long4);
2912ushort4 __ovld __cnfn convert_ushort4_rtz(long4);
2913ushort4 __ovld __cnfn convert_ushort4_sat_rtz(long4);
2914ushort4 __ovld __cnfn convert_ushort4_rtp(long4);
2915ushort4 __ovld __cnfn convert_ushort4_sat_rtp(long4);
2916ushort4 __ovld __cnfn convert_ushort4_rtn(long4);
2917ushort4 __ovld __cnfn convert_ushort4_sat_rtn(long4);
2918ushort4 __ovld __cnfn convert_ushort4(long4);
2919ushort4 __ovld __cnfn convert_ushort4_sat(long4);
2920ushort4 __ovld __cnfn convert_ushort4_rte(ulong4);
2921ushort4 __ovld __cnfn convert_ushort4_sat_rte(ulong4);
2922ushort4 __ovld __cnfn convert_ushort4_rtz(ulong4);
2923ushort4 __ovld __cnfn convert_ushort4_sat_rtz(ulong4);
2924ushort4 __ovld __cnfn convert_ushort4_rtp(ulong4);
2925ushort4 __ovld __cnfn convert_ushort4_sat_rtp(ulong4);
2926ushort4 __ovld __cnfn convert_ushort4_rtn(ulong4);
2927ushort4 __ovld __cnfn convert_ushort4_sat_rtn(ulong4);
2928ushort4 __ovld __cnfn convert_ushort4(ulong4);
2929ushort4 __ovld __cnfn convert_ushort4_sat(ulong4);
2930ushort4 __ovld __cnfn convert_ushort4_rte(float4);
2931ushort4 __ovld __cnfn convert_ushort4_sat_rte(float4);
2932ushort4 __ovld __cnfn convert_ushort4_rtz(float4);
2933ushort4 __ovld __cnfn convert_ushort4_sat_rtz(float4);
2934ushort4 __ovld __cnfn convert_ushort4_rtp(float4);
2935ushort4 __ovld __cnfn convert_ushort4_sat_rtp(float4);
2936ushort4 __ovld __cnfn convert_ushort4_rtn(float4);
2937ushort4 __ovld __cnfn convert_ushort4_sat_rtn(float4);
2938ushort4 __ovld __cnfn convert_ushort4(float4);
2939ushort4 __ovld __cnfn convert_ushort4_sat(float4);
2940int4 __ovld __cnfn convert_int4_rte(char4);
2941int4 __ovld __cnfn convert_int4_sat_rte(char4);
2942int4 __ovld __cnfn convert_int4_rtz(char4);
2943int4 __ovld __cnfn convert_int4_sat_rtz(char4);
2944int4 __ovld __cnfn convert_int4_rtp(char4);
2945int4 __ovld __cnfn convert_int4_sat_rtp(char4);
2946int4 __ovld __cnfn convert_int4_rtn(char4);
2947int4 __ovld __cnfn convert_int4_sat_rtn(char4);
2948int4 __ovld __cnfn convert_int4(char4);
2949int4 __ovld __cnfn convert_int4_sat(char4);
2950int4 __ovld __cnfn convert_int4_rte(uchar4);
2951int4 __ovld __cnfn convert_int4_sat_rte(uchar4);
2952int4 __ovld __cnfn convert_int4_rtz(uchar4);
2953int4 __ovld __cnfn convert_int4_sat_rtz(uchar4);
2954int4 __ovld __cnfn convert_int4_rtp(uchar4);
2955int4 __ovld __cnfn convert_int4_sat_rtp(uchar4);
2956int4 __ovld __cnfn convert_int4_rtn(uchar4);
2957int4 __ovld __cnfn convert_int4_sat_rtn(uchar4);
2958int4 __ovld __cnfn convert_int4(uchar4);
2959int4 __ovld __cnfn convert_int4_sat(uchar4);
2960int4 __ovld __cnfn convert_int4_rte(short4);
2961int4 __ovld __cnfn convert_int4_sat_rte(short4);
2962int4 __ovld __cnfn convert_int4_rtz(short4);
2963int4 __ovld __cnfn convert_int4_sat_rtz(short4);
2964int4 __ovld __cnfn convert_int4_rtp(short4);
2965int4 __ovld __cnfn convert_int4_sat_rtp(short4);
2966int4 __ovld __cnfn convert_int4_rtn(short4);
2967int4 __ovld __cnfn convert_int4_sat_rtn(short4);
2968int4 __ovld __cnfn convert_int4(short4);
2969int4 __ovld __cnfn convert_int4_sat(short4);
2970int4 __ovld __cnfn convert_int4_rte(ushort4);
2971int4 __ovld __cnfn convert_int4_sat_rte(ushort4);
2972int4 __ovld __cnfn convert_int4_rtz(ushort4);
2973int4 __ovld __cnfn convert_int4_sat_rtz(ushort4);
2974int4 __ovld __cnfn convert_int4_rtp(ushort4);
2975int4 __ovld __cnfn convert_int4_sat_rtp(ushort4);
2976int4 __ovld __cnfn convert_int4_rtn(ushort4);
2977int4 __ovld __cnfn convert_int4_sat_rtn(ushort4);
2978int4 __ovld __cnfn convert_int4(ushort4);
2979int4 __ovld __cnfn convert_int4_sat(ushort4);
2980int4 __ovld __cnfn convert_int4_rte(int4);
2981int4 __ovld __cnfn convert_int4_sat_rte(int4);
2982int4 __ovld __cnfn convert_int4_rtz(int4);
2983int4 __ovld __cnfn convert_int4_sat_rtz(int4);
2984int4 __ovld __cnfn convert_int4_rtp(int4);
2985int4 __ovld __cnfn convert_int4_sat_rtp(int4);
2986int4 __ovld __cnfn convert_int4_rtn(int4);
2987int4 __ovld __cnfn convert_int4_sat_rtn(int4);
2988int4 __ovld __cnfn convert_int4(int4);
2989int4 __ovld __cnfn convert_int4_sat(int4);
2990int4 __ovld __cnfn convert_int4_rte(uint4);
2991int4 __ovld __cnfn convert_int4_sat_rte(uint4);
2992int4 __ovld __cnfn convert_int4_rtz(uint4);
2993int4 __ovld __cnfn convert_int4_sat_rtz(uint4);
2994int4 __ovld __cnfn convert_int4_rtp(uint4);
2995int4 __ovld __cnfn convert_int4_sat_rtp(uint4);
2996int4 __ovld __cnfn convert_int4_rtn(uint4);
2997int4 __ovld __cnfn convert_int4_sat_rtn(uint4);
2998int4 __ovld __cnfn convert_int4(uint4);
2999int4 __ovld __cnfn convert_int4_sat(uint4);
3000int4 __ovld __cnfn convert_int4_rte(long4);
3001int4 __ovld __cnfn convert_int4_sat_rte(long4);
3002int4 __ovld __cnfn convert_int4_rtz(long4);
3003int4 __ovld __cnfn convert_int4_sat_rtz(long4);
3004int4 __ovld __cnfn convert_int4_rtp(long4);
3005int4 __ovld __cnfn convert_int4_sat_rtp(long4);
3006int4 __ovld __cnfn convert_int4_rtn(long4);
3007int4 __ovld __cnfn convert_int4_sat_rtn(long4);
3008int4 __ovld __cnfn convert_int4(long4);
3009int4 __ovld __cnfn convert_int4_sat(long4);
3010int4 __ovld __cnfn convert_int4_rte(ulong4);
3011int4 __ovld __cnfn convert_int4_sat_rte(ulong4);
3012int4 __ovld __cnfn convert_int4_rtz(ulong4);
3013int4 __ovld __cnfn convert_int4_sat_rtz(ulong4);
3014int4 __ovld __cnfn convert_int4_rtp(ulong4);
3015int4 __ovld __cnfn convert_int4_sat_rtp(ulong4);
3016int4 __ovld __cnfn convert_int4_rtn(ulong4);
3017int4 __ovld __cnfn convert_int4_sat_rtn(ulong4);
3018int4 __ovld __cnfn convert_int4(ulong4);
3019int4 __ovld __cnfn convert_int4_sat(ulong4);
3020int4 __ovld __cnfn convert_int4_rte(float4);
3021int4 __ovld __cnfn convert_int4_sat_rte(float4);
3022int4 __ovld __cnfn convert_int4_rtz(float4);
3023int4 __ovld __cnfn convert_int4_sat_rtz(float4);
3024int4 __ovld __cnfn convert_int4_rtp(float4);
3025int4 __ovld __cnfn convert_int4_sat_rtp(float4);
3026int4 __ovld __cnfn convert_int4_rtn(float4);
3027int4 __ovld __cnfn convert_int4_sat_rtn(float4);
3028int4 __ovld __cnfn convert_int4(float4);
3029int4 __ovld __cnfn convert_int4_sat(float4);
3030uint4 __ovld __cnfn convert_uint4_rte(char4);
3031uint4 __ovld __cnfn convert_uint4_sat_rte(char4);
3032uint4 __ovld __cnfn convert_uint4_rtz(char4);
3033uint4 __ovld __cnfn convert_uint4_sat_rtz(char4);
3034uint4 __ovld __cnfn convert_uint4_rtp(char4);
3035uint4 __ovld __cnfn convert_uint4_sat_rtp(char4);
3036uint4 __ovld __cnfn convert_uint4_rtn(char4);
3037uint4 __ovld __cnfn convert_uint4_sat_rtn(char4);
3038uint4 __ovld __cnfn convert_uint4(char4);
3039uint4 __ovld __cnfn convert_uint4_sat(char4);
3040uint4 __ovld __cnfn convert_uint4_rte(uchar4);
3041uint4 __ovld __cnfn convert_uint4_sat_rte(uchar4);
3042uint4 __ovld __cnfn convert_uint4_rtz(uchar4);
3043uint4 __ovld __cnfn convert_uint4_sat_rtz(uchar4);
3044uint4 __ovld __cnfn convert_uint4_rtp(uchar4);
3045uint4 __ovld __cnfn convert_uint4_sat_rtp(uchar4);
3046uint4 __ovld __cnfn convert_uint4_rtn(uchar4);
3047uint4 __ovld __cnfn convert_uint4_sat_rtn(uchar4);
3048uint4 __ovld __cnfn convert_uint4(uchar4);
3049uint4 __ovld __cnfn convert_uint4_sat(uchar4);
3050uint4 __ovld __cnfn convert_uint4_rte(short4);
3051uint4 __ovld __cnfn convert_uint4_sat_rte(short4);
3052uint4 __ovld __cnfn convert_uint4_rtz(short4);
3053uint4 __ovld __cnfn convert_uint4_sat_rtz(short4);
3054uint4 __ovld __cnfn convert_uint4_rtp(short4);
3055uint4 __ovld __cnfn convert_uint4_sat_rtp(short4);
3056uint4 __ovld __cnfn convert_uint4_rtn(short4);
3057uint4 __ovld __cnfn convert_uint4_sat_rtn(short4);
3058uint4 __ovld __cnfn convert_uint4(short4);
3059uint4 __ovld __cnfn convert_uint4_sat(short4);
3060uint4 __ovld __cnfn convert_uint4_rte(ushort4);
3061uint4 __ovld __cnfn convert_uint4_sat_rte(ushort4);
3062uint4 __ovld __cnfn convert_uint4_rtz(ushort4);
3063uint4 __ovld __cnfn convert_uint4_sat_rtz(ushort4);
3064uint4 __ovld __cnfn convert_uint4_rtp(ushort4);
3065uint4 __ovld __cnfn convert_uint4_sat_rtp(ushort4);
3066uint4 __ovld __cnfn convert_uint4_rtn(ushort4);
3067uint4 __ovld __cnfn convert_uint4_sat_rtn(ushort4);
3068uint4 __ovld __cnfn convert_uint4(ushort4);
3069uint4 __ovld __cnfn convert_uint4_sat(ushort4);
3070uint4 __ovld __cnfn convert_uint4_rte(int4);
3071uint4 __ovld __cnfn convert_uint4_sat_rte(int4);
3072uint4 __ovld __cnfn convert_uint4_rtz(int4);
3073uint4 __ovld __cnfn convert_uint4_sat_rtz(int4);
3074uint4 __ovld __cnfn convert_uint4_rtp(int4);
3075uint4 __ovld __cnfn convert_uint4_sat_rtp(int4);
3076uint4 __ovld __cnfn convert_uint4_rtn(int4);
3077uint4 __ovld __cnfn convert_uint4_sat_rtn(int4);
3078uint4 __ovld __cnfn convert_uint4(int4);
3079uint4 __ovld __cnfn convert_uint4_sat(int4);
3080uint4 __ovld __cnfn convert_uint4_rte(uint4);
3081uint4 __ovld __cnfn convert_uint4_sat_rte(uint4);
3082uint4 __ovld __cnfn convert_uint4_rtz(uint4);
3083uint4 __ovld __cnfn convert_uint4_sat_rtz(uint4);
3084uint4 __ovld __cnfn convert_uint4_rtp(uint4);
3085uint4 __ovld __cnfn convert_uint4_sat_rtp(uint4);
3086uint4 __ovld __cnfn convert_uint4_rtn(uint4);
3087uint4 __ovld __cnfn convert_uint4_sat_rtn(uint4);
3088uint4 __ovld __cnfn convert_uint4(uint4);
3089uint4 __ovld __cnfn convert_uint4_sat(uint4);
3090uint4 __ovld __cnfn convert_uint4_rte(long4);
3091uint4 __ovld __cnfn convert_uint4_sat_rte(long4);
3092uint4 __ovld __cnfn convert_uint4_rtz(long4);
3093uint4 __ovld __cnfn convert_uint4_sat_rtz(long4);
3094uint4 __ovld __cnfn convert_uint4_rtp(long4);
3095uint4 __ovld __cnfn convert_uint4_sat_rtp(long4);
3096uint4 __ovld __cnfn convert_uint4_rtn(long4);
3097uint4 __ovld __cnfn convert_uint4_sat_rtn(long4);
3098uint4 __ovld __cnfn convert_uint4(long4);
3099uint4 __ovld __cnfn convert_uint4_sat(long4);
3100uint4 __ovld __cnfn convert_uint4_rte(ulong4);
3101uint4 __ovld __cnfn convert_uint4_sat_rte(ulong4);
3102uint4 __ovld __cnfn convert_uint4_rtz(ulong4);
3103uint4 __ovld __cnfn convert_uint4_sat_rtz(ulong4);
3104uint4 __ovld __cnfn convert_uint4_rtp(ulong4);
3105uint4 __ovld __cnfn convert_uint4_sat_rtp(ulong4);
3106uint4 __ovld __cnfn convert_uint4_rtn(ulong4);
3107uint4 __ovld __cnfn convert_uint4_sat_rtn(ulong4);
3108uint4 __ovld __cnfn convert_uint4(ulong4);
3109uint4 __ovld __cnfn convert_uint4_sat(ulong4);
3110uint4 __ovld __cnfn convert_uint4_rte(float4);
3111uint4 __ovld __cnfn convert_uint4_sat_rte(float4);
3112uint4 __ovld __cnfn convert_uint4_rtz(float4);
3113uint4 __ovld __cnfn convert_uint4_sat_rtz(float4);
3114uint4 __ovld __cnfn convert_uint4_rtp(float4);
3115uint4 __ovld __cnfn convert_uint4_sat_rtp(float4);
3116uint4 __ovld __cnfn convert_uint4_rtn(float4);
3117uint4 __ovld __cnfn convert_uint4_sat_rtn(float4);
3118uint4 __ovld __cnfn convert_uint4(float4);
3119uint4 __ovld __cnfn convert_uint4_sat(float4);
3120long4 __ovld __cnfn convert_long4_rte(char4);
3121long4 __ovld __cnfn convert_long4_sat_rte(char4);
3122long4 __ovld __cnfn convert_long4_rtz(char4);
3123long4 __ovld __cnfn convert_long4_sat_rtz(char4);
3124long4 __ovld __cnfn convert_long4_rtp(char4);
3125long4 __ovld __cnfn convert_long4_sat_rtp(char4);
3126long4 __ovld __cnfn convert_long4_rtn(char4);
3127long4 __ovld __cnfn convert_long4_sat_rtn(char4);
3128long4 __ovld __cnfn convert_long4(char4);
3129long4 __ovld __cnfn convert_long4_sat(char4);
3130long4 __ovld __cnfn convert_long4_rte(uchar4);
3131long4 __ovld __cnfn convert_long4_sat_rte(uchar4);
3132long4 __ovld __cnfn convert_long4_rtz(uchar4);
3133long4 __ovld __cnfn convert_long4_sat_rtz(uchar4);
3134long4 __ovld __cnfn convert_long4_rtp(uchar4);
3135long4 __ovld __cnfn convert_long4_sat_rtp(uchar4);
3136long4 __ovld __cnfn convert_long4_rtn(uchar4);
3137long4 __ovld __cnfn convert_long4_sat_rtn(uchar4);
3138long4 __ovld __cnfn convert_long4(uchar4);
3139long4 __ovld __cnfn convert_long4_sat(uchar4);
3140long4 __ovld __cnfn convert_long4_rte(short4);
3141long4 __ovld __cnfn convert_long4_sat_rte(short4);
3142long4 __ovld __cnfn convert_long4_rtz(short4);
3143long4 __ovld __cnfn convert_long4_sat_rtz(short4);
3144long4 __ovld __cnfn convert_long4_rtp(short4);
3145long4 __ovld __cnfn convert_long4_sat_rtp(short4);
3146long4 __ovld __cnfn convert_long4_rtn(short4);
3147long4 __ovld __cnfn convert_long4_sat_rtn(short4);
3148long4 __ovld __cnfn convert_long4(short4);
3149long4 __ovld __cnfn convert_long4_sat(short4);
3150long4 __ovld __cnfn convert_long4_rte(ushort4);
3151long4 __ovld __cnfn convert_long4_sat_rte(ushort4);
3152long4 __ovld __cnfn convert_long4_rtz(ushort4);
3153long4 __ovld __cnfn convert_long4_sat_rtz(ushort4);
3154long4 __ovld __cnfn convert_long4_rtp(ushort4);
3155long4 __ovld __cnfn convert_long4_sat_rtp(ushort4);
3156long4 __ovld __cnfn convert_long4_rtn(ushort4);
3157long4 __ovld __cnfn convert_long4_sat_rtn(ushort4);
3158long4 __ovld __cnfn convert_long4(ushort4);
3159long4 __ovld __cnfn convert_long4_sat(ushort4);
3160long4 __ovld __cnfn convert_long4_rte(int4);
3161long4 __ovld __cnfn convert_long4_sat_rte(int4);
3162long4 __ovld __cnfn convert_long4_rtz(int4);
3163long4 __ovld __cnfn convert_long4_sat_rtz(int4);
3164long4 __ovld __cnfn convert_long4_rtp(int4);
3165long4 __ovld __cnfn convert_long4_sat_rtp(int4);
3166long4 __ovld __cnfn convert_long4_rtn(int4);
3167long4 __ovld __cnfn convert_long4_sat_rtn(int4);
3168long4 __ovld __cnfn convert_long4(int4);
3169long4 __ovld __cnfn convert_long4_sat(int4);
3170long4 __ovld __cnfn convert_long4_rte(uint4);
3171long4 __ovld __cnfn convert_long4_sat_rte(uint4);
3172long4 __ovld __cnfn convert_long4_rtz(uint4);
3173long4 __ovld __cnfn convert_long4_sat_rtz(uint4);
3174long4 __ovld __cnfn convert_long4_rtp(uint4);
3175long4 __ovld __cnfn convert_long4_sat_rtp(uint4);
3176long4 __ovld __cnfn convert_long4_rtn(uint4);
3177long4 __ovld __cnfn convert_long4_sat_rtn(uint4);
3178long4 __ovld __cnfn convert_long4(uint4);
3179long4 __ovld __cnfn convert_long4_sat(uint4);
3180long4 __ovld __cnfn convert_long4_rte(long4);
3181long4 __ovld __cnfn convert_long4_sat_rte(long4);
3182long4 __ovld __cnfn convert_long4_rtz(long4);
3183long4 __ovld __cnfn convert_long4_sat_rtz(long4);
3184long4 __ovld __cnfn convert_long4_rtp(long4);
3185long4 __ovld __cnfn convert_long4_sat_rtp(long4);
3186long4 __ovld __cnfn convert_long4_rtn(long4);
3187long4 __ovld __cnfn convert_long4_sat_rtn(long4);
3188long4 __ovld __cnfn convert_long4(long4);
3189long4 __ovld __cnfn convert_long4_sat(long4);
3190long4 __ovld __cnfn convert_long4_rte(ulong4);
3191long4 __ovld __cnfn convert_long4_sat_rte(ulong4);
3192long4 __ovld __cnfn convert_long4_rtz(ulong4);
3193long4 __ovld __cnfn convert_long4_sat_rtz(ulong4);
3194long4 __ovld __cnfn convert_long4_rtp(ulong4);
3195long4 __ovld __cnfn convert_long4_sat_rtp(ulong4);
3196long4 __ovld __cnfn convert_long4_rtn(ulong4);
3197long4 __ovld __cnfn convert_long4_sat_rtn(ulong4);
3198long4 __ovld __cnfn convert_long4(ulong4);
3199long4 __ovld __cnfn convert_long4_sat(ulong4);
3200long4 __ovld __cnfn convert_long4_rte(float4);
3201long4 __ovld __cnfn convert_long4_sat_rte(float4);
3202long4 __ovld __cnfn convert_long4_rtz(float4);
3203long4 __ovld __cnfn convert_long4_sat_rtz(float4);
3204long4 __ovld __cnfn convert_long4_rtp(float4);
3205long4 __ovld __cnfn convert_long4_sat_rtp(float4);
3206long4 __ovld __cnfn convert_long4_rtn(float4);
3207long4 __ovld __cnfn convert_long4_sat_rtn(float4);
3208long4 __ovld __cnfn convert_long4(float4);
3209long4 __ovld __cnfn convert_long4_sat(float4);
3210ulong4 __ovld __cnfn convert_ulong4_rte(char4);
3211ulong4 __ovld __cnfn convert_ulong4_sat_rte(char4);
3212ulong4 __ovld __cnfn convert_ulong4_rtz(char4);
3213ulong4 __ovld __cnfn convert_ulong4_sat_rtz(char4);
3214ulong4 __ovld __cnfn convert_ulong4_rtp(char4);
3215ulong4 __ovld __cnfn convert_ulong4_sat_rtp(char4);
3216ulong4 __ovld __cnfn convert_ulong4_rtn(char4);
3217ulong4 __ovld __cnfn convert_ulong4_sat_rtn(char4);
3218ulong4 __ovld __cnfn convert_ulong4(char4);
3219ulong4 __ovld __cnfn convert_ulong4_sat(char4);
3220ulong4 __ovld __cnfn convert_ulong4_rte(uchar4);
3221ulong4 __ovld __cnfn convert_ulong4_sat_rte(uchar4);
3222ulong4 __ovld __cnfn convert_ulong4_rtz(uchar4);
3223ulong4 __ovld __cnfn convert_ulong4_sat_rtz(uchar4);
3224ulong4 __ovld __cnfn convert_ulong4_rtp(uchar4);
3225ulong4 __ovld __cnfn convert_ulong4_sat_rtp(uchar4);
3226ulong4 __ovld __cnfn convert_ulong4_rtn(uchar4);
3227ulong4 __ovld __cnfn convert_ulong4_sat_rtn(uchar4);
3228ulong4 __ovld __cnfn convert_ulong4(uchar4);
3229ulong4 __ovld __cnfn convert_ulong4_sat(uchar4);
3230ulong4 __ovld __cnfn convert_ulong4_rte(short4);
3231ulong4 __ovld __cnfn convert_ulong4_sat_rte(short4);
3232ulong4 __ovld __cnfn convert_ulong4_rtz(short4);
3233ulong4 __ovld __cnfn convert_ulong4_sat_rtz(short4);
3234ulong4 __ovld __cnfn convert_ulong4_rtp(short4);
3235ulong4 __ovld __cnfn convert_ulong4_sat_rtp(short4);
3236ulong4 __ovld __cnfn convert_ulong4_rtn(short4);
3237ulong4 __ovld __cnfn convert_ulong4_sat_rtn(short4);
3238ulong4 __ovld __cnfn convert_ulong4(short4);
3239ulong4 __ovld __cnfn convert_ulong4_sat(short4);
3240ulong4 __ovld __cnfn convert_ulong4_rte(ushort4);
3241ulong4 __ovld __cnfn convert_ulong4_sat_rte(ushort4);
3242ulong4 __ovld __cnfn convert_ulong4_rtz(ushort4);
3243ulong4 __ovld __cnfn convert_ulong4_sat_rtz(ushort4);
3244ulong4 __ovld __cnfn convert_ulong4_rtp(ushort4);
3245ulong4 __ovld __cnfn convert_ulong4_sat_rtp(ushort4);
3246ulong4 __ovld __cnfn convert_ulong4_rtn(ushort4);
3247ulong4 __ovld __cnfn convert_ulong4_sat_rtn(ushort4);
3248ulong4 __ovld __cnfn convert_ulong4(ushort4);
3249ulong4 __ovld __cnfn convert_ulong4_sat(ushort4);
3250ulong4 __ovld __cnfn convert_ulong4_rte(int4);
3251ulong4 __ovld __cnfn convert_ulong4_sat_rte(int4);
3252ulong4 __ovld __cnfn convert_ulong4_rtz(int4);
3253ulong4 __ovld __cnfn convert_ulong4_sat_rtz(int4);
3254ulong4 __ovld __cnfn convert_ulong4_rtp(int4);
3255ulong4 __ovld __cnfn convert_ulong4_sat_rtp(int4);
3256ulong4 __ovld __cnfn convert_ulong4_rtn(int4);
3257ulong4 __ovld __cnfn convert_ulong4_sat_rtn(int4);
3258ulong4 __ovld __cnfn convert_ulong4(int4);
3259ulong4 __ovld __cnfn convert_ulong4_sat(int4);
3260ulong4 __ovld __cnfn convert_ulong4_rte(uint4);
3261ulong4 __ovld __cnfn convert_ulong4_sat_rte(uint4);
3262ulong4 __ovld __cnfn convert_ulong4_rtz(uint4);
3263ulong4 __ovld __cnfn convert_ulong4_sat_rtz(uint4);
3264ulong4 __ovld __cnfn convert_ulong4_rtp(uint4);
3265ulong4 __ovld __cnfn convert_ulong4_sat_rtp(uint4);
3266ulong4 __ovld __cnfn convert_ulong4_rtn(uint4);
3267ulong4 __ovld __cnfn convert_ulong4_sat_rtn(uint4);
3268ulong4 __ovld __cnfn convert_ulong4(uint4);
3269ulong4 __ovld __cnfn convert_ulong4_sat(uint4);
3270ulong4 __ovld __cnfn convert_ulong4_rte(long4);
3271ulong4 __ovld __cnfn convert_ulong4_sat_rte(long4);
3272ulong4 __ovld __cnfn convert_ulong4_rtz(long4);
3273ulong4 __ovld __cnfn convert_ulong4_sat_rtz(long4);
3274ulong4 __ovld __cnfn convert_ulong4_rtp(long4);
3275ulong4 __ovld __cnfn convert_ulong4_sat_rtp(long4);
3276ulong4 __ovld __cnfn convert_ulong4_rtn(long4);
3277ulong4 __ovld __cnfn convert_ulong4_sat_rtn(long4);
3278ulong4 __ovld __cnfn convert_ulong4(long4);
3279ulong4 __ovld __cnfn convert_ulong4_sat(long4);
3280ulong4 __ovld __cnfn convert_ulong4_rte(ulong4);
3281ulong4 __ovld __cnfn convert_ulong4_sat_rte(ulong4);
3282ulong4 __ovld __cnfn convert_ulong4_rtz(ulong4);
3283ulong4 __ovld __cnfn convert_ulong4_sat_rtz(ulong4);
3284ulong4 __ovld __cnfn convert_ulong4_rtp(ulong4);
3285ulong4 __ovld __cnfn convert_ulong4_sat_rtp(ulong4);
3286ulong4 __ovld __cnfn convert_ulong4_rtn(ulong4);
3287ulong4 __ovld __cnfn convert_ulong4_sat_rtn(ulong4);
3288ulong4 __ovld __cnfn convert_ulong4(ulong4);
3289ulong4 __ovld __cnfn convert_ulong4_sat(ulong4);
3290ulong4 __ovld __cnfn convert_ulong4_rte(float4);
3291ulong4 __ovld __cnfn convert_ulong4_sat_rte(float4);
3292ulong4 __ovld __cnfn convert_ulong4_rtz(float4);
3293ulong4 __ovld __cnfn convert_ulong4_sat_rtz(float4);
3294ulong4 __ovld __cnfn convert_ulong4_rtp(float4);
3295ulong4 __ovld __cnfn convert_ulong4_sat_rtp(float4);
3296ulong4 __ovld __cnfn convert_ulong4_rtn(float4);
3297ulong4 __ovld __cnfn convert_ulong4_sat_rtn(float4);
3298ulong4 __ovld __cnfn convert_ulong4(float4);
3299ulong4 __ovld __cnfn convert_ulong4_sat(float4);
3300float4 __ovld __cnfn convert_float4_rte(char4);
3301float4 __ovld __cnfn convert_float4_rtz(char4);
3302float4 __ovld __cnfn convert_float4_rtp(char4);
3303float4 __ovld __cnfn convert_float4_rtn(char4);
3304float4 __ovld __cnfn convert_float4(char4);
3305float4 __ovld __cnfn convert_float4_rte(uchar4);
3306float4 __ovld __cnfn convert_float4_rtz(uchar4);
3307float4 __ovld __cnfn convert_float4_rtp(uchar4);
3308float4 __ovld __cnfn convert_float4_rtn(uchar4);
3309float4 __ovld __cnfn convert_float4(uchar4);
3310float4 __ovld __cnfn convert_float4_rte(short4);
3311float4 __ovld __cnfn convert_float4_rtz(short4);
3312float4 __ovld __cnfn convert_float4_rtp(short4);
3313float4 __ovld __cnfn convert_float4_rtn(short4);
3314float4 __ovld __cnfn convert_float4(short4);
3315float4 __ovld __cnfn convert_float4_rte(ushort4);
3316float4 __ovld __cnfn convert_float4_rtz(ushort4);
3317float4 __ovld __cnfn convert_float4_rtp(ushort4);
3318float4 __ovld __cnfn convert_float4_rtn(ushort4);
3319float4 __ovld __cnfn convert_float4(ushort4);
3320float4 __ovld __cnfn convert_float4_rte(int4);
3321float4 __ovld __cnfn convert_float4_rtz(int4);
3322float4 __ovld __cnfn convert_float4_rtp(int4);
3323float4 __ovld __cnfn convert_float4_rtn(int4);
3324float4 __ovld __cnfn convert_float4(int4);
3325float4 __ovld __cnfn convert_float4_rte(uint4);
3326float4 __ovld __cnfn convert_float4_rtz(uint4);
3327float4 __ovld __cnfn convert_float4_rtp(uint4);
3328float4 __ovld __cnfn convert_float4_rtn(uint4);
3329float4 __ovld __cnfn convert_float4(uint4);
3330float4 __ovld __cnfn convert_float4_rte(long4);
3331float4 __ovld __cnfn convert_float4_rtz(long4);
3332float4 __ovld __cnfn convert_float4_rtp(long4);
3333float4 __ovld __cnfn convert_float4_rtn(long4);
3334float4 __ovld __cnfn convert_float4(long4);
3335float4 __ovld __cnfn convert_float4_rte(ulong4);
3336float4 __ovld __cnfn convert_float4_rtz(ulong4);
3337float4 __ovld __cnfn convert_float4_rtp(ulong4);
3338float4 __ovld __cnfn convert_float4_rtn(ulong4);
3339float4 __ovld __cnfn convert_float4(ulong4);
3340float4 __ovld __cnfn convert_float4_rte(float4);
3341float4 __ovld __cnfn convert_float4_rtz(float4);
3342float4 __ovld __cnfn convert_float4_rtp(float4);
3343float4 __ovld __cnfn convert_float4_rtn(float4);
3344float4 __ovld __cnfn convert_float4(float4);
3345char8 __ovld __cnfn convert_char8_rte(char8);
3346char8 __ovld __cnfn convert_char8_sat_rte(char8);
3347char8 __ovld __cnfn convert_char8_rtz(char8);
3348char8 __ovld __cnfn convert_char8_sat_rtz(char8);
3349char8 __ovld __cnfn convert_char8_rtp(char8);
3350char8 __ovld __cnfn convert_char8_sat_rtp(char8);
3351char8 __ovld __cnfn convert_char8_rtn(char8);
3352char8 __ovld __cnfn convert_char8_sat_rtn(char8);
3353char8 __ovld __cnfn convert_char8(char8);
3354char8 __ovld __cnfn convert_char8_sat(char8);
3355char8 __ovld __cnfn convert_char8_rte(uchar8);
3356char8 __ovld __cnfn convert_char8_sat_rte(uchar8);
3357char8 __ovld __cnfn convert_char8_rtz(uchar8);
3358char8 __ovld __cnfn convert_char8_sat_rtz(uchar8);
3359char8 __ovld __cnfn convert_char8_rtp(uchar8);
3360char8 __ovld __cnfn convert_char8_sat_rtp(uchar8);
3361char8 __ovld __cnfn convert_char8_rtn(uchar8);
3362char8 __ovld __cnfn convert_char8_sat_rtn(uchar8);
3363char8 __ovld __cnfn convert_char8(uchar8);
3364char8 __ovld __cnfn convert_char8_sat(uchar8);
3365char8 __ovld __cnfn convert_char8_rte(short8);
3366char8 __ovld __cnfn convert_char8_sat_rte(short8);
3367char8 __ovld __cnfn convert_char8_rtz(short8);
3368char8 __ovld __cnfn convert_char8_sat_rtz(short8);
3369char8 __ovld __cnfn convert_char8_rtp(short8);
3370char8 __ovld __cnfn convert_char8_sat_rtp(short8);
3371char8 __ovld __cnfn convert_char8_rtn(short8);
3372char8 __ovld __cnfn convert_char8_sat_rtn(short8);
3373char8 __ovld __cnfn convert_char8(short8);
3374char8 __ovld __cnfn convert_char8_sat(short8);
3375char8 __ovld __cnfn convert_char8_rte(ushort8);
3376char8 __ovld __cnfn convert_char8_sat_rte(ushort8);
3377char8 __ovld __cnfn convert_char8_rtz(ushort8);
3378char8 __ovld __cnfn convert_char8_sat_rtz(ushort8);
3379char8 __ovld __cnfn convert_char8_rtp(ushort8);
3380char8 __ovld __cnfn convert_char8_sat_rtp(ushort8);
3381char8 __ovld __cnfn convert_char8_rtn(ushort8);
3382char8 __ovld __cnfn convert_char8_sat_rtn(ushort8);
3383char8 __ovld __cnfn convert_char8(ushort8);
3384char8 __ovld __cnfn convert_char8_sat(ushort8);
3385char8 __ovld __cnfn convert_char8_rte(int8);
3386char8 __ovld __cnfn convert_char8_sat_rte(int8);
3387char8 __ovld __cnfn convert_char8_rtz(int8);
3388char8 __ovld __cnfn convert_char8_sat_rtz(int8);
3389char8 __ovld __cnfn convert_char8_rtp(int8);
3390char8 __ovld __cnfn convert_char8_sat_rtp(int8);
3391char8 __ovld __cnfn convert_char8_rtn(int8);
3392char8 __ovld __cnfn convert_char8_sat_rtn(int8);
3393char8 __ovld __cnfn convert_char8(int8);
3394char8 __ovld __cnfn convert_char8_sat(int8);
3395char8 __ovld __cnfn convert_char8_rte(uint8);
3396char8 __ovld __cnfn convert_char8_sat_rte(uint8);
3397char8 __ovld __cnfn convert_char8_rtz(uint8);
3398char8 __ovld __cnfn convert_char8_sat_rtz(uint8);
3399char8 __ovld __cnfn convert_char8_rtp(uint8);
3400char8 __ovld __cnfn convert_char8_sat_rtp(uint8);
3401char8 __ovld __cnfn convert_char8_rtn(uint8);
3402char8 __ovld __cnfn convert_char8_sat_rtn(uint8);
3403char8 __ovld __cnfn convert_char8(uint8);
3404char8 __ovld __cnfn convert_char8_sat(uint8);
3405char8 __ovld __cnfn convert_char8_rte(long8);
3406char8 __ovld __cnfn convert_char8_sat_rte(long8);
3407char8 __ovld __cnfn convert_char8_rtz(long8);
3408char8 __ovld __cnfn convert_char8_sat_rtz(long8);
3409char8 __ovld __cnfn convert_char8_rtp(long8);
3410char8 __ovld __cnfn convert_char8_sat_rtp(long8);
3411char8 __ovld __cnfn convert_char8_rtn(long8);
3412char8 __ovld __cnfn convert_char8_sat_rtn(long8);
3413char8 __ovld __cnfn convert_char8(long8);
3414char8 __ovld __cnfn convert_char8_sat(long8);
3415char8 __ovld __cnfn convert_char8_rte(ulong8);
3416char8 __ovld __cnfn convert_char8_sat_rte(ulong8);
3417char8 __ovld __cnfn convert_char8_rtz(ulong8);
3418char8 __ovld __cnfn convert_char8_sat_rtz(ulong8);
3419char8 __ovld __cnfn convert_char8_rtp(ulong8);
3420char8 __ovld __cnfn convert_char8_sat_rtp(ulong8);
3421char8 __ovld __cnfn convert_char8_rtn(ulong8);
3422char8 __ovld __cnfn convert_char8_sat_rtn(ulong8);
3423char8 __ovld __cnfn convert_char8(ulong8);
3424char8 __ovld __cnfn convert_char8_sat(ulong8);
3425char8 __ovld __cnfn convert_char8_rte(float8);
3426char8 __ovld __cnfn convert_char8_sat_rte(float8);
3427char8 __ovld __cnfn convert_char8_rtz(float8);
3428char8 __ovld __cnfn convert_char8_sat_rtz(float8);
3429char8 __ovld __cnfn convert_char8_rtp(float8);
3430char8 __ovld __cnfn convert_char8_sat_rtp(float8);
3431char8 __ovld __cnfn convert_char8_rtn(float8);
3432char8 __ovld __cnfn convert_char8_sat_rtn(float8);
3433char8 __ovld __cnfn convert_char8(float8);
3434char8 __ovld __cnfn convert_char8_sat(float8);
3435uchar8 __ovld __cnfn convert_uchar8_rte(char8);
3436uchar8 __ovld __cnfn convert_uchar8_sat_rte(char8);
3437uchar8 __ovld __cnfn convert_uchar8_rtz(char8);
3438uchar8 __ovld __cnfn convert_uchar8_sat_rtz(char8);
3439uchar8 __ovld __cnfn convert_uchar8_rtp(char8);
3440uchar8 __ovld __cnfn convert_uchar8_sat_rtp(char8);
3441uchar8 __ovld __cnfn convert_uchar8_rtn(char8);
3442uchar8 __ovld __cnfn convert_uchar8_sat_rtn(char8);
3443uchar8 __ovld __cnfn convert_uchar8(char8);
3444uchar8 __ovld __cnfn convert_uchar8_sat(char8);
3445uchar8 __ovld __cnfn convert_uchar8_rte(uchar8);
3446uchar8 __ovld __cnfn convert_uchar8_sat_rte(uchar8);
3447uchar8 __ovld __cnfn convert_uchar8_rtz(uchar8);
3448uchar8 __ovld __cnfn convert_uchar8_sat_rtz(uchar8);
3449uchar8 __ovld __cnfn convert_uchar8_rtp(uchar8);
3450uchar8 __ovld __cnfn convert_uchar8_sat_rtp(uchar8);
3451uchar8 __ovld __cnfn convert_uchar8_rtn(uchar8);
3452uchar8 __ovld __cnfn convert_uchar8_sat_rtn(uchar8);
3453uchar8 __ovld __cnfn convert_uchar8(uchar8);
3454uchar8 __ovld __cnfn convert_uchar8_sat(uchar8);
3455uchar8 __ovld __cnfn convert_uchar8_rte(short8);
3456uchar8 __ovld __cnfn convert_uchar8_sat_rte(short8);
3457uchar8 __ovld __cnfn convert_uchar8_rtz(short8);
3458uchar8 __ovld __cnfn convert_uchar8_sat_rtz(short8);
3459uchar8 __ovld __cnfn convert_uchar8_rtp(short8);
3460uchar8 __ovld __cnfn convert_uchar8_sat_rtp(short8);
3461uchar8 __ovld __cnfn convert_uchar8_rtn(short8);
3462uchar8 __ovld __cnfn convert_uchar8_sat_rtn(short8);
3463uchar8 __ovld __cnfn convert_uchar8(short8);
3464uchar8 __ovld __cnfn convert_uchar8_sat(short8);
3465uchar8 __ovld __cnfn convert_uchar8_rte(ushort8);
3466uchar8 __ovld __cnfn convert_uchar8_sat_rte(ushort8);
3467uchar8 __ovld __cnfn convert_uchar8_rtz(ushort8);
3468uchar8 __ovld __cnfn convert_uchar8_sat_rtz(ushort8);
3469uchar8 __ovld __cnfn convert_uchar8_rtp(ushort8);
3470uchar8 __ovld __cnfn convert_uchar8_sat_rtp(ushort8);
3471uchar8 __ovld __cnfn convert_uchar8_rtn(ushort8);
3472uchar8 __ovld __cnfn convert_uchar8_sat_rtn(ushort8);
3473uchar8 __ovld __cnfn convert_uchar8(ushort8);
3474uchar8 __ovld __cnfn convert_uchar8_sat(ushort8);
3475uchar8 __ovld __cnfn convert_uchar8_rte(int8);
3476uchar8 __ovld __cnfn convert_uchar8_sat_rte(int8);
3477uchar8 __ovld __cnfn convert_uchar8_rtz(int8);
3478uchar8 __ovld __cnfn convert_uchar8_sat_rtz(int8);
3479uchar8 __ovld __cnfn convert_uchar8_rtp(int8);
3480uchar8 __ovld __cnfn convert_uchar8_sat_rtp(int8);
3481uchar8 __ovld __cnfn convert_uchar8_rtn(int8);
3482uchar8 __ovld __cnfn convert_uchar8_sat_rtn(int8);
3483uchar8 __ovld __cnfn convert_uchar8(int8);
3484uchar8 __ovld __cnfn convert_uchar8_sat(int8);
3485uchar8 __ovld __cnfn convert_uchar8_rte(uint8);
3486uchar8 __ovld __cnfn convert_uchar8_sat_rte(uint8);
3487uchar8 __ovld __cnfn convert_uchar8_rtz(uint8);
3488uchar8 __ovld __cnfn convert_uchar8_sat_rtz(uint8);
3489uchar8 __ovld __cnfn convert_uchar8_rtp(uint8);
3490uchar8 __ovld __cnfn convert_uchar8_sat_rtp(uint8);
3491uchar8 __ovld __cnfn convert_uchar8_rtn(uint8);
3492uchar8 __ovld __cnfn convert_uchar8_sat_rtn(uint8);
3493uchar8 __ovld __cnfn convert_uchar8(uint8);
3494uchar8 __ovld __cnfn convert_uchar8_sat(uint8);
3495uchar8 __ovld __cnfn convert_uchar8_rte(long8);
3496uchar8 __ovld __cnfn convert_uchar8_sat_rte(long8);
3497uchar8 __ovld __cnfn convert_uchar8_rtz(long8);
3498uchar8 __ovld __cnfn convert_uchar8_sat_rtz(long8);
3499uchar8 __ovld __cnfn convert_uchar8_rtp(long8);
3500uchar8 __ovld __cnfn convert_uchar8_sat_rtp(long8);
3501uchar8 __ovld __cnfn convert_uchar8_rtn(long8);
3502uchar8 __ovld __cnfn convert_uchar8_sat_rtn(long8);
3503uchar8 __ovld __cnfn convert_uchar8(long8);
3504uchar8 __ovld __cnfn convert_uchar8_sat(long8);
3505uchar8 __ovld __cnfn convert_uchar8_rte(ulong8);
3506uchar8 __ovld __cnfn convert_uchar8_sat_rte(ulong8);
3507uchar8 __ovld __cnfn convert_uchar8_rtz(ulong8);
3508uchar8 __ovld __cnfn convert_uchar8_sat_rtz(ulong8);
3509uchar8 __ovld __cnfn convert_uchar8_rtp(ulong8);
3510uchar8 __ovld __cnfn convert_uchar8_sat_rtp(ulong8);
3511uchar8 __ovld __cnfn convert_uchar8_rtn(ulong8);
3512uchar8 __ovld __cnfn convert_uchar8_sat_rtn(ulong8);
3513uchar8 __ovld __cnfn convert_uchar8(ulong8);
3514uchar8 __ovld __cnfn convert_uchar8_sat(ulong8);
3515uchar8 __ovld __cnfn convert_uchar8_rte(float8);
3516uchar8 __ovld __cnfn convert_uchar8_sat_rte(float8);
3517uchar8 __ovld __cnfn convert_uchar8_rtz(float8);
3518uchar8 __ovld __cnfn convert_uchar8_sat_rtz(float8);
3519uchar8 __ovld __cnfn convert_uchar8_rtp(float8);
3520uchar8 __ovld __cnfn convert_uchar8_sat_rtp(float8);
3521uchar8 __ovld __cnfn convert_uchar8_rtn(float8);
3522uchar8 __ovld __cnfn convert_uchar8_sat_rtn(float8);
3523uchar8 __ovld __cnfn convert_uchar8(float8);
3524uchar8 __ovld __cnfn convert_uchar8_sat(float8);
3525short8 __ovld __cnfn convert_short8_rte(char8);
3526short8 __ovld __cnfn convert_short8_sat_rte(char8);
3527short8 __ovld __cnfn convert_short8_rtz(char8);
3528short8 __ovld __cnfn convert_short8_sat_rtz(char8);
3529short8 __ovld __cnfn convert_short8_rtp(char8);
3530short8 __ovld __cnfn convert_short8_sat_rtp(char8);
3531short8 __ovld __cnfn convert_short8_rtn(char8);
3532short8 __ovld __cnfn convert_short8_sat_rtn(char8);
3533short8 __ovld __cnfn convert_short8(char8);
3534short8 __ovld __cnfn convert_short8_sat(char8);
3535short8 __ovld __cnfn convert_short8_rte(uchar8);
3536short8 __ovld __cnfn convert_short8_sat_rte(uchar8);
3537short8 __ovld __cnfn convert_short8_rtz(uchar8);
3538short8 __ovld __cnfn convert_short8_sat_rtz(uchar8);
3539short8 __ovld __cnfn convert_short8_rtp(uchar8);
3540short8 __ovld __cnfn convert_short8_sat_rtp(uchar8);
3541short8 __ovld __cnfn convert_short8_rtn(uchar8);
3542short8 __ovld __cnfn convert_short8_sat_rtn(uchar8);
3543short8 __ovld __cnfn convert_short8(uchar8);
3544short8 __ovld __cnfn convert_short8_sat(uchar8);
3545short8 __ovld __cnfn convert_short8_rte(short8);
3546short8 __ovld __cnfn convert_short8_sat_rte(short8);
3547short8 __ovld __cnfn convert_short8_rtz(short8);
3548short8 __ovld __cnfn convert_short8_sat_rtz(short8);
3549short8 __ovld __cnfn convert_short8_rtp(short8);
3550short8 __ovld __cnfn convert_short8_sat_rtp(short8);
3551short8 __ovld __cnfn convert_short8_rtn(short8);
3552short8 __ovld __cnfn convert_short8_sat_rtn(short8);
3553short8 __ovld __cnfn convert_short8(short8);
3554short8 __ovld __cnfn convert_short8_sat(short8);
3555short8 __ovld __cnfn convert_short8_rte(ushort8);
3556short8 __ovld __cnfn convert_short8_sat_rte(ushort8);
3557short8 __ovld __cnfn convert_short8_rtz(ushort8);
3558short8 __ovld __cnfn convert_short8_sat_rtz(ushort8);
3559short8 __ovld __cnfn convert_short8_rtp(ushort8);
3560short8 __ovld __cnfn convert_short8_sat_rtp(ushort8);
3561short8 __ovld __cnfn convert_short8_rtn(ushort8);
3562short8 __ovld __cnfn convert_short8_sat_rtn(ushort8);
3563short8 __ovld __cnfn convert_short8(ushort8);
3564short8 __ovld __cnfn convert_short8_sat(ushort8);
3565short8 __ovld __cnfn convert_short8_rte(int8);
3566short8 __ovld __cnfn convert_short8_sat_rte(int8);
3567short8 __ovld __cnfn convert_short8_rtz(int8);
3568short8 __ovld __cnfn convert_short8_sat_rtz(int8);
3569short8 __ovld __cnfn convert_short8_rtp(int8);
3570short8 __ovld __cnfn convert_short8_sat_rtp(int8);
3571short8 __ovld __cnfn convert_short8_rtn(int8);
3572short8 __ovld __cnfn convert_short8_sat_rtn(int8);
3573short8 __ovld __cnfn convert_short8(int8);
3574short8 __ovld __cnfn convert_short8_sat(int8);
3575short8 __ovld __cnfn convert_short8_rte(uint8);
3576short8 __ovld __cnfn convert_short8_sat_rte(uint8);
3577short8 __ovld __cnfn convert_short8_rtz(uint8);
3578short8 __ovld __cnfn convert_short8_sat_rtz(uint8);
3579short8 __ovld __cnfn convert_short8_rtp(uint8);
3580short8 __ovld __cnfn convert_short8_sat_rtp(uint8);
3581short8 __ovld __cnfn convert_short8_rtn(uint8);
3582short8 __ovld __cnfn convert_short8_sat_rtn(uint8);
3583short8 __ovld __cnfn convert_short8(uint8);
3584short8 __ovld __cnfn convert_short8_sat(uint8);
3585short8 __ovld __cnfn convert_short8_rte(long8);
3586short8 __ovld __cnfn convert_short8_sat_rte(long8);
3587short8 __ovld __cnfn convert_short8_rtz(long8);
3588short8 __ovld __cnfn convert_short8_sat_rtz(long8);
3589short8 __ovld __cnfn convert_short8_rtp(long8);
3590short8 __ovld __cnfn convert_short8_sat_rtp(long8);
3591short8 __ovld __cnfn convert_short8_rtn(long8);
3592short8 __ovld __cnfn convert_short8_sat_rtn(long8);
3593short8 __ovld __cnfn convert_short8(long8);
3594short8 __ovld __cnfn convert_short8_sat(long8);
3595short8 __ovld __cnfn convert_short8_rte(ulong8);
3596short8 __ovld __cnfn convert_short8_sat_rte(ulong8);
3597short8 __ovld __cnfn convert_short8_rtz(ulong8);
3598short8 __ovld __cnfn convert_short8_sat_rtz(ulong8);
3599short8 __ovld __cnfn convert_short8_rtp(ulong8);
3600short8 __ovld __cnfn convert_short8_sat_rtp(ulong8);
3601short8 __ovld __cnfn convert_short8_rtn(ulong8);
3602short8 __ovld __cnfn convert_short8_sat_rtn(ulong8);
3603short8 __ovld __cnfn convert_short8(ulong8);
3604short8 __ovld __cnfn convert_short8_sat(ulong8);
3605short8 __ovld __cnfn convert_short8_rte(float8);
3606short8 __ovld __cnfn convert_short8_sat_rte(float8);
3607short8 __ovld __cnfn convert_short8_rtz(float8);
3608short8 __ovld __cnfn convert_short8_sat_rtz(float8);
3609short8 __ovld __cnfn convert_short8_rtp(float8);
3610short8 __ovld __cnfn convert_short8_sat_rtp(float8);
3611short8 __ovld __cnfn convert_short8_rtn(float8);
3612short8 __ovld __cnfn convert_short8_sat_rtn(float8);
3613short8 __ovld __cnfn convert_short8(float8);
3614short8 __ovld __cnfn convert_short8_sat(float8);
3615ushort8 __ovld __cnfn convert_ushort8_rte(char8);
3616ushort8 __ovld __cnfn convert_ushort8_sat_rte(char8);
3617ushort8 __ovld __cnfn convert_ushort8_rtz(char8);
3618ushort8 __ovld __cnfn convert_ushort8_sat_rtz(char8);
3619ushort8 __ovld __cnfn convert_ushort8_rtp(char8);
3620ushort8 __ovld __cnfn convert_ushort8_sat_rtp(char8);
3621ushort8 __ovld __cnfn convert_ushort8_rtn(char8);
3622ushort8 __ovld __cnfn convert_ushort8_sat_rtn(char8);
3623ushort8 __ovld __cnfn convert_ushort8(char8);
3624ushort8 __ovld __cnfn convert_ushort8_sat(char8);
3625ushort8 __ovld __cnfn convert_ushort8_rte(uchar8);
3626ushort8 __ovld __cnfn convert_ushort8_sat_rte(uchar8);
3627ushort8 __ovld __cnfn convert_ushort8_rtz(uchar8);
3628ushort8 __ovld __cnfn convert_ushort8_sat_rtz(uchar8);
3629ushort8 __ovld __cnfn convert_ushort8_rtp(uchar8);
3630ushort8 __ovld __cnfn convert_ushort8_sat_rtp(uchar8);
3631ushort8 __ovld __cnfn convert_ushort8_rtn(uchar8);
3632ushort8 __ovld __cnfn convert_ushort8_sat_rtn(uchar8);
3633ushort8 __ovld __cnfn convert_ushort8(uchar8);
3634ushort8 __ovld __cnfn convert_ushort8_sat(uchar8);
3635ushort8 __ovld __cnfn convert_ushort8_rte(short8);
3636ushort8 __ovld __cnfn convert_ushort8_sat_rte(short8);
3637ushort8 __ovld __cnfn convert_ushort8_rtz(short8);
3638ushort8 __ovld __cnfn convert_ushort8_sat_rtz(short8);
3639ushort8 __ovld __cnfn convert_ushort8_rtp(short8);
3640ushort8 __ovld __cnfn convert_ushort8_sat_rtp(short8);
3641ushort8 __ovld __cnfn convert_ushort8_rtn(short8);
3642ushort8 __ovld __cnfn convert_ushort8_sat_rtn(short8);
3643ushort8 __ovld __cnfn convert_ushort8(short8);
3644ushort8 __ovld __cnfn convert_ushort8_sat(short8);
3645ushort8 __ovld __cnfn convert_ushort8_rte(ushort8);
3646ushort8 __ovld __cnfn convert_ushort8_sat_rte(ushort8);
3647ushort8 __ovld __cnfn convert_ushort8_rtz(ushort8);
3648ushort8 __ovld __cnfn convert_ushort8_sat_rtz(ushort8);
3649ushort8 __ovld __cnfn convert_ushort8_rtp(ushort8);
3650ushort8 __ovld __cnfn convert_ushort8_sat_rtp(ushort8);
3651ushort8 __ovld __cnfn convert_ushort8_rtn(ushort8);
3652ushort8 __ovld __cnfn convert_ushort8_sat_rtn(ushort8);
3653ushort8 __ovld __cnfn convert_ushort8(ushort8);
3654ushort8 __ovld __cnfn convert_ushort8_sat(ushort8);
3655ushort8 __ovld __cnfn convert_ushort8_rte(int8);
3656ushort8 __ovld __cnfn convert_ushort8_sat_rte(int8);
3657ushort8 __ovld __cnfn convert_ushort8_rtz(int8);
3658ushort8 __ovld __cnfn convert_ushort8_sat_rtz(int8);
3659ushort8 __ovld __cnfn convert_ushort8_rtp(int8);
3660ushort8 __ovld __cnfn convert_ushort8_sat_rtp(int8);
3661ushort8 __ovld __cnfn convert_ushort8_rtn(int8);
3662ushort8 __ovld __cnfn convert_ushort8_sat_rtn(int8);
3663ushort8 __ovld __cnfn convert_ushort8(int8);
3664ushort8 __ovld __cnfn convert_ushort8_sat(int8);
3665ushort8 __ovld __cnfn convert_ushort8_rte(uint8);
3666ushort8 __ovld __cnfn convert_ushort8_sat_rte(uint8);
3667ushort8 __ovld __cnfn convert_ushort8_rtz(uint8);
3668ushort8 __ovld __cnfn convert_ushort8_sat_rtz(uint8);
3669ushort8 __ovld __cnfn convert_ushort8_rtp(uint8);
3670ushort8 __ovld __cnfn convert_ushort8_sat_rtp(uint8);
3671ushort8 __ovld __cnfn convert_ushort8_rtn(uint8);
3672ushort8 __ovld __cnfn convert_ushort8_sat_rtn(uint8);
3673ushort8 __ovld __cnfn convert_ushort8(uint8);
3674ushort8 __ovld __cnfn convert_ushort8_sat(uint8);
3675ushort8 __ovld __cnfn convert_ushort8_rte(long8);
3676ushort8 __ovld __cnfn convert_ushort8_sat_rte(long8);
3677ushort8 __ovld __cnfn convert_ushort8_rtz(long8);
3678ushort8 __ovld __cnfn convert_ushort8_sat_rtz(long8);
3679ushort8 __ovld __cnfn convert_ushort8_rtp(long8);
3680ushort8 __ovld __cnfn convert_ushort8_sat_rtp(long8);
3681ushort8 __ovld __cnfn convert_ushort8_rtn(long8);
3682ushort8 __ovld __cnfn convert_ushort8_sat_rtn(long8);
3683ushort8 __ovld __cnfn convert_ushort8(long8);
3684ushort8 __ovld __cnfn convert_ushort8_sat(long8);
3685ushort8 __ovld __cnfn convert_ushort8_rte(ulong8);
3686ushort8 __ovld __cnfn convert_ushort8_sat_rte(ulong8);
3687ushort8 __ovld __cnfn convert_ushort8_rtz(ulong8);
3688ushort8 __ovld __cnfn convert_ushort8_sat_rtz(ulong8);
3689ushort8 __ovld __cnfn convert_ushort8_rtp(ulong8);
3690ushort8 __ovld __cnfn convert_ushort8_sat_rtp(ulong8);
3691ushort8 __ovld __cnfn convert_ushort8_rtn(ulong8);
3692ushort8 __ovld __cnfn convert_ushort8_sat_rtn(ulong8);
3693ushort8 __ovld __cnfn convert_ushort8(ulong8);
3694ushort8 __ovld __cnfn convert_ushort8_sat(ulong8);
3695ushort8 __ovld __cnfn convert_ushort8_rte(float8);
3696ushort8 __ovld __cnfn convert_ushort8_sat_rte(float8);
3697ushort8 __ovld __cnfn convert_ushort8_rtz(float8);
3698ushort8 __ovld __cnfn convert_ushort8_sat_rtz(float8);
3699ushort8 __ovld __cnfn convert_ushort8_rtp(float8);
3700ushort8 __ovld __cnfn convert_ushort8_sat_rtp(float8);
3701ushort8 __ovld __cnfn convert_ushort8_rtn(float8);
3702ushort8 __ovld __cnfn convert_ushort8_sat_rtn(float8);
3703ushort8 __ovld __cnfn convert_ushort8(float8);
3704ushort8 __ovld __cnfn convert_ushort8_sat(float8);
3705int8 __ovld __cnfn convert_int8_rte(char8);
3706int8 __ovld __cnfn convert_int8_sat_rte(char8);
3707int8 __ovld __cnfn convert_int8_rtz(char8);
3708int8 __ovld __cnfn convert_int8_sat_rtz(char8);
3709int8 __ovld __cnfn convert_int8_rtp(char8);
3710int8 __ovld __cnfn convert_int8_sat_rtp(char8);
3711int8 __ovld __cnfn convert_int8_rtn(char8);
3712int8 __ovld __cnfn convert_int8_sat_rtn(char8);
3713int8 __ovld __cnfn convert_int8(char8);
3714int8 __ovld __cnfn convert_int8_sat(char8);
3715int8 __ovld __cnfn convert_int8_rte(uchar8);
3716int8 __ovld __cnfn convert_int8_sat_rte(uchar8);
3717int8 __ovld __cnfn convert_int8_rtz(uchar8);
3718int8 __ovld __cnfn convert_int8_sat_rtz(uchar8);
3719int8 __ovld __cnfn convert_int8_rtp(uchar8);
3720int8 __ovld __cnfn convert_int8_sat_rtp(uchar8);
3721int8 __ovld __cnfn convert_int8_rtn(uchar8);
3722int8 __ovld __cnfn convert_int8_sat_rtn(uchar8);
3723int8 __ovld __cnfn convert_int8(uchar8);
3724int8 __ovld __cnfn convert_int8_sat(uchar8);
3725int8 __ovld __cnfn convert_int8_rte(short8);
3726int8 __ovld __cnfn convert_int8_sat_rte(short8);
3727int8 __ovld __cnfn convert_int8_rtz(short8);
3728int8 __ovld __cnfn convert_int8_sat_rtz(short8);
3729int8 __ovld __cnfn convert_int8_rtp(short8);
3730int8 __ovld __cnfn convert_int8_sat_rtp(short8);
3731int8 __ovld __cnfn convert_int8_rtn(short8);
3732int8 __ovld __cnfn convert_int8_sat_rtn(short8);
3733int8 __ovld __cnfn convert_int8(short8);
3734int8 __ovld __cnfn convert_int8_sat(short8);
3735int8 __ovld __cnfn convert_int8_rte(ushort8);
3736int8 __ovld __cnfn convert_int8_sat_rte(ushort8);
3737int8 __ovld __cnfn convert_int8_rtz(ushort8);
3738int8 __ovld __cnfn convert_int8_sat_rtz(ushort8);
3739int8 __ovld __cnfn convert_int8_rtp(ushort8);
3740int8 __ovld __cnfn convert_int8_sat_rtp(ushort8);
3741int8 __ovld __cnfn convert_int8_rtn(ushort8);
3742int8 __ovld __cnfn convert_int8_sat_rtn(ushort8);
3743int8 __ovld __cnfn convert_int8(ushort8);
3744int8 __ovld __cnfn convert_int8_sat(ushort8);
3745int8 __ovld __cnfn convert_int8_rte(int8);
3746int8 __ovld __cnfn convert_int8_sat_rte(int8);
3747int8 __ovld __cnfn convert_int8_rtz(int8);
3748int8 __ovld __cnfn convert_int8_sat_rtz(int8);
3749int8 __ovld __cnfn convert_int8_rtp(int8);
3750int8 __ovld __cnfn convert_int8_sat_rtp(int8);
3751int8 __ovld __cnfn convert_int8_rtn(int8);
3752int8 __ovld __cnfn convert_int8_sat_rtn(int8);
3753int8 __ovld __cnfn convert_int8(int8);
3754int8 __ovld __cnfn convert_int8_sat(int8);
3755int8 __ovld __cnfn convert_int8_rte(uint8);
3756int8 __ovld __cnfn convert_int8_sat_rte(uint8);
3757int8 __ovld __cnfn convert_int8_rtz(uint8);
3758int8 __ovld __cnfn convert_int8_sat_rtz(uint8);
3759int8 __ovld __cnfn convert_int8_rtp(uint8);
3760int8 __ovld __cnfn convert_int8_sat_rtp(uint8);
3761int8 __ovld __cnfn convert_int8_rtn(uint8);
3762int8 __ovld __cnfn convert_int8_sat_rtn(uint8);
3763int8 __ovld __cnfn convert_int8(uint8);
3764int8 __ovld __cnfn convert_int8_sat(uint8);
3765int8 __ovld __cnfn convert_int8_rte(long8);
3766int8 __ovld __cnfn convert_int8_sat_rte(long8);
3767int8 __ovld __cnfn convert_int8_rtz(long8);
3768int8 __ovld __cnfn convert_int8_sat_rtz(long8);
3769int8 __ovld __cnfn convert_int8_rtp(long8);
3770int8 __ovld __cnfn convert_int8_sat_rtp(long8);
3771int8 __ovld __cnfn convert_int8_rtn(long8);
3772int8 __ovld __cnfn convert_int8_sat_rtn(long8);
3773int8 __ovld __cnfn convert_int8(long8);
3774int8 __ovld __cnfn convert_int8_sat(long8);
3775int8 __ovld __cnfn convert_int8_rte(ulong8);
3776int8 __ovld __cnfn convert_int8_sat_rte(ulong8);
3777int8 __ovld __cnfn convert_int8_rtz(ulong8);
3778int8 __ovld __cnfn convert_int8_sat_rtz(ulong8);
3779int8 __ovld __cnfn convert_int8_rtp(ulong8);
3780int8 __ovld __cnfn convert_int8_sat_rtp(ulong8);
3781int8 __ovld __cnfn convert_int8_rtn(ulong8);
3782int8 __ovld __cnfn convert_int8_sat_rtn(ulong8);
3783int8 __ovld __cnfn convert_int8(ulong8);
3784int8 __ovld __cnfn convert_int8_sat(ulong8);
3785int8 __ovld __cnfn convert_int8_rte(float8);
3786int8 __ovld __cnfn convert_int8_sat_rte(float8);
3787int8 __ovld __cnfn convert_int8_rtz(float8);
3788int8 __ovld __cnfn convert_int8_sat_rtz(float8);
3789int8 __ovld __cnfn convert_int8_rtp(float8);
3790int8 __ovld __cnfn convert_int8_sat_rtp(float8);
3791int8 __ovld __cnfn convert_int8_rtn(float8);
3792int8 __ovld __cnfn convert_int8_sat_rtn(float8);
3793int8 __ovld __cnfn convert_int8(float8);
3794int8 __ovld __cnfn convert_int8_sat(float8);
3795uint8 __ovld __cnfn convert_uint8_rte(char8);
3796uint8 __ovld __cnfn convert_uint8_sat_rte(char8);
3797uint8 __ovld __cnfn convert_uint8_rtz(char8);
3798uint8 __ovld __cnfn convert_uint8_sat_rtz(char8);
3799uint8 __ovld __cnfn convert_uint8_rtp(char8);
3800uint8 __ovld __cnfn convert_uint8_sat_rtp(char8);
3801uint8 __ovld __cnfn convert_uint8_rtn(char8);
3802uint8 __ovld __cnfn convert_uint8_sat_rtn(char8);
3803uint8 __ovld __cnfn convert_uint8(char8);
3804uint8 __ovld __cnfn convert_uint8_sat(char8);
3805uint8 __ovld __cnfn convert_uint8_rte(uchar8);
3806uint8 __ovld __cnfn convert_uint8_sat_rte(uchar8);
3807uint8 __ovld __cnfn convert_uint8_rtz(uchar8);
3808uint8 __ovld __cnfn convert_uint8_sat_rtz(uchar8);
3809uint8 __ovld __cnfn convert_uint8_rtp(uchar8);
3810uint8 __ovld __cnfn convert_uint8_sat_rtp(uchar8);
3811uint8 __ovld __cnfn convert_uint8_rtn(uchar8);
3812uint8 __ovld __cnfn convert_uint8_sat_rtn(uchar8);
3813uint8 __ovld __cnfn convert_uint8(uchar8);
3814uint8 __ovld __cnfn convert_uint8_sat(uchar8);
3815uint8 __ovld __cnfn convert_uint8_rte(short8);
3816uint8 __ovld __cnfn convert_uint8_sat_rte(short8);
3817uint8 __ovld __cnfn convert_uint8_rtz(short8);
3818uint8 __ovld __cnfn convert_uint8_sat_rtz(short8);
3819uint8 __ovld __cnfn convert_uint8_rtp(short8);
3820uint8 __ovld __cnfn convert_uint8_sat_rtp(short8);
3821uint8 __ovld __cnfn convert_uint8_rtn(short8);
3822uint8 __ovld __cnfn convert_uint8_sat_rtn(short8);
3823uint8 __ovld __cnfn convert_uint8(short8);
3824uint8 __ovld __cnfn convert_uint8_sat(short8);
3825uint8 __ovld __cnfn convert_uint8_rte(ushort8);
3826uint8 __ovld __cnfn convert_uint8_sat_rte(ushort8);
3827uint8 __ovld __cnfn convert_uint8_rtz(ushort8);
3828uint8 __ovld __cnfn convert_uint8_sat_rtz(ushort8);
3829uint8 __ovld __cnfn convert_uint8_rtp(ushort8);
3830uint8 __ovld __cnfn convert_uint8_sat_rtp(ushort8);
3831uint8 __ovld __cnfn convert_uint8_rtn(ushort8);
3832uint8 __ovld __cnfn convert_uint8_sat_rtn(ushort8);
3833uint8 __ovld __cnfn convert_uint8(ushort8);
3834uint8 __ovld __cnfn convert_uint8_sat(ushort8);
3835uint8 __ovld __cnfn convert_uint8_rte(int8);
3836uint8 __ovld __cnfn convert_uint8_sat_rte(int8);
3837uint8 __ovld __cnfn convert_uint8_rtz(int8);
3838uint8 __ovld __cnfn convert_uint8_sat_rtz(int8);
3839uint8 __ovld __cnfn convert_uint8_rtp(int8);
3840uint8 __ovld __cnfn convert_uint8_sat_rtp(int8);
3841uint8 __ovld __cnfn convert_uint8_rtn(int8);
3842uint8 __ovld __cnfn convert_uint8_sat_rtn(int8);
3843uint8 __ovld __cnfn convert_uint8(int8);
3844uint8 __ovld __cnfn convert_uint8_sat(int8);
3845uint8 __ovld __cnfn convert_uint8_rte(uint8);
3846uint8 __ovld __cnfn convert_uint8_sat_rte(uint8);
3847uint8 __ovld __cnfn convert_uint8_rtz(uint8);
3848uint8 __ovld __cnfn convert_uint8_sat_rtz(uint8);
3849uint8 __ovld __cnfn convert_uint8_rtp(uint8);
3850uint8 __ovld __cnfn convert_uint8_sat_rtp(uint8);
3851uint8 __ovld __cnfn convert_uint8_rtn(uint8);
3852uint8 __ovld __cnfn convert_uint8_sat_rtn(uint8);
3853uint8 __ovld __cnfn convert_uint8(uint8);
3854uint8 __ovld __cnfn convert_uint8_sat(uint8);
3855uint8 __ovld __cnfn convert_uint8_rte(long8);
3856uint8 __ovld __cnfn convert_uint8_sat_rte(long8);
3857uint8 __ovld __cnfn convert_uint8_rtz(long8);
3858uint8 __ovld __cnfn convert_uint8_sat_rtz(long8);
3859uint8 __ovld __cnfn convert_uint8_rtp(long8);
3860uint8 __ovld __cnfn convert_uint8_sat_rtp(long8);
3861uint8 __ovld __cnfn convert_uint8_rtn(long8);
3862uint8 __ovld __cnfn convert_uint8_sat_rtn(long8);
3863uint8 __ovld __cnfn convert_uint8(long8);
3864uint8 __ovld __cnfn convert_uint8_sat(long8);
3865uint8 __ovld __cnfn convert_uint8_rte(ulong8);
3866uint8 __ovld __cnfn convert_uint8_sat_rte(ulong8);
3867uint8 __ovld __cnfn convert_uint8_rtz(ulong8);
3868uint8 __ovld __cnfn convert_uint8_sat_rtz(ulong8);
3869uint8 __ovld __cnfn convert_uint8_rtp(ulong8);
3870uint8 __ovld __cnfn convert_uint8_sat_rtp(ulong8);
3871uint8 __ovld __cnfn convert_uint8_rtn(ulong8);
3872uint8 __ovld __cnfn convert_uint8_sat_rtn(ulong8);
3873uint8 __ovld __cnfn convert_uint8(ulong8);
3874uint8 __ovld __cnfn convert_uint8_sat(ulong8);
3875uint8 __ovld __cnfn convert_uint8_rte(float8);
3876uint8 __ovld __cnfn convert_uint8_sat_rte(float8);
3877uint8 __ovld __cnfn convert_uint8_rtz(float8);
3878uint8 __ovld __cnfn convert_uint8_sat_rtz(float8);
3879uint8 __ovld __cnfn convert_uint8_rtp(float8);
3880uint8 __ovld __cnfn convert_uint8_sat_rtp(float8);
3881uint8 __ovld __cnfn convert_uint8_rtn(float8);
3882uint8 __ovld __cnfn convert_uint8_sat_rtn(float8);
3883uint8 __ovld __cnfn convert_uint8(float8);
3884uint8 __ovld __cnfn convert_uint8_sat(float8);
3885long8 __ovld __cnfn convert_long8_rte(char8);
3886long8 __ovld __cnfn convert_long8_sat_rte(char8);
3887long8 __ovld __cnfn convert_long8_rtz(char8);
3888long8 __ovld __cnfn convert_long8_sat_rtz(char8);
3889long8 __ovld __cnfn convert_long8_rtp(char8);
3890long8 __ovld __cnfn convert_long8_sat_rtp(char8);
3891long8 __ovld __cnfn convert_long8_rtn(char8);
3892long8 __ovld __cnfn convert_long8_sat_rtn(char8);
3893long8 __ovld __cnfn convert_long8(char8);
3894long8 __ovld __cnfn convert_long8_sat(char8);
3895long8 __ovld __cnfn convert_long8_rte(uchar8);
3896long8 __ovld __cnfn convert_long8_sat_rte(uchar8);
3897long8 __ovld __cnfn convert_long8_rtz(uchar8);
3898long8 __ovld __cnfn convert_long8_sat_rtz(uchar8);
3899long8 __ovld __cnfn convert_long8_rtp(uchar8);
3900long8 __ovld __cnfn convert_long8_sat_rtp(uchar8);
3901long8 __ovld __cnfn convert_long8_rtn(uchar8);
3902long8 __ovld __cnfn convert_long8_sat_rtn(uchar8);
3903long8 __ovld __cnfn convert_long8(uchar8);
3904long8 __ovld __cnfn convert_long8_sat(uchar8);
3905long8 __ovld __cnfn convert_long8_rte(short8);
3906long8 __ovld __cnfn convert_long8_sat_rte(short8);
3907long8 __ovld __cnfn convert_long8_rtz(short8);
3908long8 __ovld __cnfn convert_long8_sat_rtz(short8);
3909long8 __ovld __cnfn convert_long8_rtp(short8);
3910long8 __ovld __cnfn convert_long8_sat_rtp(short8);
3911long8 __ovld __cnfn convert_long8_rtn(short8);
3912long8 __ovld __cnfn convert_long8_sat_rtn(short8);
3913long8 __ovld __cnfn convert_long8(short8);
3914long8 __ovld __cnfn convert_long8_sat(short8);
3915long8 __ovld __cnfn convert_long8_rte(ushort8);
3916long8 __ovld __cnfn convert_long8_sat_rte(ushort8);
3917long8 __ovld __cnfn convert_long8_rtz(ushort8);
3918long8 __ovld __cnfn convert_long8_sat_rtz(ushort8);
3919long8 __ovld __cnfn convert_long8_rtp(ushort8);
3920long8 __ovld __cnfn convert_long8_sat_rtp(ushort8);
3921long8 __ovld __cnfn convert_long8_rtn(ushort8);
3922long8 __ovld __cnfn convert_long8_sat_rtn(ushort8);
3923long8 __ovld __cnfn convert_long8(ushort8);
3924long8 __ovld __cnfn convert_long8_sat(ushort8);
3925long8 __ovld __cnfn convert_long8_rte(int8);
3926long8 __ovld __cnfn convert_long8_sat_rte(int8);
3927long8 __ovld __cnfn convert_long8_rtz(int8);
3928long8 __ovld __cnfn convert_long8_sat_rtz(int8);
3929long8 __ovld __cnfn convert_long8_rtp(int8);
3930long8 __ovld __cnfn convert_long8_sat_rtp(int8);
3931long8 __ovld __cnfn convert_long8_rtn(int8);
3932long8 __ovld __cnfn convert_long8_sat_rtn(int8);
3933long8 __ovld __cnfn convert_long8(int8);
3934long8 __ovld __cnfn convert_long8_sat(int8);
3935long8 __ovld __cnfn convert_long8_rte(uint8);
3936long8 __ovld __cnfn convert_long8_sat_rte(uint8);
3937long8 __ovld __cnfn convert_long8_rtz(uint8);
3938long8 __ovld __cnfn convert_long8_sat_rtz(uint8);
3939long8 __ovld __cnfn convert_long8_rtp(uint8);
3940long8 __ovld __cnfn convert_long8_sat_rtp(uint8);
3941long8 __ovld __cnfn convert_long8_rtn(uint8);
3942long8 __ovld __cnfn convert_long8_sat_rtn(uint8);
3943long8 __ovld __cnfn convert_long8(uint8);
3944long8 __ovld __cnfn convert_long8_sat(uint8);
3945long8 __ovld __cnfn convert_long8_rte(long8);
3946long8 __ovld __cnfn convert_long8_sat_rte(long8);
3947long8 __ovld __cnfn convert_long8_rtz(long8);
3948long8 __ovld __cnfn convert_long8_sat_rtz(long8);
3949long8 __ovld __cnfn convert_long8_rtp(long8);
3950long8 __ovld __cnfn convert_long8_sat_rtp(long8);
3951long8 __ovld __cnfn convert_long8_rtn(long8);
3952long8 __ovld __cnfn convert_long8_sat_rtn(long8);
3953long8 __ovld __cnfn convert_long8(long8);
3954long8 __ovld __cnfn convert_long8_sat(long8);
3955long8 __ovld __cnfn convert_long8_rte(ulong8);
3956long8 __ovld __cnfn convert_long8_sat_rte(ulong8);
3957long8 __ovld __cnfn convert_long8_rtz(ulong8);
3958long8 __ovld __cnfn convert_long8_sat_rtz(ulong8);
3959long8 __ovld __cnfn convert_long8_rtp(ulong8);
3960long8 __ovld __cnfn convert_long8_sat_rtp(ulong8);
3961long8 __ovld __cnfn convert_long8_rtn(ulong8);
3962long8 __ovld __cnfn convert_long8_sat_rtn(ulong8);
3963long8 __ovld __cnfn convert_long8(ulong8);
3964long8 __ovld __cnfn convert_long8_sat(ulong8);
3965long8 __ovld __cnfn convert_long8_rte(float8);
3966long8 __ovld __cnfn convert_long8_sat_rte(float8);
3967long8 __ovld __cnfn convert_long8_rtz(float8);
3968long8 __ovld __cnfn convert_long8_sat_rtz(float8);
3969long8 __ovld __cnfn convert_long8_rtp(float8);
3970long8 __ovld __cnfn convert_long8_sat_rtp(float8);
3971long8 __ovld __cnfn convert_long8_rtn(float8);
3972long8 __ovld __cnfn convert_long8_sat_rtn(float8);
3973long8 __ovld __cnfn convert_long8(float8);
3974long8 __ovld __cnfn convert_long8_sat(float8);
3975ulong8 __ovld __cnfn convert_ulong8_rte(char8);
3976ulong8 __ovld __cnfn convert_ulong8_sat_rte(char8);
3977ulong8 __ovld __cnfn convert_ulong8_rtz(char8);
3978ulong8 __ovld __cnfn convert_ulong8_sat_rtz(char8);
3979ulong8 __ovld __cnfn convert_ulong8_rtp(char8);
3980ulong8 __ovld __cnfn convert_ulong8_sat_rtp(char8);
3981ulong8 __ovld __cnfn convert_ulong8_rtn(char8);
3982ulong8 __ovld __cnfn convert_ulong8_sat_rtn(char8);
3983ulong8 __ovld __cnfn convert_ulong8(char8);
3984ulong8 __ovld __cnfn convert_ulong8_sat(char8);
3985ulong8 __ovld __cnfn convert_ulong8_rte(uchar8);
3986ulong8 __ovld __cnfn convert_ulong8_sat_rte(uchar8);
3987ulong8 __ovld __cnfn convert_ulong8_rtz(uchar8);
3988ulong8 __ovld __cnfn convert_ulong8_sat_rtz(uchar8);
3989ulong8 __ovld __cnfn convert_ulong8_rtp(uchar8);
3990ulong8 __ovld __cnfn convert_ulong8_sat_rtp(uchar8);
3991ulong8 __ovld __cnfn convert_ulong8_rtn(uchar8);
3992ulong8 __ovld __cnfn convert_ulong8_sat_rtn(uchar8);
3993ulong8 __ovld __cnfn convert_ulong8(uchar8);
3994ulong8 __ovld __cnfn convert_ulong8_sat(uchar8);
3995ulong8 __ovld __cnfn convert_ulong8_rte(short8);
3996ulong8 __ovld __cnfn convert_ulong8_sat_rte(short8);
3997ulong8 __ovld __cnfn convert_ulong8_rtz(short8);
3998ulong8 __ovld __cnfn convert_ulong8_sat_rtz(short8);
3999ulong8 __ovld __cnfn convert_ulong8_rtp(short8);
4000ulong8 __ovld __cnfn convert_ulong8_sat_rtp(short8);
4001ulong8 __ovld __cnfn convert_ulong8_rtn(short8);
4002ulong8 __ovld __cnfn convert_ulong8_sat_rtn(short8);
4003ulong8 __ovld __cnfn convert_ulong8(short8);
4004ulong8 __ovld __cnfn convert_ulong8_sat(short8);
4005ulong8 __ovld __cnfn convert_ulong8_rte(ushort8);
4006ulong8 __ovld __cnfn convert_ulong8_sat_rte(ushort8);
4007ulong8 __ovld __cnfn convert_ulong8_rtz(ushort8);
4008ulong8 __ovld __cnfn convert_ulong8_sat_rtz(ushort8);
4009ulong8 __ovld __cnfn convert_ulong8_rtp(ushort8);
4010ulong8 __ovld __cnfn convert_ulong8_sat_rtp(ushort8);
4011ulong8 __ovld __cnfn convert_ulong8_rtn(ushort8);
4012ulong8 __ovld __cnfn convert_ulong8_sat_rtn(ushort8);
4013ulong8 __ovld __cnfn convert_ulong8(ushort8);
4014ulong8 __ovld __cnfn convert_ulong8_sat(ushort8);
4015ulong8 __ovld __cnfn convert_ulong8_rte(int8);
4016ulong8 __ovld __cnfn convert_ulong8_sat_rte(int8);
4017ulong8 __ovld __cnfn convert_ulong8_rtz(int8);
4018ulong8 __ovld __cnfn convert_ulong8_sat_rtz(int8);
4019ulong8 __ovld __cnfn convert_ulong8_rtp(int8);
4020ulong8 __ovld __cnfn convert_ulong8_sat_rtp(int8);
4021ulong8 __ovld __cnfn convert_ulong8_rtn(int8);
4022ulong8 __ovld __cnfn convert_ulong8_sat_rtn(int8);
4023ulong8 __ovld __cnfn convert_ulong8(int8);
4024ulong8 __ovld __cnfn convert_ulong8_sat(int8);
4025ulong8 __ovld __cnfn convert_ulong8_rte(uint8);
4026ulong8 __ovld __cnfn convert_ulong8_sat_rte(uint8);
4027ulong8 __ovld __cnfn convert_ulong8_rtz(uint8);
4028ulong8 __ovld __cnfn convert_ulong8_sat_rtz(uint8);
4029ulong8 __ovld __cnfn convert_ulong8_rtp(uint8);
4030ulong8 __ovld __cnfn convert_ulong8_sat_rtp(uint8);
4031ulong8 __ovld __cnfn convert_ulong8_rtn(uint8);
4032ulong8 __ovld __cnfn convert_ulong8_sat_rtn(uint8);
4033ulong8 __ovld __cnfn convert_ulong8(uint8);
4034ulong8 __ovld __cnfn convert_ulong8_sat(uint8);
4035ulong8 __ovld __cnfn convert_ulong8_rte(long8);
4036ulong8 __ovld __cnfn convert_ulong8_sat_rte(long8);
4037ulong8 __ovld __cnfn convert_ulong8_rtz(long8);
4038ulong8 __ovld __cnfn convert_ulong8_sat_rtz(long8);
4039ulong8 __ovld __cnfn convert_ulong8_rtp(long8);
4040ulong8 __ovld __cnfn convert_ulong8_sat_rtp(long8);
4041ulong8 __ovld __cnfn convert_ulong8_rtn(long8);
4042ulong8 __ovld __cnfn convert_ulong8_sat_rtn(long8);
4043ulong8 __ovld __cnfn convert_ulong8(long8);
4044ulong8 __ovld __cnfn convert_ulong8_sat(long8);
4045ulong8 __ovld __cnfn convert_ulong8_rte(ulong8);
4046ulong8 __ovld __cnfn convert_ulong8_sat_rte(ulong8);
4047ulong8 __ovld __cnfn convert_ulong8_rtz(ulong8);
4048ulong8 __ovld __cnfn convert_ulong8_sat_rtz(ulong8);
4049ulong8 __ovld __cnfn convert_ulong8_rtp(ulong8);
4050ulong8 __ovld __cnfn convert_ulong8_sat_rtp(ulong8);
4051ulong8 __ovld __cnfn convert_ulong8_rtn(ulong8);
4052ulong8 __ovld __cnfn convert_ulong8_sat_rtn(ulong8);
4053ulong8 __ovld __cnfn convert_ulong8(ulong8);
4054ulong8 __ovld __cnfn convert_ulong8_sat(ulong8);
4055ulong8 __ovld __cnfn convert_ulong8_rte(float8);
4056ulong8 __ovld __cnfn convert_ulong8_sat_rte(float8);
4057ulong8 __ovld __cnfn convert_ulong8_rtz(float8);
4058ulong8 __ovld __cnfn convert_ulong8_sat_rtz(float8);
4059ulong8 __ovld __cnfn convert_ulong8_rtp(float8);
4060ulong8 __ovld __cnfn convert_ulong8_sat_rtp(float8);
4061ulong8 __ovld __cnfn convert_ulong8_rtn(float8);
4062ulong8 __ovld __cnfn convert_ulong8_sat_rtn(float8);
4063ulong8 __ovld __cnfn convert_ulong8(float8);
4064ulong8 __ovld __cnfn convert_ulong8_sat(float8);
4065float8 __ovld __cnfn convert_float8_rte(char8);
4066float8 __ovld __cnfn convert_float8_rtz(char8);
4067float8 __ovld __cnfn convert_float8_rtp(char8);
4068float8 __ovld __cnfn convert_float8_rtn(char8);
4069float8 __ovld __cnfn convert_float8(char8);
4070float8 __ovld __cnfn convert_float8_rte(uchar8);
4071float8 __ovld __cnfn convert_float8_rtz(uchar8);
4072float8 __ovld __cnfn convert_float8_rtp(uchar8);
4073float8 __ovld __cnfn convert_float8_rtn(uchar8);
4074float8 __ovld __cnfn convert_float8(uchar8);
4075float8 __ovld __cnfn convert_float8_rte(short8);
4076float8 __ovld __cnfn convert_float8_rtz(short8);
4077float8 __ovld __cnfn convert_float8_rtp(short8);
4078float8 __ovld __cnfn convert_float8_rtn(short8);
4079float8 __ovld __cnfn convert_float8(short8);
4080float8 __ovld __cnfn convert_float8_rte(ushort8);
4081float8 __ovld __cnfn convert_float8_rtz(ushort8);
4082float8 __ovld __cnfn convert_float8_rtp(ushort8);
4083float8 __ovld __cnfn convert_float8_rtn(ushort8);
4084float8 __ovld __cnfn convert_float8(ushort8);
4085float8 __ovld __cnfn convert_float8_rte(int8);
4086float8 __ovld __cnfn convert_float8_rtz(int8);
4087float8 __ovld __cnfn convert_float8_rtp(int8);
4088float8 __ovld __cnfn convert_float8_rtn(int8);
4089float8 __ovld __cnfn convert_float8(int8);
4090float8 __ovld __cnfn convert_float8_rte(uint8);
4091float8 __ovld __cnfn convert_float8_rtz(uint8);
4092float8 __ovld __cnfn convert_float8_rtp(uint8);
4093float8 __ovld __cnfn convert_float8_rtn(uint8);
4094float8 __ovld __cnfn convert_float8(uint8);
4095float8 __ovld __cnfn convert_float8_rte(long8);
4096float8 __ovld __cnfn convert_float8_rtz(long8);
4097float8 __ovld __cnfn convert_float8_rtp(long8);
4098float8 __ovld __cnfn convert_float8_rtn(long8);
4099float8 __ovld __cnfn convert_float8(long8);
4100float8 __ovld __cnfn convert_float8_rte(ulong8);
4101float8 __ovld __cnfn convert_float8_rtz(ulong8);
4102float8 __ovld __cnfn convert_float8_rtp(ulong8);
4103float8 __ovld __cnfn convert_float8_rtn(ulong8);
4104float8 __ovld __cnfn convert_float8(ulong8);
4105float8 __ovld __cnfn convert_float8_rte(float8);
4106float8 __ovld __cnfn convert_float8_rtz(float8);
4107float8 __ovld __cnfn convert_float8_rtp(float8);
4108float8 __ovld __cnfn convert_float8_rtn(float8);
4109float8 __ovld __cnfn convert_float8(float8);
4110char16 __ovld __cnfn convert_char16_rte(char16);
4111char16 __ovld __cnfn convert_char16_sat_rte(char16);
4112char16 __ovld __cnfn convert_char16_rtz(char16);
4113char16 __ovld __cnfn convert_char16_sat_rtz(char16);
4114char16 __ovld __cnfn convert_char16_rtp(char16);
4115char16 __ovld __cnfn convert_char16_sat_rtp(char16);
4116char16 __ovld __cnfn convert_char16_rtn(char16);
4117char16 __ovld __cnfn convert_char16_sat_rtn(char16);
4118char16 __ovld __cnfn convert_char16(char16);
4119char16 __ovld __cnfn convert_char16_sat(char16);
4120char16 __ovld __cnfn convert_char16_rte(uchar16);
4121char16 __ovld __cnfn convert_char16_sat_rte(uchar16);
4122char16 __ovld __cnfn convert_char16_rtz(uchar16);
4123char16 __ovld __cnfn convert_char16_sat_rtz(uchar16);
4124char16 __ovld __cnfn convert_char16_rtp(uchar16);
4125char16 __ovld __cnfn convert_char16_sat_rtp(uchar16);
4126char16 __ovld __cnfn convert_char16_rtn(uchar16);
4127char16 __ovld __cnfn convert_char16_sat_rtn(uchar16);
4128char16 __ovld __cnfn convert_char16(uchar16);
4129char16 __ovld __cnfn convert_char16_sat(uchar16);
4130char16 __ovld __cnfn convert_char16_rte(short16);
4131char16 __ovld __cnfn convert_char16_sat_rte(short16);
4132char16 __ovld __cnfn convert_char16_rtz(short16);
4133char16 __ovld __cnfn convert_char16_sat_rtz(short16);
4134char16 __ovld __cnfn convert_char16_rtp(short16);
4135char16 __ovld __cnfn convert_char16_sat_rtp(short16);
4136char16 __ovld __cnfn convert_char16_rtn(short16);
4137char16 __ovld __cnfn convert_char16_sat_rtn(short16);
4138char16 __ovld __cnfn convert_char16(short16);
4139char16 __ovld __cnfn convert_char16_sat(short16);
4140char16 __ovld __cnfn convert_char16_rte(ushort16);
4141char16 __ovld __cnfn convert_char16_sat_rte(ushort16);
4142char16 __ovld __cnfn convert_char16_rtz(ushort16);
4143char16 __ovld __cnfn convert_char16_sat_rtz(ushort16);
4144char16 __ovld __cnfn convert_char16_rtp(ushort16);
4145char16 __ovld __cnfn convert_char16_sat_rtp(ushort16);
4146char16 __ovld __cnfn convert_char16_rtn(ushort16);
4147char16 __ovld __cnfn convert_char16_sat_rtn(ushort16);
4148char16 __ovld __cnfn convert_char16(ushort16);
4149char16 __ovld __cnfn convert_char16_sat(ushort16);
4150char16 __ovld __cnfn convert_char16_rte(int16);
4151char16 __ovld __cnfn convert_char16_sat_rte(int16);
4152char16 __ovld __cnfn convert_char16_rtz(int16);
4153char16 __ovld __cnfn convert_char16_sat_rtz(int16);
4154char16 __ovld __cnfn convert_char16_rtp(int16);
4155char16 __ovld __cnfn convert_char16_sat_rtp(int16);
4156char16 __ovld __cnfn convert_char16_rtn(int16);
4157char16 __ovld __cnfn convert_char16_sat_rtn(int16);
4158char16 __ovld __cnfn convert_char16(int16);
4159char16 __ovld __cnfn convert_char16_sat(int16);
4160char16 __ovld __cnfn convert_char16_rte(uint16);
4161char16 __ovld __cnfn convert_char16_sat_rte(uint16);
4162char16 __ovld __cnfn convert_char16_rtz(uint16);
4163char16 __ovld __cnfn convert_char16_sat_rtz(uint16);
4164char16 __ovld __cnfn convert_char16_rtp(uint16);
4165char16 __ovld __cnfn convert_char16_sat_rtp(uint16);
4166char16 __ovld __cnfn convert_char16_rtn(uint16);
4167char16 __ovld __cnfn convert_char16_sat_rtn(uint16);
4168char16 __ovld __cnfn convert_char16(uint16);
4169char16 __ovld __cnfn convert_char16_sat(uint16);
4170char16 __ovld __cnfn convert_char16_rte(long16);
4171char16 __ovld __cnfn convert_char16_sat_rte(long16);
4172char16 __ovld __cnfn convert_char16_rtz(long16);
4173char16 __ovld __cnfn convert_char16_sat_rtz(long16);
4174char16 __ovld __cnfn convert_char16_rtp(long16);
4175char16 __ovld __cnfn convert_char16_sat_rtp(long16);
4176char16 __ovld __cnfn convert_char16_rtn(long16);
4177char16 __ovld __cnfn convert_char16_sat_rtn(long16);
4178char16 __ovld __cnfn convert_char16(long16);
4179char16 __ovld __cnfn convert_char16_sat(long16);
4180char16 __ovld __cnfn convert_char16_rte(ulong16);
4181char16 __ovld __cnfn convert_char16_sat_rte(ulong16);
4182char16 __ovld __cnfn convert_char16_rtz(ulong16);
4183char16 __ovld __cnfn convert_char16_sat_rtz(ulong16);
4184char16 __ovld __cnfn convert_char16_rtp(ulong16);
4185char16 __ovld __cnfn convert_char16_sat_rtp(ulong16);
4186char16 __ovld __cnfn convert_char16_rtn(ulong16);
4187char16 __ovld __cnfn convert_char16_sat_rtn(ulong16);
4188char16 __ovld __cnfn convert_char16(ulong16);
4189char16 __ovld __cnfn convert_char16_sat(ulong16);
4190char16 __ovld __cnfn convert_char16_rte(float16);
4191char16 __ovld __cnfn convert_char16_sat_rte(float16);
4192char16 __ovld __cnfn convert_char16_rtz(float16);
4193char16 __ovld __cnfn convert_char16_sat_rtz(float16);
4194char16 __ovld __cnfn convert_char16_rtp(float16);
4195char16 __ovld __cnfn convert_char16_sat_rtp(float16);
4196char16 __ovld __cnfn convert_char16_rtn(float16);
4197char16 __ovld __cnfn convert_char16_sat_rtn(float16);
4198char16 __ovld __cnfn convert_char16(float16);
4199char16 __ovld __cnfn convert_char16_sat(float16);
4200uchar16 __ovld __cnfn convert_uchar16_rte(char16);
4201uchar16 __ovld __cnfn convert_uchar16_sat_rte(char16);
4202uchar16 __ovld __cnfn convert_uchar16_rtz(char16);
4203uchar16 __ovld __cnfn convert_uchar16_sat_rtz(char16);
4204uchar16 __ovld __cnfn convert_uchar16_rtp(char16);
4205uchar16 __ovld __cnfn convert_uchar16_sat_rtp(char16);
4206uchar16 __ovld __cnfn convert_uchar16_rtn(char16);
4207uchar16 __ovld __cnfn convert_uchar16_sat_rtn(char16);
4208uchar16 __ovld __cnfn convert_uchar16(char16);
4209uchar16 __ovld __cnfn convert_uchar16_sat(char16);
4210uchar16 __ovld __cnfn convert_uchar16_rte(uchar16);
4211uchar16 __ovld __cnfn convert_uchar16_sat_rte(uchar16);
4212uchar16 __ovld __cnfn convert_uchar16_rtz(uchar16);
4213uchar16 __ovld __cnfn convert_uchar16_sat_rtz(uchar16);
4214uchar16 __ovld __cnfn convert_uchar16_rtp(uchar16);
4215uchar16 __ovld __cnfn convert_uchar16_sat_rtp(uchar16);
4216uchar16 __ovld __cnfn convert_uchar16_rtn(uchar16);
4217uchar16 __ovld __cnfn convert_uchar16_sat_rtn(uchar16);
4218uchar16 __ovld __cnfn convert_uchar16(uchar16);
4219uchar16 __ovld __cnfn convert_uchar16_sat(uchar16);
4220uchar16 __ovld __cnfn convert_uchar16_rte(short16);
4221uchar16 __ovld __cnfn convert_uchar16_sat_rte(short16);
4222uchar16 __ovld __cnfn convert_uchar16_rtz(short16);
4223uchar16 __ovld __cnfn convert_uchar16_sat_rtz(short16);
4224uchar16 __ovld __cnfn convert_uchar16_rtp(short16);
4225uchar16 __ovld __cnfn convert_uchar16_sat_rtp(short16);
4226uchar16 __ovld __cnfn convert_uchar16_rtn(short16);
4227uchar16 __ovld __cnfn convert_uchar16_sat_rtn(short16);
4228uchar16 __ovld __cnfn convert_uchar16(short16);
4229uchar16 __ovld __cnfn convert_uchar16_sat(short16);
4230uchar16 __ovld __cnfn convert_uchar16_rte(ushort16);
4231uchar16 __ovld __cnfn convert_uchar16_sat_rte(ushort16);
4232uchar16 __ovld __cnfn convert_uchar16_rtz(ushort16);
4233uchar16 __ovld __cnfn convert_uchar16_sat_rtz(ushort16);
4234uchar16 __ovld __cnfn convert_uchar16_rtp(ushort16);
4235uchar16 __ovld __cnfn convert_uchar16_sat_rtp(ushort16);
4236uchar16 __ovld __cnfn convert_uchar16_rtn(ushort16);
4237uchar16 __ovld __cnfn convert_uchar16_sat_rtn(ushort16);
4238uchar16 __ovld __cnfn convert_uchar16(ushort16);
4239uchar16 __ovld __cnfn convert_uchar16_sat(ushort16);
4240uchar16 __ovld __cnfn convert_uchar16_rte(int16);
4241uchar16 __ovld __cnfn convert_uchar16_sat_rte(int16);
4242uchar16 __ovld __cnfn convert_uchar16_rtz(int16);
4243uchar16 __ovld __cnfn convert_uchar16_sat_rtz(int16);
4244uchar16 __ovld __cnfn convert_uchar16_rtp(int16);
4245uchar16 __ovld __cnfn convert_uchar16_sat_rtp(int16);
4246uchar16 __ovld __cnfn convert_uchar16_rtn(int16);
4247uchar16 __ovld __cnfn convert_uchar16_sat_rtn(int16);
4248uchar16 __ovld __cnfn convert_uchar16(int16);
4249uchar16 __ovld __cnfn convert_uchar16_sat(int16);
4250uchar16 __ovld __cnfn convert_uchar16_rte(uint16);
4251uchar16 __ovld __cnfn convert_uchar16_sat_rte(uint16);
4252uchar16 __ovld __cnfn convert_uchar16_rtz(uint16);
4253uchar16 __ovld __cnfn convert_uchar16_sat_rtz(uint16);
4254uchar16 __ovld __cnfn convert_uchar16_rtp(uint16);
4255uchar16 __ovld __cnfn convert_uchar16_sat_rtp(uint16);
4256uchar16 __ovld __cnfn convert_uchar16_rtn(uint16);
4257uchar16 __ovld __cnfn convert_uchar16_sat_rtn(uint16);
4258uchar16 __ovld __cnfn convert_uchar16(uint16);
4259uchar16 __ovld __cnfn convert_uchar16_sat(uint16);
4260uchar16 __ovld __cnfn convert_uchar16_rte(long16);
4261uchar16 __ovld __cnfn convert_uchar16_sat_rte(long16);
4262uchar16 __ovld __cnfn convert_uchar16_rtz(long16);
4263uchar16 __ovld __cnfn convert_uchar16_sat_rtz(long16);
4264uchar16 __ovld __cnfn convert_uchar16_rtp(long16);
4265uchar16 __ovld __cnfn convert_uchar16_sat_rtp(long16);
4266uchar16 __ovld __cnfn convert_uchar16_rtn(long16);
4267uchar16 __ovld __cnfn convert_uchar16_sat_rtn(long16);
4268uchar16 __ovld __cnfn convert_uchar16(long16);
4269uchar16 __ovld __cnfn convert_uchar16_sat(long16);
4270uchar16 __ovld __cnfn convert_uchar16_rte(ulong16);
4271uchar16 __ovld __cnfn convert_uchar16_sat_rte(ulong16);
4272uchar16 __ovld __cnfn convert_uchar16_rtz(ulong16);
4273uchar16 __ovld __cnfn convert_uchar16_sat_rtz(ulong16);
4274uchar16 __ovld __cnfn convert_uchar16_rtp(ulong16);
4275uchar16 __ovld __cnfn convert_uchar16_sat_rtp(ulong16);
4276uchar16 __ovld __cnfn convert_uchar16_rtn(ulong16);
4277uchar16 __ovld __cnfn convert_uchar16_sat_rtn(ulong16);
4278uchar16 __ovld __cnfn convert_uchar16(ulong16);
4279uchar16 __ovld __cnfn convert_uchar16_sat(ulong16);
4280uchar16 __ovld __cnfn convert_uchar16_rte(float16);
4281uchar16 __ovld __cnfn convert_uchar16_sat_rte(float16);
4282uchar16 __ovld __cnfn convert_uchar16_rtz(float16);
4283uchar16 __ovld __cnfn convert_uchar16_sat_rtz(float16);
4284uchar16 __ovld __cnfn convert_uchar16_rtp(float16);
4285uchar16 __ovld __cnfn convert_uchar16_sat_rtp(float16);
4286uchar16 __ovld __cnfn convert_uchar16_rtn(float16);
4287uchar16 __ovld __cnfn convert_uchar16_sat_rtn(float16);
4288uchar16 __ovld __cnfn convert_uchar16(float16);
4289uchar16 __ovld __cnfn convert_uchar16_sat(float16);
4290short16 __ovld __cnfn convert_short16_rte(char16);
4291short16 __ovld __cnfn convert_short16_sat_rte(char16);
4292short16 __ovld __cnfn convert_short16_rtz(char16);
4293short16 __ovld __cnfn convert_short16_sat_rtz(char16);
4294short16 __ovld __cnfn convert_short16_rtp(char16);
4295short16 __ovld __cnfn convert_short16_sat_rtp(char16);
4296short16 __ovld __cnfn convert_short16_rtn(char16);
4297short16 __ovld __cnfn convert_short16_sat_rtn(char16);
4298short16 __ovld __cnfn convert_short16(char16);
4299short16 __ovld __cnfn convert_short16_sat(char16);
4300short16 __ovld __cnfn convert_short16_rte(uchar16);
4301short16 __ovld __cnfn convert_short16_sat_rte(uchar16);
4302short16 __ovld __cnfn convert_short16_rtz(uchar16);
4303short16 __ovld __cnfn convert_short16_sat_rtz(uchar16);
4304short16 __ovld __cnfn convert_short16_rtp(uchar16);
4305short16 __ovld __cnfn convert_short16_sat_rtp(uchar16);
4306short16 __ovld __cnfn convert_short16_rtn(uchar16);
4307short16 __ovld __cnfn convert_short16_sat_rtn(uchar16);
4308short16 __ovld __cnfn convert_short16(uchar16);
4309short16 __ovld __cnfn convert_short16_sat(uchar16);
4310short16 __ovld __cnfn convert_short16_rte(short16);
4311short16 __ovld __cnfn convert_short16_sat_rte(short16);
4312short16 __ovld __cnfn convert_short16_rtz(short16);
4313short16 __ovld __cnfn convert_short16_sat_rtz(short16);
4314short16 __ovld __cnfn convert_short16_rtp(short16);
4315short16 __ovld __cnfn convert_short16_sat_rtp(short16);
4316short16 __ovld __cnfn convert_short16_rtn(short16);
4317short16 __ovld __cnfn convert_short16_sat_rtn(short16);
4318short16 __ovld __cnfn convert_short16(short16);
4319short16 __ovld __cnfn convert_short16_sat(short16);
4320short16 __ovld __cnfn convert_short16_rte(ushort16);
4321short16 __ovld __cnfn convert_short16_sat_rte(ushort16);
4322short16 __ovld __cnfn convert_short16_rtz(ushort16);
4323short16 __ovld __cnfn convert_short16_sat_rtz(ushort16);
4324short16 __ovld __cnfn convert_short16_rtp(ushort16);
4325short16 __ovld __cnfn convert_short16_sat_rtp(ushort16);
4326short16 __ovld __cnfn convert_short16_rtn(ushort16);
4327short16 __ovld __cnfn convert_short16_sat_rtn(ushort16);
4328short16 __ovld __cnfn convert_short16(ushort16);
4329short16 __ovld __cnfn convert_short16_sat(ushort16);
4330short16 __ovld __cnfn convert_short16_rte(int16);
4331short16 __ovld __cnfn convert_short16_sat_rte(int16);
4332short16 __ovld __cnfn convert_short16_rtz(int16);
4333short16 __ovld __cnfn convert_short16_sat_rtz(int16);
4334short16 __ovld __cnfn convert_short16_rtp(int16);
4335short16 __ovld __cnfn convert_short16_sat_rtp(int16);
4336short16 __ovld __cnfn convert_short16_rtn(int16);
4337short16 __ovld __cnfn convert_short16_sat_rtn(int16);
4338short16 __ovld __cnfn convert_short16(int16);
4339short16 __ovld __cnfn convert_short16_sat(int16);
4340short16 __ovld __cnfn convert_short16_rte(uint16);
4341short16 __ovld __cnfn convert_short16_sat_rte(uint16);
4342short16 __ovld __cnfn convert_short16_rtz(uint16);
4343short16 __ovld __cnfn convert_short16_sat_rtz(uint16);
4344short16 __ovld __cnfn convert_short16_rtp(uint16);
4345short16 __ovld __cnfn convert_short16_sat_rtp(uint16);
4346short16 __ovld __cnfn convert_short16_rtn(uint16);
4347short16 __ovld __cnfn convert_short16_sat_rtn(uint16);
4348short16 __ovld __cnfn convert_short16(uint16);
4349short16 __ovld __cnfn convert_short16_sat(uint16);
4350short16 __ovld __cnfn convert_short16_rte(long16);
4351short16 __ovld __cnfn convert_short16_sat_rte(long16);
4352short16 __ovld __cnfn convert_short16_rtz(long16);
4353short16 __ovld __cnfn convert_short16_sat_rtz(long16);
4354short16 __ovld __cnfn convert_short16_rtp(long16);
4355short16 __ovld __cnfn convert_short16_sat_rtp(long16);
4356short16 __ovld __cnfn convert_short16_rtn(long16);
4357short16 __ovld __cnfn convert_short16_sat_rtn(long16);
4358short16 __ovld __cnfn convert_short16(long16);
4359short16 __ovld __cnfn convert_short16_sat(long16);
4360short16 __ovld __cnfn convert_short16_rte(ulong16);
4361short16 __ovld __cnfn convert_short16_sat_rte(ulong16);
4362short16 __ovld __cnfn convert_short16_rtz(ulong16);
4363short16 __ovld __cnfn convert_short16_sat_rtz(ulong16);
4364short16 __ovld __cnfn convert_short16_rtp(ulong16);
4365short16 __ovld __cnfn convert_short16_sat_rtp(ulong16);
4366short16 __ovld __cnfn convert_short16_rtn(ulong16);
4367short16 __ovld __cnfn convert_short16_sat_rtn(ulong16);
4368short16 __ovld __cnfn convert_short16(ulong16);
4369short16 __ovld __cnfn convert_short16_sat(ulong16);
4370short16 __ovld __cnfn convert_short16_rte(float16);
4371short16 __ovld __cnfn convert_short16_sat_rte(float16);
4372short16 __ovld __cnfn convert_short16_rtz(float16);
4373short16 __ovld __cnfn convert_short16_sat_rtz(float16);
4374short16 __ovld __cnfn convert_short16_rtp(float16);
4375short16 __ovld __cnfn convert_short16_sat_rtp(float16);
4376short16 __ovld __cnfn convert_short16_rtn(float16);
4377short16 __ovld __cnfn convert_short16_sat_rtn(float16);
4378short16 __ovld __cnfn convert_short16(float16);
4379short16 __ovld __cnfn convert_short16_sat(float16);
4380ushort16 __ovld __cnfn convert_ushort16_rte(char16);
4381ushort16 __ovld __cnfn convert_ushort16_sat_rte(char16);
4382ushort16 __ovld __cnfn convert_ushort16_rtz(char16);
4383ushort16 __ovld __cnfn convert_ushort16_sat_rtz(char16);
4384ushort16 __ovld __cnfn convert_ushort16_rtp(char16);
4385ushort16 __ovld __cnfn convert_ushort16_sat_rtp(char16);
4386ushort16 __ovld __cnfn convert_ushort16_rtn(char16);
4387ushort16 __ovld __cnfn convert_ushort16_sat_rtn(char16);
4388ushort16 __ovld __cnfn convert_ushort16(char16);
4389ushort16 __ovld __cnfn convert_ushort16_sat(char16);
4390ushort16 __ovld __cnfn convert_ushort16_rte(uchar16);
4391ushort16 __ovld __cnfn convert_ushort16_sat_rte(uchar16);
4392ushort16 __ovld __cnfn convert_ushort16_rtz(uchar16);
4393ushort16 __ovld __cnfn convert_ushort16_sat_rtz(uchar16);
4394ushort16 __ovld __cnfn convert_ushort16_rtp(uchar16);
4395ushort16 __ovld __cnfn convert_ushort16_sat_rtp(uchar16);
4396ushort16 __ovld __cnfn convert_ushort16_rtn(uchar16);
4397ushort16 __ovld __cnfn convert_ushort16_sat_rtn(uchar16);
4398ushort16 __ovld __cnfn convert_ushort16(uchar16);
4399ushort16 __ovld __cnfn convert_ushort16_sat(uchar16);
4400ushort16 __ovld __cnfn convert_ushort16_rte(short16);
4401ushort16 __ovld __cnfn convert_ushort16_sat_rte(short16);
4402ushort16 __ovld __cnfn convert_ushort16_rtz(short16);
4403ushort16 __ovld __cnfn convert_ushort16_sat_rtz(short16);
4404ushort16 __ovld __cnfn convert_ushort16_rtp(short16);
4405ushort16 __ovld __cnfn convert_ushort16_sat_rtp(short16);
4406ushort16 __ovld __cnfn convert_ushort16_rtn(short16);
4407ushort16 __ovld __cnfn convert_ushort16_sat_rtn(short16);
4408ushort16 __ovld __cnfn convert_ushort16(short16);
4409ushort16 __ovld __cnfn convert_ushort16_sat(short16);
4410ushort16 __ovld __cnfn convert_ushort16_rte(ushort16);
4411ushort16 __ovld __cnfn convert_ushort16_sat_rte(ushort16);
4412ushort16 __ovld __cnfn convert_ushort16_rtz(ushort16);
4413ushort16 __ovld __cnfn convert_ushort16_sat_rtz(ushort16);
4414ushort16 __ovld __cnfn convert_ushort16_rtp(ushort16);
4415ushort16 __ovld __cnfn convert_ushort16_sat_rtp(ushort16);
4416ushort16 __ovld __cnfn convert_ushort16_rtn(ushort16);
4417ushort16 __ovld __cnfn convert_ushort16_sat_rtn(ushort16);
4418ushort16 __ovld __cnfn convert_ushort16(ushort16);
4419ushort16 __ovld __cnfn convert_ushort16_sat(ushort16);
4420ushort16 __ovld __cnfn convert_ushort16_rte(int16);
4421ushort16 __ovld __cnfn convert_ushort16_sat_rte(int16);
4422ushort16 __ovld __cnfn convert_ushort16_rtz(int16);
4423ushort16 __ovld __cnfn convert_ushort16_sat_rtz(int16);
4424ushort16 __ovld __cnfn convert_ushort16_rtp(int16);
4425ushort16 __ovld __cnfn convert_ushort16_sat_rtp(int16);
4426ushort16 __ovld __cnfn convert_ushort16_rtn(int16);
4427ushort16 __ovld __cnfn convert_ushort16_sat_rtn(int16);
4428ushort16 __ovld __cnfn convert_ushort16(int16);
4429ushort16 __ovld __cnfn convert_ushort16_sat(int16);
4430ushort16 __ovld __cnfn convert_ushort16_rte(uint16);
4431ushort16 __ovld __cnfn convert_ushort16_sat_rte(uint16);
4432ushort16 __ovld __cnfn convert_ushort16_rtz(uint16);
4433ushort16 __ovld __cnfn convert_ushort16_sat_rtz(uint16);
4434ushort16 __ovld __cnfn convert_ushort16_rtp(uint16);
4435ushort16 __ovld __cnfn convert_ushort16_sat_rtp(uint16);
4436ushort16 __ovld __cnfn convert_ushort16_rtn(uint16);
4437ushort16 __ovld __cnfn convert_ushort16_sat_rtn(uint16);
4438ushort16 __ovld __cnfn convert_ushort16(uint16);
4439ushort16 __ovld __cnfn convert_ushort16_sat(uint16);
4440ushort16 __ovld __cnfn convert_ushort16_rte(long16);
4441ushort16 __ovld __cnfn convert_ushort16_sat_rte(long16);
4442ushort16 __ovld __cnfn convert_ushort16_rtz(long16);
4443ushort16 __ovld __cnfn convert_ushort16_sat_rtz(long16);
4444ushort16 __ovld __cnfn convert_ushort16_rtp(long16);
4445ushort16 __ovld __cnfn convert_ushort16_sat_rtp(long16);
4446ushort16 __ovld __cnfn convert_ushort16_rtn(long16);
4447ushort16 __ovld __cnfn convert_ushort16_sat_rtn(long16);
4448ushort16 __ovld __cnfn convert_ushort16(long16);
4449ushort16 __ovld __cnfn convert_ushort16_sat(long16);
4450ushort16 __ovld __cnfn convert_ushort16_rte(ulong16);
4451ushort16 __ovld __cnfn convert_ushort16_sat_rte(ulong16);
4452ushort16 __ovld __cnfn convert_ushort16_rtz(ulong16);
4453ushort16 __ovld __cnfn convert_ushort16_sat_rtz(ulong16);
4454ushort16 __ovld __cnfn convert_ushort16_rtp(ulong16);
4455ushort16 __ovld __cnfn convert_ushort16_sat_rtp(ulong16);
4456ushort16 __ovld __cnfn convert_ushort16_rtn(ulong16);
4457ushort16 __ovld __cnfn convert_ushort16_sat_rtn(ulong16);
4458ushort16 __ovld __cnfn convert_ushort16(ulong16);
4459ushort16 __ovld __cnfn convert_ushort16_sat(ulong16);
4460ushort16 __ovld __cnfn convert_ushort16_rte(float16);
4461ushort16 __ovld __cnfn convert_ushort16_sat_rte(float16);
4462ushort16 __ovld __cnfn convert_ushort16_rtz(float16);
4463ushort16 __ovld __cnfn convert_ushort16_sat_rtz(float16);
4464ushort16 __ovld __cnfn convert_ushort16_rtp(float16);
4465ushort16 __ovld __cnfn convert_ushort16_sat_rtp(float16);
4466ushort16 __ovld __cnfn convert_ushort16_rtn(float16);
4467ushort16 __ovld __cnfn convert_ushort16_sat_rtn(float16);
4468ushort16 __ovld __cnfn convert_ushort16(float16);
4469ushort16 __ovld __cnfn convert_ushort16_sat(float16);
4470int16 __ovld __cnfn convert_int16_rte(char16);
4471int16 __ovld __cnfn convert_int16_sat_rte(char16);
4472int16 __ovld __cnfn convert_int16_rtz(char16);
4473int16 __ovld __cnfn convert_int16_sat_rtz(char16);
4474int16 __ovld __cnfn convert_int16_rtp(char16);
4475int16 __ovld __cnfn convert_int16_sat_rtp(char16);
4476int16 __ovld __cnfn convert_int16_rtn(char16);
4477int16 __ovld __cnfn convert_int16_sat_rtn(char16);
4478int16 __ovld __cnfn convert_int16(char16);
4479int16 __ovld __cnfn convert_int16_sat(char16);
4480int16 __ovld __cnfn convert_int16_rte(uchar16);
4481int16 __ovld __cnfn convert_int16_sat_rte(uchar16);
4482int16 __ovld __cnfn convert_int16_rtz(uchar16);
4483int16 __ovld __cnfn convert_int16_sat_rtz(uchar16);
4484int16 __ovld __cnfn convert_int16_rtp(uchar16);
4485int16 __ovld __cnfn convert_int16_sat_rtp(uchar16);
4486int16 __ovld __cnfn convert_int16_rtn(uchar16);
4487int16 __ovld __cnfn convert_int16_sat_rtn(uchar16);
4488int16 __ovld __cnfn convert_int16(uchar16);
4489int16 __ovld __cnfn convert_int16_sat(uchar16);
4490int16 __ovld __cnfn convert_int16_rte(short16);
4491int16 __ovld __cnfn convert_int16_sat_rte(short16);
4492int16 __ovld __cnfn convert_int16_rtz(short16);
4493int16 __ovld __cnfn convert_int16_sat_rtz(short16);
4494int16 __ovld __cnfn convert_int16_rtp(short16);
4495int16 __ovld __cnfn convert_int16_sat_rtp(short16);
4496int16 __ovld __cnfn convert_int16_rtn(short16);
4497int16 __ovld __cnfn convert_int16_sat_rtn(short16);
4498int16 __ovld __cnfn convert_int16(short16);
4499int16 __ovld __cnfn convert_int16_sat(short16);
4500int16 __ovld __cnfn convert_int16_rte(ushort16);
4501int16 __ovld __cnfn convert_int16_sat_rte(ushort16);
4502int16 __ovld __cnfn convert_int16_rtz(ushort16);
4503int16 __ovld __cnfn convert_int16_sat_rtz(ushort16);
4504int16 __ovld __cnfn convert_int16_rtp(ushort16);
4505int16 __ovld __cnfn convert_int16_sat_rtp(ushort16);
4506int16 __ovld __cnfn convert_int16_rtn(ushort16);
4507int16 __ovld __cnfn convert_int16_sat_rtn(ushort16);
4508int16 __ovld __cnfn convert_int16(ushort16);
4509int16 __ovld __cnfn convert_int16_sat(ushort16);
4510int16 __ovld __cnfn convert_int16_rte(int16);
4511int16 __ovld __cnfn convert_int16_sat_rte(int16);
4512int16 __ovld __cnfn convert_int16_rtz(int16);
4513int16 __ovld __cnfn convert_int16_sat_rtz(int16);
4514int16 __ovld __cnfn convert_int16_rtp(int16);
4515int16 __ovld __cnfn convert_int16_sat_rtp(int16);
4516int16 __ovld __cnfn convert_int16_rtn(int16);
4517int16 __ovld __cnfn convert_int16_sat_rtn(int16);
4518int16 __ovld __cnfn convert_int16(int16);
4519int16 __ovld __cnfn convert_int16_sat(int16);
4520int16 __ovld __cnfn convert_int16_rte(uint16);
4521int16 __ovld __cnfn convert_int16_sat_rte(uint16);
4522int16 __ovld __cnfn convert_int16_rtz(uint16);
4523int16 __ovld __cnfn convert_int16_sat_rtz(uint16);
4524int16 __ovld __cnfn convert_int16_rtp(uint16);
4525int16 __ovld __cnfn convert_int16_sat_rtp(uint16);
4526int16 __ovld __cnfn convert_int16_rtn(uint16);
4527int16 __ovld __cnfn convert_int16_sat_rtn(uint16);
4528int16 __ovld __cnfn convert_int16(uint16);
4529int16 __ovld __cnfn convert_int16_sat(uint16);
4530int16 __ovld __cnfn convert_int16_rte(long16);
4531int16 __ovld __cnfn convert_int16_sat_rte(long16);
4532int16 __ovld __cnfn convert_int16_rtz(long16);
4533int16 __ovld __cnfn convert_int16_sat_rtz(long16);
4534int16 __ovld __cnfn convert_int16_rtp(long16);
4535int16 __ovld __cnfn convert_int16_sat_rtp(long16);
4536int16 __ovld __cnfn convert_int16_rtn(long16);
4537int16 __ovld __cnfn convert_int16_sat_rtn(long16);
4538int16 __ovld __cnfn convert_int16(long16);
4539int16 __ovld __cnfn convert_int16_sat(long16);
4540int16 __ovld __cnfn convert_int16_rte(ulong16);
4541int16 __ovld __cnfn convert_int16_sat_rte(ulong16);
4542int16 __ovld __cnfn convert_int16_rtz(ulong16);
4543int16 __ovld __cnfn convert_int16_sat_rtz(ulong16);
4544int16 __ovld __cnfn convert_int16_rtp(ulong16);
4545int16 __ovld __cnfn convert_int16_sat_rtp(ulong16);
4546int16 __ovld __cnfn convert_int16_rtn(ulong16);
4547int16 __ovld __cnfn convert_int16_sat_rtn(ulong16);
4548int16 __ovld __cnfn convert_int16(ulong16);
4549int16 __ovld __cnfn convert_int16_sat(ulong16);
4550int16 __ovld __cnfn convert_int16_rte(float16);
4551int16 __ovld __cnfn convert_int16_sat_rte(float16);
4552int16 __ovld __cnfn convert_int16_rtz(float16);
4553int16 __ovld __cnfn convert_int16_sat_rtz(float16);
4554int16 __ovld __cnfn convert_int16_rtp(float16);
4555int16 __ovld __cnfn convert_int16_sat_rtp(float16);
4556int16 __ovld __cnfn convert_int16_rtn(float16);
4557int16 __ovld __cnfn convert_int16_sat_rtn(float16);
4558int16 __ovld __cnfn convert_int16(float16);
4559int16 __ovld __cnfn convert_int16_sat(float16);
4560uint16 __ovld __cnfn convert_uint16_rte(char16);
4561uint16 __ovld __cnfn convert_uint16_sat_rte(char16);
4562uint16 __ovld __cnfn convert_uint16_rtz(char16);
4563uint16 __ovld __cnfn convert_uint16_sat_rtz(char16);
4564uint16 __ovld __cnfn convert_uint16_rtp(char16);
4565uint16 __ovld __cnfn convert_uint16_sat_rtp(char16);
4566uint16 __ovld __cnfn convert_uint16_rtn(char16);
4567uint16 __ovld __cnfn convert_uint16_sat_rtn(char16);
4568uint16 __ovld __cnfn convert_uint16(char16);
4569uint16 __ovld __cnfn convert_uint16_sat(char16);
4570uint16 __ovld __cnfn convert_uint16_rte(uchar16);
4571uint16 __ovld __cnfn convert_uint16_sat_rte(uchar16);
4572uint16 __ovld __cnfn convert_uint16_rtz(uchar16);
4573uint16 __ovld __cnfn convert_uint16_sat_rtz(uchar16);
4574uint16 __ovld __cnfn convert_uint16_rtp(uchar16);
4575uint16 __ovld __cnfn convert_uint16_sat_rtp(uchar16);
4576uint16 __ovld __cnfn convert_uint16_rtn(uchar16);
4577uint16 __ovld __cnfn convert_uint16_sat_rtn(uchar16);
4578uint16 __ovld __cnfn convert_uint16(uchar16);
4579uint16 __ovld __cnfn convert_uint16_sat(uchar16);
4580uint16 __ovld __cnfn convert_uint16_rte(short16);
4581uint16 __ovld __cnfn convert_uint16_sat_rte(short16);
4582uint16 __ovld __cnfn convert_uint16_rtz(short16);
4583uint16 __ovld __cnfn convert_uint16_sat_rtz(short16);
4584uint16 __ovld __cnfn convert_uint16_rtp(short16);
4585uint16 __ovld __cnfn convert_uint16_sat_rtp(short16);
4586uint16 __ovld __cnfn convert_uint16_rtn(short16);
4587uint16 __ovld __cnfn convert_uint16_sat_rtn(short16);
4588uint16 __ovld __cnfn convert_uint16(short16);
4589uint16 __ovld __cnfn convert_uint16_sat(short16);
4590uint16 __ovld __cnfn convert_uint16_rte(ushort16);
4591uint16 __ovld __cnfn convert_uint16_sat_rte(ushort16);
4592uint16 __ovld __cnfn convert_uint16_rtz(ushort16);
4593uint16 __ovld __cnfn convert_uint16_sat_rtz(ushort16);
4594uint16 __ovld __cnfn convert_uint16_rtp(ushort16);
4595uint16 __ovld __cnfn convert_uint16_sat_rtp(ushort16);
4596uint16 __ovld __cnfn convert_uint16_rtn(ushort16);
4597uint16 __ovld __cnfn convert_uint16_sat_rtn(ushort16);
4598uint16 __ovld __cnfn convert_uint16(ushort16);
4599uint16 __ovld __cnfn convert_uint16_sat(ushort16);
4600uint16 __ovld __cnfn convert_uint16_rte(int16);
4601uint16 __ovld __cnfn convert_uint16_sat_rte(int16);
4602uint16 __ovld __cnfn convert_uint16_rtz(int16);
4603uint16 __ovld __cnfn convert_uint16_sat_rtz(int16);
4604uint16 __ovld __cnfn convert_uint16_rtp(int16);
4605uint16 __ovld __cnfn convert_uint16_sat_rtp(int16);
4606uint16 __ovld __cnfn convert_uint16_rtn(int16);
4607uint16 __ovld __cnfn convert_uint16_sat_rtn(int16);
4608uint16 __ovld __cnfn convert_uint16(int16);
4609uint16 __ovld __cnfn convert_uint16_sat(int16);
4610uint16 __ovld __cnfn convert_uint16_rte(uint16);
4611uint16 __ovld __cnfn convert_uint16_sat_rte(uint16);
4612uint16 __ovld __cnfn convert_uint16_rtz(uint16);
4613uint16 __ovld __cnfn convert_uint16_sat_rtz(uint16);
4614uint16 __ovld __cnfn convert_uint16_rtp(uint16);
4615uint16 __ovld __cnfn convert_uint16_sat_rtp(uint16);
4616uint16 __ovld __cnfn convert_uint16_rtn(uint16);
4617uint16 __ovld __cnfn convert_uint16_sat_rtn(uint16);
4618uint16 __ovld __cnfn convert_uint16(uint16);
4619uint16 __ovld __cnfn convert_uint16_sat(uint16);
4620uint16 __ovld __cnfn convert_uint16_rte(long16);
4621uint16 __ovld __cnfn convert_uint16_sat_rte(long16);
4622uint16 __ovld __cnfn convert_uint16_rtz(long16);
4623uint16 __ovld __cnfn convert_uint16_sat_rtz(long16);
4624uint16 __ovld __cnfn convert_uint16_rtp(long16);
4625uint16 __ovld __cnfn convert_uint16_sat_rtp(long16);
4626uint16 __ovld __cnfn convert_uint16_rtn(long16);
4627uint16 __ovld __cnfn convert_uint16_sat_rtn(long16);
4628uint16 __ovld __cnfn convert_uint16(long16);
4629uint16 __ovld __cnfn convert_uint16_sat(long16);
4630uint16 __ovld __cnfn convert_uint16_rte(ulong16);
4631uint16 __ovld __cnfn convert_uint16_sat_rte(ulong16);
4632uint16 __ovld __cnfn convert_uint16_rtz(ulong16);
4633uint16 __ovld __cnfn convert_uint16_sat_rtz(ulong16);
4634uint16 __ovld __cnfn convert_uint16_rtp(ulong16);
4635uint16 __ovld __cnfn convert_uint16_sat_rtp(ulong16);
4636uint16 __ovld __cnfn convert_uint16_rtn(ulong16);
4637uint16 __ovld __cnfn convert_uint16_sat_rtn(ulong16);
4638uint16 __ovld __cnfn convert_uint16(ulong16);
4639uint16 __ovld __cnfn convert_uint16_sat(ulong16);
4640uint16 __ovld __cnfn convert_uint16_rte(float16);
4641uint16 __ovld __cnfn convert_uint16_sat_rte(float16);
4642uint16 __ovld __cnfn convert_uint16_rtz(float16);
4643uint16 __ovld __cnfn convert_uint16_sat_rtz(float16);
4644uint16 __ovld __cnfn convert_uint16_rtp(float16);
4645uint16 __ovld __cnfn convert_uint16_sat_rtp(float16);
4646uint16 __ovld __cnfn convert_uint16_rtn(float16);
4647uint16 __ovld __cnfn convert_uint16_sat_rtn(float16);
4648uint16 __ovld __cnfn convert_uint16(float16);
4649uint16 __ovld __cnfn convert_uint16_sat(float16);
4650long16 __ovld __cnfn convert_long16_rte(char16);
4651long16 __ovld __cnfn convert_long16_sat_rte(char16);
4652long16 __ovld __cnfn convert_long16_rtz(char16);
4653long16 __ovld __cnfn convert_long16_sat_rtz(char16);
4654long16 __ovld __cnfn convert_long16_rtp(char16);
4655long16 __ovld __cnfn convert_long16_sat_rtp(char16);
4656long16 __ovld __cnfn convert_long16_rtn(char16);
4657long16 __ovld __cnfn convert_long16_sat_rtn(char16);
4658long16 __ovld __cnfn convert_long16(char16);
4659long16 __ovld __cnfn convert_long16_sat(char16);
4660long16 __ovld __cnfn convert_long16_rte(uchar16);
4661long16 __ovld __cnfn convert_long16_sat_rte(uchar16);
4662long16 __ovld __cnfn convert_long16_rtz(uchar16);
4663long16 __ovld __cnfn convert_long16_sat_rtz(uchar16);
4664long16 __ovld __cnfn convert_long16_rtp(uchar16);
4665long16 __ovld __cnfn convert_long16_sat_rtp(uchar16);
4666long16 __ovld __cnfn convert_long16_rtn(uchar16);
4667long16 __ovld __cnfn convert_long16_sat_rtn(uchar16);
4668long16 __ovld __cnfn convert_long16(uchar16);
4669long16 __ovld __cnfn convert_long16_sat(uchar16);
4670long16 __ovld __cnfn convert_long16_rte(short16);
4671long16 __ovld __cnfn convert_long16_sat_rte(short16);
4672long16 __ovld __cnfn convert_long16_rtz(short16);
4673long16 __ovld __cnfn convert_long16_sat_rtz(short16);
4674long16 __ovld __cnfn convert_long16_rtp(short16);
4675long16 __ovld __cnfn convert_long16_sat_rtp(short16);
4676long16 __ovld __cnfn convert_long16_rtn(short16);
4677long16 __ovld __cnfn convert_long16_sat_rtn(short16);
4678long16 __ovld __cnfn convert_long16(short16);
4679long16 __ovld __cnfn convert_long16_sat(short16);
4680long16 __ovld __cnfn convert_long16_rte(ushort16);
4681long16 __ovld __cnfn convert_long16_sat_rte(ushort16);
4682long16 __ovld __cnfn convert_long16_rtz(ushort16);
4683long16 __ovld __cnfn convert_long16_sat_rtz(ushort16);
4684long16 __ovld __cnfn convert_long16_rtp(ushort16);
4685long16 __ovld __cnfn convert_long16_sat_rtp(ushort16);
4686long16 __ovld __cnfn convert_long16_rtn(ushort16);
4687long16 __ovld __cnfn convert_long16_sat_rtn(ushort16);
4688long16 __ovld __cnfn convert_long16(ushort16);
4689long16 __ovld __cnfn convert_long16_sat(ushort16);
4690long16 __ovld __cnfn convert_long16_rte(int16);
4691long16 __ovld __cnfn convert_long16_sat_rte(int16);
4692long16 __ovld __cnfn convert_long16_rtz(int16);
4693long16 __ovld __cnfn convert_long16_sat_rtz(int16);
4694long16 __ovld __cnfn convert_long16_rtp(int16);
4695long16 __ovld __cnfn convert_long16_sat_rtp(int16);
4696long16 __ovld __cnfn convert_long16_rtn(int16);
4697long16 __ovld __cnfn convert_long16_sat_rtn(int16);
4698long16 __ovld __cnfn convert_long16(int16);
4699long16 __ovld __cnfn convert_long16_sat(int16);
4700long16 __ovld __cnfn convert_long16_rte(uint16);
4701long16 __ovld __cnfn convert_long16_sat_rte(uint16);
4702long16 __ovld __cnfn convert_long16_rtz(uint16);
4703long16 __ovld __cnfn convert_long16_sat_rtz(uint16);
4704long16 __ovld __cnfn convert_long16_rtp(uint16);
4705long16 __ovld __cnfn convert_long16_sat_rtp(uint16);
4706long16 __ovld __cnfn convert_long16_rtn(uint16);
4707long16 __ovld __cnfn convert_long16_sat_rtn(uint16);
4708long16 __ovld __cnfn convert_long16(uint16);
4709long16 __ovld __cnfn convert_long16_sat(uint16);
4710long16 __ovld __cnfn convert_long16_rte(long16);
4711long16 __ovld __cnfn convert_long16_sat_rte(long16);
4712long16 __ovld __cnfn convert_long16_rtz(long16);
4713long16 __ovld __cnfn convert_long16_sat_rtz(long16);
4714long16 __ovld __cnfn convert_long16_rtp(long16);
4715long16 __ovld __cnfn convert_long16_sat_rtp(long16);
4716long16 __ovld __cnfn convert_long16_rtn(long16);
4717long16 __ovld __cnfn convert_long16_sat_rtn(long16);
4718long16 __ovld __cnfn convert_long16(long16);
4719long16 __ovld __cnfn convert_long16_sat(long16);
4720long16 __ovld __cnfn convert_long16_rte(ulong16);
4721long16 __ovld __cnfn convert_long16_sat_rte(ulong16);
4722long16 __ovld __cnfn convert_long16_rtz(ulong16);
4723long16 __ovld __cnfn convert_long16_sat_rtz(ulong16);
4724long16 __ovld __cnfn convert_long16_rtp(ulong16);
4725long16 __ovld __cnfn convert_long16_sat_rtp(ulong16);
4726long16 __ovld __cnfn convert_long16_rtn(ulong16);
4727long16 __ovld __cnfn convert_long16_sat_rtn(ulong16);
4728long16 __ovld __cnfn convert_long16(ulong16);
4729long16 __ovld __cnfn convert_long16_sat(ulong16);
4730long16 __ovld __cnfn convert_long16_rte(float16);
4731long16 __ovld __cnfn convert_long16_sat_rte(float16);
4732long16 __ovld __cnfn convert_long16_rtz(float16);
4733long16 __ovld __cnfn convert_long16_sat_rtz(float16);
4734long16 __ovld __cnfn convert_long16_rtp(float16);
4735long16 __ovld __cnfn convert_long16_sat_rtp(float16);
4736long16 __ovld __cnfn convert_long16_rtn(float16);
4737long16 __ovld __cnfn convert_long16_sat_rtn(float16);
4738long16 __ovld __cnfn convert_long16(float16);
4739long16 __ovld __cnfn convert_long16_sat(float16);
4740ulong16 __ovld __cnfn convert_ulong16_rte(char16);
4741ulong16 __ovld __cnfn convert_ulong16_sat_rte(char16);
4742ulong16 __ovld __cnfn convert_ulong16_rtz(char16);
4743ulong16 __ovld __cnfn convert_ulong16_sat_rtz(char16);
4744ulong16 __ovld __cnfn convert_ulong16_rtp(char16);
4745ulong16 __ovld __cnfn convert_ulong16_sat_rtp(char16);
4746ulong16 __ovld __cnfn convert_ulong16_rtn(char16);
4747ulong16 __ovld __cnfn convert_ulong16_sat_rtn(char16);
4748ulong16 __ovld __cnfn convert_ulong16(char16);
4749ulong16 __ovld __cnfn convert_ulong16_sat(char16);
4750ulong16 __ovld __cnfn convert_ulong16_rte(uchar16);
4751ulong16 __ovld __cnfn convert_ulong16_sat_rte(uchar16);
4752ulong16 __ovld __cnfn convert_ulong16_rtz(uchar16);
4753ulong16 __ovld __cnfn convert_ulong16_sat_rtz(uchar16);
4754ulong16 __ovld __cnfn convert_ulong16_rtp(uchar16);
4755ulong16 __ovld __cnfn convert_ulong16_sat_rtp(uchar16);
4756ulong16 __ovld __cnfn convert_ulong16_rtn(uchar16);
4757ulong16 __ovld __cnfn convert_ulong16_sat_rtn(uchar16);
4758ulong16 __ovld __cnfn convert_ulong16(uchar16);
4759ulong16 __ovld __cnfn convert_ulong16_sat(uchar16);
4760ulong16 __ovld __cnfn convert_ulong16_rte(short16);
4761ulong16 __ovld __cnfn convert_ulong16_sat_rte(short16);
4762ulong16 __ovld __cnfn convert_ulong16_rtz(short16);
4763ulong16 __ovld __cnfn convert_ulong16_sat_rtz(short16);
4764ulong16 __ovld __cnfn convert_ulong16_rtp(short16);
4765ulong16 __ovld __cnfn convert_ulong16_sat_rtp(short16);
4766ulong16 __ovld __cnfn convert_ulong16_rtn(short16);
4767ulong16 __ovld __cnfn convert_ulong16_sat_rtn(short16);
4768ulong16 __ovld __cnfn convert_ulong16(short16);
4769ulong16 __ovld __cnfn convert_ulong16_sat(short16);
4770ulong16 __ovld __cnfn convert_ulong16_rte(ushort16);
4771ulong16 __ovld __cnfn convert_ulong16_sat_rte(ushort16);
4772ulong16 __ovld __cnfn convert_ulong16_rtz(ushort16);
4773ulong16 __ovld __cnfn convert_ulong16_sat_rtz(ushort16);
4774ulong16 __ovld __cnfn convert_ulong16_rtp(ushort16);
4775ulong16 __ovld __cnfn convert_ulong16_sat_rtp(ushort16);
4776ulong16 __ovld __cnfn convert_ulong16_rtn(ushort16);
4777ulong16 __ovld __cnfn convert_ulong16_sat_rtn(ushort16);
4778ulong16 __ovld __cnfn convert_ulong16(ushort16);
4779ulong16 __ovld __cnfn convert_ulong16_sat(ushort16);
4780ulong16 __ovld __cnfn convert_ulong16_rte(int16);
4781ulong16 __ovld __cnfn convert_ulong16_sat_rte(int16);
4782ulong16 __ovld __cnfn convert_ulong16_rtz(int16);
4783ulong16 __ovld __cnfn convert_ulong16_sat_rtz(int16);
4784ulong16 __ovld __cnfn convert_ulong16_rtp(int16);
4785ulong16 __ovld __cnfn convert_ulong16_sat_rtp(int16);
4786ulong16 __ovld __cnfn convert_ulong16_rtn(int16);
4787ulong16 __ovld __cnfn convert_ulong16_sat_rtn(int16);
4788ulong16 __ovld __cnfn convert_ulong16(int16);
4789ulong16 __ovld __cnfn convert_ulong16_sat(int16);
4790ulong16 __ovld __cnfn convert_ulong16_rte(uint16);
4791ulong16 __ovld __cnfn convert_ulong16_sat_rte(uint16);
4792ulong16 __ovld __cnfn convert_ulong16_rtz(uint16);
4793ulong16 __ovld __cnfn convert_ulong16_sat_rtz(uint16);
4794ulong16 __ovld __cnfn convert_ulong16_rtp(uint16);
4795ulong16 __ovld __cnfn convert_ulong16_sat_rtp(uint16);
4796ulong16 __ovld __cnfn convert_ulong16_rtn(uint16);
4797ulong16 __ovld __cnfn convert_ulong16_sat_rtn(uint16);
4798ulong16 __ovld __cnfn convert_ulong16(uint16);
4799ulong16 __ovld __cnfn convert_ulong16_sat(uint16);
4800ulong16 __ovld __cnfn convert_ulong16_rte(long16);
4801ulong16 __ovld __cnfn convert_ulong16_sat_rte(long16);
4802ulong16 __ovld __cnfn convert_ulong16_rtz(long16);
4803ulong16 __ovld __cnfn convert_ulong16_sat_rtz(long16);
4804ulong16 __ovld __cnfn convert_ulong16_rtp(long16);
4805ulong16 __ovld __cnfn convert_ulong16_sat_rtp(long16);
4806ulong16 __ovld __cnfn convert_ulong16_rtn(long16);
4807ulong16 __ovld __cnfn convert_ulong16_sat_rtn(long16);
4808ulong16 __ovld __cnfn convert_ulong16(long16);
4809ulong16 __ovld __cnfn convert_ulong16_sat(long16);
4810ulong16 __ovld __cnfn convert_ulong16_rte(ulong16);
4811ulong16 __ovld __cnfn convert_ulong16_sat_rte(ulong16);
4812ulong16 __ovld __cnfn convert_ulong16_rtz(ulong16);
4813ulong16 __ovld __cnfn convert_ulong16_sat_rtz(ulong16);
4814ulong16 __ovld __cnfn convert_ulong16_rtp(ulong16);
4815ulong16 __ovld __cnfn convert_ulong16_sat_rtp(ulong16);
4816ulong16 __ovld __cnfn convert_ulong16_rtn(ulong16);
4817ulong16 __ovld __cnfn convert_ulong16_sat_rtn(ulong16);
4818ulong16 __ovld __cnfn convert_ulong16(ulong16);
4819ulong16 __ovld __cnfn convert_ulong16_sat(ulong16);
4820ulong16 __ovld __cnfn convert_ulong16_rte(float16);
4821ulong16 __ovld __cnfn convert_ulong16_sat_rte(float16);
4822ulong16 __ovld __cnfn convert_ulong16_rtz(float16);
4823ulong16 __ovld __cnfn convert_ulong16_sat_rtz(float16);
4824ulong16 __ovld __cnfn convert_ulong16_rtp(float16);
4825ulong16 __ovld __cnfn convert_ulong16_sat_rtp(float16);
4826ulong16 __ovld __cnfn convert_ulong16_rtn(float16);
4827ulong16 __ovld __cnfn convert_ulong16_sat_rtn(float16);
4828ulong16 __ovld __cnfn convert_ulong16(float16);
4829ulong16 __ovld __cnfn convert_ulong16_sat(float16);
4830float16 __ovld __cnfn convert_float16_rte(char16);
4831float16 __ovld __cnfn convert_float16_rtz(char16);
4832float16 __ovld __cnfn convert_float16_rtp(char16);
4833float16 __ovld __cnfn convert_float16_rtn(char16);
4834float16 __ovld __cnfn convert_float16(char16);
4835float16 __ovld __cnfn convert_float16_rte(uchar16);
4836float16 __ovld __cnfn convert_float16_rtz(uchar16);
4837float16 __ovld __cnfn convert_float16_rtp(uchar16);
4838float16 __ovld __cnfn convert_float16_rtn(uchar16);
4839float16 __ovld __cnfn convert_float16(uchar16);
4840float16 __ovld __cnfn convert_float16_rte(short16);
4841float16 __ovld __cnfn convert_float16_rtz(short16);
4842float16 __ovld __cnfn convert_float16_rtp(short16);
4843float16 __ovld __cnfn convert_float16_rtn(short16);
4844float16 __ovld __cnfn convert_float16(short16);
4845float16 __ovld __cnfn convert_float16_rte(ushort16);
4846float16 __ovld __cnfn convert_float16_rtz(ushort16);
4847float16 __ovld __cnfn convert_float16_rtp(ushort16);
4848float16 __ovld __cnfn convert_float16_rtn(ushort16);
4849float16 __ovld __cnfn convert_float16(ushort16);
4850float16 __ovld __cnfn convert_float16_rte(int16);
4851float16 __ovld __cnfn convert_float16_rtz(int16);
4852float16 __ovld __cnfn convert_float16_rtp(int16);
4853float16 __ovld __cnfn convert_float16_rtn(int16);
4854float16 __ovld __cnfn convert_float16(int16);
4855float16 __ovld __cnfn convert_float16_rte(uint16);
4856float16 __ovld __cnfn convert_float16_rtz(uint16);
4857float16 __ovld __cnfn convert_float16_rtp(uint16);
4858float16 __ovld __cnfn convert_float16_rtn(uint16);
4859float16 __ovld __cnfn convert_float16(uint16);
4860float16 __ovld __cnfn convert_float16_rte(long16);
4861float16 __ovld __cnfn convert_float16_rtz(long16);
4862float16 __ovld __cnfn convert_float16_rtp(long16);
4863float16 __ovld __cnfn convert_float16_rtn(long16);
4864float16 __ovld __cnfn convert_float16(long16);
4865float16 __ovld __cnfn convert_float16_rte(ulong16);
4866float16 __ovld __cnfn convert_float16_rtz(ulong16);
4867float16 __ovld __cnfn convert_float16_rtp(ulong16);
4868float16 __ovld __cnfn convert_float16_rtn(ulong16);
4869float16 __ovld __cnfn convert_float16(ulong16);
4870float16 __ovld __cnfn convert_float16_rte(float16);
4871float16 __ovld __cnfn convert_float16_rtz(float16);
4872float16 __ovld __cnfn convert_float16_rtp(float16);
4873float16 __ovld __cnfn convert_float16_rtn(float16);
4874float16 __ovld __cnfn convert_float16(float16);
4875
4876// Conversions with double data type parameters or return value.
4877
4878#ifdef cl_khr_fp64
4879char __ovld __cnfn convert_char(double);
4880char __ovld __cnfn convert_char_rte(double);
4881char __ovld __cnfn convert_char_rtn(double);
4882char __ovld __cnfn convert_char_rtp(double);
4883char __ovld __cnfn convert_char_rtz(double);
4884char __ovld __cnfn convert_char_sat(double);
4885char __ovld __cnfn convert_char_sat_rte(double);
4886char __ovld __cnfn convert_char_sat_rtn(double);
4887char __ovld __cnfn convert_char_sat_rtp(double);
4888char __ovld __cnfn convert_char_sat_rtz(double);
4889char2 __ovld __cnfn convert_char2(double2);
4890char2 __ovld __cnfn convert_char2_rte(double2);
4891char2 __ovld __cnfn convert_char2_rtn(double2);
4892char2 __ovld __cnfn convert_char2_rtp(double2);
4893char2 __ovld __cnfn convert_char2_rtz(double2);
4894char2 __ovld __cnfn convert_char2_sat(double2);
4895char2 __ovld __cnfn convert_char2_sat_rte(double2);
4896char2 __ovld __cnfn convert_char2_sat_rtn(double2);
4897char2 __ovld __cnfn convert_char2_sat_rtp(double2);
4898char2 __ovld __cnfn convert_char2_sat_rtz(double2);
4899char3 __ovld __cnfn convert_char3(double3);
4900char3 __ovld __cnfn convert_char3_rte(double3);
4901char3 __ovld __cnfn convert_char3_rtn(double3);
4902char3 __ovld __cnfn convert_char3_rtp(double3);
4903char3 __ovld __cnfn convert_char3_rtz(double3);
4904char3 __ovld __cnfn convert_char3_sat(double3);
4905char3 __ovld __cnfn convert_char3_sat_rte(double3);
4906char3 __ovld __cnfn convert_char3_sat_rtn(double3);
4907char3 __ovld __cnfn convert_char3_sat_rtp(double3);
4908char3 __ovld __cnfn convert_char3_sat_rtz(double3);
4909char4 __ovld __cnfn convert_char4(double4);
4910char4 __ovld __cnfn convert_char4_rte(double4);
4911char4 __ovld __cnfn convert_char4_rtn(double4);
4912char4 __ovld __cnfn convert_char4_rtp(double4);
4913char4 __ovld __cnfn convert_char4_rtz(double4);
4914char4 __ovld __cnfn convert_char4_sat(double4);
4915char4 __ovld __cnfn convert_char4_sat_rte(double4);
4916char4 __ovld __cnfn convert_char4_sat_rtn(double4);
4917char4 __ovld __cnfn convert_char4_sat_rtp(double4);
4918char4 __ovld __cnfn convert_char4_sat_rtz(double4);
4919char8 __ovld __cnfn convert_char8(double8);
4920char8 __ovld __cnfn convert_char8_rte(double8);
4921char8 __ovld __cnfn convert_char8_rtn(double8);
4922char8 __ovld __cnfn convert_char8_rtp(double8);
4923char8 __ovld __cnfn convert_char8_rtz(double8);
4924char8 __ovld __cnfn convert_char8_sat(double8);
4925char8 __ovld __cnfn convert_char8_sat_rte(double8);
4926char8 __ovld __cnfn convert_char8_sat_rtn(double8);
4927char8 __ovld __cnfn convert_char8_sat_rtp(double8);
4928char8 __ovld __cnfn convert_char8_sat_rtz(double8);
4929char16 __ovld __cnfn convert_char16(double16);
4930char16 __ovld __cnfn convert_char16_rte(double16);
4931char16 __ovld __cnfn convert_char16_rtn(double16);
4932char16 __ovld __cnfn convert_char16_rtp(double16);
4933char16 __ovld __cnfn convert_char16_rtz(double16);
4934char16 __ovld __cnfn convert_char16_sat(double16);
4935char16 __ovld __cnfn convert_char16_sat_rte(double16);
4936char16 __ovld __cnfn convert_char16_sat_rtn(double16);
4937char16 __ovld __cnfn convert_char16_sat_rtp(double16);
4938char16 __ovld __cnfn convert_char16_sat_rtz(double16);
4939
4940uchar __ovld __cnfn convert_uchar(double);
4941uchar __ovld __cnfn convert_uchar_rte(double);
4942uchar __ovld __cnfn convert_uchar_rtn(double);
4943uchar __ovld __cnfn convert_uchar_rtp(double);
4944uchar __ovld __cnfn convert_uchar_rtz(double);
4945uchar __ovld __cnfn convert_uchar_sat(double);
4946uchar __ovld __cnfn convert_uchar_sat_rte(double);
4947uchar __ovld __cnfn convert_uchar_sat_rtn(double);
4948uchar __ovld __cnfn convert_uchar_sat_rtp(double);
4949uchar __ovld __cnfn convert_uchar_sat_rtz(double);
4950uchar2 __ovld __cnfn convert_uchar2(double2);
4951uchar2 __ovld __cnfn convert_uchar2_rte(double2);
4952uchar2 __ovld __cnfn convert_uchar2_rtn(double2);
4953uchar2 __ovld __cnfn convert_uchar2_rtp(double2);
4954uchar2 __ovld __cnfn convert_uchar2_rtz(double2);
4955uchar2 __ovld __cnfn convert_uchar2_sat(double2);
4956uchar2 __ovld __cnfn convert_uchar2_sat_rte(double2);
4957uchar2 __ovld __cnfn convert_uchar2_sat_rtn(double2);
4958uchar2 __ovld __cnfn convert_uchar2_sat_rtp(double2);
4959uchar2 __ovld __cnfn convert_uchar2_sat_rtz(double2);
4960uchar3 __ovld __cnfn convert_uchar3(double3);
4961uchar3 __ovld __cnfn convert_uchar3_rte(double3);
4962uchar3 __ovld __cnfn convert_uchar3_rtn(double3);
4963uchar3 __ovld __cnfn convert_uchar3_rtp(double3);
4964uchar3 __ovld __cnfn convert_uchar3_rtz(double3);
4965uchar3 __ovld __cnfn convert_uchar3_sat(double3);
4966uchar3 __ovld __cnfn convert_uchar3_sat_rte(double3);
4967uchar3 __ovld __cnfn convert_uchar3_sat_rtn(double3);
4968uchar3 __ovld __cnfn convert_uchar3_sat_rtp(double3);
4969uchar3 __ovld __cnfn convert_uchar3_sat_rtz(double3);
4970uchar4 __ovld __cnfn convert_uchar4(double4);
4971uchar4 __ovld __cnfn convert_uchar4_rte(double4);
4972uchar4 __ovld __cnfn convert_uchar4_rtn(double4);
4973uchar4 __ovld __cnfn convert_uchar4_rtp(double4);
4974uchar4 __ovld __cnfn convert_uchar4_rtz(double4);
4975uchar4 __ovld __cnfn convert_uchar4_sat(double4);
4976uchar4 __ovld __cnfn convert_uchar4_sat_rte(double4);
4977uchar4 __ovld __cnfn convert_uchar4_sat_rtn(double4);
4978uchar4 __ovld __cnfn convert_uchar4_sat_rtp(double4);
4979uchar4 __ovld __cnfn convert_uchar4_sat_rtz(double4);
4980uchar8 __ovld __cnfn convert_uchar8(double8);
4981uchar8 __ovld __cnfn convert_uchar8_rte(double8);
4982uchar8 __ovld __cnfn convert_uchar8_rtn(double8);
4983uchar8 __ovld __cnfn convert_uchar8_rtp(double8);
4984uchar8 __ovld __cnfn convert_uchar8_rtz(double8);
4985uchar8 __ovld __cnfn convert_uchar8_sat(double8);
4986uchar8 __ovld __cnfn convert_uchar8_sat_rte(double8);
4987uchar8 __ovld __cnfn convert_uchar8_sat_rtn(double8);
4988uchar8 __ovld __cnfn convert_uchar8_sat_rtp(double8);
4989uchar8 __ovld __cnfn convert_uchar8_sat_rtz(double8);
4990uchar16 __ovld __cnfn convert_uchar16(double16);
4991uchar16 __ovld __cnfn convert_uchar16_rte(double16);
4992uchar16 __ovld __cnfn convert_uchar16_rtn(double16);
4993uchar16 __ovld __cnfn convert_uchar16_rtp(double16);
4994uchar16 __ovld __cnfn convert_uchar16_rtz(double16);
4995uchar16 __ovld __cnfn convert_uchar16_sat(double16);
4996uchar16 __ovld __cnfn convert_uchar16_sat_rte(double16);
4997uchar16 __ovld __cnfn convert_uchar16_sat_rtn(double16);
4998uchar16 __ovld __cnfn convert_uchar16_sat_rtp(double16);
4999uchar16 __ovld __cnfn convert_uchar16_sat_rtz(double16);
5000
5001short __ovld __cnfn convert_short(double);
5002short __ovld __cnfn convert_short_rte(double);
5003short __ovld __cnfn convert_short_rtn(double);
5004short __ovld __cnfn convert_short_rtp(double);
5005short __ovld __cnfn convert_short_rtz(double);
5006short __ovld __cnfn convert_short_sat(double);
5007short __ovld __cnfn convert_short_sat_rte(double);
5008short __ovld __cnfn convert_short_sat_rtn(double);
5009short __ovld __cnfn convert_short_sat_rtp(double);
5010short __ovld __cnfn convert_short_sat_rtz(double);
5011short2 __ovld __cnfn convert_short2(double2);
5012short2 __ovld __cnfn convert_short2_rte(double2);
5013short2 __ovld __cnfn convert_short2_rtn(double2);
5014short2 __ovld __cnfn convert_short2_rtp(double2);
5015short2 __ovld __cnfn convert_short2_rtz(double2);
5016short2 __ovld __cnfn convert_short2_sat(double2);
5017short2 __ovld __cnfn convert_short2_sat_rte(double2);
5018short2 __ovld __cnfn convert_short2_sat_rtn(double2);
5019short2 __ovld __cnfn convert_short2_sat_rtp(double2);
5020short2 __ovld __cnfn convert_short2_sat_rtz(double2);
5021short3 __ovld __cnfn convert_short3(double3);
5022short3 __ovld __cnfn convert_short3_rte(double3);
5023short3 __ovld __cnfn convert_short3_rtn(double3);
5024short3 __ovld __cnfn convert_short3_rtp(double3);
5025short3 __ovld __cnfn convert_short3_rtz(double3);
5026short3 __ovld __cnfn convert_short3_sat(double3);
5027short3 __ovld __cnfn convert_short3_sat_rte(double3);
5028short3 __ovld __cnfn convert_short3_sat_rtn(double3);
5029short3 __ovld __cnfn convert_short3_sat_rtp(double3);
5030short3 __ovld __cnfn convert_short3_sat_rtz(double3);
5031short4 __ovld __cnfn convert_short4(double4);
5032short4 __ovld __cnfn convert_short4_rte(double4);
5033short4 __ovld __cnfn convert_short4_rtn(double4);
5034short4 __ovld __cnfn convert_short4_rtp(double4);
5035short4 __ovld __cnfn convert_short4_rtz(double4);
5036short4 __ovld __cnfn convert_short4_sat(double4);
5037short4 __ovld __cnfn convert_short4_sat_rte(double4);
5038short4 __ovld __cnfn convert_short4_sat_rtn(double4);
5039short4 __ovld __cnfn convert_short4_sat_rtp(double4);
5040short4 __ovld __cnfn convert_short4_sat_rtz(double4);
5041short8 __ovld __cnfn convert_short8(double8);
5042short8 __ovld __cnfn convert_short8_rte(double8);
5043short8 __ovld __cnfn convert_short8_rtn(double8);
5044short8 __ovld __cnfn convert_short8_rtp(double8);
5045short8 __ovld __cnfn convert_short8_rtz(double8);
5046short8 __ovld __cnfn convert_short8_sat(double8);
5047short8 __ovld __cnfn convert_short8_sat_rte(double8);
5048short8 __ovld __cnfn convert_short8_sat_rtn(double8);
5049short8 __ovld __cnfn convert_short8_sat_rtp(double8);
5050short8 __ovld __cnfn convert_short8_sat_rtz(double8);
5051short16 __ovld __cnfn convert_short16(double16);
5052short16 __ovld __cnfn convert_short16_rte(double16);
5053short16 __ovld __cnfn convert_short16_rtn(double16);
5054short16 __ovld __cnfn convert_short16_rtp(double16);
5055short16 __ovld __cnfn convert_short16_rtz(double16);
5056short16 __ovld __cnfn convert_short16_sat(double16);
5057short16 __ovld __cnfn convert_short16_sat_rte(double16);
5058short16 __ovld __cnfn convert_short16_sat_rtn(double16);
5059short16 __ovld __cnfn convert_short16_sat_rtp(double16);
5060short16 __ovld __cnfn convert_short16_sat_rtz(double16);
5061
5062ushort __ovld __cnfn convert_ushort(double);
5063ushort __ovld __cnfn convert_ushort_rte(double);
5064ushort __ovld __cnfn convert_ushort_rtn(double);
5065ushort __ovld __cnfn convert_ushort_rtp(double);
5066ushort __ovld __cnfn convert_ushort_rtz(double);
5067ushort __ovld __cnfn convert_ushort_sat(double);
5068ushort __ovld __cnfn convert_ushort_sat_rte(double);
5069ushort __ovld __cnfn convert_ushort_sat_rtn(double);
5070ushort __ovld __cnfn convert_ushort_sat_rtp(double);
5071ushort __ovld __cnfn convert_ushort_sat_rtz(double);
5072ushort2 __ovld __cnfn convert_ushort2(double2);
5073ushort2 __ovld __cnfn convert_ushort2_rte(double2);
5074ushort2 __ovld __cnfn convert_ushort2_rtn(double2);
5075ushort2 __ovld __cnfn convert_ushort2_rtp(double2);
5076ushort2 __ovld __cnfn convert_ushort2_rtz(double2);
5077ushort2 __ovld __cnfn convert_ushort2_sat(double2);
5078ushort2 __ovld __cnfn convert_ushort2_sat_rte(double2);
5079ushort2 __ovld __cnfn convert_ushort2_sat_rtn(double2);
5080ushort2 __ovld __cnfn convert_ushort2_sat_rtp(double2);
5081ushort2 __ovld __cnfn convert_ushort2_sat_rtz(double2);
5082ushort3 __ovld __cnfn convert_ushort3(double3);
5083ushort3 __ovld __cnfn convert_ushort3_rte(double3);
5084ushort3 __ovld __cnfn convert_ushort3_rtn(double3);
5085ushort3 __ovld __cnfn convert_ushort3_rtp(double3);
5086ushort3 __ovld __cnfn convert_ushort3_rtz(double3);
5087ushort3 __ovld __cnfn convert_ushort3_sat(double3);
5088ushort3 __ovld __cnfn convert_ushort3_sat_rte(double3);
5089ushort3 __ovld __cnfn convert_ushort3_sat_rtn(double3);
5090ushort3 __ovld __cnfn convert_ushort3_sat_rtp(double3);
5091ushort3 __ovld __cnfn convert_ushort3_sat_rtz(double3);
5092ushort4 __ovld __cnfn convert_ushort4(double4);
5093ushort4 __ovld __cnfn convert_ushort4_rte(double4);
5094ushort4 __ovld __cnfn convert_ushort4_rtn(double4);
5095ushort4 __ovld __cnfn convert_ushort4_rtp(double4);
5096ushort4 __ovld __cnfn convert_ushort4_rtz(double4);
5097ushort4 __ovld __cnfn convert_ushort4_sat(double4);
5098ushort4 __ovld __cnfn convert_ushort4_sat_rte(double4);
5099ushort4 __ovld __cnfn convert_ushort4_sat_rtn(double4);
5100ushort4 __ovld __cnfn convert_ushort4_sat_rtp(double4);
5101ushort4 __ovld __cnfn convert_ushort4_sat_rtz(double4);
5102ushort8 __ovld __cnfn convert_ushort8(double8);
5103ushort8 __ovld __cnfn convert_ushort8_rte(double8);
5104ushort8 __ovld __cnfn convert_ushort8_rtn(double8);
5105ushort8 __ovld __cnfn convert_ushort8_rtp(double8);
5106ushort8 __ovld __cnfn convert_ushort8_rtz(double8);
5107ushort8 __ovld __cnfn convert_ushort8_sat(double8);
5108ushort8 __ovld __cnfn convert_ushort8_sat_rte(double8);
5109ushort8 __ovld __cnfn convert_ushort8_sat_rtn(double8);
5110ushort8 __ovld __cnfn convert_ushort8_sat_rtp(double8);
5111ushort8 __ovld __cnfn convert_ushort8_sat_rtz(double8);
5112ushort16 __ovld __cnfn convert_ushort16(double16);
5113ushort16 __ovld __cnfn convert_ushort16_rte(double16);
5114ushort16 __ovld __cnfn convert_ushort16_rtn(double16);
5115ushort16 __ovld __cnfn convert_ushort16_rtp(double16);
5116ushort16 __ovld __cnfn convert_ushort16_rtz(double16);
5117ushort16 __ovld __cnfn convert_ushort16_sat(double16);
5118ushort16 __ovld __cnfn convert_ushort16_sat_rte(double16);
5119ushort16 __ovld __cnfn convert_ushort16_sat_rtn(double16);
5120ushort16 __ovld __cnfn convert_ushort16_sat_rtp(double16);
5121ushort16 __ovld __cnfn convert_ushort16_sat_rtz(double16);
5122
5123int __ovld __cnfn convert_int(double);
5124int __ovld __cnfn convert_int_rte(double);
5125int __ovld __cnfn convert_int_rtn(double);
5126int __ovld __cnfn convert_int_rtp(double);
5127int __ovld __cnfn convert_int_rtz(double);
5128int __ovld __cnfn convert_int_sat(double);
5129int __ovld __cnfn convert_int_sat_rte(double);
5130int __ovld __cnfn convert_int_sat_rtn(double);
5131int __ovld __cnfn convert_int_sat_rtp(double);
5132int __ovld __cnfn convert_int_sat_rtz(double);
5133int2 __ovld __cnfn convert_int2(double2);
5134int2 __ovld __cnfn convert_int2_rte(double2);
5135int2 __ovld __cnfn convert_int2_rtn(double2);
5136int2 __ovld __cnfn convert_int2_rtp(double2);
5137int2 __ovld __cnfn convert_int2_rtz(double2);
5138int2 __ovld __cnfn convert_int2_sat(double2);
5139int2 __ovld __cnfn convert_int2_sat_rte(double2);
5140int2 __ovld __cnfn convert_int2_sat_rtn(double2);
5141int2 __ovld __cnfn convert_int2_sat_rtp(double2);
5142int2 __ovld __cnfn convert_int2_sat_rtz(double2);
5143int3 __ovld __cnfn convert_int3(double3);
5144int3 __ovld __cnfn convert_int3_rte(double3);
5145int3 __ovld __cnfn convert_int3_rtn(double3);
5146int3 __ovld __cnfn convert_int3_rtp(double3);
5147int3 __ovld __cnfn convert_int3_rtz(double3);
5148int3 __ovld __cnfn convert_int3_sat(double3);
5149int3 __ovld __cnfn convert_int3_sat_rte(double3);
5150int3 __ovld __cnfn convert_int3_sat_rtn(double3);
5151int3 __ovld __cnfn convert_int3_sat_rtp(double3);
5152int3 __ovld __cnfn convert_int3_sat_rtz(double3);
5153int4 __ovld __cnfn convert_int4(double4);
5154int4 __ovld __cnfn convert_int4_rte(double4);
5155int4 __ovld __cnfn convert_int4_rtn(double4);
5156int4 __ovld __cnfn convert_int4_rtp(double4);
5157int4 __ovld __cnfn convert_int4_rtz(double4);
5158int4 __ovld __cnfn convert_int4_sat(double4);
5159int4 __ovld __cnfn convert_int4_sat_rte(double4);
5160int4 __ovld __cnfn convert_int4_sat_rtn(double4);
5161int4 __ovld __cnfn convert_int4_sat_rtp(double4);
5162int4 __ovld __cnfn convert_int4_sat_rtz(double4);
5163int8 __ovld __cnfn convert_int8(double8);
5164int8 __ovld __cnfn convert_int8_rte(double8);
5165int8 __ovld __cnfn convert_int8_rtn(double8);
5166int8 __ovld __cnfn convert_int8_rtp(double8);
5167int8 __ovld __cnfn convert_int8_rtz(double8);
5168int8 __ovld __cnfn convert_int8_sat(double8);
5169int8 __ovld __cnfn convert_int8_sat_rte(double8);
5170int8 __ovld __cnfn convert_int8_sat_rtn(double8);
5171int8 __ovld __cnfn convert_int8_sat_rtp(double8);
5172int8 __ovld __cnfn convert_int8_sat_rtz(double8);
5173int16 __ovld __cnfn convert_int16(double16);
5174int16 __ovld __cnfn convert_int16_rte(double16);
5175int16 __ovld __cnfn convert_int16_rtn(double16);
5176int16 __ovld __cnfn convert_int16_rtp(double16);
5177int16 __ovld __cnfn convert_int16_rtz(double16);
5178int16 __ovld __cnfn convert_int16_sat(double16);
5179int16 __ovld __cnfn convert_int16_sat_rte(double16);
5180int16 __ovld __cnfn convert_int16_sat_rtn(double16);
5181int16 __ovld __cnfn convert_int16_sat_rtp(double16);
5182int16 __ovld __cnfn convert_int16_sat_rtz(double16);
5183
5184uint __ovld __cnfn convert_uint(double);
5185uint __ovld __cnfn convert_uint_rte(double);
5186uint __ovld __cnfn convert_uint_rtn(double);
5187uint __ovld __cnfn convert_uint_rtp(double);
5188uint __ovld __cnfn convert_uint_rtz(double);
5189uint __ovld __cnfn convert_uint_sat(double);
5190uint __ovld __cnfn convert_uint_sat_rte(double);
5191uint __ovld __cnfn convert_uint_sat_rtn(double);
5192uint __ovld __cnfn convert_uint_sat_rtp(double);
5193uint __ovld __cnfn convert_uint_sat_rtz(double);
5194uint2 __ovld __cnfn convert_uint2(double2);
5195uint2 __ovld __cnfn convert_uint2_rte(double2);
5196uint2 __ovld __cnfn convert_uint2_rtn(double2);
5197uint2 __ovld __cnfn convert_uint2_rtp(double2);
5198uint2 __ovld __cnfn convert_uint2_rtz(double2);
5199uint2 __ovld __cnfn convert_uint2_sat(double2);
5200uint2 __ovld __cnfn convert_uint2_sat_rte(double2);
5201uint2 __ovld __cnfn convert_uint2_sat_rtn(double2);
5202uint2 __ovld __cnfn convert_uint2_sat_rtp(double2);
5203uint2 __ovld __cnfn convert_uint2_sat_rtz(double2);
5204uint3 __ovld __cnfn convert_uint3(double3);
5205uint3 __ovld __cnfn convert_uint3_rte(double3);
5206uint3 __ovld __cnfn convert_uint3_rtn(double3);
5207uint3 __ovld __cnfn convert_uint3_rtp(double3);
5208uint3 __ovld __cnfn convert_uint3_rtz(double3);
5209uint3 __ovld __cnfn convert_uint3_sat(double3);
5210uint3 __ovld __cnfn convert_uint3_sat_rte(double3);
5211uint3 __ovld __cnfn convert_uint3_sat_rtn(double3);
5212uint3 __ovld __cnfn convert_uint3_sat_rtp(double3);
5213uint3 __ovld __cnfn convert_uint3_sat_rtz(double3);
5214uint4 __ovld __cnfn convert_uint4(double4);
5215uint4 __ovld __cnfn convert_uint4_rte(double4);
5216uint4 __ovld __cnfn convert_uint4_rtn(double4);
5217uint4 __ovld __cnfn convert_uint4_rtp(double4);
5218uint4 __ovld __cnfn convert_uint4_rtz(double4);
5219uint4 __ovld __cnfn convert_uint4_sat(double4);
5220uint4 __ovld __cnfn convert_uint4_sat_rte(double4);
5221uint4 __ovld __cnfn convert_uint4_sat_rtn(double4);
5222uint4 __ovld __cnfn convert_uint4_sat_rtp(double4);
5223uint4 __ovld __cnfn convert_uint4_sat_rtz(double4);
5224uint8 __ovld __cnfn convert_uint8(double8);
5225uint8 __ovld __cnfn convert_uint8_rte(double8);
5226uint8 __ovld __cnfn convert_uint8_rtn(double8);
5227uint8 __ovld __cnfn convert_uint8_rtp(double8);
5228uint8 __ovld __cnfn convert_uint8_rtz(double8);
5229uint8 __ovld __cnfn convert_uint8_sat(double8);
5230uint8 __ovld __cnfn convert_uint8_sat_rte(double8);
5231uint8 __ovld __cnfn convert_uint8_sat_rtn(double8);
5232uint8 __ovld __cnfn convert_uint8_sat_rtp(double8);
5233uint8 __ovld __cnfn convert_uint8_sat_rtz(double8);
5234uint16 __ovld __cnfn convert_uint16(double16);
5235uint16 __ovld __cnfn convert_uint16_rte(double16);
5236uint16 __ovld __cnfn convert_uint16_rtn(double16);
5237uint16 __ovld __cnfn convert_uint16_rtp(double16);
5238uint16 __ovld __cnfn convert_uint16_rtz(double16);
5239uint16 __ovld __cnfn convert_uint16_sat(double16);
5240uint16 __ovld __cnfn convert_uint16_sat_rte(double16);
5241uint16 __ovld __cnfn convert_uint16_sat_rtn(double16);
5242uint16 __ovld __cnfn convert_uint16_sat_rtp(double16);
5243uint16 __ovld __cnfn convert_uint16_sat_rtz(double16);
5244
5245long __ovld __cnfn convert_long(double);
5246long __ovld __cnfn convert_long_rte(double);
5247long __ovld __cnfn convert_long_rtn(double);
5248long __ovld __cnfn convert_long_rtp(double);
5249long __ovld __cnfn convert_long_rtz(double);
5250long __ovld __cnfn convert_long_sat(double);
5251long __ovld __cnfn convert_long_sat_rte(double);
5252long __ovld __cnfn convert_long_sat_rtn(double);
5253long __ovld __cnfn convert_long_sat_rtp(double);
5254long __ovld __cnfn convert_long_sat_rtz(double);
5255long2 __ovld __cnfn convert_long2(double2);
5256long2 __ovld __cnfn convert_long2_rte(double2);
5257long2 __ovld __cnfn convert_long2_rtn(double2);
5258long2 __ovld __cnfn convert_long2_rtp(double2);
5259long2 __ovld __cnfn convert_long2_rtz(double2);
5260long2 __ovld __cnfn convert_long2_sat(double2);
5261long2 __ovld __cnfn convert_long2_sat_rte(double2);
5262long2 __ovld __cnfn convert_long2_sat_rtn(double2);
5263long2 __ovld __cnfn convert_long2_sat_rtp(double2);
5264long2 __ovld __cnfn convert_long2_sat_rtz(double2);
5265long3 __ovld __cnfn convert_long3(double3);
5266long3 __ovld __cnfn convert_long3_rte(double3);
5267long3 __ovld __cnfn convert_long3_rtn(double3);
5268long3 __ovld __cnfn convert_long3_rtp(double3);
5269long3 __ovld __cnfn convert_long3_rtz(double3);
5270long3 __ovld __cnfn convert_long3_sat(double3);
5271long3 __ovld __cnfn convert_long3_sat_rte(double3);
5272long3 __ovld __cnfn convert_long3_sat_rtn(double3);
5273long3 __ovld __cnfn convert_long3_sat_rtp(double3);
5274long3 __ovld __cnfn convert_long3_sat_rtz(double3);
5275long4 __ovld __cnfn convert_long4(double4);
5276long4 __ovld __cnfn convert_long4_rte(double4);
5277long4 __ovld __cnfn convert_long4_rtn(double4);
5278long4 __ovld __cnfn convert_long4_rtp(double4);
5279long4 __ovld __cnfn convert_long4_rtz(double4);
5280long4 __ovld __cnfn convert_long4_sat(double4);
5281long4 __ovld __cnfn convert_long4_sat_rte(double4);
5282long4 __ovld __cnfn convert_long4_sat_rtn(double4);
5283long4 __ovld __cnfn convert_long4_sat_rtp(double4);
5284long4 __ovld __cnfn convert_long4_sat_rtz(double4);
5285long8 __ovld __cnfn convert_long8(double8);
5286long8 __ovld __cnfn convert_long8_rte(double8);
5287long8 __ovld __cnfn convert_long8_rtn(double8);
5288long8 __ovld __cnfn convert_long8_rtp(double8);
5289long8 __ovld __cnfn convert_long8_rtz(double8);
5290long8 __ovld __cnfn convert_long8_sat(double8);
5291long8 __ovld __cnfn convert_long8_sat_rte(double8);
5292long8 __ovld __cnfn convert_long8_sat_rtn(double8);
5293long8 __ovld __cnfn convert_long8_sat_rtp(double8);
5294long8 __ovld __cnfn convert_long8_sat_rtz(double8);
5295long16 __ovld __cnfn convert_long16(double16);
5296long16 __ovld __cnfn convert_long16_rte(double16);
5297long16 __ovld __cnfn convert_long16_rtn(double16);
5298long16 __ovld __cnfn convert_long16_rtp(double16);
5299long16 __ovld __cnfn convert_long16_rtz(double16);
5300long16 __ovld __cnfn convert_long16_sat(double16);
5301long16 __ovld __cnfn convert_long16_sat_rte(double16);
5302long16 __ovld __cnfn convert_long16_sat_rtn(double16);
5303long16 __ovld __cnfn convert_long16_sat_rtp(double16);
5304long16 __ovld __cnfn convert_long16_sat_rtz(double16);
5305
5306ulong __ovld __cnfn convert_ulong(double);
5307ulong __ovld __cnfn convert_ulong_rte(double);
5308ulong __ovld __cnfn convert_ulong_rtn(double);
5309ulong __ovld __cnfn convert_ulong_rtp(double);
5310ulong __ovld __cnfn convert_ulong_rtz(double);
5311ulong __ovld __cnfn convert_ulong_sat(double);
5312ulong __ovld __cnfn convert_ulong_sat_rte(double);
5313ulong __ovld __cnfn convert_ulong_sat_rtn(double);
5314ulong __ovld __cnfn convert_ulong_sat_rtp(double);
5315ulong __ovld __cnfn convert_ulong_sat_rtz(double);
5316ulong2 __ovld __cnfn convert_ulong2(double2);
5317ulong2 __ovld __cnfn convert_ulong2_rte(double2);
5318ulong2 __ovld __cnfn convert_ulong2_rtn(double2);
5319ulong2 __ovld __cnfn convert_ulong2_rtp(double2);
5320ulong2 __ovld __cnfn convert_ulong2_rtz(double2);
5321ulong2 __ovld __cnfn convert_ulong2_sat(double2);
5322ulong2 __ovld __cnfn convert_ulong2_sat_rte(double2);
5323ulong2 __ovld __cnfn convert_ulong2_sat_rtn(double2);
5324ulong2 __ovld __cnfn convert_ulong2_sat_rtp(double2);
5325ulong2 __ovld __cnfn convert_ulong2_sat_rtz(double2);
5326ulong3 __ovld __cnfn convert_ulong3(double3);
5327ulong3 __ovld __cnfn convert_ulong3_rte(double3);
5328ulong3 __ovld __cnfn convert_ulong3_rtn(double3);
5329ulong3 __ovld __cnfn convert_ulong3_rtp(double3);
5330ulong3 __ovld __cnfn convert_ulong3_rtz(double3);
5331ulong3 __ovld __cnfn convert_ulong3_sat(double3);
5332ulong3 __ovld __cnfn convert_ulong3_sat_rte(double3);
5333ulong3 __ovld __cnfn convert_ulong3_sat_rtn(double3);
5334ulong3 __ovld __cnfn convert_ulong3_sat_rtp(double3);
5335ulong3 __ovld __cnfn convert_ulong3_sat_rtz(double3);
5336ulong4 __ovld __cnfn convert_ulong4(double4);
5337ulong4 __ovld __cnfn convert_ulong4_rte(double4);
5338ulong4 __ovld __cnfn convert_ulong4_rtn(double4);
5339ulong4 __ovld __cnfn convert_ulong4_rtp(double4);
5340ulong4 __ovld __cnfn convert_ulong4_rtz(double4);
5341ulong4 __ovld __cnfn convert_ulong4_sat(double4);
5342ulong4 __ovld __cnfn convert_ulong4_sat_rte(double4);
5343ulong4 __ovld __cnfn convert_ulong4_sat_rtn(double4);
5344ulong4 __ovld __cnfn convert_ulong4_sat_rtp(double4);
5345ulong4 __ovld __cnfn convert_ulong4_sat_rtz(double4);
5346ulong8 __ovld __cnfn convert_ulong8(double8);
5347ulong8 __ovld __cnfn convert_ulong8_rte(double8);
5348ulong8 __ovld __cnfn convert_ulong8_rtn(double8);
5349ulong8 __ovld __cnfn convert_ulong8_rtp(double8);
5350ulong8 __ovld __cnfn convert_ulong8_rtz(double8);
5351ulong8 __ovld __cnfn convert_ulong8_sat(double8);
5352ulong8 __ovld __cnfn convert_ulong8_sat_rte(double8);
5353ulong8 __ovld __cnfn convert_ulong8_sat_rtn(double8);
5354ulong8 __ovld __cnfn convert_ulong8_sat_rtp(double8);
5355ulong8 __ovld __cnfn convert_ulong8_sat_rtz(double8);
5356ulong16 __ovld __cnfn convert_ulong16(double16);
5357ulong16 __ovld __cnfn convert_ulong16_rte(double16);
5358ulong16 __ovld __cnfn convert_ulong16_rtn(double16);
5359ulong16 __ovld __cnfn convert_ulong16_rtp(double16);
5360ulong16 __ovld __cnfn convert_ulong16_rtz(double16);
5361ulong16 __ovld __cnfn convert_ulong16_sat(double16);
5362ulong16 __ovld __cnfn convert_ulong16_sat_rte(double16);
5363ulong16 __ovld __cnfn convert_ulong16_sat_rtn(double16);
5364ulong16 __ovld __cnfn convert_ulong16_sat_rtp(double16);
5365ulong16 __ovld __cnfn convert_ulong16_sat_rtz(double16);
5366
5367float __ovld __cnfn convert_float(double);
5368float __ovld __cnfn convert_float_rte(double);
5369float __ovld __cnfn convert_float_rtn(double);
5370float __ovld __cnfn convert_float_rtp(double);
5371float __ovld __cnfn convert_float_rtz(double);
5372float2 __ovld __cnfn convert_float2(double2);
5373float2 __ovld __cnfn convert_float2_rte(double2);
5374float2 __ovld __cnfn convert_float2_rtn(double2);
5375float2 __ovld __cnfn convert_float2_rtp(double2);
5376float2 __ovld __cnfn convert_float2_rtz(double2);
5377float3 __ovld __cnfn convert_float3(double3);
5378float3 __ovld __cnfn convert_float3_rte(double3);
5379float3 __ovld __cnfn convert_float3_rtn(double3);
5380float3 __ovld __cnfn convert_float3_rtp(double3);
5381float3 __ovld __cnfn convert_float3_rtz(double3);
5382float4 __ovld __cnfn convert_float4(double4);
5383float4 __ovld __cnfn convert_float4_rte(double4);
5384float4 __ovld __cnfn convert_float4_rtn(double4);
5385float4 __ovld __cnfn convert_float4_rtp(double4);
5386float4 __ovld __cnfn convert_float4_rtz(double4);
5387float8 __ovld __cnfn convert_float8(double8);
5388float8 __ovld __cnfn convert_float8_rte(double8);
5389float8 __ovld __cnfn convert_float8_rtn(double8);
5390float8 __ovld __cnfn convert_float8_rtp(double8);
5391float8 __ovld __cnfn convert_float8_rtz(double8);
5392float16 __ovld __cnfn convert_float16(double16);
5393float16 __ovld __cnfn convert_float16_rte(double16);
5394float16 __ovld __cnfn convert_float16_rtn(double16);
5395float16 __ovld __cnfn convert_float16_rtp(double16);
5396float16 __ovld __cnfn convert_float16_rtz(double16);
5397
5398double __ovld __cnfn convert_double(char);
5399double __ovld __cnfn convert_double(double);
5400double __ovld __cnfn convert_double(float);
5401double __ovld __cnfn convert_double(int);
5402double __ovld __cnfn convert_double(long);
5403double __ovld __cnfn convert_double(short);
5404double __ovld __cnfn convert_double(uchar);
5405double __ovld __cnfn convert_double(uint);
5406double __ovld __cnfn convert_double(ulong);
5407double __ovld __cnfn convert_double(ushort);
5408double __ovld __cnfn convert_double_rte(char);
5409double __ovld __cnfn convert_double_rte(double);
5410double __ovld __cnfn convert_double_rte(float);
5411double __ovld __cnfn convert_double_rte(int);
5412double __ovld __cnfn convert_double_rte(long);
5413double __ovld __cnfn convert_double_rte(short);
5414double __ovld __cnfn convert_double_rte(uchar);
5415double __ovld __cnfn convert_double_rte(uint);
5416double __ovld __cnfn convert_double_rte(ulong);
5417double __ovld __cnfn convert_double_rte(ushort);
5418double __ovld __cnfn convert_double_rtn(char);
5419double __ovld __cnfn convert_double_rtn(double);
5420double __ovld __cnfn convert_double_rtn(float);
5421double __ovld __cnfn convert_double_rtn(int);
5422double __ovld __cnfn convert_double_rtn(long);
5423double __ovld __cnfn convert_double_rtn(short);
5424double __ovld __cnfn convert_double_rtn(uchar);
5425double __ovld __cnfn convert_double_rtn(uint);
5426double __ovld __cnfn convert_double_rtn(ulong);
5427double __ovld __cnfn convert_double_rtn(ushort);
5428double __ovld __cnfn convert_double_rtp(char);
5429double __ovld __cnfn convert_double_rtp(double);
5430double __ovld __cnfn convert_double_rtp(float);
5431double __ovld __cnfn convert_double_rtp(int);
5432double __ovld __cnfn convert_double_rtp(long);
5433double __ovld __cnfn convert_double_rtp(short);
5434double __ovld __cnfn convert_double_rtp(uchar);
5435double __ovld __cnfn convert_double_rtp(uint);
5436double __ovld __cnfn convert_double_rtp(ulong);
5437double __ovld __cnfn convert_double_rtp(ushort);
5438double __ovld __cnfn convert_double_rtz(char);
5439double __ovld __cnfn convert_double_rtz(double);
5440double __ovld __cnfn convert_double_rtz(float);
5441double __ovld __cnfn convert_double_rtz(int);
5442double __ovld __cnfn convert_double_rtz(long);
5443double __ovld __cnfn convert_double_rtz(short);
5444double __ovld __cnfn convert_double_rtz(uchar);
5445double __ovld __cnfn convert_double_rtz(uint);
5446double __ovld __cnfn convert_double_rtz(ulong);
5447double __ovld __cnfn convert_double_rtz(ushort);
5448double2 __ovld __cnfn convert_double2(char2);
5449double2 __ovld __cnfn convert_double2(double2);
5450double2 __ovld __cnfn convert_double2(float2);
5451double2 __ovld __cnfn convert_double2(int2);
5452double2 __ovld __cnfn convert_double2(long2);
5453double2 __ovld __cnfn convert_double2(short2);
5454double2 __ovld __cnfn convert_double2(uchar2);
5455double2 __ovld __cnfn convert_double2(uint2);
5456double2 __ovld __cnfn convert_double2(ulong2);
5457double2 __ovld __cnfn convert_double2(ushort2);
5458double2 __ovld __cnfn convert_double2_rte(char2);
5459double2 __ovld __cnfn convert_double2_rte(double2);
5460double2 __ovld __cnfn convert_double2_rte(float2);
5461double2 __ovld __cnfn convert_double2_rte(int2);
5462double2 __ovld __cnfn convert_double2_rte(long2);
5463double2 __ovld __cnfn convert_double2_rte(short2);
5464double2 __ovld __cnfn convert_double2_rte(uchar2);
5465double2 __ovld __cnfn convert_double2_rte(uint2);
5466double2 __ovld __cnfn convert_double2_rte(ulong2);
5467double2 __ovld __cnfn convert_double2_rte(ushort2);
5468double2 __ovld __cnfn convert_double2_rtn(char2);
5469double2 __ovld __cnfn convert_double2_rtn(double2);
5470double2 __ovld __cnfn convert_double2_rtn(float2);
5471double2 __ovld __cnfn convert_double2_rtn(int2);
5472double2 __ovld __cnfn convert_double2_rtn(long2);
5473double2 __ovld __cnfn convert_double2_rtn(short2);
5474double2 __ovld __cnfn convert_double2_rtn(uchar2);
5475double2 __ovld __cnfn convert_double2_rtn(uint2);
5476double2 __ovld __cnfn convert_double2_rtn(ulong2);
5477double2 __ovld __cnfn convert_double2_rtn(ushort2);
5478double2 __ovld __cnfn convert_double2_rtp(char2);
5479double2 __ovld __cnfn convert_double2_rtp(double2);
5480double2 __ovld __cnfn convert_double2_rtp(float2);
5481double2 __ovld __cnfn convert_double2_rtp(int2);
5482double2 __ovld __cnfn convert_double2_rtp(long2);
5483double2 __ovld __cnfn convert_double2_rtp(short2);
5484double2 __ovld __cnfn convert_double2_rtp(uchar2);
5485double2 __ovld __cnfn convert_double2_rtp(uint2);
5486double2 __ovld __cnfn convert_double2_rtp(ulong2);
5487double2 __ovld __cnfn convert_double2_rtp(ushort2);
5488double2 __ovld __cnfn convert_double2_rtz(char2);
5489double2 __ovld __cnfn convert_double2_rtz(double2);
5490double2 __ovld __cnfn convert_double2_rtz(float2);
5491double2 __ovld __cnfn convert_double2_rtz(int2);
5492double2 __ovld __cnfn convert_double2_rtz(long2);
5493double2 __ovld __cnfn convert_double2_rtz(short2);
5494double2 __ovld __cnfn convert_double2_rtz(uchar2);
5495double2 __ovld __cnfn convert_double2_rtz(uint2);
5496double2 __ovld __cnfn convert_double2_rtz(ulong2);
5497double2 __ovld __cnfn convert_double2_rtz(ushort2);
5498double3 __ovld __cnfn convert_double3(char3);
5499double3 __ovld __cnfn convert_double3(double3);
5500double3 __ovld __cnfn convert_double3(float3);
5501double3 __ovld __cnfn convert_double3(int3);
5502double3 __ovld __cnfn convert_double3(long3);
5503double3 __ovld __cnfn convert_double3(short3);
5504double3 __ovld __cnfn convert_double3(uchar3);
5505double3 __ovld __cnfn convert_double3(uint3);
5506double3 __ovld __cnfn convert_double3(ulong3);
5507double3 __ovld __cnfn convert_double3(ushort3);
5508double3 __ovld __cnfn convert_double3_rte(char3);
5509double3 __ovld __cnfn convert_double3_rte(double3);
5510double3 __ovld __cnfn convert_double3_rte(float3);
5511double3 __ovld __cnfn convert_double3_rte(int3);
5512double3 __ovld __cnfn convert_double3_rte(long3);
5513double3 __ovld __cnfn convert_double3_rte(short3);
5514double3 __ovld __cnfn convert_double3_rte(uchar3);
5515double3 __ovld __cnfn convert_double3_rte(uint3);
5516double3 __ovld __cnfn convert_double3_rte(ulong3);
5517double3 __ovld __cnfn convert_double3_rte(ushort3);
5518double3 __ovld __cnfn convert_double3_rtn(char3);
5519double3 __ovld __cnfn convert_double3_rtn(double3);
5520double3 __ovld __cnfn convert_double3_rtn(float3);
5521double3 __ovld __cnfn convert_double3_rtn(int3);
5522double3 __ovld __cnfn convert_double3_rtn(long3);
5523double3 __ovld __cnfn convert_double3_rtn(short3);
5524double3 __ovld __cnfn convert_double3_rtn(uchar3);
5525double3 __ovld __cnfn convert_double3_rtn(uint3);
5526double3 __ovld __cnfn convert_double3_rtn(ulong3);
5527double3 __ovld __cnfn convert_double3_rtn(ushort3);
5528double3 __ovld __cnfn convert_double3_rtp(char3);
5529double3 __ovld __cnfn convert_double3_rtp(double3);
5530double3 __ovld __cnfn convert_double3_rtp(float3);
5531double3 __ovld __cnfn convert_double3_rtp(int3);
5532double3 __ovld __cnfn convert_double3_rtp(long3);
5533double3 __ovld __cnfn convert_double3_rtp(short3);
5534double3 __ovld __cnfn convert_double3_rtp(uchar3);
5535double3 __ovld __cnfn convert_double3_rtp(uint3);
5536double3 __ovld __cnfn convert_double3_rtp(ulong3);
5537double3 __ovld __cnfn convert_double3_rtp(ushort3);
5538double3 __ovld __cnfn convert_double3_rtz(char3);
5539double3 __ovld __cnfn convert_double3_rtz(double3);
5540double3 __ovld __cnfn convert_double3_rtz(float3);
5541double3 __ovld __cnfn convert_double3_rtz(int3);
5542double3 __ovld __cnfn convert_double3_rtz(long3);
5543double3 __ovld __cnfn convert_double3_rtz(short3);
5544double3 __ovld __cnfn convert_double3_rtz(uchar3);
5545double3 __ovld __cnfn convert_double3_rtz(uint3);
5546double3 __ovld __cnfn convert_double3_rtz(ulong3);
5547double3 __ovld __cnfn convert_double3_rtz(ushort3);
5548double4 __ovld __cnfn convert_double4(char4);
5549double4 __ovld __cnfn convert_double4(double4);
5550double4 __ovld __cnfn convert_double4(float4);
5551double4 __ovld __cnfn convert_double4(int4);
5552double4 __ovld __cnfn convert_double4(long4);
5553double4 __ovld __cnfn convert_double4(short4);
5554double4 __ovld __cnfn convert_double4(uchar4);
5555double4 __ovld __cnfn convert_double4(uint4);
5556double4 __ovld __cnfn convert_double4(ulong4);
5557double4 __ovld __cnfn convert_double4(ushort4);
5558double4 __ovld __cnfn convert_double4_rte(char4);
5559double4 __ovld __cnfn convert_double4_rte(double4);
5560double4 __ovld __cnfn convert_double4_rte(float4);
5561double4 __ovld __cnfn convert_double4_rte(int4);
5562double4 __ovld __cnfn convert_double4_rte(long4);
5563double4 __ovld __cnfn convert_double4_rte(short4);
5564double4 __ovld __cnfn convert_double4_rte(uchar4);
5565double4 __ovld __cnfn convert_double4_rte(uint4);
5566double4 __ovld __cnfn convert_double4_rte(ulong4);
5567double4 __ovld __cnfn convert_double4_rte(ushort4);
5568double4 __ovld __cnfn convert_double4_rtn(char4);
5569double4 __ovld __cnfn convert_double4_rtn(double4);
5570double4 __ovld __cnfn convert_double4_rtn(float4);
5571double4 __ovld __cnfn convert_double4_rtn(int4);
5572double4 __ovld __cnfn convert_double4_rtn(long4);
5573double4 __ovld __cnfn convert_double4_rtn(short4);
5574double4 __ovld __cnfn convert_double4_rtn(uchar4);
5575double4 __ovld __cnfn convert_double4_rtn(uint4);
5576double4 __ovld __cnfn convert_double4_rtn(ulong4);
5577double4 __ovld __cnfn convert_double4_rtn(ushort4);
5578double4 __ovld __cnfn convert_double4_rtp(char4);
5579double4 __ovld __cnfn convert_double4_rtp(double4);
5580double4 __ovld __cnfn convert_double4_rtp(float4);
5581double4 __ovld __cnfn convert_double4_rtp(int4);
5582double4 __ovld __cnfn convert_double4_rtp(long4);
5583double4 __ovld __cnfn convert_double4_rtp(short4);
5584double4 __ovld __cnfn convert_double4_rtp(uchar4);
5585double4 __ovld __cnfn convert_double4_rtp(uint4);
5586double4 __ovld __cnfn convert_double4_rtp(ulong4);
5587double4 __ovld __cnfn convert_double4_rtp(ushort4);
5588double4 __ovld __cnfn convert_double4_rtz(char4);
5589double4 __ovld __cnfn convert_double4_rtz(double4);
5590double4 __ovld __cnfn convert_double4_rtz(float4);
5591double4 __ovld __cnfn convert_double4_rtz(int4);
5592double4 __ovld __cnfn convert_double4_rtz(long4);
5593double4 __ovld __cnfn convert_double4_rtz(short4);
5594double4 __ovld __cnfn convert_double4_rtz(uchar4);
5595double4 __ovld __cnfn convert_double4_rtz(uint4);
5596double4 __ovld __cnfn convert_double4_rtz(ulong4);
5597double4 __ovld __cnfn convert_double4_rtz(ushort4);
5598double8 __ovld __cnfn convert_double8(char8);
5599double8 __ovld __cnfn convert_double8(double8);
5600double8 __ovld __cnfn convert_double8(float8);
5601double8 __ovld __cnfn convert_double8(int8);
5602double8 __ovld __cnfn convert_double8(long8);
5603double8 __ovld __cnfn convert_double8(short8);
5604double8 __ovld __cnfn convert_double8(uchar8);
5605double8 __ovld __cnfn convert_double8(uint8);
5606double8 __ovld __cnfn convert_double8(ulong8);
5607double8 __ovld __cnfn convert_double8(ushort8);
5608double8 __ovld __cnfn convert_double8_rte(char8);
5609double8 __ovld __cnfn convert_double8_rte(double8);
5610double8 __ovld __cnfn convert_double8_rte(float8);
5611double8 __ovld __cnfn convert_double8_rte(int8);
5612double8 __ovld __cnfn convert_double8_rte(long8);
5613double8 __ovld __cnfn convert_double8_rte(short8);
5614double8 __ovld __cnfn convert_double8_rte(uchar8);
5615double8 __ovld __cnfn convert_double8_rte(uint8);
5616double8 __ovld __cnfn convert_double8_rte(ulong8);
5617double8 __ovld __cnfn convert_double8_rte(ushort8);
5618double8 __ovld __cnfn convert_double8_rtn(char8);
5619double8 __ovld __cnfn convert_double8_rtn(double8);
5620double8 __ovld __cnfn convert_double8_rtn(float8);
5621double8 __ovld __cnfn convert_double8_rtn(int8);
5622double8 __ovld __cnfn convert_double8_rtn(long8);
5623double8 __ovld __cnfn convert_double8_rtn(short8);
5624double8 __ovld __cnfn convert_double8_rtn(uchar8);
5625double8 __ovld __cnfn convert_double8_rtn(uint8);
5626double8 __ovld __cnfn convert_double8_rtn(ulong8);
5627double8 __ovld __cnfn convert_double8_rtn(ushort8);
5628double8 __ovld __cnfn convert_double8_rtp(char8);
5629double8 __ovld __cnfn convert_double8_rtp(double8);
5630double8 __ovld __cnfn convert_double8_rtp(float8);
5631double8 __ovld __cnfn convert_double8_rtp(int8);
5632double8 __ovld __cnfn convert_double8_rtp(long8);
5633double8 __ovld __cnfn convert_double8_rtp(short8);
5634double8 __ovld __cnfn convert_double8_rtp(uchar8);
5635double8 __ovld __cnfn convert_double8_rtp(uint8);
5636double8 __ovld __cnfn convert_double8_rtp(ulong8);
5637double8 __ovld __cnfn convert_double8_rtp(ushort8);
5638double8 __ovld __cnfn convert_double8_rtz(char8);
5639double8 __ovld __cnfn convert_double8_rtz(double8);
5640double8 __ovld __cnfn convert_double8_rtz(float8);
5641double8 __ovld __cnfn convert_double8_rtz(int8);
5642double8 __ovld __cnfn convert_double8_rtz(long8);
5643double8 __ovld __cnfn convert_double8_rtz(short8);
5644double8 __ovld __cnfn convert_double8_rtz(uchar8);
5645double8 __ovld __cnfn convert_double8_rtz(uint8);
5646double8 __ovld __cnfn convert_double8_rtz(ulong8);
5647double8 __ovld __cnfn convert_double8_rtz(ushort8);
5648double16 __ovld __cnfn convert_double16(char16);
5649double16 __ovld __cnfn convert_double16(double16);
5650double16 __ovld __cnfn convert_double16(float16);
5651double16 __ovld __cnfn convert_double16(int16);
5652double16 __ovld __cnfn convert_double16(long16);
5653double16 __ovld __cnfn convert_double16(short16);
5654double16 __ovld __cnfn convert_double16(uchar16);
5655double16 __ovld __cnfn convert_double16(uint16);
5656double16 __ovld __cnfn convert_double16(ulong16);
5657double16 __ovld __cnfn convert_double16(ushort16);
5658double16 __ovld __cnfn convert_double16_rte(char16);
5659double16 __ovld __cnfn convert_double16_rte(double16);
5660double16 __ovld __cnfn convert_double16_rte(float16);
5661double16 __ovld __cnfn convert_double16_rte(int16);
5662double16 __ovld __cnfn convert_double16_rte(long16);
5663double16 __ovld __cnfn convert_double16_rte(short16);
5664double16 __ovld __cnfn convert_double16_rte(uchar16);
5665double16 __ovld __cnfn convert_double16_rte(uint16);
5666double16 __ovld __cnfn convert_double16_rte(ulong16);
5667double16 __ovld __cnfn convert_double16_rte(ushort16);
5668double16 __ovld __cnfn convert_double16_rtn(char16);
5669double16 __ovld __cnfn convert_double16_rtn(double16);
5670double16 __ovld __cnfn convert_double16_rtn(float16);
5671double16 __ovld __cnfn convert_double16_rtn(int16);
5672double16 __ovld __cnfn convert_double16_rtn(long16);
5673double16 __ovld __cnfn convert_double16_rtn(short16);
5674double16 __ovld __cnfn convert_double16_rtn(uchar16);
5675double16 __ovld __cnfn convert_double16_rtn(uint16);
5676double16 __ovld __cnfn convert_double16_rtn(ulong16);
5677double16 __ovld __cnfn convert_double16_rtn(ushort16);
5678double16 __ovld __cnfn convert_double16_rtp(char16);
5679double16 __ovld __cnfn convert_double16_rtp(double16);
5680double16 __ovld __cnfn convert_double16_rtp(float16);
5681double16 __ovld __cnfn convert_double16_rtp(int16);
5682double16 __ovld __cnfn convert_double16_rtp(long16);
5683double16 __ovld __cnfn convert_double16_rtp(short16);
5684double16 __ovld __cnfn convert_double16_rtp(uchar16);
5685double16 __ovld __cnfn convert_double16_rtp(uint16);
5686double16 __ovld __cnfn convert_double16_rtp(ulong16);
5687double16 __ovld __cnfn convert_double16_rtp(ushort16);
5688double16 __ovld __cnfn convert_double16_rtz(char16);
5689double16 __ovld __cnfn convert_double16_rtz(double16);
5690double16 __ovld __cnfn convert_double16_rtz(float16);
5691double16 __ovld __cnfn convert_double16_rtz(int16);
5692double16 __ovld __cnfn convert_double16_rtz(long16);
5693double16 __ovld __cnfn convert_double16_rtz(short16);
5694double16 __ovld __cnfn convert_double16_rtz(uchar16);
5695double16 __ovld __cnfn convert_double16_rtz(uint16);
5696double16 __ovld __cnfn convert_double16_rtz(ulong16);
5697double16 __ovld __cnfn convert_double16_rtz(ushort16);
5698#endif //cl_khr_fp64
5699
5700#ifdef cl_khr_fp16
5701// Convert half types to non-double types.
5702uchar __ovld __cnfn convert_uchar(half);
5703uchar __ovld __cnfn convert_uchar_rte(half);
5704uchar __ovld __cnfn convert_uchar_rtp(half);
5705uchar __ovld __cnfn convert_uchar_rtn(half);
5706uchar __ovld __cnfn convert_uchar_rtz(half);
5707uchar __ovld __cnfn convert_uchar_sat(half);
5708uchar __ovld __cnfn convert_uchar_sat_rte(half);
5709uchar __ovld __cnfn convert_uchar_sat_rtp(half);
5710uchar __ovld __cnfn convert_uchar_sat_rtn(half);
5711uchar __ovld __cnfn convert_uchar_sat_rtz(half);
5712uchar2 __ovld __cnfn convert_uchar2(half2);
5713uchar2 __ovld __cnfn convert_uchar2_rte(half2);
5714uchar2 __ovld __cnfn convert_uchar2_rtp(half2);
5715uchar2 __ovld __cnfn convert_uchar2_rtn(half2);
5716uchar2 __ovld __cnfn convert_uchar2_rtz(half2);
5717uchar2 __ovld __cnfn convert_uchar2_sat(half2);
5718uchar2 __ovld __cnfn convert_uchar2_sat_rte(half2);
5719uchar2 __ovld __cnfn convert_uchar2_sat_rtp(half2);
5720uchar2 __ovld __cnfn convert_uchar2_sat_rtn(half2);
5721uchar2 __ovld __cnfn convert_uchar2_sat_rtz(half2);
5722uchar3 __ovld __cnfn convert_uchar3(half3);
5723uchar3 __ovld __cnfn convert_uchar3_rte(half3);
5724uchar3 __ovld __cnfn convert_uchar3_rtp(half3);
5725uchar3 __ovld __cnfn convert_uchar3_rtn(half3);
5726uchar3 __ovld __cnfn convert_uchar3_rtz(half3);
5727uchar3 __ovld __cnfn convert_uchar3_sat(half3);
5728uchar3 __ovld __cnfn convert_uchar3_sat_rte(half3);
5729uchar3 __ovld __cnfn convert_uchar3_sat_rtp(half3);
5730uchar3 __ovld __cnfn convert_uchar3_sat_rtn(half3);
5731uchar3 __ovld __cnfn convert_uchar3_sat_rtz(half3);
5732uchar4 __ovld __cnfn convert_uchar4(half4);
5733uchar4 __ovld __cnfn convert_uchar4_rte(half4);
5734uchar4 __ovld __cnfn convert_uchar4_rtp(half4);
5735uchar4 __ovld __cnfn convert_uchar4_rtn(half4);
5736uchar4 __ovld __cnfn convert_uchar4_rtz(half4);
5737uchar4 __ovld __cnfn convert_uchar4_sat(half4);
5738uchar4 __ovld __cnfn convert_uchar4_sat_rte(half4);
5739uchar4 __ovld __cnfn convert_uchar4_sat_rtp(half4);
5740uchar4 __ovld __cnfn convert_uchar4_sat_rtn(half4);
5741uchar4 __ovld __cnfn convert_uchar4_sat_rtz(half4);
5742uchar8 __ovld __cnfn convert_uchar8(half8);
5743uchar8 __ovld __cnfn convert_uchar8_rte(half8);
5744uchar8 __ovld __cnfn convert_uchar8_rtp(half8);
5745uchar8 __ovld __cnfn convert_uchar8_rtn(half8);
5746uchar8 __ovld __cnfn convert_uchar8_rtz(half8);
5747uchar8 __ovld __cnfn convert_uchar8_sat(half8);
5748uchar8 __ovld __cnfn convert_uchar8_sat_rte(half8);
5749uchar8 __ovld __cnfn convert_uchar8_sat_rtp(half8);
5750uchar8 __ovld __cnfn convert_uchar8_sat_rtn(half8);
5751uchar8 __ovld __cnfn convert_uchar8_sat_rtz(half8);
5752uchar16 __ovld __cnfn convert_uchar16(half16);
5753uchar16 __ovld __cnfn convert_uchar16_rte(half16);
5754uchar16 __ovld __cnfn convert_uchar16_rtp(half16);
5755uchar16 __ovld __cnfn convert_uchar16_rtn(half16);
5756uchar16 __ovld __cnfn convert_uchar16_rtz(half16);
5757uchar16 __ovld __cnfn convert_uchar16_sat(half16);
5758uchar16 __ovld __cnfn convert_uchar16_sat_rte(half16);
5759uchar16 __ovld __cnfn convert_uchar16_sat_rtp(half16);
5760uchar16 __ovld __cnfn convert_uchar16_sat_rtn(half16);
5761uchar16 __ovld __cnfn convert_uchar16_sat_rtz(half16);
5762ushort __ovld __cnfn convert_ushort(half);
5763ushort __ovld __cnfn convert_ushort_rte(half);
5764ushort __ovld __cnfn convert_ushort_rtp(half);
5765ushort __ovld __cnfn convert_ushort_rtn(half);
5766ushort __ovld __cnfn convert_ushort_rtz(half);
5767ushort __ovld __cnfn convert_ushort_sat(half);
5768ushort __ovld __cnfn convert_ushort_sat_rte(half);
5769ushort __ovld __cnfn convert_ushort_sat_rtp(half);
5770ushort __ovld __cnfn convert_ushort_sat_rtn(half);
5771ushort __ovld __cnfn convert_ushort_sat_rtz(half);
5772ushort2 __ovld __cnfn convert_ushort2(half2);
5773ushort2 __ovld __cnfn convert_ushort2_rte(half2);
5774ushort2 __ovld __cnfn convert_ushort2_rtp(half2);
5775ushort2 __ovld __cnfn convert_ushort2_rtn(half2);
5776ushort2 __ovld __cnfn convert_ushort2_rtz(half2);
5777ushort2 __ovld __cnfn convert_ushort2_sat(half2);
5778ushort2 __ovld __cnfn convert_ushort2_sat_rte(half2);
5779ushort2 __ovld __cnfn convert_ushort2_sat_rtp(half2);
5780ushort2 __ovld __cnfn convert_ushort2_sat_rtn(half2);
5781ushort2 __ovld __cnfn convert_ushort2_sat_rtz(half2);
5782ushort3 __ovld __cnfn convert_ushort3(half3);
5783ushort3 __ovld __cnfn convert_ushort3_rte(half3);
5784ushort3 __ovld __cnfn convert_ushort3_rtp(half3);
5785ushort3 __ovld __cnfn convert_ushort3_rtn(half3);
5786ushort3 __ovld __cnfn convert_ushort3_rtz(half3);
5787ushort3 __ovld __cnfn convert_ushort3_sat(half3);
5788ushort3 __ovld __cnfn convert_ushort3_sat_rte(half3);
5789ushort3 __ovld __cnfn convert_ushort3_sat_rtp(half3);
5790ushort3 __ovld __cnfn convert_ushort3_sat_rtn(half3);
5791ushort3 __ovld __cnfn convert_ushort3_sat_rtz(half3);
5792ushort4 __ovld __cnfn convert_ushort4(half4);
5793ushort4 __ovld __cnfn convert_ushort4_rte(half4);
5794ushort4 __ovld __cnfn convert_ushort4_rtp(half4);
5795ushort4 __ovld __cnfn convert_ushort4_rtn(half4);
5796ushort4 __ovld __cnfn convert_ushort4_rtz(half4);
5797ushort4 __ovld __cnfn convert_ushort4_sat(half4);
5798ushort4 __ovld __cnfn convert_ushort4_sat_rte(half4);
5799ushort4 __ovld __cnfn convert_ushort4_sat_rtp(half4);
5800ushort4 __ovld __cnfn convert_ushort4_sat_rtn(half4);
5801ushort4 __ovld __cnfn convert_ushort4_sat_rtz(half4);
5802ushort8 __ovld __cnfn convert_ushort8(half8);
5803ushort8 __ovld __cnfn convert_ushort8_rte(half8);
5804ushort8 __ovld __cnfn convert_ushort8_rtp(half8);
5805ushort8 __ovld __cnfn convert_ushort8_rtn(half8);
5806ushort8 __ovld __cnfn convert_ushort8_rtz(half8);
5807ushort8 __ovld __cnfn convert_ushort8_sat(half8);
5808ushort8 __ovld __cnfn convert_ushort8_sat_rte(half8);
5809ushort8 __ovld __cnfn convert_ushort8_sat_rtp(half8);
5810ushort8 __ovld __cnfn convert_ushort8_sat_rtn(half8);
5811ushort8 __ovld __cnfn convert_ushort8_sat_rtz(half8);
5812ushort16 __ovld __cnfn convert_ushort16(half16);
5813ushort16 __ovld __cnfn convert_ushort16_rte(half16);
5814ushort16 __ovld __cnfn convert_ushort16_rtp(half16);
5815ushort16 __ovld __cnfn convert_ushort16_rtn(half16);
5816ushort16 __ovld __cnfn convert_ushort16_rtz(half16);
5817ushort16 __ovld __cnfn convert_ushort16_sat(half16);
5818ushort16 __ovld __cnfn convert_ushort16_sat_rte(half16);
5819ushort16 __ovld __cnfn convert_ushort16_sat_rtp(half16);
5820ushort16 __ovld __cnfn convert_ushort16_sat_rtn(half16);
5821ushort16 __ovld __cnfn convert_ushort16_sat_rtz(half16);
5822uint __ovld __cnfn convert_uint(half);
5823uint __ovld __cnfn convert_uint_rte(half);
5824uint __ovld __cnfn convert_uint_rtp(half);
5825uint __ovld __cnfn convert_uint_rtn(half);
5826uint __ovld __cnfn convert_uint_rtz(half);
5827uint __ovld __cnfn convert_uint_sat(half);
5828uint __ovld __cnfn convert_uint_sat_rte(half);
5829uint __ovld __cnfn convert_uint_sat_rtp(half);
5830uint __ovld __cnfn convert_uint_sat_rtn(half);
5831uint __ovld __cnfn convert_uint_sat_rtz(half);
5832uint2 __ovld __cnfn convert_uint2(half2);
5833uint2 __ovld __cnfn convert_uint2_rte(half2);
5834uint2 __ovld __cnfn convert_uint2_rtp(half2);
5835uint2 __ovld __cnfn convert_uint2_rtn(half2);
5836uint2 __ovld __cnfn convert_uint2_rtz(half2);
5837uint2 __ovld __cnfn convert_uint2_sat(half2);
5838uint2 __ovld __cnfn convert_uint2_sat_rte(half2);
5839uint2 __ovld __cnfn convert_uint2_sat_rtp(half2);
5840uint2 __ovld __cnfn convert_uint2_sat_rtn(half2);
5841uint2 __ovld __cnfn convert_uint2_sat_rtz(half2);
5842uint3 __ovld __cnfn convert_uint3(half3);
5843uint3 __ovld __cnfn convert_uint3_rte(half3);
5844uint3 __ovld __cnfn convert_uint3_rtp(half3);
5845uint3 __ovld __cnfn convert_uint3_rtn(half3);
5846uint3 __ovld __cnfn convert_uint3_rtz(half3);
5847uint3 __ovld __cnfn convert_uint3_sat(half3);
5848uint3 __ovld __cnfn convert_uint3_sat_rte(half3);
5849uint3 __ovld __cnfn convert_uint3_sat_rtp(half3);
5850uint3 __ovld __cnfn convert_uint3_sat_rtn(half3);
5851uint3 __ovld __cnfn convert_uint3_sat_rtz(half3);
5852uint4 __ovld __cnfn convert_uint4(half4);
5853uint4 __ovld __cnfn convert_uint4_rte(half4);
5854uint4 __ovld __cnfn convert_uint4_rtp(half4);
5855uint4 __ovld __cnfn convert_uint4_rtn(half4);
5856uint4 __ovld __cnfn convert_uint4_rtz(half4);
5857uint4 __ovld __cnfn convert_uint4_sat(half4);
5858uint4 __ovld __cnfn convert_uint4_sat_rte(half4);
5859uint4 __ovld __cnfn convert_uint4_sat_rtp(half4);
5860uint4 __ovld __cnfn convert_uint4_sat_rtn(half4);
5861uint4 __ovld __cnfn convert_uint4_sat_rtz(half4);
5862uint8 __ovld __cnfn convert_uint8(half8);
5863uint8 __ovld __cnfn convert_uint8_rte(half8);
5864uint8 __ovld __cnfn convert_uint8_rtp(half8);
5865uint8 __ovld __cnfn convert_uint8_rtn(half8);
5866uint8 __ovld __cnfn convert_uint8_rtz(half8);
5867uint8 __ovld __cnfn convert_uint8_sat(half8);
5868uint8 __ovld __cnfn convert_uint8_sat_rte(half8);
5869uint8 __ovld __cnfn convert_uint8_sat_rtp(half8);
5870uint8 __ovld __cnfn convert_uint8_sat_rtn(half8);
5871uint8 __ovld __cnfn convert_uint8_sat_rtz(half8);
5872uint16 __ovld __cnfn convert_uint16(half16);
5873uint16 __ovld __cnfn convert_uint16_rte(half16);
5874uint16 __ovld __cnfn convert_uint16_rtp(half16);
5875uint16 __ovld __cnfn convert_uint16_rtn(half16);
5876uint16 __ovld __cnfn convert_uint16_rtz(half16);
5877uint16 __ovld __cnfn convert_uint16_sat(half16);
5878uint16 __ovld __cnfn convert_uint16_sat_rte(half16);
5879uint16 __ovld __cnfn convert_uint16_sat_rtp(half16);
5880uint16 __ovld __cnfn convert_uint16_sat_rtn(half16);
5881uint16 __ovld __cnfn convert_uint16_sat_rtz(half16);
5882ulong __ovld __cnfn convert_ulong(half);
5883ulong __ovld __cnfn convert_ulong_rte(half);
5884ulong __ovld __cnfn convert_ulong_rtp(half);
5885ulong __ovld __cnfn convert_ulong_rtn(half);
5886ulong __ovld __cnfn convert_ulong_rtz(half);
5887ulong __ovld __cnfn convert_ulong_sat(half);
5888ulong __ovld __cnfn convert_ulong_sat_rte(half);
5889ulong __ovld __cnfn convert_ulong_sat_rtp(half);
5890ulong __ovld __cnfn convert_ulong_sat_rtn(half);
5891ulong __ovld __cnfn convert_ulong_sat_rtz(half);
5892ulong2 __ovld __cnfn convert_ulong2(half2);
5893ulong2 __ovld __cnfn convert_ulong2_rte(half2);
5894ulong2 __ovld __cnfn convert_ulong2_rtp(half2);
5895ulong2 __ovld __cnfn convert_ulong2_rtn(half2);
5896ulong2 __ovld __cnfn convert_ulong2_rtz(half2);
5897ulong2 __ovld __cnfn convert_ulong2_sat(half2);
5898ulong2 __ovld __cnfn convert_ulong2_sat_rte(half2);
5899ulong2 __ovld __cnfn convert_ulong2_sat_rtp(half2);
5900ulong2 __ovld __cnfn convert_ulong2_sat_rtn(half2);
5901ulong2 __ovld __cnfn convert_ulong2_sat_rtz(half2);
5902ulong3 __ovld __cnfn convert_ulong3(half3);
5903ulong3 __ovld __cnfn convert_ulong3_rte(half3);
5904ulong3 __ovld __cnfn convert_ulong3_rtp(half3);
5905ulong3 __ovld __cnfn convert_ulong3_rtn(half3);
5906ulong3 __ovld __cnfn convert_ulong3_rtz(half3);
5907ulong3 __ovld __cnfn convert_ulong3_sat(half3);
5908ulong3 __ovld __cnfn convert_ulong3_sat_rte(half3);
5909ulong3 __ovld __cnfn convert_ulong3_sat_rtp(half3);
5910ulong3 __ovld __cnfn convert_ulong3_sat_rtn(half3);
5911ulong3 __ovld __cnfn convert_ulong3_sat_rtz(half3);
5912ulong4 __ovld __cnfn convert_ulong4(half4);
5913ulong4 __ovld __cnfn convert_ulong4_rte(half4);
5914ulong4 __ovld __cnfn convert_ulong4_rtp(half4);
5915ulong4 __ovld __cnfn convert_ulong4_rtn(half4);
5916ulong4 __ovld __cnfn convert_ulong4_rtz(half4);
5917ulong4 __ovld __cnfn convert_ulong4_sat(half4);
5918ulong4 __ovld __cnfn convert_ulong4_sat_rte(half4);
5919ulong4 __ovld __cnfn convert_ulong4_sat_rtp(half4);
5920ulong4 __ovld __cnfn convert_ulong4_sat_rtn(half4);
5921ulong4 __ovld __cnfn convert_ulong4_sat_rtz(half4);
5922ulong8 __ovld __cnfn convert_ulong8(half8);
5923ulong8 __ovld __cnfn convert_ulong8_rte(half8);
5924ulong8 __ovld __cnfn convert_ulong8_rtp(half8);
5925ulong8 __ovld __cnfn convert_ulong8_rtn(half8);
5926ulong8 __ovld __cnfn convert_ulong8_rtz(half8);
5927ulong8 __ovld __cnfn convert_ulong8_sat(half8);
5928ulong8 __ovld __cnfn convert_ulong8_sat_rte(half8);
5929ulong8 __ovld __cnfn convert_ulong8_sat_rtp(half8);
5930ulong8 __ovld __cnfn convert_ulong8_sat_rtn(half8);
5931ulong8 __ovld __cnfn convert_ulong8_sat_rtz(half8);
5932ulong16 __ovld __cnfn convert_ulong16(half16);
5933ulong16 __ovld __cnfn convert_ulong16_rte(half16);
5934ulong16 __ovld __cnfn convert_ulong16_rtp(half16);
5935ulong16 __ovld __cnfn convert_ulong16_rtn(half16);
5936ulong16 __ovld __cnfn convert_ulong16_rtz(half16);
5937ulong16 __ovld __cnfn convert_ulong16_sat(half16);
5938ulong16 __ovld __cnfn convert_ulong16_sat_rte(half16);
5939ulong16 __ovld __cnfn convert_ulong16_sat_rtp(half16);
5940ulong16 __ovld __cnfn convert_ulong16_sat_rtn(half16);
5941ulong16 __ovld __cnfn convert_ulong16_sat_rtz(half16);
5942char __ovld __cnfn convert_char(half);
5943char __ovld __cnfn convert_char_rte(half);
5944char __ovld __cnfn convert_char_rtp(half);
5945char __ovld __cnfn convert_char_rtn(half);
5946char __ovld __cnfn convert_char_rtz(half);
5947char __ovld __cnfn convert_char_sat(half);
5948char __ovld __cnfn convert_char_sat_rte(half);
5949char __ovld __cnfn convert_char_sat_rtp(half);
5950char __ovld __cnfn convert_char_sat_rtn(half);
5951char __ovld __cnfn convert_char_sat_rtz(half);
5952char2 __ovld __cnfn convert_char2(half2);
5953char2 __ovld __cnfn convert_char2_rte(half2);
5954char2 __ovld __cnfn convert_char2_rtp(half2);
5955char2 __ovld __cnfn convert_char2_rtn(half2);
5956char2 __ovld __cnfn convert_char2_rtz(half2);
5957char2 __ovld __cnfn convert_char2_sat(half2);
5958char2 __ovld __cnfn convert_char2_sat_rte(half2);
5959char2 __ovld __cnfn convert_char2_sat_rtp(half2);
5960char2 __ovld __cnfn convert_char2_sat_rtn(half2);
5961char2 __ovld __cnfn convert_char2_sat_rtz(half2);
5962char3 __ovld __cnfn convert_char3(half3);
5963char3 __ovld __cnfn convert_char3_rte(half3);
5964char3 __ovld __cnfn convert_char3_rtp(half3);
5965char3 __ovld __cnfn convert_char3_rtn(half3);
5966char3 __ovld __cnfn convert_char3_rtz(half3);
5967char3 __ovld __cnfn convert_char3_sat(half3);
5968char3 __ovld __cnfn convert_char3_sat_rte(half3);
5969char3 __ovld __cnfn convert_char3_sat_rtp(half3);
5970char3 __ovld __cnfn convert_char3_sat_rtn(half3);
5971char3 __ovld __cnfn convert_char3_sat_rtz(half3);
5972char4 __ovld __cnfn convert_char4(half4);
5973char4 __ovld __cnfn convert_char4_rte(half4);
5974char4 __ovld __cnfn convert_char4_rtp(half4);
5975char4 __ovld __cnfn convert_char4_rtn(half4);
5976char4 __ovld __cnfn convert_char4_rtz(half4);
5977char4 __ovld __cnfn convert_char4_sat(half4);
5978char4 __ovld __cnfn convert_char4_sat_rte(half4);
5979char4 __ovld __cnfn convert_char4_sat_rtp(half4);
5980char4 __ovld __cnfn convert_char4_sat_rtn(half4);
5981char4 __ovld __cnfn convert_char4_sat_rtz(half4);
5982char8 __ovld __cnfn convert_char8(half8);
5983char8 __ovld __cnfn convert_char8_rte(half8);
5984char8 __ovld __cnfn convert_char8_rtp(half8);
5985char8 __ovld __cnfn convert_char8_rtn(half8);
5986char8 __ovld __cnfn convert_char8_rtz(half8);
5987char8 __ovld __cnfn convert_char8_sat(half8);
5988char8 __ovld __cnfn convert_char8_sat_rte(half8);
5989char8 __ovld __cnfn convert_char8_sat_rtp(half8);
5990char8 __ovld __cnfn convert_char8_sat_rtn(half8);
5991char8 __ovld __cnfn convert_char8_sat_rtz(half8);
5992char16 __ovld __cnfn convert_char16(half16);
5993char16 __ovld __cnfn convert_char16_rte(half16);
5994char16 __ovld __cnfn convert_char16_rtp(half16);
5995char16 __ovld __cnfn convert_char16_rtn(half16);
5996char16 __ovld __cnfn convert_char16_rtz(half16);
5997char16 __ovld __cnfn convert_char16_sat(half16);
5998char16 __ovld __cnfn convert_char16_sat_rte(half16);
5999char16 __ovld __cnfn convert_char16_sat_rtp(half16);
6000char16 __ovld __cnfn convert_char16_sat_rtn(half16);
6001char16 __ovld __cnfn convert_char16_sat_rtz(half16);
6002short __ovld __cnfn convert_short(half);
6003short __ovld __cnfn convert_short_rte(half);
6004short __ovld __cnfn convert_short_rtp(half);
6005short __ovld __cnfn convert_short_rtn(half);
6006short __ovld __cnfn convert_short_rtz(half);
6007short __ovld __cnfn convert_short_sat(half);
6008short __ovld __cnfn convert_short_sat_rte(half);
6009short __ovld __cnfn convert_short_sat_rtp(half);
6010short __ovld __cnfn convert_short_sat_rtn(half);
6011short __ovld __cnfn convert_short_sat_rtz(half);
6012short2 __ovld __cnfn convert_short2(half2);
6013short2 __ovld __cnfn convert_short2_rte(half2);
6014short2 __ovld __cnfn convert_short2_rtp(half2);
6015short2 __ovld __cnfn convert_short2_rtn(half2);
6016short2 __ovld __cnfn convert_short2_rtz(half2);
6017short2 __ovld __cnfn convert_short2_sat(half2);
6018short2 __ovld __cnfn convert_short2_sat_rte(half2);
6019short2 __ovld __cnfn convert_short2_sat_rtp(half2);
6020short2 __ovld __cnfn convert_short2_sat_rtn(half2);
6021short2 __ovld __cnfn convert_short2_sat_rtz(half2);
6022short3 __ovld __cnfn convert_short3(half3);
6023short3 __ovld __cnfn convert_short3_rte(half3);
6024short3 __ovld __cnfn convert_short3_rtp(half3);
6025short3 __ovld __cnfn convert_short3_rtn(half3);
6026short3 __ovld __cnfn convert_short3_rtz(half3);
6027short3 __ovld __cnfn convert_short3_sat(half3);
6028short3 __ovld __cnfn convert_short3_sat_rte(half3);
6029short3 __ovld __cnfn convert_short3_sat_rtp(half3);
6030short3 __ovld __cnfn convert_short3_sat_rtn(half3);
6031short3 __ovld __cnfn convert_short3_sat_rtz(half3);
6032short4 __ovld __cnfn convert_short4(half4);
6033short4 __ovld __cnfn convert_short4_rte(half4);
6034short4 __ovld __cnfn convert_short4_rtp(half4);
6035short4 __ovld __cnfn convert_short4_rtn(half4);
6036short4 __ovld __cnfn convert_short4_rtz(half4);
6037short4 __ovld __cnfn convert_short4_sat(half4);
6038short4 __ovld __cnfn convert_short4_sat_rte(half4);
6039short4 __ovld __cnfn convert_short4_sat_rtp(half4);
6040short4 __ovld __cnfn convert_short4_sat_rtn(half4);
6041short4 __ovld __cnfn convert_short4_sat_rtz(half4);
6042short8 __ovld __cnfn convert_short8(half8);
6043short8 __ovld __cnfn convert_short8_rte(half8);
6044short8 __ovld __cnfn convert_short8_rtp(half8);
6045short8 __ovld __cnfn convert_short8_rtn(half8);
6046short8 __ovld __cnfn convert_short8_rtz(half8);
6047short8 __ovld __cnfn convert_short8_sat(half8);
6048short8 __ovld __cnfn convert_short8_sat_rte(half8);
6049short8 __ovld __cnfn convert_short8_sat_rtp(half8);
6050short8 __ovld __cnfn convert_short8_sat_rtn(half8);
6051short8 __ovld __cnfn convert_short8_sat_rtz(half8);
6052short16 __ovld __cnfn convert_short16(half16);
6053short16 __ovld __cnfn convert_short16_rte(half16);
6054short16 __ovld __cnfn convert_short16_rtp(half16);
6055short16 __ovld __cnfn convert_short16_rtn(half16);
6056short16 __ovld __cnfn convert_short16_rtz(half16);
6057short16 __ovld __cnfn convert_short16_sat(half16);
6058short16 __ovld __cnfn convert_short16_sat_rte(half16);
6059short16 __ovld __cnfn convert_short16_sat_rtp(half16);
6060short16 __ovld __cnfn convert_short16_sat_rtn(half16);
6061short16 __ovld __cnfn convert_short16_sat_rtz(half16);
6062int __ovld __cnfn convert_int(half);
6063int __ovld __cnfn convert_int_rte(half);
6064int __ovld __cnfn convert_int_rtp(half);
6065int __ovld __cnfn convert_int_rtn(half);
6066int __ovld __cnfn convert_int_rtz(half);
6067int __ovld __cnfn convert_int_sat(half);
6068int __ovld __cnfn convert_int_sat_rte(half);
6069int __ovld __cnfn convert_int_sat_rtp(half);
6070int __ovld __cnfn convert_int_sat_rtn(half);
6071int __ovld __cnfn convert_int_sat_rtz(half);
6072int2 __ovld __cnfn convert_int2(half2);
6073int2 __ovld __cnfn convert_int2_rte(half2);
6074int2 __ovld __cnfn convert_int2_rtp(half2);
6075int2 __ovld __cnfn convert_int2_rtn(half2);
6076int2 __ovld __cnfn convert_int2_rtz(half2);
6077int2 __ovld __cnfn convert_int2_sat(half2);
6078int2 __ovld __cnfn convert_int2_sat_rte(half2);
6079int2 __ovld __cnfn convert_int2_sat_rtp(half2);
6080int2 __ovld __cnfn convert_int2_sat_rtn(half2);
6081int2 __ovld __cnfn convert_int2_sat_rtz(half2);
6082int3 __ovld __cnfn convert_int3(half3);
6083int3 __ovld __cnfn convert_int3_rte(half3);
6084int3 __ovld __cnfn convert_int3_rtp(half3);
6085int3 __ovld __cnfn convert_int3_rtn(half3);
6086int3 __ovld __cnfn convert_int3_rtz(half3);
6087int3 __ovld __cnfn convert_int3_sat(half3);
6088int3 __ovld __cnfn convert_int3_sat_rte(half3);
6089int3 __ovld __cnfn convert_int3_sat_rtp(half3);
6090int3 __ovld __cnfn convert_int3_sat_rtn(half3);
6091int3 __ovld __cnfn convert_int3_sat_rtz(half3);
6092int4 __ovld __cnfn convert_int4(half4);
6093int4 __ovld __cnfn convert_int4_rte(half4);
6094int4 __ovld __cnfn convert_int4_rtp(half4);
6095int4 __ovld __cnfn convert_int4_rtn(half4);
6096int4 __ovld __cnfn convert_int4_rtz(half4);
6097int4 __ovld __cnfn convert_int4_sat(half4);
6098int4 __ovld __cnfn convert_int4_sat_rte(half4);
6099int4 __ovld __cnfn convert_int4_sat_rtp(half4);
6100int4 __ovld __cnfn convert_int4_sat_rtn(half4);
6101int4 __ovld __cnfn convert_int4_sat_rtz(half4);
6102int8 __ovld __cnfn convert_int8(half8);
6103int8 __ovld __cnfn convert_int8_rte(half8);
6104int8 __ovld __cnfn convert_int8_rtp(half8);
6105int8 __ovld __cnfn convert_int8_rtn(half8);
6106int8 __ovld __cnfn convert_int8_rtz(half8);
6107int8 __ovld __cnfn convert_int8_sat(half8);
6108int8 __ovld __cnfn convert_int8_sat_rte(half8);
6109int8 __ovld __cnfn convert_int8_sat_rtp(half8);
6110int8 __ovld __cnfn convert_int8_sat_rtn(half8);
6111int8 __ovld __cnfn convert_int8_sat_rtz(half8);
6112int16 __ovld __cnfn convert_int16(half16);
6113int16 __ovld __cnfn convert_int16_rte(half16);
6114int16 __ovld __cnfn convert_int16_rtp(half16);
6115int16 __ovld __cnfn convert_int16_rtn(half16);
6116int16 __ovld __cnfn convert_int16_rtz(half16);
6117int16 __ovld __cnfn convert_int16_sat(half16);
6118int16 __ovld __cnfn convert_int16_sat_rte(half16);
6119int16 __ovld __cnfn convert_int16_sat_rtp(half16);
6120int16 __ovld __cnfn convert_int16_sat_rtn(half16);
6121int16 __ovld __cnfn convert_int16_sat_rtz(half16);
6122long __ovld __cnfn convert_long(half);
6123long __ovld __cnfn convert_long_rte(half);
6124long __ovld __cnfn convert_long_rtp(half);
6125long __ovld __cnfn convert_long_rtn(half);
6126long __ovld __cnfn convert_long_rtz(half);
6127long __ovld __cnfn convert_long_sat(half);
6128long __ovld __cnfn convert_long_sat_rte(half);
6129long __ovld __cnfn convert_long_sat_rtp(half);
6130long __ovld __cnfn convert_long_sat_rtn(half);
6131long __ovld __cnfn convert_long_sat_rtz(half);
6132long2 __ovld __cnfn convert_long2(half2);
6133long2 __ovld __cnfn convert_long2_rte(half2);
6134long2 __ovld __cnfn convert_long2_rtp(half2);
6135long2 __ovld __cnfn convert_long2_rtn(half2);
6136long2 __ovld __cnfn convert_long2_rtz(half2);
6137long2 __ovld __cnfn convert_long2_sat(half2);
6138long2 __ovld __cnfn convert_long2_sat_rte(half2);
6139long2 __ovld __cnfn convert_long2_sat_rtp(half2);
6140long2 __ovld __cnfn convert_long2_sat_rtn(half2);
6141long2 __ovld __cnfn convert_long2_sat_rtz(half2);
6142long3 __ovld __cnfn convert_long3(half3);
6143long3 __ovld __cnfn convert_long3_rte(half3);
6144long3 __ovld __cnfn convert_long3_rtp(half3);
6145long3 __ovld __cnfn convert_long3_rtn(half3);
6146long3 __ovld __cnfn convert_long3_rtz(half3);
6147long3 __ovld __cnfn convert_long3_sat(half3);
6148long3 __ovld __cnfn convert_long3_sat_rte(half3);
6149long3 __ovld __cnfn convert_long3_sat_rtp(half3);
6150long3 __ovld __cnfn convert_long3_sat_rtn(half3);
6151long3 __ovld __cnfn convert_long3_sat_rtz(half3);
6152long4 __ovld __cnfn convert_long4(half4);
6153long4 __ovld __cnfn convert_long4_rte(half4);
6154long4 __ovld __cnfn convert_long4_rtp(half4);
6155long4 __ovld __cnfn convert_long4_rtn(half4);
6156long4 __ovld __cnfn convert_long4_rtz(half4);
6157long4 __ovld __cnfn convert_long4_sat(half4);
6158long4 __ovld __cnfn convert_long4_sat_rte(half4);
6159long4 __ovld __cnfn convert_long4_sat_rtp(half4);
6160long4 __ovld __cnfn convert_long4_sat_rtn(half4);
6161long4 __ovld __cnfn convert_long4_sat_rtz(half4);
6162long8 __ovld __cnfn convert_long8(half8);
6163long8 __ovld __cnfn convert_long8_rte(half8);
6164long8 __ovld __cnfn convert_long8_rtp(half8);
6165long8 __ovld __cnfn convert_long8_rtn(half8);
6166long8 __ovld __cnfn convert_long8_rtz(half8);
6167long8 __ovld __cnfn convert_long8_sat(half8);
6168long8 __ovld __cnfn convert_long8_sat_rte(half8);
6169long8 __ovld __cnfn convert_long8_sat_rtp(half8);
6170long8 __ovld __cnfn convert_long8_sat_rtn(half8);
6171long8 __ovld __cnfn convert_long8_sat_rtz(half8);
6172long16 __ovld __cnfn convert_long16(half16);
6173long16 __ovld __cnfn convert_long16_rte(half16);
6174long16 __ovld __cnfn convert_long16_rtp(half16);
6175long16 __ovld __cnfn convert_long16_rtn(half16);
6176long16 __ovld __cnfn convert_long16_rtz(half16);
6177long16 __ovld __cnfn convert_long16_sat(half16);
6178long16 __ovld __cnfn convert_long16_sat_rte(half16);
6179long16 __ovld __cnfn convert_long16_sat_rtp(half16);
6180long16 __ovld __cnfn convert_long16_sat_rtn(half16);
6181long16 __ovld __cnfn convert_long16_sat_rtz(half16);
6182float __ovld __cnfn convert_float(half);
6183float __ovld __cnfn convert_float_rte(half);
6184float __ovld __cnfn convert_float_rtp(half);
6185float __ovld __cnfn convert_float_rtn(half);
6186float __ovld __cnfn convert_float_rtz(half);
6187float2 __ovld __cnfn convert_float2(half2);
6188float2 __ovld __cnfn convert_float2_rte(half2);
6189float2 __ovld __cnfn convert_float2_rtp(half2);
6190float2 __ovld __cnfn convert_float2_rtn(half2);
6191float2 __ovld __cnfn convert_float2_rtz(half2);
6192float3 __ovld __cnfn convert_float3(half3);
6193float3 __ovld __cnfn convert_float3_rte(half3);
6194float3 __ovld __cnfn convert_float3_rtp(half3);
6195float3 __ovld __cnfn convert_float3_rtn(half3);
6196float3 __ovld __cnfn convert_float3_rtz(half3);
6197float4 __ovld __cnfn convert_float4(half4);
6198float4 __ovld __cnfn convert_float4_rte(half4);
6199float4 __ovld __cnfn convert_float4_rtp(half4);
6200float4 __ovld __cnfn convert_float4_rtn(half4);
6201float4 __ovld __cnfn convert_float4_rtz(half4);
6202float8 __ovld __cnfn convert_float8(half8);
6203float8 __ovld __cnfn convert_float8_rte(half8);
6204float8 __ovld __cnfn convert_float8_rtp(half8);
6205float8 __ovld __cnfn convert_float8_rtn(half8);
6206float8 __ovld __cnfn convert_float8_rtz(half8);
6207float16 __ovld __cnfn convert_float16(half16);
6208float16 __ovld __cnfn convert_float16_rte(half16);
6209float16 __ovld __cnfn convert_float16_rtp(half16);
6210float16 __ovld __cnfn convert_float16_rtn(half16);
6211float16 __ovld __cnfn convert_float16_rtz(half16);
6212
6213// Convert non-double types to half types.
6214half __ovld __cnfn convert_half(uchar);
6215half __ovld __cnfn convert_half(ushort);
6216half __ovld __cnfn convert_half(uint);
6217half __ovld __cnfn convert_half(ulong);
6218half __ovld __cnfn convert_half(char);
6219half __ovld __cnfn convert_half(short);
6220half __ovld __cnfn convert_half(int);
6221half __ovld __cnfn convert_half(long);
6222half __ovld __cnfn convert_half(float);
6223half __ovld __cnfn convert_half(half);
6224half __ovld __cnfn convert_half_rte(uchar);
6225half __ovld __cnfn convert_half_rte(ushort);
6226half __ovld __cnfn convert_half_rte(uint);
6227half __ovld __cnfn convert_half_rte(ulong);
6228half __ovld __cnfn convert_half_rte(char);
6229half __ovld __cnfn convert_half_rte(short);
6230half __ovld __cnfn convert_half_rte(int);
6231half __ovld __cnfn convert_half_rte(long);
6232half __ovld __cnfn convert_half_rte(float);
6233half __ovld __cnfn convert_half_rte(half);
6234half __ovld __cnfn convert_half_rtp(uchar);
6235half __ovld __cnfn convert_half_rtp(ushort);
6236half __ovld __cnfn convert_half_rtp(uint);
6237half __ovld __cnfn convert_half_rtp(ulong);
6238half __ovld __cnfn convert_half_rtp(char);
6239half __ovld __cnfn convert_half_rtp(short);
6240half __ovld __cnfn convert_half_rtp(int);
6241half __ovld __cnfn convert_half_rtp(long);
6242half __ovld __cnfn convert_half_rtp(float);
6243half __ovld __cnfn convert_half_rtp(half);
6244half __ovld __cnfn convert_half_rtn(uchar);
6245half __ovld __cnfn convert_half_rtn(ushort);
6246half __ovld __cnfn convert_half_rtn(uint);
6247half __ovld __cnfn convert_half_rtn(ulong);
6248half __ovld __cnfn convert_half_rtn(char);
6249half __ovld __cnfn convert_half_rtn(short);
6250half __ovld __cnfn convert_half_rtn(int);
6251half __ovld __cnfn convert_half_rtn(long);
6252half __ovld __cnfn convert_half_rtn(float);
6253half __ovld __cnfn convert_half_rtn(half);
6254half __ovld __cnfn convert_half_rtz(uchar);
6255half __ovld __cnfn convert_half_rtz(ushort);
6256half __ovld __cnfn convert_half_rtz(uint);
6257half __ovld __cnfn convert_half_rtz(ulong);
6258half __ovld __cnfn convert_half_rtz(char);
6259half __ovld __cnfn convert_half_rtz(short);
6260half __ovld __cnfn convert_half_rtz(int);
6261half __ovld __cnfn convert_half_rtz(long);
6262half __ovld __cnfn convert_half_rtz(float);
6263half __ovld __cnfn convert_half_rtz(half);
6264half2 __ovld __cnfn convert_half2(char2);
6265half2 __ovld __cnfn convert_half2(uchar2);
6266half2 __ovld __cnfn convert_half2(short2);
6267half2 __ovld __cnfn convert_half2(ushort2);
6268half2 __ovld __cnfn convert_half2(int2);
6269half2 __ovld __cnfn convert_half2(uint2);
6270half2 __ovld __cnfn convert_half2(long2);
6271half2 __ovld __cnfn convert_half2(ulong2);
6272half2 __ovld __cnfn convert_half2(float2);
6273half2 __ovld __cnfn convert_half2(half2);
6274half2 __ovld __cnfn convert_half2_rte(char2);
6275half2 __ovld __cnfn convert_half2_rte(uchar2);
6276half2 __ovld __cnfn convert_half2_rte(short2);
6277half2 __ovld __cnfn convert_half2_rte(ushort2);
6278half2 __ovld __cnfn convert_half2_rte(int2);
6279half2 __ovld __cnfn convert_half2_rte(uint2);
6280half2 __ovld __cnfn convert_half2_rte(long2);
6281half2 __ovld __cnfn convert_half2_rte(ulong2);
6282half2 __ovld __cnfn convert_half2_rte(float2);
6283half2 __ovld __cnfn convert_half2_rte(half2);
6284half2 __ovld __cnfn convert_half2_rtp(char2);
6285half2 __ovld __cnfn convert_half2_rtp(uchar2);
6286half2 __ovld __cnfn convert_half2_rtp(short2);
6287half2 __ovld __cnfn convert_half2_rtp(ushort2);
6288half2 __ovld __cnfn convert_half2_rtp(int2);
6289half2 __ovld __cnfn convert_half2_rtp(uint2);
6290half2 __ovld __cnfn convert_half2_rtp(long2);
6291half2 __ovld __cnfn convert_half2_rtp(ulong2);
6292half2 __ovld __cnfn convert_half2_rtp(float2);
6293half2 __ovld __cnfn convert_half2_rtp(half2);
6294half2 __ovld __cnfn convert_half2_rtn(char2);
6295half2 __ovld __cnfn convert_half2_rtn(uchar2);
6296half2 __ovld __cnfn convert_half2_rtn(short2);
6297half2 __ovld __cnfn convert_half2_rtn(ushort2);
6298half2 __ovld __cnfn convert_half2_rtn(int2);
6299half2 __ovld __cnfn convert_half2_rtn(uint2);
6300half2 __ovld __cnfn convert_half2_rtn(long2);
6301half2 __ovld __cnfn convert_half2_rtn(ulong2);
6302half2 __ovld __cnfn convert_half2_rtn(float2);
6303half2 __ovld __cnfn convert_half2_rtn(half2);
6304half2 __ovld __cnfn convert_half2_rtz(char2);
6305half2 __ovld __cnfn convert_half2_rtz(uchar2);
6306half2 __ovld __cnfn convert_half2_rtz(short2);
6307half2 __ovld __cnfn convert_half2_rtz(ushort2);
6308half2 __ovld __cnfn convert_half2_rtz(int2);
6309half2 __ovld __cnfn convert_half2_rtz(uint2);
6310half2 __ovld __cnfn convert_half2_rtz(long2);
6311half2 __ovld __cnfn convert_half2_rtz(ulong2);
6312half2 __ovld __cnfn convert_half2_rtz(float2);
6313half2 __ovld __cnfn convert_half2_rtz(half2);
6314half3 __ovld __cnfn convert_half3(char3);
6315half3 __ovld __cnfn convert_half3(uchar3);
6316half3 __ovld __cnfn convert_half3(short3);
6317half3 __ovld __cnfn convert_half3(ushort3);
6318half3 __ovld __cnfn convert_half3(int3);
6319half3 __ovld __cnfn convert_half3(uint3);
6320half3 __ovld __cnfn convert_half3(long3);
6321half3 __ovld __cnfn convert_half3(ulong3);
6322half3 __ovld __cnfn convert_half3(float3);
6323half3 __ovld __cnfn convert_half3(half3);
6324half3 __ovld __cnfn convert_half3_rte(char3);
6325half3 __ovld __cnfn convert_half3_rte(uchar3);
6326half3 __ovld __cnfn convert_half3_rte(short3);
6327half3 __ovld __cnfn convert_half3_rte(ushort3);
6328half3 __ovld __cnfn convert_half3_rte(int3);
6329half3 __ovld __cnfn convert_half3_rte(uint3);
6330half3 __ovld __cnfn convert_half3_rte(long3);
6331half3 __ovld __cnfn convert_half3_rte(ulong3);
6332half3 __ovld __cnfn convert_half3_rte(float3);
6333half3 __ovld __cnfn convert_half3_rte(half3);
6334half3 __ovld __cnfn convert_half3_rtp(char3);
6335half3 __ovld __cnfn convert_half3_rtp(uchar3);
6336half3 __ovld __cnfn convert_half3_rtp(short3);
6337half3 __ovld __cnfn convert_half3_rtp(ushort3);
6338half3 __ovld __cnfn convert_half3_rtp(int3);
6339half3 __ovld __cnfn convert_half3_rtp(uint3);
6340half3 __ovld __cnfn convert_half3_rtp(long3);
6341half3 __ovld __cnfn convert_half3_rtp(ulong3);
6342half3 __ovld __cnfn convert_half3_rtp(float3);
6343half3 __ovld __cnfn convert_half3_rtp(half3);
6344half3 __ovld __cnfn convert_half3_rtn(char3);
6345half3 __ovld __cnfn convert_half3_rtn(uchar3);
6346half3 __ovld __cnfn convert_half3_rtn(short3);
6347half3 __ovld __cnfn convert_half3_rtn(ushort3);
6348half3 __ovld __cnfn convert_half3_rtn(int3);
6349half3 __ovld __cnfn convert_half3_rtn(uint3);
6350half3 __ovld __cnfn convert_half3_rtn(long3);
6351half3 __ovld __cnfn convert_half3_rtn(ulong3);
6352half3 __ovld __cnfn convert_half3_rtn(float3);
6353half3 __ovld __cnfn convert_half3_rtn(half3);
6354half3 __ovld __cnfn convert_half3_rtz(char3);
6355half3 __ovld __cnfn convert_half3_rtz(uchar3);
6356half3 __ovld __cnfn convert_half3_rtz(short3);
6357half3 __ovld __cnfn convert_half3_rtz(ushort3);
6358half3 __ovld __cnfn convert_half3_rtz(int3);
6359half3 __ovld __cnfn convert_half3_rtz(uint3);
6360half3 __ovld __cnfn convert_half3_rtz(long3);
6361half3 __ovld __cnfn convert_half3_rtz(ulong3);
6362half3 __ovld __cnfn convert_half3_rtz(float3);
6363half3 __ovld __cnfn convert_half3_rtz(half3);
6364half4 __ovld __cnfn convert_half4(char4);
6365half4 __ovld __cnfn convert_half4(uchar4);
6366half4 __ovld __cnfn convert_half4(short4);
6367half4 __ovld __cnfn convert_half4(ushort4);
6368half4 __ovld __cnfn convert_half4(int4);
6369half4 __ovld __cnfn convert_half4(uint4);
6370half4 __ovld __cnfn convert_half4(long4);
6371half4 __ovld __cnfn convert_half4(ulong4);
6372half4 __ovld __cnfn convert_half4(float4);
6373half4 __ovld __cnfn convert_half4(half4);
6374half4 __ovld __cnfn convert_half4_rte(char4);
6375half4 __ovld __cnfn convert_half4_rte(uchar4);
6376half4 __ovld __cnfn convert_half4_rte(short4);
6377half4 __ovld __cnfn convert_half4_rte(ushort4);
6378half4 __ovld __cnfn convert_half4_rte(int4);
6379half4 __ovld __cnfn convert_half4_rte(uint4);
6380half4 __ovld __cnfn convert_half4_rte(long4);
6381half4 __ovld __cnfn convert_half4_rte(ulong4);
6382half4 __ovld __cnfn convert_half4_rte(float4);
6383half4 __ovld __cnfn convert_half4_rte(half4);
6384half4 __ovld __cnfn convert_half4_rtp(char4);
6385half4 __ovld __cnfn convert_half4_rtp(uchar4);
6386half4 __ovld __cnfn convert_half4_rtp(short4);
6387half4 __ovld __cnfn convert_half4_rtp(ushort4);
6388half4 __ovld __cnfn convert_half4_rtp(int4);
6389half4 __ovld __cnfn convert_half4_rtp(uint4);
6390half4 __ovld __cnfn convert_half4_rtp(long4);
6391half4 __ovld __cnfn convert_half4_rtp(ulong4);
6392half4 __ovld __cnfn convert_half4_rtp(float4);
6393half4 __ovld __cnfn convert_half4_rtp(half4);
6394half4 __ovld __cnfn convert_half4_rtn(char4);
6395half4 __ovld __cnfn convert_half4_rtn(uchar4);
6396half4 __ovld __cnfn convert_half4_rtn(short4);
6397half4 __ovld __cnfn convert_half4_rtn(ushort4);
6398half4 __ovld __cnfn convert_half4_rtn(int4);
6399half4 __ovld __cnfn convert_half4_rtn(uint4);
6400half4 __ovld __cnfn convert_half4_rtn(long4);
6401half4 __ovld __cnfn convert_half4_rtn(ulong4);
6402half4 __ovld __cnfn convert_half4_rtn(float4);
6403half4 __ovld __cnfn convert_half4_rtn(half4);
6404half4 __ovld __cnfn convert_half4_rtz(char4);
6405half4 __ovld __cnfn convert_half4_rtz(uchar4);
6406half4 __ovld __cnfn convert_half4_rtz(short4);
6407half4 __ovld __cnfn convert_half4_rtz(ushort4);
6408half4 __ovld __cnfn convert_half4_rtz(int4);
6409half4 __ovld __cnfn convert_half4_rtz(uint4);
6410half4 __ovld __cnfn convert_half4_rtz(long4);
6411half4 __ovld __cnfn convert_half4_rtz(ulong4);
6412half4 __ovld __cnfn convert_half4_rtz(float4);
6413half4 __ovld __cnfn convert_half4_rtz(half4);
6414half8 __ovld __cnfn convert_half8(char8);
6415half8 __ovld __cnfn convert_half8(uchar8);
6416half8 __ovld __cnfn convert_half8(short8);
6417half8 __ovld __cnfn convert_half8(ushort8);
6418half8 __ovld __cnfn convert_half8(int8);
6419half8 __ovld __cnfn convert_half8(uint8);
6420half8 __ovld __cnfn convert_half8(long8);
6421half8 __ovld __cnfn convert_half8(ulong8);
6422half8 __ovld __cnfn convert_half8(float8);
6423half8 __ovld __cnfn convert_half8(half8);
6424half8 __ovld __cnfn convert_half8_rte(char8);
6425half8 __ovld __cnfn convert_half8_rte(uchar8);
6426half8 __ovld __cnfn convert_half8_rte(short8);
6427half8 __ovld __cnfn convert_half8_rte(ushort8);
6428half8 __ovld __cnfn convert_half8_rte(int8);
6429half8 __ovld __cnfn convert_half8_rte(uint8);
6430half8 __ovld __cnfn convert_half8_rte(long8);
6431half8 __ovld __cnfn convert_half8_rte(ulong8);
6432half8 __ovld __cnfn convert_half8_rte(float8);
6433half8 __ovld __cnfn convert_half8_rte(half8);
6434half8 __ovld __cnfn convert_half8_rtp(char8);
6435half8 __ovld __cnfn convert_half8_rtp(uchar8);
6436half8 __ovld __cnfn convert_half8_rtp(short8);
6437half8 __ovld __cnfn convert_half8_rtp(ushort8);
6438half8 __ovld __cnfn convert_half8_rtp(int8);
6439half8 __ovld __cnfn convert_half8_rtp(uint8);
6440half8 __ovld __cnfn convert_half8_rtp(long8);
6441half8 __ovld __cnfn convert_half8_rtp(ulong8);
6442half8 __ovld __cnfn convert_half8_rtp(float8);
6443half8 __ovld __cnfn convert_half8_rtp(half8);
6444half8 __ovld __cnfn convert_half8_rtn(char8);
6445half8 __ovld __cnfn convert_half8_rtn(uchar8);
6446half8 __ovld __cnfn convert_half8_rtn(short8);
6447half8 __ovld __cnfn convert_half8_rtn(ushort8);
6448half8 __ovld __cnfn convert_half8_rtn(int8);
6449half8 __ovld __cnfn convert_half8_rtn(uint8);
6450half8 __ovld __cnfn convert_half8_rtn(long8);
6451half8 __ovld __cnfn convert_half8_rtn(ulong8);
6452half8 __ovld __cnfn convert_half8_rtn(float8);
6453half8 __ovld __cnfn convert_half8_rtn(half8);
6454half8 __ovld __cnfn convert_half8_rtz(char8);
6455half8 __ovld __cnfn convert_half8_rtz(uchar8);
6456half8 __ovld __cnfn convert_half8_rtz(short8);
6457half8 __ovld __cnfn convert_half8_rtz(ushort8);
6458half8 __ovld __cnfn convert_half8_rtz(int8);
6459half8 __ovld __cnfn convert_half8_rtz(uint8);
6460half8 __ovld __cnfn convert_half8_rtz(long8);
6461half8 __ovld __cnfn convert_half8_rtz(ulong8);
6462half8 __ovld __cnfn convert_half8_rtz(float8);
6463half8 __ovld __cnfn convert_half8_rtz(half8);
6464half16 __ovld __cnfn convert_half16(char16);
6465half16 __ovld __cnfn convert_half16(uchar16);
6466half16 __ovld __cnfn convert_half16(short16);
6467half16 __ovld __cnfn convert_half16(ushort16);
6468half16 __ovld __cnfn convert_half16(int16);
6469half16 __ovld __cnfn convert_half16(uint16);
6470half16 __ovld __cnfn convert_half16(long16);
6471half16 __ovld __cnfn convert_half16(ulong16);
6472half16 __ovld __cnfn convert_half16(float16);
6473half16 __ovld __cnfn convert_half16(half16);
6474half16 __ovld __cnfn convert_half16_rte(char16);
6475half16 __ovld __cnfn convert_half16_rte(uchar16);
6476half16 __ovld __cnfn convert_half16_rte(short16);
6477half16 __ovld __cnfn convert_half16_rte(ushort16);
6478half16 __ovld __cnfn convert_half16_rte(int16);
6479half16 __ovld __cnfn convert_half16_rte(uint16);
6480half16 __ovld __cnfn convert_half16_rte(long16);
6481half16 __ovld __cnfn convert_half16_rte(ulong16);
6482half16 __ovld __cnfn convert_half16_rte(float16);
6483half16 __ovld __cnfn convert_half16_rte(half16);
6484half16 __ovld __cnfn convert_half16_rtp(char16);
6485half16 __ovld __cnfn convert_half16_rtp(uchar16);
6486half16 __ovld __cnfn convert_half16_rtp(short16);
6487half16 __ovld __cnfn convert_half16_rtp(ushort16);
6488half16 __ovld __cnfn convert_half16_rtp(int16);
6489half16 __ovld __cnfn convert_half16_rtp(uint16);
6490half16 __ovld __cnfn convert_half16_rtp(long16);
6491half16 __ovld __cnfn convert_half16_rtp(ulong16);
6492half16 __ovld __cnfn convert_half16_rtp(float16);
6493half16 __ovld __cnfn convert_half16_rtp(half16);
6494half16 __ovld __cnfn convert_half16_rtn(char16);
6495half16 __ovld __cnfn convert_half16_rtn(uchar16);
6496half16 __ovld __cnfn convert_half16_rtn(short16);
6497half16 __ovld __cnfn convert_half16_rtn(ushort16);
6498half16 __ovld __cnfn convert_half16_rtn(int16);
6499half16 __ovld __cnfn convert_half16_rtn(uint16);
6500half16 __ovld __cnfn convert_half16_rtn(long16);
6501half16 __ovld __cnfn convert_half16_rtn(ulong16);
6502half16 __ovld __cnfn convert_half16_rtn(float16);
6503half16 __ovld __cnfn convert_half16_rtn(half16);
6504half16 __ovld __cnfn convert_half16_rtz(char16);
6505half16 __ovld __cnfn convert_half16_rtz(uchar16);
6506half16 __ovld __cnfn convert_half16_rtz(short16);
6507half16 __ovld __cnfn convert_half16_rtz(ushort16);
6508half16 __ovld __cnfn convert_half16_rtz(int16);
6509half16 __ovld __cnfn convert_half16_rtz(uint16);
6510half16 __ovld __cnfn convert_half16_rtz(long16);
6511half16 __ovld __cnfn convert_half16_rtz(ulong16);
6512half16 __ovld __cnfn convert_half16_rtz(float16);
6513half16 __ovld __cnfn convert_half16_rtz(half16);
6514
6515// Convert half types to double types.
6516#ifdef cl_khr_fp64
6517double __ovld __cnfn convert_double(half);
6518double __ovld __cnfn convert_double_rte(half);
6519double __ovld __cnfn convert_double_rtp(half);
6520double __ovld __cnfn convert_double_rtn(half);
6521double __ovld __cnfn convert_double_rtz(half);
6522double2 __ovld __cnfn convert_double2(half2);
6523double2 __ovld __cnfn convert_double2_rte(half2);
6524double2 __ovld __cnfn convert_double2_rtp(half2);
6525double2 __ovld __cnfn convert_double2_rtn(half2);
6526double2 __ovld __cnfn convert_double2_rtz(half2);
6527double3 __ovld __cnfn convert_double3(half3);
6528double3 __ovld __cnfn convert_double3_rte(half3);
6529double3 __ovld __cnfn convert_double3_rtp(half3);
6530double3 __ovld __cnfn convert_double3_rtn(half3);
6531double3 __ovld __cnfn convert_double3_rtz(half3);
6532double4 __ovld __cnfn convert_double4(half4);
6533double4 __ovld __cnfn convert_double4_rte(half4);
6534double4 __ovld __cnfn convert_double4_rtp(half4);
6535double4 __ovld __cnfn convert_double4_rtn(half4);
6536double4 __ovld __cnfn convert_double4_rtz(half4);
6537double8 __ovld __cnfn convert_double8(half8);
6538double8 __ovld __cnfn convert_double8_rte(half8);
6539double8 __ovld __cnfn convert_double8_rtp(half8);
6540double8 __ovld __cnfn convert_double8_rtn(half8);
6541double8 __ovld __cnfn convert_double8_rtz(half8);
6542double16 __ovld __cnfn convert_double16(half16);
6543double16 __ovld __cnfn convert_double16_rte(half16);
6544double16 __ovld __cnfn convert_double16_rtp(half16);
6545double16 __ovld __cnfn convert_double16_rtn(half16);
6546double16 __ovld __cnfn convert_double16_rtz(half16);
6547
6548// Convert double types to half types.
6549half __ovld __cnfn convert_half(double);
6550half __ovld __cnfn convert_half_rte(double);
6551half __ovld __cnfn convert_half_rtp(double);
6552half __ovld __cnfn convert_half_rtn(double);
6553half __ovld __cnfn convert_half_rtz(double);
6554half2 __ovld __cnfn convert_half2(double2);
6555half2 __ovld __cnfn convert_half2_rte(double2);
6556half2 __ovld __cnfn convert_half2_rtp(double2);
6557half2 __ovld __cnfn convert_half2_rtn(double2);
6558half2 __ovld __cnfn convert_half2_rtz(double2);
6559half3 __ovld __cnfn convert_half3(double3);
6560half3 __ovld __cnfn convert_half3_rte(double3);
6561half3 __ovld __cnfn convert_half3_rtp(double3);
6562half3 __ovld __cnfn convert_half3_rtn(double3);
6563half3 __ovld __cnfn convert_half3_rtz(double3);
6564half4 __ovld __cnfn convert_half4(double4);
6565half4 __ovld __cnfn convert_half4_rte(double4);
6566half4 __ovld __cnfn convert_half4_rtp(double4);
6567half4 __ovld __cnfn convert_half4_rtn(double4);
6568half4 __ovld __cnfn convert_half4_rtz(double4);
6569half8 __ovld __cnfn convert_half8(double8);
6570half8 __ovld __cnfn convert_half8_rte(double8);
6571half8 __ovld __cnfn convert_half8_rtp(double8);
6572half8 __ovld __cnfn convert_half8_rtn(double8);
6573half8 __ovld __cnfn convert_half8_rtz(double8);
6574half16 __ovld __cnfn convert_half16(double16);
6575half16 __ovld __cnfn convert_half16_rte(double16);
6576half16 __ovld __cnfn convert_half16_rtp(double16);
6577half16 __ovld __cnfn convert_half16_rtn(double16);
6578half16 __ovld __cnfn convert_half16_rtz(double16);
6579#endif //cl_khr_fp64
6580
6581#endif // cl_khr_fp16
6582
6583/**
6584 * OpenCL v1.1/1.2/2.0 s6.2.4.2 - as_type operators
6585 * Reinterprets a data type as another data type of the same size
6586 */
6587#define as_char(x) __builtin_astype((x),   char)
6588#define as_char2(x) __builtin_astype((x),  char2)
6589#define as_char3(x) __builtin_astype((x),  char3)
6590#define as_char4(x) __builtin_astype((x),  char4)
6591#define as_char8(x) __builtin_astype((x),  char8)
6592#define as_char16(x) __builtin_astype((x), char16)
6593
6594#define as_uchar(x) __builtin_astype((x),   uchar)
6595#define as_uchar2(x) __builtin_astype((x),  uchar2)
6596#define as_uchar3(x) __builtin_astype((x),  uchar3)
6597#define as_uchar4(x) __builtin_astype((x),  uchar4)
6598#define as_uchar8(x) __builtin_astype((x),  uchar8)
6599#define as_uchar16(x) __builtin_astype((x), uchar16)
6600
6601#define as_short(x) __builtin_astype((x),   short)
6602#define as_short2(x) __builtin_astype((x),  short2)
6603#define as_short3(x) __builtin_astype((x),  short3)
6604#define as_short4(x) __builtin_astype((x),  short4)
6605#define as_short8(x) __builtin_astype((x),  short8)
6606#define as_short16(x) __builtin_astype((x), short16)
6607
6608#define as_ushort(x) __builtin_astype((x),   ushort)
6609#define as_ushort2(x) __builtin_astype((x),  ushort2)
6610#define as_ushort3(x) __builtin_astype((x),  ushort3)
6611#define as_ushort4(x) __builtin_astype((x),  ushort4)
6612#define as_ushort8(x) __builtin_astype((x),  ushort8)
6613#define as_ushort16(x) __builtin_astype((x), ushort16)
6614
6615#define as_int(x) __builtin_astype((x),   int)
6616#define as_int2(x) __builtin_astype((x),  int2)
6617#define as_int3(x) __builtin_astype((x),  int3)
6618#define as_int4(x) __builtin_astype((x),  int4)
6619#define as_int8(x) __builtin_astype((x),  int8)
6620#define as_int16(x) __builtin_astype((x), int16)
6621
6622#define as_uint(x) __builtin_astype((x),   uint)
6623#define as_uint2(x) __builtin_astype((x),  uint2)
6624#define as_uint3(x) __builtin_astype((x),  uint3)
6625#define as_uint4(x) __builtin_astype((x),  uint4)
6626#define as_uint8(x) __builtin_astype((x),  uint8)
6627#define as_uint16(x) __builtin_astype((x), uint16)
6628
6629#define as_long(x) __builtin_astype((x),   long)
6630#define as_long2(x) __builtin_astype((x),  long2)
6631#define as_long3(x) __builtin_astype((x),  long3)
6632#define as_long4(x) __builtin_astype((x),  long4)
6633#define as_long8(x) __builtin_astype((x),  long8)
6634#define as_long16(x) __builtin_astype((x), long16)
6635
6636#define as_ulong(x) __builtin_astype((x),   ulong)
6637#define as_ulong2(x) __builtin_astype((x),  ulong2)
6638#define as_ulong3(x) __builtin_astype((x),  ulong3)
6639#define as_ulong4(x) __builtin_astype((x),  ulong4)
6640#define as_ulong8(x) __builtin_astype((x),  ulong8)
6641#define as_ulong16(x) __builtin_astype((x), ulong16)
6642
6643#define as_float(x) __builtin_astype((x),   float)
6644#define as_float2(x) __builtin_astype((x),  float2)
6645#define as_float3(x) __builtin_astype((x),  float3)
6646#define as_float4(x) __builtin_astype((x),  float4)
6647#define as_float8(x) __builtin_astype((x),  float8)
6648#define as_float16(x) __builtin_astype((x), float16)
6649
6650#ifdef cl_khr_fp64
6651#define as_double(x) __builtin_astype((x),   double)
6652#define as_double2(x) __builtin_astype((x),  double2)
6653#define as_double3(x) __builtin_astype((x),  double3)
6654#define as_double4(x) __builtin_astype((x),  double4)
6655#define as_double8(x) __builtin_astype((x),  double8)
6656#define as_double16(x) __builtin_astype((x), double16)
6657#endif //cl_khr_fp64
6658
6659#ifdef cl_khr_fp16
6660#define as_half(x) __builtin_astype((x),   half)
6661#define as_half2(x) __builtin_astype((x),  half2)
6662#define as_half3(x) __builtin_astype((x),  half3)
6663#define as_half4(x) __builtin_astype((x),  half4)
6664#define as_half8(x) __builtin_astype((x),  half8)
6665#define as_half16(x) __builtin_astype((x), half16)
6666#endif //cl_khr_fp16
6667
6668// OpenCL v1.1 s6.9, v1.2/2.0 s6.10 - Function qualifiers
6669
6670#define __kernel_exec(X, typen) __kernel \
6671	__attribute__((work_group_size_hint(X, 1, 1))) \
6672	__attribute__((vec_type_hint(typen)))
6673
6674#define kernel_exec(X, typen) __kernel \
6675	__attribute__((work_group_size_hint(X, 1, 1))) \
6676	__attribute__((vec_type_hint(typen)))
6677
6678// OpenCL v1.1 s6.11.1, v1.2 s6.12.1, v2.0 s6.13.1 - Work-item Functions
6679
6680/**
6681 * Returns the number of dimensions in use. This is the
6682 * value given to the work_dim argument specified in
6683 * clEnqueueNDRangeKernel.
6684 * For clEnqueueTask, this returns 1.
6685 */
6686uint __ovld __cnfn get_work_dim(void);
6687
6688/**
6689 * Returns the number of global work-items specified for
6690 * dimension identified by dimindx. This value is given by
6691 * the global_work_size argument to
6692 * clEnqueueNDRangeKernel. Valid values of dimindx
6693 * are 0 to get_work_dim() - 1. For other values of
6694 * dimindx, get_global_size() returns 1.
6695 * For clEnqueueTask, this always returns 1.
6696 */
6697size_t __ovld __cnfn get_global_size(uint dimindx);
6698
6699/**
6700 * Returns the unique global work-item ID value for
6701 * dimension identified by dimindx. The global work-item
6702 * ID specifies the work-item ID based on the number of
6703 * global work-items specified to execute the kernel. Valid
6704 * values of dimindx are 0 to get_work_dim() - 1. For
6705 * other values of dimindx, get_global_id() returns 0.
6706 * For clEnqueueTask, this returns 0.
6707 */
6708size_t __ovld __cnfn get_global_id(uint dimindx);
6709
6710/**
6711 * Returns the number of local work-items specified in
6712 * dimension identified by dimindx. This value is given by
6713 * the local_work_size argument to
6714 * clEnqueueNDRangeKernel if local_work_size is not
6715 * NULL; otherwise the OpenCL implementation chooses
6716 * an appropriate local_work_size value which is returned
6717 * by this function. Valid values of dimindx are 0 to
6718 * get_work_dim() - 1. For other values of dimindx,
6719 * get_local_size() returns 1.
6720 * For clEnqueueTask, this always returns 1.
6721 */
6722size_t __ovld __cnfn get_local_size(uint dimindx);
6723
6724/**
6725 * Returns the unique local work-item ID i.e. a work-item
6726 * within a specific work-group for dimension identified by
6727 * dimindx. Valid values of dimindx are 0 to
6728 * get_work_dim() - 1. For other values of dimindx,
6729 * get_local_id() returns 0.
6730 * For clEnqueueTask, this returns 0.
6731 */
6732size_t __ovld __cnfn get_local_id(uint dimindx);
6733
6734/**
6735 * Returns the number of work-groups that will execute a
6736 * kernel for dimension identified by dimindx.
6737 * Valid values of dimindx are 0 to get_work_dim() - 1.
6738 * For other values of dimindx, get_num_groups () returns
6739 * 1.
6740 * For clEnqueueTask, this always returns 1.
6741 */
6742size_t __ovld __cnfn get_num_groups(uint dimindx);
6743
6744/**
6745 * get_group_id returns the work-group ID which is a
6746 * number from 0 .. get_num_groups(dimindx) - 1.
6747 * Valid values of dimindx are 0 to get_work_dim() - 1.
6748 * For other values, get_group_id() returns 0.
6749 * For clEnqueueTask, this returns 0.
6750 */
6751size_t __ovld __cnfn get_group_id(uint dimindx);
6752
6753/**
6754 * get_global_offset returns the offset values specified in
6755 * global_work_offset argument to
6756 * clEnqueueNDRangeKernel.
6757 * Valid values of dimindx are 0 to get_work_dim() - 1.
6758 * For other values, get_global_offset() returns 0.
6759 * For clEnqueueTask, this returns 0.
6760 */
6761size_t __ovld __cnfn get_global_offset(uint dimindx);
6762
6763#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
6764size_t __ovld get_enqueued_local_size(uint dimindx);
6765size_t __ovld get_global_linear_id(void);
6766size_t __ovld get_local_linear_id(void);
6767#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
6768
6769// OpenCL v1.1 s6.11.2, v1.2 s6.12.2, v2.0 s6.13.2 - Math functions
6770
6771/**
6772 * Arc cosine function.
6773 */
6774float __ovld __cnfn acos(float);
6775float2 __ovld __cnfn acos(float2);
6776float3 __ovld __cnfn acos(float3);
6777float4 __ovld __cnfn acos(float4);
6778float8 __ovld __cnfn acos(float8);
6779float16 __ovld __cnfn acos(float16);
6780#ifdef cl_khr_fp64
6781double __ovld __cnfn acos(double);
6782double2 __ovld __cnfn acos(double2);
6783double3 __ovld __cnfn acos(double3);
6784double4 __ovld __cnfn acos(double4);
6785double8 __ovld __cnfn acos(double8);
6786double16 __ovld __cnfn acos(double16);
6787#endif //cl_khr_fp64
6788#ifdef cl_khr_fp16
6789half __ovld __cnfn acos(half);
6790half2 __ovld __cnfn acos(half2);
6791half3 __ovld __cnfn acos(half3);
6792half4 __ovld __cnfn acos(half4);
6793half8 __ovld __cnfn acos(half8);
6794half16 __ovld __cnfn acos(half16);
6795#endif //cl_khr_fp16
6796
6797/**
6798 * Inverse hyperbolic cosine.
6799 */
6800float __ovld __cnfn acosh(float);
6801float2 __ovld __cnfn acosh(float2);
6802float3 __ovld __cnfn acosh(float3);
6803float4 __ovld __cnfn acosh(float4);
6804float8 __ovld __cnfn acosh(float8);
6805float16 __ovld __cnfn acosh(float16);
6806#ifdef cl_khr_fp64
6807double __ovld __cnfn acosh(double);
6808double2 __ovld __cnfn acosh(double2);
6809double3 __ovld __cnfn acosh(double3);
6810double4 __ovld __cnfn acosh(double4);
6811double8 __ovld __cnfn acosh(double8);
6812double16 __ovld __cnfn acosh(double16);
6813#endif //cl_khr_fp64
6814#ifdef cl_khr_fp16
6815half __ovld __cnfn acosh(half);
6816half2 __ovld __cnfn acosh(half2);
6817half3 __ovld __cnfn acosh(half3);
6818half4 __ovld __cnfn acosh(half4);
6819half8 __ovld __cnfn acosh(half8);
6820half16 __ovld __cnfn acosh(half16);
6821#endif //cl_khr_fp16
6822
6823/**
6824 * Compute acos (x) / PI.
6825 */
6826float __ovld __cnfn acospi(float x);
6827float2 __ovld __cnfn acospi(float2 x);
6828float3 __ovld __cnfn acospi(float3 x);
6829float4 __ovld __cnfn acospi(float4 x);
6830float8 __ovld __cnfn acospi(float8 x);
6831float16 __ovld __cnfn acospi(float16 x);
6832#ifdef cl_khr_fp64
6833double __ovld __cnfn acospi(double x);
6834double2 __ovld __cnfn acospi(double2 x);
6835double3 __ovld __cnfn acospi(double3 x);
6836double4 __ovld __cnfn acospi(double4 x);
6837double8 __ovld __cnfn acospi(double8 x);
6838double16 __ovld __cnfn acospi(double16 x);
6839#endif //cl_khr_fp64
6840#ifdef cl_khr_fp16
6841half __ovld __cnfn acospi(half x);
6842half2 __ovld __cnfn acospi(half2 x);
6843half3 __ovld __cnfn acospi(half3 x);
6844half4 __ovld __cnfn acospi(half4 x);
6845half8 __ovld __cnfn acospi(half8 x);
6846half16 __ovld __cnfn acospi(half16 x);
6847#endif //cl_khr_fp16
6848
6849/**
6850 * Arc sine function.
6851 */
6852float __ovld __cnfn asin(float);
6853float2 __ovld __cnfn asin(float2);
6854float3 __ovld __cnfn asin(float3);
6855float4 __ovld __cnfn asin(float4);
6856float8 __ovld __cnfn asin(float8);
6857float16 __ovld __cnfn asin(float16);
6858#ifdef cl_khr_fp64
6859double __ovld __cnfn asin(double);
6860double2 __ovld __cnfn asin(double2);
6861double3 __ovld __cnfn asin(double3);
6862double4 __ovld __cnfn asin(double4);
6863double8 __ovld __cnfn asin(double8);
6864double16 __ovld __cnfn asin(double16);
6865#endif //cl_khr_fp64
6866#ifdef cl_khr_fp16
6867half __ovld __cnfn asin(half);
6868half2 __ovld __cnfn asin(half2);
6869half3 __ovld __cnfn asin(half3);
6870half4 __ovld __cnfn asin(half4);
6871half8 __ovld __cnfn asin(half8);
6872half16 __ovld __cnfn asin(half16);
6873#endif //cl_khr_fp16
6874
6875/**
6876 * Inverse hyperbolic sine.
6877 */
6878float __ovld __cnfn asinh(float);
6879float2 __ovld __cnfn asinh(float2);
6880float3 __ovld __cnfn asinh(float3);
6881float4 __ovld __cnfn asinh(float4);
6882float8 __ovld __cnfn asinh(float8);
6883float16 __ovld __cnfn asinh(float16);
6884#ifdef cl_khr_fp64
6885double __ovld __cnfn asinh(double);
6886double2 __ovld __cnfn asinh(double2);
6887double3 __ovld __cnfn asinh(double3);
6888double4 __ovld __cnfn asinh(double4);
6889double8 __ovld __cnfn asinh(double8);
6890double16 __ovld __cnfn asinh(double16);
6891#endif //cl_khr_fp64
6892#ifdef cl_khr_fp16
6893half __ovld __cnfn asinh(half);
6894half2 __ovld __cnfn asinh(half2);
6895half3 __ovld __cnfn asinh(half3);
6896half4 __ovld __cnfn asinh(half4);
6897half8 __ovld __cnfn asinh(half8);
6898half16 __ovld __cnfn asinh(half16);
6899#endif //cl_khr_fp16
6900
6901/**
6902 * Compute asin (x) / PI.
6903 */
6904float __ovld __cnfn asinpi(float x);
6905float2 __ovld __cnfn asinpi(float2 x);
6906float3 __ovld __cnfn asinpi(float3 x);
6907float4 __ovld __cnfn asinpi(float4 x);
6908float8 __ovld __cnfn asinpi(float8 x);
6909float16 __ovld __cnfn asinpi(float16 x);
6910#ifdef cl_khr_fp64
6911double __ovld __cnfn asinpi(double x);
6912double2 __ovld __cnfn asinpi(double2 x);
6913double3 __ovld __cnfn asinpi(double3 x);
6914double4 __ovld __cnfn asinpi(double4 x);
6915double8 __ovld __cnfn asinpi(double8 x);
6916double16 __ovld __cnfn asinpi(double16 x);
6917#endif //cl_khr_fp64
6918#ifdef cl_khr_fp16
6919half __ovld __cnfn asinpi(half x);
6920half2 __ovld __cnfn asinpi(half2 x);
6921half3 __ovld __cnfn asinpi(half3 x);
6922half4 __ovld __cnfn asinpi(half4 x);
6923half8 __ovld __cnfn asinpi(half8 x);
6924half16 __ovld __cnfn asinpi(half16 x);
6925#endif //cl_khr_fp16
6926
6927/**
6928 * Arc tangent function.
6929 */
6930float __ovld __cnfn atan(float y_over_x);
6931float2 __ovld __cnfn atan(float2 y_over_x);
6932float3 __ovld __cnfn atan(float3 y_over_x);
6933float4 __ovld __cnfn atan(float4 y_over_x);
6934float8 __ovld __cnfn atan(float8 y_over_x);
6935float16 __ovld __cnfn atan(float16 y_over_x);
6936#ifdef cl_khr_fp64
6937double __ovld __cnfn atan(double y_over_x);
6938double2 __ovld __cnfn atan(double2 y_over_x);
6939double3 __ovld __cnfn atan(double3 y_over_x);
6940double4 __ovld __cnfn atan(double4 y_over_x);
6941double8 __ovld __cnfn atan(double8 y_over_x);
6942double16 __ovld __cnfn atan(double16 y_over_x);
6943#endif //cl_khr_fp64
6944#ifdef cl_khr_fp16
6945half __ovld __cnfn atan(half y_over_x);
6946half2 __ovld __cnfn atan(half2 y_over_x);
6947half3 __ovld __cnfn atan(half3 y_over_x);
6948half4 __ovld __cnfn atan(half4 y_over_x);
6949half8 __ovld __cnfn atan(half8 y_over_x);
6950half16 __ovld __cnfn atan(half16 y_over_x);
6951#endif //cl_khr_fp16
6952
6953/**
6954 * Arc tangent of y / x.
6955 */
6956float __ovld __cnfn atan2(float y, float x);
6957float2 __ovld __cnfn atan2(float2 y, float2 x);
6958float3 __ovld __cnfn atan2(float3 y, float3 x);
6959float4 __ovld __cnfn atan2(float4 y, float4 x);
6960float8 __ovld __cnfn atan2(float8 y, float8 x);
6961float16 __ovld __cnfn atan2(float16 y, float16 x);
6962#ifdef cl_khr_fp64
6963double __ovld __cnfn atan2(double y, double x);
6964double2 __ovld __cnfn atan2(double2 y, double2 x);
6965double3 __ovld __cnfn atan2(double3 y, double3 x);
6966double4 __ovld __cnfn atan2(double4 y, double4 x);
6967double8 __ovld __cnfn atan2(double8 y, double8 x);
6968double16 __ovld __cnfn atan2(double16 y, double16 x);
6969#endif //cl_khr_fp64
6970#ifdef cl_khr_fp16
6971half __ovld __cnfn atan2(half y, half x);
6972half2 __ovld __cnfn atan2(half2 y, half2 x);
6973half3 __ovld __cnfn atan2(half3 y, half3 x);
6974half4 __ovld __cnfn atan2(half4 y, half4 x);
6975half8 __ovld __cnfn atan2(half8 y, half8 x);
6976half16 __ovld __cnfn atan2(half16 y, half16 x);
6977#endif //cl_khr_fp16
6978
6979/**
6980 * Hyperbolic arc tangent.
6981 */
6982float __ovld __cnfn atanh(float);
6983float2 __ovld __cnfn atanh(float2);
6984float3 __ovld __cnfn atanh(float3);
6985float4 __ovld __cnfn atanh(float4);
6986float8 __ovld __cnfn atanh(float8);
6987float16 __ovld __cnfn atanh(float16);
6988#ifdef cl_khr_fp64
6989double __ovld __cnfn atanh(double);
6990double2 __ovld __cnfn atanh(double2);
6991double3 __ovld __cnfn atanh(double3);
6992double4 __ovld __cnfn atanh(double4);
6993double8 __ovld __cnfn atanh(double8);
6994double16 __ovld __cnfn atanh(double16);
6995#endif //cl_khr_fp64
6996#ifdef cl_khr_fp16
6997half __ovld __cnfn atanh(half);
6998half2 __ovld __cnfn atanh(half2);
6999half3 __ovld __cnfn atanh(half3);
7000half4 __ovld __cnfn atanh(half4);
7001half8 __ovld __cnfn atanh(half8);
7002half16 __ovld __cnfn atanh(half16);
7003#endif //cl_khr_fp16
7004
7005/**
7006 * Compute atan (x) / PI.
7007 */
7008float __ovld __cnfn atanpi(float x);
7009float2 __ovld __cnfn atanpi(float2 x);
7010float3 __ovld __cnfn atanpi(float3 x);
7011float4 __ovld __cnfn atanpi(float4 x);
7012float8 __ovld __cnfn atanpi(float8 x);
7013float16 __ovld __cnfn atanpi(float16 x);
7014#ifdef cl_khr_fp64
7015double __ovld __cnfn atanpi(double x);
7016double2 __ovld __cnfn atanpi(double2 x);
7017double3 __ovld __cnfn atanpi(double3 x);
7018double4 __ovld __cnfn atanpi(double4 x);
7019double8 __ovld __cnfn atanpi(double8 x);
7020double16 __ovld __cnfn atanpi(double16 x);
7021#endif //cl_khr_fp64
7022#ifdef cl_khr_fp16
7023half __ovld __cnfn atanpi(half x);
7024half2 __ovld __cnfn atanpi(half2 x);
7025half3 __ovld __cnfn atanpi(half3 x);
7026half4 __ovld __cnfn atanpi(half4 x);
7027half8 __ovld __cnfn atanpi(half8 x);
7028half16 __ovld __cnfn atanpi(half16 x);
7029#endif //cl_khr_fp16
7030
7031/**
7032 * Compute atan2 (y, x) / PI.
7033 */
7034float __ovld __cnfn atan2pi(float y, float x);
7035float2 __ovld __cnfn atan2pi(float2 y, float2 x);
7036float3 __ovld __cnfn atan2pi(float3 y, float3 x);
7037float4 __ovld __cnfn atan2pi(float4 y, float4 x);
7038float8 __ovld __cnfn atan2pi(float8 y, float8 x);
7039float16 __ovld __cnfn atan2pi(float16 y, float16 x);
7040#ifdef cl_khr_fp64
7041double __ovld __cnfn atan2pi(double y, double x);
7042double2 __ovld __cnfn atan2pi(double2 y, double2 x);
7043double3 __ovld __cnfn atan2pi(double3 y, double3 x);
7044double4 __ovld __cnfn atan2pi(double4 y, double4 x);
7045double8 __ovld __cnfn atan2pi(double8 y, double8 x);
7046double16 __ovld __cnfn atan2pi(double16 y, double16 x);
7047#endif //cl_khr_fp64
7048#ifdef cl_khr_fp16
7049half __ovld __cnfn atan2pi(half y, half x);
7050half2 __ovld __cnfn atan2pi(half2 y, half2 x);
7051half3 __ovld __cnfn atan2pi(half3 y, half3 x);
7052half4 __ovld __cnfn atan2pi(half4 y, half4 x);
7053half8 __ovld __cnfn atan2pi(half8 y, half8 x);
7054half16 __ovld __cnfn atan2pi(half16 y, half16 x);
7055#endif //cl_khr_fp16
7056
7057/**
7058 * Compute cube-root.
7059 */
7060float __ovld __cnfn cbrt(float);
7061float2 __ovld __cnfn cbrt(float2);
7062float3 __ovld __cnfn cbrt(float3);
7063float4 __ovld __cnfn cbrt(float4);
7064float8 __ovld __cnfn cbrt(float8);
7065float16 __ovld __cnfn cbrt(float16);
7066#ifdef cl_khr_fp64
7067double __ovld __cnfn cbrt(double);
7068double2 __ovld __cnfn cbrt(double2);
7069double3 __ovld __cnfn cbrt(double3);
7070double4 __ovld __cnfn cbrt(double4);
7071double8 __ovld __cnfn cbrt(double8);
7072double16 __ovld __cnfn cbrt(double16);
7073#endif //cl_khr_fp64
7074#ifdef cl_khr_fp16
7075half __ovld __cnfn cbrt(half);
7076half2 __ovld __cnfn cbrt(half2);
7077half3 __ovld __cnfn cbrt(half3);
7078half4 __ovld __cnfn cbrt(half4);
7079half8 __ovld __cnfn cbrt(half8);
7080half16 __ovld __cnfn cbrt(half16);
7081#endif //cl_khr_fp16
7082
7083/**
7084 * Round to integral value using the round to positive
7085 * infinity rounding mode.
7086 */
7087float __ovld __cnfn ceil(float);
7088float2 __ovld __cnfn ceil(float2);
7089float3 __ovld __cnfn ceil(float3);
7090float4 __ovld __cnfn ceil(float4);
7091float8 __ovld __cnfn ceil(float8);
7092float16 __ovld __cnfn ceil(float16);
7093#ifdef cl_khr_fp64
7094double __ovld __cnfn ceil(double);
7095double2 __ovld __cnfn ceil(double2);
7096double3 __ovld __cnfn ceil(double3);
7097double4 __ovld __cnfn ceil(double4);
7098double8 __ovld __cnfn ceil(double8);
7099double16 __ovld __cnfn ceil(double16);
7100#endif //cl_khr_fp64
7101#ifdef cl_khr_fp16
7102half __ovld __cnfn ceil(half);
7103half2 __ovld __cnfn ceil(half2);
7104half3 __ovld __cnfn ceil(half3);
7105half4 __ovld __cnfn ceil(half4);
7106half8 __ovld __cnfn ceil(half8);
7107half16 __ovld __cnfn ceil(half16);
7108#endif //cl_khr_fp16
7109
7110/**
7111 * Returns x with its sign changed to match the sign of y.
7112 */
7113float __ovld __cnfn copysign(float x, float y);
7114float2 __ovld __cnfn copysign(float2 x, float2 y);
7115float3 __ovld __cnfn copysign(float3 x, float3 y);
7116float4 __ovld __cnfn copysign(float4 x, float4 y);
7117float8 __ovld __cnfn copysign(float8 x, float8 y);
7118float16 __ovld __cnfn copysign(float16 x, float16 y);
7119#ifdef cl_khr_fp64
7120double __ovld __cnfn copysign(double x, double y);
7121double2 __ovld __cnfn copysign(double2 x, double2 y);
7122double3 __ovld __cnfn copysign(double3 x, double3 y);
7123double4 __ovld __cnfn copysign(double4 x, double4 y);
7124double8 __ovld __cnfn copysign(double8 x, double8 y);
7125double16 __ovld __cnfn copysign(double16 x, double16 y);
7126#endif //cl_khr_fp64
7127#ifdef cl_khr_fp16
7128half __ovld __cnfn copysign(half x, half y);
7129half2 __ovld __cnfn copysign(half2 x, half2 y);
7130half3 __ovld __cnfn copysign(half3 x, half3 y);
7131half4 __ovld __cnfn copysign(half4 x, half4 y);
7132half8 __ovld __cnfn copysign(half8 x, half8 y);
7133half16 __ovld __cnfn copysign(half16 x, half16 y);
7134#endif //cl_khr_fp16
7135
7136/**
7137 * Compute cosine.
7138 */
7139float __ovld __cnfn cos(float);
7140float2 __ovld __cnfn cos(float2);
7141float3 __ovld __cnfn cos(float3);
7142float4 __ovld __cnfn cos(float4);
7143float8 __ovld __cnfn cos(float8);
7144float16 __ovld __cnfn cos(float16);
7145#ifdef cl_khr_fp64
7146double __ovld __cnfn cos(double);
7147double2 __ovld __cnfn cos(double2);
7148double3 __ovld __cnfn cos(double3);
7149double4 __ovld __cnfn cos(double4);
7150double8 __ovld __cnfn cos(double8);
7151double16 __ovld __cnfn cos(double16);
7152#endif //cl_khr_fp64
7153#ifdef cl_khr_fp16
7154half __ovld __cnfn cos(half);
7155half2 __ovld __cnfn cos(half2);
7156half3 __ovld __cnfn cos(half3);
7157half4 __ovld __cnfn cos(half4);
7158half8 __ovld __cnfn cos(half8);
7159half16 __ovld __cnfn cos(half16);
7160#endif //cl_khr_fp16
7161
7162/**
7163 * Compute hyperbolic cosine.
7164 */
7165float __ovld __cnfn cosh(float);
7166float2 __ovld __cnfn cosh(float2);
7167float3 __ovld __cnfn cosh(float3);
7168float4 __ovld __cnfn cosh(float4);
7169float8 __ovld __cnfn cosh(float8);
7170float16 __ovld __cnfn cosh(float16);
7171#ifdef cl_khr_fp64
7172double __ovld __cnfn cosh(double);
7173double2 __ovld __cnfn cosh(double2);
7174double3 __ovld __cnfn cosh(double3);
7175double4 __ovld __cnfn cosh(double4);
7176double8 __ovld __cnfn cosh(double8);
7177double16 __ovld __cnfn cosh(double16);
7178#endif //cl_khr_fp64
7179#ifdef cl_khr_fp16
7180half __ovld __cnfn cosh(half);
7181half2 __ovld __cnfn cosh(half2);
7182half3 __ovld __cnfn cosh(half3);
7183half4 __ovld __cnfn cosh(half4);
7184half8 __ovld __cnfn cosh(half8);
7185half16 __ovld __cnfn cosh(half16);
7186#endif //cl_khr_fp16
7187
7188/**
7189 * Compute cos (PI * x).
7190 */
7191float __ovld __cnfn cospi(float x);
7192float2 __ovld __cnfn cospi(float2 x);
7193float3 __ovld __cnfn cospi(float3 x);
7194float4 __ovld __cnfn cospi(float4 x);
7195float8 __ovld __cnfn cospi(float8 x);
7196float16 __ovld __cnfn cospi(float16 x);
7197#ifdef cl_khr_fp64
7198double __ovld __cnfn cospi(double x);
7199double2 __ovld __cnfn cospi(double2 x);
7200double3 __ovld __cnfn cospi(double3 x);
7201double4 __ovld __cnfn cospi(double4 x);
7202double8 __ovld __cnfn cospi(double8 x);
7203double16 __ovld __cnfn cospi(double16 x);
7204#endif //cl_khr_fp64
7205#ifdef cl_khr_fp16
7206half __ovld __cnfn cospi(half x);
7207half2 __ovld __cnfn cospi(half2 x);
7208half3 __ovld __cnfn cospi(half3 x);
7209half4 __ovld __cnfn cospi(half4 x);
7210half8 __ovld __cnfn cospi(half8 x);
7211half16 __ovld __cnfn cospi(half16 x);
7212#endif //cl_khr_fp16
7213
7214/**
7215 * Complementary error function.
7216 */
7217float __ovld __cnfn erfc(float);
7218float2 __ovld __cnfn erfc(float2);
7219float3 __ovld __cnfn erfc(float3);
7220float4 __ovld __cnfn erfc(float4);
7221float8 __ovld __cnfn erfc(float8);
7222float16 __ovld __cnfn erfc(float16);
7223#ifdef cl_khr_fp64
7224double __ovld __cnfn erfc(double);
7225double2 __ovld __cnfn erfc(double2);
7226double3 __ovld __cnfn erfc(double3);
7227double4 __ovld __cnfn erfc(double4);
7228double8 __ovld __cnfn erfc(double8);
7229double16 __ovld __cnfn erfc(double16);
7230#endif //cl_khr_fp64
7231#ifdef cl_khr_fp16
7232half __ovld __cnfn erfc(half);
7233half2 __ovld __cnfn erfc(half2);
7234half3 __ovld __cnfn erfc(half3);
7235half4 __ovld __cnfn erfc(half4);
7236half8 __ovld __cnfn erfc(half8);
7237half16 __ovld __cnfn erfc(half16);
7238#endif //cl_khr_fp16
7239
7240/**
7241 * Error function encountered in integrating the
7242 * normal distribution.
7243 */
7244float __ovld __cnfn erf(float);
7245float2 __ovld __cnfn erf(float2);
7246float3 __ovld __cnfn erf(float3);
7247float4 __ovld __cnfn erf(float4);
7248float8 __ovld __cnfn erf(float8);
7249float16 __ovld __cnfn erf(float16);
7250#ifdef cl_khr_fp64
7251double __ovld __cnfn erf(double);
7252double2 __ovld __cnfn erf(double2);
7253double3 __ovld __cnfn erf(double3);
7254double4 __ovld __cnfn erf(double4);
7255double8 __ovld __cnfn erf(double8);
7256double16 __ovld __cnfn erf(double16);
7257#endif //cl_khr_fp64
7258#ifdef cl_khr_fp16
7259half __ovld __cnfn erf(half);
7260half2 __ovld __cnfn erf(half2);
7261half3 __ovld __cnfn erf(half3);
7262half4 __ovld __cnfn erf(half4);
7263half8 __ovld __cnfn erf(half8);
7264half16 __ovld __cnfn erf(half16);
7265#endif //cl_khr_fp16
7266
7267/**
7268 * Compute the base e exponential function of x.
7269 */
7270float __ovld __cnfn exp(float x);
7271float2 __ovld __cnfn exp(float2 x);
7272float3 __ovld __cnfn exp(float3 x);
7273float4 __ovld __cnfn exp(float4 x);
7274float8 __ovld __cnfn exp(float8 x);
7275float16 __ovld __cnfn exp(float16 x);
7276#ifdef cl_khr_fp64
7277double __ovld __cnfn exp(double x);
7278double2 __ovld __cnfn exp(double2 x);
7279double3 __ovld __cnfn exp(double3 x);
7280double4 __ovld __cnfn exp(double4 x);
7281double8 __ovld __cnfn exp(double8 x);
7282double16 __ovld __cnfn exp(double16 x);
7283#endif //cl_khr_fp64
7284#ifdef cl_khr_fp16
7285half __ovld __cnfn exp(half x);
7286half2 __ovld __cnfn exp(half2 x);
7287half3 __ovld __cnfn exp(half3 x);
7288half4 __ovld __cnfn exp(half4 x);
7289half8 __ovld __cnfn exp(half8 x);
7290half16 __ovld __cnfn exp(half16 x);
7291#endif //cl_khr_fp16
7292
7293/**
7294 * Exponential base 2 function.
7295 */
7296float __ovld __cnfn exp2(float);
7297float2 __ovld __cnfn exp2(float2);
7298float3 __ovld __cnfn exp2(float3);
7299float4 __ovld __cnfn exp2(float4);
7300float8 __ovld __cnfn exp2(float8);
7301float16 __ovld __cnfn exp2(float16);
7302#ifdef cl_khr_fp64
7303double __ovld __cnfn exp2(double);
7304double2 __ovld __cnfn exp2(double2);
7305double3 __ovld __cnfn exp2(double3);
7306double4 __ovld __cnfn exp2(double4);
7307double8 __ovld __cnfn exp2(double8);
7308double16 __ovld __cnfn exp2(double16);
7309#endif //cl_khr_fp64
7310#ifdef cl_khr_fp16
7311half __ovld __cnfn exp2(half);
7312half2 __ovld __cnfn exp2(half2);
7313half3 __ovld __cnfn exp2(half3);
7314half4 __ovld __cnfn exp2(half4);
7315half8 __ovld __cnfn exp2(half8);
7316half16 __ovld __cnfn exp2(half16);
7317#endif //cl_khr_fp16
7318
7319/**
7320 * Exponential base 10 function.
7321 */
7322float __ovld __cnfn exp10(float);
7323float2 __ovld __cnfn exp10(float2);
7324float3 __ovld __cnfn exp10(float3);
7325float4 __ovld __cnfn exp10(float4);
7326float8 __ovld __cnfn exp10(float8);
7327float16 __ovld __cnfn exp10(float16);
7328#ifdef cl_khr_fp64
7329double __ovld __cnfn exp10(double);
7330double2 __ovld __cnfn exp10(double2);
7331double3 __ovld __cnfn exp10(double3);
7332double4 __ovld __cnfn exp10(double4);
7333double8 __ovld __cnfn exp10(double8);
7334double16 __ovld __cnfn exp10(double16);
7335#endif //cl_khr_fp64
7336#ifdef cl_khr_fp16
7337half __ovld __cnfn exp10(half);
7338half2 __ovld __cnfn exp10(half2);
7339half3 __ovld __cnfn exp10(half3);
7340half4 __ovld __cnfn exp10(half4);
7341half8 __ovld __cnfn exp10(half8);
7342half16 __ovld __cnfn exp10(half16);
7343#endif //cl_khr_fp16
7344
7345/**
7346 * Compute e^x- 1.0.
7347 */
7348float __ovld __cnfn expm1(float x);
7349float2 __ovld __cnfn expm1(float2 x);
7350float3 __ovld __cnfn expm1(float3 x);
7351float4 __ovld __cnfn expm1(float4 x);
7352float8 __ovld __cnfn expm1(float8 x);
7353float16 __ovld __cnfn expm1(float16 x);
7354#ifdef cl_khr_fp64
7355double __ovld __cnfn expm1(double x);
7356double2 __ovld __cnfn expm1(double2 x);
7357double3 __ovld __cnfn expm1(double3 x);
7358double4 __ovld __cnfn expm1(double4 x);
7359double8 __ovld __cnfn expm1(double8 x);
7360double16 __ovld __cnfn expm1(double16 x);
7361#endif //cl_khr_fp64
7362#ifdef cl_khr_fp16
7363half __ovld __cnfn expm1(half x);
7364half2 __ovld __cnfn expm1(half2 x);
7365half3 __ovld __cnfn expm1(half3 x);
7366half4 __ovld __cnfn expm1(half4 x);
7367half8 __ovld __cnfn expm1(half8 x);
7368half16 __ovld __cnfn expm1(half16 x);
7369#endif //cl_khr_fp16
7370
7371/**
7372 * Compute absolute value of a floating-point number.
7373 */
7374float __ovld __cnfn fabs(float);
7375float2 __ovld __cnfn fabs(float2);
7376float3 __ovld __cnfn fabs(float3);
7377float4 __ovld __cnfn fabs(float4);
7378float8 __ovld __cnfn fabs(float8);
7379float16 __ovld __cnfn fabs(float16);
7380#ifdef cl_khr_fp64
7381double __ovld __cnfn fabs(double);
7382double2 __ovld __cnfn fabs(double2);
7383double3 __ovld __cnfn fabs(double3);
7384double4 __ovld __cnfn fabs(double4);
7385double8 __ovld __cnfn fabs(double8);
7386double16 __ovld __cnfn fabs(double16);
7387#endif //cl_khr_fp64
7388#ifdef cl_khr_fp16
7389half __ovld __cnfn fabs(half);
7390half2 __ovld __cnfn fabs(half2);
7391half3 __ovld __cnfn fabs(half3);
7392half4 __ovld __cnfn fabs(half4);
7393half8 __ovld __cnfn fabs(half8);
7394half16 __ovld __cnfn fabs(half16);
7395#endif //cl_khr_fp16
7396
7397/**
7398 * x - y if x > y, +0 if x is less than or equal to y.
7399 */
7400float __ovld __cnfn fdim(float x, float y);
7401float2 __ovld __cnfn fdim(float2 x, float2 y);
7402float3 __ovld __cnfn fdim(float3 x, float3 y);
7403float4 __ovld __cnfn fdim(float4 x, float4 y);
7404float8 __ovld __cnfn fdim(float8 x, float8 y);
7405float16 __ovld __cnfn fdim(float16 x, float16 y);
7406#ifdef cl_khr_fp64
7407double __ovld __cnfn fdim(double x, double y);
7408double2 __ovld __cnfn fdim(double2 x, double2 y);
7409double3 __ovld __cnfn fdim(double3 x, double3 y);
7410double4 __ovld __cnfn fdim(double4 x, double4 y);
7411double8 __ovld __cnfn fdim(double8 x, double8 y);
7412double16 __ovld __cnfn fdim(double16 x, double16 y);
7413#endif //cl_khr_fp64
7414#ifdef cl_khr_fp16
7415half __ovld __cnfn fdim(half x, half y);
7416half2 __ovld __cnfn fdim(half2 x, half2 y);
7417half3 __ovld __cnfn fdim(half3 x, half3 y);
7418half4 __ovld __cnfn fdim(half4 x, half4 y);
7419half8 __ovld __cnfn fdim(half8 x, half8 y);
7420half16 __ovld __cnfn fdim(half16 x, half16 y);
7421#endif //cl_khr_fp16
7422
7423/**
7424 * Round to integral value using the round to -ve
7425 * infinity rounding mode.
7426 */
7427float __ovld __cnfn floor(float);
7428float2 __ovld __cnfn floor(float2);
7429float3 __ovld __cnfn floor(float3);
7430float4 __ovld __cnfn floor(float4);
7431float8 __ovld __cnfn floor(float8);
7432float16 __ovld __cnfn floor(float16);
7433#ifdef cl_khr_fp64
7434double __ovld __cnfn floor(double);
7435double2 __ovld __cnfn floor(double2);
7436double3 __ovld __cnfn floor(double3);
7437double4 __ovld __cnfn floor(double4);
7438double8 __ovld __cnfn floor(double8);
7439double16 __ovld __cnfn floor(double16);
7440#endif //cl_khr_fp64
7441#ifdef cl_khr_fp16
7442half __ovld __cnfn floor(half);
7443half2 __ovld __cnfn floor(half2);
7444half3 __ovld __cnfn floor(half3);
7445half4 __ovld __cnfn floor(half4);
7446half8 __ovld __cnfn floor(half8);
7447half16 __ovld __cnfn floor(half16);
7448#endif //cl_khr_fp16
7449
7450/**
7451 * Returns the correctly rounded floating-point
7452 * representation of the sum of c with the infinitely
7453 * precise product of a and b. Rounding of
7454 * intermediate products shall not occur. Edge case
7455 * behavior is per the IEEE 754-2008 standard.
7456 */
7457float __ovld __cnfn fma(float a, float b, float c);
7458float2 __ovld __cnfn fma(float2 a, float2 b, float2 c);
7459float3 __ovld __cnfn fma(float3 a, float3 b, float3 c);
7460float4 __ovld __cnfn fma(float4 a, float4 b, float4 c);
7461float8 __ovld __cnfn fma(float8 a, float8 b, float8 c);
7462float16 __ovld __cnfn fma(float16 a, float16 b, float16 c);
7463#ifdef cl_khr_fp64
7464double __ovld __cnfn fma(double a, double b, double c);
7465double2 __ovld __cnfn fma(double2 a, double2 b, double2 c);
7466double3 __ovld __cnfn fma(double3 a, double3 b, double3 c);
7467double4 __ovld __cnfn fma(double4 a, double4 b, double4 c);
7468double8 __ovld __cnfn fma(double8 a, double8 b, double8 c);
7469double16 __ovld __cnfn fma(double16 a, double16 b, double16 c);
7470#endif //cl_khr_fp64
7471#ifdef cl_khr_fp16
7472half __ovld __cnfn fma(half a, half b, half c);
7473half2 __ovld __cnfn fma(half2 a, half2 b, half2 c);
7474half3 __ovld __cnfn fma(half3 a, half3 b, half3 c);
7475half4 __ovld __cnfn fma(half4 a, half4 b, half4 c);
7476half8 __ovld __cnfn fma(half8 a, half8 b, half8 c);
7477half16 __ovld __cnfn fma(half16 a, half16 b, half16 c);
7478#endif //cl_khr_fp16
7479
7480/**
7481 * Returns y if x < y, otherwise it returns x. If one
7482 * argument is a NaN, fmax() returns the other
7483 * argument. If both arguments are NaNs, fmax()
7484 * returns a NaN.
7485 */
7486float __ovld __cnfn fmax(float x, float y);
7487float2 __ovld __cnfn fmax(float2 x, float2 y);
7488float3 __ovld __cnfn fmax(float3 x, float3 y);
7489float4 __ovld __cnfn fmax(float4 x, float4 y);
7490float8 __ovld __cnfn fmax(float8 x, float8 y);
7491float16 __ovld __cnfn fmax(float16 x, float16 y);
7492float2 __ovld __cnfn fmax(float2 x, float y);
7493float3 __ovld __cnfn fmax(float3 x, float y);
7494float4 __ovld __cnfn fmax(float4 x, float y);
7495float8 __ovld __cnfn fmax(float8 x, float y);
7496float16 __ovld __cnfn fmax(float16 x, float y);
7497#ifdef cl_khr_fp64
7498double __ovld __cnfn fmax(double x, double y);
7499double2 __ovld __cnfn fmax(double2 x, double2 y);
7500double3 __ovld __cnfn fmax(double3 x, double3 y);
7501double4 __ovld __cnfn fmax(double4 x, double4 y);
7502double8 __ovld __cnfn fmax(double8 x, double8 y);
7503double16 __ovld __cnfn fmax(double16 x, double16 y);
7504double2 __ovld __cnfn fmax(double2 x, double y);
7505double3 __ovld __cnfn fmax(double3 x, double y);
7506double4 __ovld __cnfn fmax(double4 x, double y);
7507double8 __ovld __cnfn fmax(double8 x, double y);
7508double16 __ovld __cnfn fmax(double16 x, double y);
7509#endif //cl_khr_fp64
7510#ifdef cl_khr_fp16
7511half __ovld __cnfn fmax(half x, half y);
7512half2 __ovld __cnfn fmax(half2 x, half2 y);
7513half3 __ovld __cnfn fmax(half3 x, half3 y);
7514half4 __ovld __cnfn fmax(half4 x, half4 y);
7515half8 __ovld __cnfn fmax(half8 x, half8 y);
7516half16 __ovld __cnfn fmax(half16 x, half16 y);
7517half2 __ovld __cnfn fmax(half2 x, half y);
7518half3 __ovld __cnfn fmax(half3 x, half y);
7519half4 __ovld __cnfn fmax(half4 x, half y);
7520half8 __ovld __cnfn fmax(half8 x, half y);
7521half16 __ovld __cnfn fmax(half16 x, half y);
7522#endif //cl_khr_fp16
7523
7524/**
7525 * Returns y if y < x, otherwise it returns x. If one
7526 * argument is a NaN, fmin() returns the other
7527 * argument. If both arguments are NaNs, fmin()
7528 * returns a NaN.
7529 */
7530float __ovld __cnfn fmin(float x, float y);
7531float2 __ovld __cnfn fmin(float2 x, float2 y);
7532float3 __ovld __cnfn fmin(float3 x, float3 y);
7533float4 __ovld __cnfn fmin(float4 x, float4 y);
7534float8 __ovld __cnfn fmin(float8 x, float8 y);
7535float16 __ovld __cnfn fmin(float16 x, float16 y);
7536float2 __ovld __cnfn fmin(float2 x, float y);
7537float3 __ovld __cnfn fmin(float3 x, float y);
7538float4 __ovld __cnfn fmin(float4 x, float y);
7539float8 __ovld __cnfn fmin(float8 x, float y);
7540float16 __ovld __cnfn fmin(float16 x, float y);
7541#ifdef cl_khr_fp64
7542double __ovld __cnfn fmin(double x, double y);
7543double2 __ovld __cnfn fmin(double2 x, double2 y);
7544double3 __ovld __cnfn fmin(double3 x, double3 y);
7545double4 __ovld __cnfn fmin(double4 x, double4 y);
7546double8 __ovld __cnfn fmin(double8 x, double8 y);
7547double16 __ovld __cnfn fmin(double16 x, double16 y);
7548double2 __ovld __cnfn fmin(double2 x, double y);
7549double3 __ovld __cnfn fmin(double3 x, double y);
7550double4 __ovld __cnfn fmin(double4 x, double y);
7551double8 __ovld __cnfn fmin(double8 x, double y);
7552double16 __ovld __cnfn fmin(double16 x, double y);
7553#endif //cl_khr_fp64
7554#ifdef cl_khr_fp16
7555half __ovld __cnfn fmin(half x, half y);
7556half2 __ovld __cnfn fmin(half2 x, half2 y);
7557half3 __ovld __cnfn fmin(half3 x, half3 y);
7558half4 __ovld __cnfn fmin(half4 x, half4 y);
7559half8 __ovld __cnfn fmin(half8 x, half8 y);
7560half16 __ovld __cnfn fmin(half16 x, half16 y);
7561half2 __ovld __cnfn fmin(half2 x, half y);
7562half3 __ovld __cnfn fmin(half3 x, half y);
7563half4 __ovld __cnfn fmin(half4 x, half y);
7564half8 __ovld __cnfn fmin(half8 x, half y);
7565half16 __ovld __cnfn fmin(half16 x, half y);
7566#endif //cl_khr_fp16
7567
7568/**
7569 * Modulus. Returns x - y * trunc (x/y).
7570 */
7571float __ovld __cnfn fmod(float x, float y);
7572float2 __ovld __cnfn fmod(float2 x, float2 y);
7573float3 __ovld __cnfn fmod(float3 x, float3 y);
7574float4 __ovld __cnfn fmod(float4 x, float4 y);
7575float8 __ovld __cnfn fmod(float8 x, float8 y);
7576float16 __ovld __cnfn fmod(float16 x, float16 y);
7577#ifdef cl_khr_fp64
7578double __ovld __cnfn fmod(double x, double y);
7579double2 __ovld __cnfn fmod(double2 x, double2 y);
7580double3 __ovld __cnfn fmod(double3 x, double3 y);
7581double4 __ovld __cnfn fmod(double4 x, double4 y);
7582double8 __ovld __cnfn fmod(double8 x, double8 y);
7583double16 __ovld __cnfn fmod(double16 x, double16 y);
7584#endif //cl_khr_fp64
7585#ifdef cl_khr_fp16
7586half __ovld __cnfn fmod(half x, half y);
7587half2 __ovld __cnfn fmod(half2 x, half2 y);
7588half3 __ovld __cnfn fmod(half3 x, half3 y);
7589half4 __ovld __cnfn fmod(half4 x, half4 y);
7590half8 __ovld __cnfn fmod(half8 x, half8 y);
7591half16 __ovld __cnfn fmod(half16 x, half16 y);
7592#endif //cl_khr_fp16
7593
7594/**
7595 * Returns fmin(x - floor (x), 0x1.fffffep-1f ).
7596 * floor(x) is returned in iptr.
7597 */
7598#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
7599float __ovld fract(float x, float *iptr);
7600float2 __ovld fract(float2 x, float2 *iptr);
7601float3 __ovld fract(float3 x, float3 *iptr);
7602float4 __ovld fract(float4 x, float4 *iptr);
7603float8 __ovld fract(float8 x, float8 *iptr);
7604float16 __ovld fract(float16 x, float16 *iptr);
7605#ifdef cl_khr_fp64
7606double __ovld fract(double x, double *iptr);
7607double2 __ovld fract(double2 x, double2 *iptr);
7608double3 __ovld fract(double3 x, double3 *iptr);
7609double4 __ovld fract(double4 x, double4 *iptr);
7610double8 __ovld fract(double8 x, double8 *iptr);
7611double16 __ovld fract(double16 x, double16 *iptr);
7612#endif //cl_khr_fp64
7613#ifdef cl_khr_fp16
7614half __ovld fract(half x, half *iptr);
7615half2 __ovld fract(half2 x, half2 *iptr);
7616half3 __ovld fract(half3 x, half3 *iptr);
7617half4 __ovld fract(half4 x, half4 *iptr);
7618half8 __ovld fract(half8 x, half8 *iptr);
7619half16 __ovld fract(half16 x, half16 *iptr);
7620#endif //cl_khr_fp16
7621#else
7622float __ovld fract(float x, __global float *iptr);
7623float2 __ovld fract(float2 x, __global float2 *iptr);
7624float3 __ovld fract(float3 x, __global float3 *iptr);
7625float4 __ovld fract(float4 x, __global float4 *iptr);
7626float8 __ovld fract(float8 x, __global float8 *iptr);
7627float16 __ovld fract(float16 x, __global float16 *iptr);
7628float __ovld fract(float x, __local float *iptr);
7629float2 __ovld fract(float2 x, __local float2 *iptr);
7630float3 __ovld fract(float3 x, __local float3 *iptr);
7631float4 __ovld fract(float4 x, __local float4 *iptr);
7632float8 __ovld fract(float8 x, __local float8 *iptr);
7633float16 __ovld fract(float16 x, __local float16 *iptr);
7634float __ovld fract(float x, __private float *iptr);
7635float2 __ovld fract(float2 x, __private float2 *iptr);
7636float3 __ovld fract(float3 x, __private float3 *iptr);
7637float4 __ovld fract(float4 x, __private float4 *iptr);
7638float8 __ovld fract(float8 x, __private float8 *iptr);
7639float16 __ovld fract(float16 x, __private float16 *iptr);
7640#ifdef cl_khr_fp64
7641double __ovld fract(double x, __global double *iptr);
7642double2 __ovld fract(double2 x, __global double2 *iptr);
7643double3 __ovld fract(double3 x, __global double3 *iptr);
7644double4 __ovld fract(double4 x, __global double4 *iptr);
7645double8 __ovld fract(double8 x, __global double8 *iptr);
7646double16 __ovld fract(double16 x, __global double16 *iptr);
7647double __ovld fract(double x, __local double *iptr);
7648double2 __ovld fract(double2 x, __local double2 *iptr);
7649double3 __ovld fract(double3 x, __local double3 *iptr);
7650double4 __ovld fract(double4 x, __local double4 *iptr);
7651double8 __ovld fract(double8 x, __local double8 *iptr);
7652double16 __ovld fract(double16 x, __local double16 *iptr);
7653double __ovld fract(double x, __private double *iptr);
7654double2 __ovld fract(double2 x, __private double2 *iptr);
7655double3 __ovld fract(double3 x, __private double3 *iptr);
7656double4 __ovld fract(double4 x, __private double4 *iptr);
7657double8 __ovld fract(double8 x, __private double8 *iptr);
7658double16 __ovld fract(double16 x, __private double16 *iptr);
7659#endif //cl_khr_fp64
7660#ifdef cl_khr_fp16
7661half __ovld fract(half x, __global half *iptr);
7662half2 __ovld fract(half2 x, __global half2 *iptr);
7663half3 __ovld fract(half3 x, __global half3 *iptr);
7664half4 __ovld fract(half4 x, __global half4 *iptr);
7665half8 __ovld fract(half8 x, __global half8 *iptr);
7666half16 __ovld fract(half16 x, __global half16 *iptr);
7667half __ovld fract(half x, __local half *iptr);
7668half2 __ovld fract(half2 x, __local half2 *iptr);
7669half3 __ovld fract(half3 x, __local half3 *iptr);
7670half4 __ovld fract(half4 x, __local half4 *iptr);
7671half8 __ovld fract(half8 x, __local half8 *iptr);
7672half16 __ovld fract(half16 x, __local half16 *iptr);
7673half __ovld fract(half x, __private half *iptr);
7674half2 __ovld fract(half2 x, __private half2 *iptr);
7675half3 __ovld fract(half3 x, __private half3 *iptr);
7676half4 __ovld fract(half4 x, __private half4 *iptr);
7677half8 __ovld fract(half8 x, __private half8 *iptr);
7678half16 __ovld fract(half16 x, __private half16 *iptr);
7679#endif //cl_khr_fp16
7680#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
7681
7682/**
7683 * Extract mantissa and exponent from x. For each
7684 * component the mantissa returned is a float with
7685 * magnitude in the interval [1/2, 1) or 0. Each
7686 * component of x equals mantissa returned * 2^exp.
7687 */
7688#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
7689float __ovld frexp(float x, int *exp);
7690float2 __ovld frexp(float2 x, int2 *exp);
7691float3 __ovld frexp(float3 x, int3 *exp);
7692float4 __ovld frexp(float4 x, int4 *exp);
7693float8 __ovld frexp(float8 x, int8 *exp);
7694float16 __ovld frexp(float16 x, int16 *exp);
7695#ifdef cl_khr_fp64
7696double __ovld frexp(double x, int *exp);
7697double2 __ovld frexp(double2 x, int2 *exp);
7698double3 __ovld frexp(double3 x, int3 *exp);
7699double4 __ovld frexp(double4 x, int4 *exp);
7700double8 __ovld frexp(double8 x, int8 *exp);
7701double16 __ovld frexp(double16 x, int16 *exp);
7702#endif //cl_khr_fp64
7703#ifdef cl_khr_fp16
7704half __ovld frexp(half x, int *exp);
7705half2 __ovld frexp(half2 x, int2 *exp);
7706half3 __ovld frexp(half3 x, int3 *exp);
7707half4 __ovld frexp(half4 x, int4 *exp);
7708half8 __ovld frexp(half8 x, int8 *exp);
7709half16 __ovld frexp(half16 x, int16 *exp);
7710#endif //cl_khr_fp16
7711#else
7712float __ovld frexp(float x, __global int *exp);
7713float2 __ovld frexp(float2 x, __global int2 *exp);
7714float3 __ovld frexp(float3 x, __global int3 *exp);
7715float4 __ovld frexp(float4 x, __global int4 *exp);
7716float8 __ovld frexp(float8 x, __global int8 *exp);
7717float16 __ovld frexp(float16 x, __global int16 *exp);
7718float __ovld frexp(float x, __local int *exp);
7719float2 __ovld frexp(float2 x, __local int2 *exp);
7720float3 __ovld frexp(float3 x, __local int3 *exp);
7721float4 __ovld frexp(float4 x, __local int4 *exp);
7722float8 __ovld frexp(float8 x, __local int8 *exp);
7723float16 __ovld frexp(float16 x, __local int16 *exp);
7724float __ovld frexp(float x, __private int *exp);
7725float2 __ovld frexp(float2 x, __private int2 *exp);
7726float3 __ovld frexp(float3 x, __private int3 *exp);
7727float4 __ovld frexp(float4 x, __private int4 *exp);
7728float8 __ovld frexp(float8 x, __private int8 *exp);
7729float16 __ovld frexp(float16 x, __private int16 *exp);
7730#ifdef cl_khr_fp64
7731double __ovld frexp(double x, __global int *exp);
7732double2 __ovld frexp(double2 x, __global int2 *exp);
7733double3 __ovld frexp(double3 x, __global int3 *exp);
7734double4 __ovld frexp(double4 x, __global int4 *exp);
7735double8 __ovld frexp(double8 x, __global int8 *exp);
7736double16 __ovld frexp(double16 x, __global int16 *exp);
7737double __ovld frexp(double x, __local int *exp);
7738double2 __ovld frexp(double2 x, __local int2 *exp);
7739double3 __ovld frexp(double3 x, __local int3 *exp);
7740double4 __ovld frexp(double4 x, __local int4 *exp);
7741double8 __ovld frexp(double8 x, __local int8 *exp);
7742double16 __ovld frexp(double16 x, __local int16 *exp);
7743double __ovld frexp(double x, __private int *exp);
7744double2 __ovld frexp(double2 x, __private int2 *exp);
7745double3 __ovld frexp(double3 x, __private int3 *exp);
7746double4 __ovld frexp(double4 x, __private int4 *exp);
7747double8 __ovld frexp(double8 x, __private int8 *exp);
7748double16 __ovld frexp(double16 x, __private int16 *exp);
7749#endif //cl_khr_fp64
7750#ifdef cl_khr_fp16
7751half __ovld frexp(half x, __global int *exp);
7752half2 __ovld frexp(half2 x, __global int2 *exp);
7753half3 __ovld frexp(half3 x, __global int3 *exp);
7754half4 __ovld frexp(half4 x, __global int4 *exp);
7755half8 __ovld frexp(half8 x, __global int8 *exp);
7756half16 __ovld frexp(half16 x, __global int16 *exp);
7757half __ovld frexp(half x, __local int *exp);
7758half2 __ovld frexp(half2 x, __local int2 *exp);
7759half3 __ovld frexp(half3 x, __local int3 *exp);
7760half4 __ovld frexp(half4 x, __local int4 *exp);
7761half8 __ovld frexp(half8 x, __local int8 *exp);
7762half16 __ovld frexp(half16 x, __local int16 *exp);
7763half __ovld frexp(half x, __private int *exp);
7764half2 __ovld frexp(half2 x, __private int2 *exp);
7765half3 __ovld frexp(half3 x, __private int3 *exp);
7766half4 __ovld frexp(half4 x, __private int4 *exp);
7767half8 __ovld frexp(half8 x, __private int8 *exp);
7768half16 __ovld frexp(half16 x, __private int16 *exp);
7769#endif //cl_khr_fp16
7770#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
7771
7772/**
7773 * Compute the value of the square root of x^2 + y^2
7774 * without undue overflow or underflow.
7775 */
7776float __ovld __cnfn hypot(float x, float y);
7777float2 __ovld __cnfn hypot(float2 x, float2 y);
7778float3 __ovld __cnfn hypot(float3 x, float3 y);
7779float4 __ovld __cnfn hypot(float4 x, float4 y);
7780float8 __ovld __cnfn hypot(float8 x, float8 y);
7781float16 __ovld __cnfn hypot(float16 x, float16 y);
7782#ifdef cl_khr_fp64
7783double __ovld __cnfn hypot(double x, double y);
7784double2 __ovld __cnfn hypot(double2 x, double2 y);
7785double3 __ovld __cnfn hypot(double3 x, double3 y);
7786double4 __ovld __cnfn hypot(double4 x, double4 y);
7787double8 __ovld __cnfn hypot(double8 x, double8 y);
7788double16 __ovld __cnfn hypot(double16 x, double16 y);
7789#endif //cl_khr_fp64
7790#ifdef cl_khr_fp16
7791half __ovld __cnfn hypot(half x, half y);
7792half2 __ovld __cnfn hypot(half2 x, half2 y);
7793half3 __ovld __cnfn hypot(half3 x, half3 y);
7794half4 __ovld __cnfn hypot(half4 x, half4 y);
7795half8 __ovld __cnfn hypot(half8 x, half8 y);
7796half16 __ovld __cnfn hypot(half16 x, half16 y);
7797#endif //cl_khr_fp16
7798
7799/**
7800 * Return the exponent as an integer value.
7801 */
7802int __ovld __cnfn ilogb(float x);
7803int2 __ovld __cnfn ilogb(float2 x);
7804int3 __ovld __cnfn ilogb(float3 x);
7805int4 __ovld __cnfn ilogb(float4 x);
7806int8 __ovld __cnfn ilogb(float8 x);
7807int16 __ovld __cnfn ilogb(float16 x);
7808#ifdef cl_khr_fp64
7809int __ovld __cnfn ilogb(double x);
7810int2 __ovld __cnfn ilogb(double2 x);
7811int3 __ovld __cnfn ilogb(double3 x);
7812int4 __ovld __cnfn ilogb(double4 x);
7813int8 __ovld __cnfn ilogb(double8 x);
7814int16 __ovld __cnfn ilogb(double16 x);
7815#endif //cl_khr_fp64
7816#ifdef cl_khr_fp16
7817int __ovld __cnfn ilogb(half x);
7818int2 __ovld __cnfn ilogb(half2 x);
7819int3 __ovld __cnfn ilogb(half3 x);
7820int4 __ovld __cnfn ilogb(half4 x);
7821int8 __ovld __cnfn ilogb(half8 x);
7822int16 __ovld __cnfn ilogb(half16 x);
7823#endif //cl_khr_fp16
7824
7825/**
7826 * Multiply x by 2 to the power n.
7827 */
7828float __ovld __cnfn ldexp(float x, int n);
7829float2 __ovld __cnfn ldexp(float2 x, int2 n);
7830float3 __ovld __cnfn ldexp(float3 x, int3 n);
7831float4 __ovld __cnfn ldexp(float4 x, int4 n);
7832float8 __ovld __cnfn ldexp(float8 x, int8 n);
7833float16 __ovld __cnfn ldexp(float16 x, int16 n);
7834float2 __ovld __cnfn ldexp(float2 x, int n);
7835float3 __ovld __cnfn ldexp(float3 x, int n);
7836float4 __ovld __cnfn ldexp(float4 x, int n);
7837float8 __ovld __cnfn ldexp(float8 x, int n);
7838float16 __ovld __cnfn ldexp(float16 x, int n);
7839#ifdef cl_khr_fp64
7840double __ovld __cnfn ldexp(double x, int n);
7841double2 __ovld __cnfn ldexp(double2 x, int2 n);
7842double3 __ovld __cnfn ldexp(double3 x, int3 n);
7843double4 __ovld __cnfn ldexp(double4 x, int4 n);
7844double8 __ovld __cnfn ldexp(double8 x, int8 n);
7845double16 __ovld __cnfn ldexp(double16 x, int16 n);
7846double2 __ovld __cnfn ldexp(double2 x, int n);
7847double3 __ovld __cnfn ldexp(double3 x, int n);
7848double4 __ovld __cnfn ldexp(double4 x, int n);
7849double8 __ovld __cnfn ldexp(double8 x, int n);
7850double16 __ovld __cnfn ldexp(double16 x, int n);
7851#endif //cl_khr_fp64
7852#ifdef cl_khr_fp16
7853half __ovld __cnfn ldexp(half x, int n);
7854half2 __ovld __cnfn ldexp(half2 x, int2 n);
7855half3 __ovld __cnfn ldexp(half3 x, int3 n);
7856half4 __ovld __cnfn ldexp(half4 x, int4 n);
7857half8 __ovld __cnfn ldexp(half8 x, int8 n);
7858half16 __ovld __cnfn ldexp(half16 x, int16 n);
7859half2 __ovld __cnfn ldexp(half2 x, int n);
7860half3 __ovld __cnfn ldexp(half3 x, int n);
7861half4 __ovld __cnfn ldexp(half4 x, int n);
7862half8 __ovld __cnfn ldexp(half8 x, int n);
7863half16 __ovld __cnfn ldexp(half16 x, int n);
7864#endif //cl_khr_fp16
7865
7866/**
7867 * Log gamma function. Returns the natural
7868 * logarithm of the absolute value of the gamma
7869 * function. The sign of the gamma function is
7870 * returned in the signp argument of lgamma_r.
7871 */
7872float __ovld __cnfn lgamma(float x);
7873float2 __ovld __cnfn lgamma(float2 x);
7874float3 __ovld __cnfn lgamma(float3 x);
7875float4 __ovld __cnfn lgamma(float4 x);
7876float8 __ovld __cnfn lgamma(float8 x);
7877float16 __ovld __cnfn lgamma(float16 x);
7878#ifdef cl_khr_fp64
7879double __ovld __cnfn lgamma(double x);
7880double2 __ovld __cnfn lgamma(double2 x);
7881double3 __ovld __cnfn lgamma(double3 x);
7882double4 __ovld __cnfn lgamma(double4 x);
7883double8 __ovld __cnfn lgamma(double8 x);
7884double16 __ovld __cnfn lgamma(double16 x);
7885#endif //cl_khr_fp64
7886#ifdef cl_khr_fp16
7887half __ovld __cnfn lgamma(half x);
7888half2 __ovld __cnfn lgamma(half2 x);
7889half3 __ovld __cnfn lgamma(half3 x);
7890half4 __ovld __cnfn lgamma(half4 x);
7891half8 __ovld __cnfn lgamma(half8 x);
7892half16 __ovld __cnfn lgamma(half16 x);
7893#endif //cl_khr_fp16
7894
7895#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
7896float __ovld lgamma_r(float x, int *signp);
7897float2 __ovld lgamma_r(float2 x, int2 *signp);
7898float3 __ovld lgamma_r(float3 x, int3 *signp);
7899float4 __ovld lgamma_r(float4 x, int4 *signp);
7900float8 __ovld lgamma_r(float8 x, int8 *signp);
7901float16 __ovld lgamma_r(float16 x, int16 *signp);
7902#ifdef cl_khr_fp64
7903double __ovld lgamma_r(double x, int *signp);
7904double2 __ovld lgamma_r(double2 x, int2 *signp);
7905double3 __ovld lgamma_r(double3 x, int3 *signp);
7906double4 __ovld lgamma_r(double4 x, int4 *signp);
7907double8 __ovld lgamma_r(double8 x, int8 *signp);
7908double16 __ovld lgamma_r(double16 x, int16 *signp);
7909#endif //cl_khr_fp64
7910#ifdef cl_khr_fp16
7911half __ovld lgamma_r(half x, int *signp);
7912half2 __ovld lgamma_r(half2 x, int2 *signp);
7913half3 __ovld lgamma_r(half3 x, int3 *signp);
7914half4 __ovld lgamma_r(half4 x, int4 *signp);
7915half8 __ovld lgamma_r(half8 x, int8 *signp);
7916half16 __ovld lgamma_r(half16 x, int16 *signp);
7917#endif //cl_khr_fp16
7918#else
7919float __ovld lgamma_r(float x, __global int *signp);
7920float2 __ovld lgamma_r(float2 x, __global int2 *signp);
7921float3 __ovld lgamma_r(float3 x, __global int3 *signp);
7922float4 __ovld lgamma_r(float4 x, __global int4 *signp);
7923float8 __ovld lgamma_r(float8 x, __global int8 *signp);
7924float16 __ovld lgamma_r(float16 x, __global int16 *signp);
7925float __ovld lgamma_r(float x, __local int *signp);
7926float2 __ovld lgamma_r(float2 x, __local int2 *signp);
7927float3 __ovld lgamma_r(float3 x, __local int3 *signp);
7928float4 __ovld lgamma_r(float4 x, __local int4 *signp);
7929float8 __ovld lgamma_r(float8 x, __local int8 *signp);
7930float16 __ovld lgamma_r(float16 x, __local int16 *signp);
7931float __ovld lgamma_r(float x, __private int *signp);
7932float2 __ovld lgamma_r(float2 x, __private int2 *signp);
7933float3 __ovld lgamma_r(float3 x, __private int3 *signp);
7934float4 __ovld lgamma_r(float4 x, __private int4 *signp);
7935float8 __ovld lgamma_r(float8 x, __private int8 *signp);
7936float16 __ovld lgamma_r(float16 x, __private int16 *signp);
7937#ifdef cl_khr_fp64
7938double __ovld lgamma_r(double x, __global int *signp);
7939double2 __ovld lgamma_r(double2 x, __global int2 *signp);
7940double3 __ovld lgamma_r(double3 x, __global int3 *signp);
7941double4 __ovld lgamma_r(double4 x, __global int4 *signp);
7942double8 __ovld lgamma_r(double8 x, __global int8 *signp);
7943double16 __ovld lgamma_r(double16 x, __global int16 *signp);
7944double __ovld lgamma_r(double x, __local int *signp);
7945double2 __ovld lgamma_r(double2 x, __local int2 *signp);
7946double3 __ovld lgamma_r(double3 x, __local int3 *signp);
7947double4 __ovld lgamma_r(double4 x, __local int4 *signp);
7948double8 __ovld lgamma_r(double8 x, __local int8 *signp);
7949double16 __ovld lgamma_r(double16 x, __local int16 *signp);
7950double __ovld lgamma_r(double x, __private int *signp);
7951double2 __ovld lgamma_r(double2 x, __private int2 *signp);
7952double3 __ovld lgamma_r(double3 x, __private int3 *signp);
7953double4 __ovld lgamma_r(double4 x, __private int4 *signp);
7954double8 __ovld lgamma_r(double8 x, __private int8 *signp);
7955double16 __ovld lgamma_r(double16 x, __private int16 *signp);
7956#endif //cl_khr_fp64
7957#ifdef cl_khr_fp16
7958half __ovld lgamma_r(half x, __global int *signp);
7959half2 __ovld lgamma_r(half2 x, __global int2 *signp);
7960half3 __ovld lgamma_r(half3 x, __global int3 *signp);
7961half4 __ovld lgamma_r(half4 x, __global int4 *signp);
7962half8 __ovld lgamma_r(half8 x, __global int8 *signp);
7963half16 __ovld lgamma_r(half16 x, __global int16 *signp);
7964half __ovld lgamma_r(half x, __local int *signp);
7965half2 __ovld lgamma_r(half2 x, __local int2 *signp);
7966half3 __ovld lgamma_r(half3 x, __local int3 *signp);
7967half4 __ovld lgamma_r(half4 x, __local int4 *signp);
7968half8 __ovld lgamma_r(half8 x, __local int8 *signp);
7969half16 __ovld lgamma_r(half16 x, __local int16 *signp);
7970half __ovld lgamma_r(half x, __private int *signp);
7971half2 __ovld lgamma_r(half2 x, __private int2 *signp);
7972half3 __ovld lgamma_r(half3 x, __private int3 *signp);
7973half4 __ovld lgamma_r(half4 x, __private int4 *signp);
7974half8 __ovld lgamma_r(half8 x, __private int8 *signp);
7975half16 __ovld lgamma_r(half16 x, __private int16 *signp);
7976#endif //cl_khr_fp16
7977#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
7978
7979/**
7980 * Compute natural logarithm.
7981 */
7982float __ovld __cnfn log(float);
7983float2 __ovld __cnfn log(float2);
7984float3 __ovld __cnfn log(float3);
7985float4 __ovld __cnfn log(float4);
7986float8 __ovld __cnfn log(float8);
7987float16 __ovld __cnfn log(float16);
7988#ifdef cl_khr_fp64
7989double __ovld __cnfn log(double);
7990double2 __ovld __cnfn log(double2);
7991double3 __ovld __cnfn log(double3);
7992double4 __ovld __cnfn log(double4);
7993double8 __ovld __cnfn log(double8);
7994double16 __ovld __cnfn log(double16);
7995#endif //cl_khr_fp64
7996#ifdef cl_khr_fp16
7997half __ovld __cnfn log(half);
7998half2 __ovld __cnfn log(half2);
7999half3 __ovld __cnfn log(half3);
8000half4 __ovld __cnfn log(half4);
8001half8 __ovld __cnfn log(half8);
8002half16 __ovld __cnfn log(half16);
8003#endif //cl_khr_fp16
8004
8005/**
8006 * Compute a base 2 logarithm.
8007 */
8008float __ovld __cnfn log2(float);
8009float2 __ovld __cnfn log2(float2);
8010float3 __ovld __cnfn log2(float3);
8011float4 __ovld __cnfn log2(float4);
8012float8 __ovld __cnfn log2(float8);
8013float16 __ovld __cnfn log2(float16);
8014#ifdef cl_khr_fp64
8015double __ovld __cnfn log2(double);
8016double2 __ovld __cnfn log2(double2);
8017double3 __ovld __cnfn log2(double3);
8018double4 __ovld __cnfn log2(double4);
8019double8 __ovld __cnfn log2(double8);
8020double16 __ovld __cnfn log2(double16);
8021#endif //cl_khr_fp64
8022#ifdef cl_khr_fp16
8023half __ovld __cnfn log2(half);
8024half2 __ovld __cnfn log2(half2);
8025half3 __ovld __cnfn log2(half3);
8026half4 __ovld __cnfn log2(half4);
8027half8 __ovld __cnfn log2(half8);
8028half16 __ovld __cnfn log2(half16);
8029#endif //cl_khr_fp16
8030
8031/**
8032 * Compute a base 10 logarithm.
8033 */
8034float __ovld __cnfn log10(float);
8035float2 __ovld __cnfn log10(float2);
8036float3 __ovld __cnfn log10(float3);
8037float4 __ovld __cnfn log10(float4);
8038float8 __ovld __cnfn log10(float8);
8039float16 __ovld __cnfn log10(float16);
8040#ifdef cl_khr_fp64
8041double __ovld __cnfn log10(double);
8042double2 __ovld __cnfn log10(double2);
8043double3 __ovld __cnfn log10(double3);
8044double4 __ovld __cnfn log10(double4);
8045double8 __ovld __cnfn log10(double8);
8046double16 __ovld __cnfn log10(double16);
8047#endif //cl_khr_fp64
8048#ifdef cl_khr_fp16
8049half __ovld __cnfn log10(half);
8050half2 __ovld __cnfn log10(half2);
8051half3 __ovld __cnfn log10(half3);
8052half4 __ovld __cnfn log10(half4);
8053half8 __ovld __cnfn log10(half8);
8054half16 __ovld __cnfn log10(half16);
8055#endif //cl_khr_fp16
8056
8057/**
8058 * Compute a base e logarithm of (1.0 + x).
8059 */
8060float __ovld __cnfn log1p(float x);
8061float2 __ovld __cnfn log1p(float2 x);
8062float3 __ovld __cnfn log1p(float3 x);
8063float4 __ovld __cnfn log1p(float4 x);
8064float8 __ovld __cnfn log1p(float8 x);
8065float16 __ovld __cnfn log1p(float16 x);
8066#ifdef cl_khr_fp64
8067double __ovld __cnfn log1p(double x);
8068double2 __ovld __cnfn log1p(double2 x);
8069double3 __ovld __cnfn log1p(double3 x);
8070double4 __ovld __cnfn log1p(double4 x);
8071double8 __ovld __cnfn log1p(double8 x);
8072double16 __ovld __cnfn log1p(double16 x);
8073#endif //cl_khr_fp64
8074#ifdef cl_khr_fp16
8075half __ovld __cnfn log1p(half x);
8076half2 __ovld __cnfn log1p(half2 x);
8077half3 __ovld __cnfn log1p(half3 x);
8078half4 __ovld __cnfn log1p(half4 x);
8079half8 __ovld __cnfn log1p(half8 x);
8080half16 __ovld __cnfn log1p(half16 x);
8081#endif //cl_khr_fp16
8082
8083/**
8084 * Compute the exponent of x, which is the integral
8085 * part of logr | x |.
8086 */
8087float __ovld __cnfn logb(float x);
8088float2 __ovld __cnfn logb(float2 x);
8089float3 __ovld __cnfn logb(float3 x);
8090float4 __ovld __cnfn logb(float4 x);
8091float8 __ovld __cnfn logb(float8 x);
8092float16 __ovld __cnfn logb(float16 x);
8093#ifdef cl_khr_fp64
8094double __ovld __cnfn logb(double x);
8095double2 __ovld __cnfn logb(double2 x);
8096double3 __ovld __cnfn logb(double3 x);
8097double4 __ovld __cnfn logb(double4 x);
8098double8 __ovld __cnfn logb(double8 x);
8099double16 __ovld __cnfn logb(double16 x);
8100#endif //cl_khr_fp64
8101#ifdef cl_khr_fp16
8102half __ovld __cnfn logb(half x);
8103half2 __ovld __cnfn logb(half2 x);
8104half3 __ovld __cnfn logb(half3 x);
8105half4 __ovld __cnfn logb(half4 x);
8106half8 __ovld __cnfn logb(half8 x);
8107half16 __ovld __cnfn logb(half16 x);
8108#endif //cl_khr_fp16
8109
8110/**
8111 * mad approximates a * b + c. Whether or how the
8112 * product of a * b is rounded and how supernormal or
8113 * subnormal intermediate products are handled is not
8114 * defined. mad is intended to be used where speed is
8115 * preferred over accuracy.
8116 */
8117float __ovld __cnfn mad(float a, float b, float c);
8118float2 __ovld __cnfn mad(float2 a, float2 b, float2 c);
8119float3 __ovld __cnfn mad(float3 a, float3 b, float3 c);
8120float4 __ovld __cnfn mad(float4 a, float4 b, float4 c);
8121float8 __ovld __cnfn mad(float8 a, float8 b, float8 c);
8122float16 __ovld __cnfn mad(float16 a, float16 b, float16 c);
8123#ifdef cl_khr_fp64
8124double __ovld __cnfn mad(double a, double b, double c);
8125double2 __ovld __cnfn mad(double2 a, double2 b, double2 c);
8126double3 __ovld __cnfn mad(double3 a, double3 b, double3 c);
8127double4 __ovld __cnfn mad(double4 a, double4 b, double4 c);
8128double8 __ovld __cnfn mad(double8 a, double8 b, double8 c);
8129double16 __ovld __cnfn mad(double16 a, double16 b, double16 c);
8130#endif //cl_khr_fp64
8131#ifdef cl_khr_fp16
8132half __ovld __cnfn mad(half a, half b, half c);
8133half2 __ovld __cnfn mad(half2 a, half2 b, half2 c);
8134half3 __ovld __cnfn mad(half3 a, half3 b, half3 c);
8135half4 __ovld __cnfn mad(half4 a, half4 b, half4 c);
8136half8 __ovld __cnfn mad(half8 a, half8 b, half8 c);
8137half16 __ovld __cnfn mad(half16 a, half16 b, half16 c);
8138#endif //cl_khr_fp16
8139
8140/**
8141 * Returns x if | x | > | y |, y if | y | > | x |, otherwise
8142 * fmax(x, y).
8143 */
8144float __ovld __cnfn maxmag(float x, float y);
8145float2 __ovld __cnfn maxmag(float2 x, float2 y);
8146float3 __ovld __cnfn maxmag(float3 x, float3 y);
8147float4 __ovld __cnfn maxmag(float4 x, float4 y);
8148float8 __ovld __cnfn maxmag(float8 x, float8 y);
8149float16 __ovld __cnfn maxmag(float16 x, float16 y);
8150#ifdef cl_khr_fp64
8151double __ovld __cnfn maxmag(double x, double y);
8152double2 __ovld __cnfn maxmag(double2 x, double2 y);
8153double3 __ovld __cnfn maxmag(double3 x, double3 y);
8154double4 __ovld __cnfn maxmag(double4 x, double4 y);
8155double8 __ovld __cnfn maxmag(double8 x, double8 y);
8156double16 __ovld __cnfn maxmag(double16 x, double16 y);
8157#endif //cl_khr_fp64
8158#ifdef cl_khr_fp16
8159half __ovld __cnfn maxmag(half x, half y);
8160half2 __ovld __cnfn maxmag(half2 x, half2 y);
8161half3 __ovld __cnfn maxmag(half3 x, half3 y);
8162half4 __ovld __cnfn maxmag(half4 x, half4 y);
8163half8 __ovld __cnfn maxmag(half8 x, half8 y);
8164half16 __ovld __cnfn maxmag(half16 x, half16 y);
8165#endif //cl_khr_fp16
8166
8167/**
8168 * Returns x if | x | < | y |, y if | y | < | x |, otherwise
8169 * fmin(x, y).
8170 */
8171float __ovld __cnfn minmag(float x, float y);
8172float2 __ovld __cnfn minmag(float2 x, float2 y);
8173float3 __ovld __cnfn minmag(float3 x, float3 y);
8174float4 __ovld __cnfn minmag(float4 x, float4 y);
8175float8 __ovld __cnfn minmag(float8 x, float8 y);
8176float16 __ovld __cnfn minmag(float16 x, float16 y);
8177#ifdef cl_khr_fp64
8178double __ovld __cnfn minmag(double x, double y);
8179double2 __ovld __cnfn minmag(double2 x, double2 y);
8180double3 __ovld __cnfn minmag(double3 x, double3 y);
8181double4 __ovld __cnfn minmag(double4 x, double4 y);
8182double8 __ovld __cnfn minmag(double8 x, double8 y);
8183double16 __ovld __cnfn minmag(double16 x, double16 y);
8184#endif //cl_khr_fp64
8185#ifdef cl_khr_fp16
8186half __ovld __cnfn minmag(half x, half y);
8187half2 __ovld __cnfn minmag(half2 x, half2 y);
8188half3 __ovld __cnfn minmag(half3 x, half3 y);
8189half4 __ovld __cnfn minmag(half4 x, half4 y);
8190half8 __ovld __cnfn minmag(half8 x, half8 y);
8191half16 __ovld __cnfn minmag(half16 x, half16 y);
8192#endif //cl_khr_fp16
8193
8194/**
8195 * Decompose a floating-point number. The modf
8196 * function breaks the argument x into integral and
8197 * fractional parts, each of which has the same sign as
8198 * the argument. It stores the integral part in the object
8199 * pointed to by iptr.
8200 */
8201#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
8202float __ovld modf(float x, float *iptr);
8203float2 __ovld modf(float2 x, float2 *iptr);
8204float3 __ovld modf(float3 x, float3 *iptr);
8205float4 __ovld modf(float4 x, float4 *iptr);
8206float8 __ovld modf(float8 x, float8 *iptr);
8207float16 __ovld modf(float16 x, float16 *iptr);
8208#ifdef cl_khr_fp64
8209double __ovld modf(double x, double *iptr);
8210double2 __ovld modf(double2 x, double2 *iptr);
8211double3 __ovld modf(double3 x, double3 *iptr);
8212double4 __ovld modf(double4 x, double4 *iptr);
8213double8 __ovld modf(double8 x, double8 *iptr);
8214double16 __ovld modf(double16 x, double16 *iptr);
8215#endif //cl_khr_fp64
8216#ifdef cl_khr_fp16
8217half __ovld modf(half x, half *iptr);
8218half2 __ovld modf(half2 x, half2 *iptr);
8219half3 __ovld modf(half3 x, half3 *iptr);
8220half4 __ovld modf(half4 x, half4 *iptr);
8221half8 __ovld modf(half8 x, half8 *iptr);
8222half16 __ovld modf(half16 x, half16 *iptr);
8223#endif //cl_khr_fp16
8224#else
8225float __ovld modf(float x, __global float *iptr);
8226float2 __ovld modf(float2 x, __global float2 *iptr);
8227float3 __ovld modf(float3 x, __global float3 *iptr);
8228float4 __ovld modf(float4 x, __global float4 *iptr);
8229float8 __ovld modf(float8 x, __global float8 *iptr);
8230float16 __ovld modf(float16 x, __global float16 *iptr);
8231float __ovld modf(float x, __local float *iptr);
8232float2 __ovld modf(float2 x, __local float2 *iptr);
8233float3 __ovld modf(float3 x, __local float3 *iptr);
8234float4 __ovld modf(float4 x, __local float4 *iptr);
8235float8 __ovld modf(float8 x, __local float8 *iptr);
8236float16 __ovld modf(float16 x, __local float16 *iptr);
8237float __ovld modf(float x, __private float *iptr);
8238float2 __ovld modf(float2 x, __private float2 *iptr);
8239float3 __ovld modf(float3 x, __private float3 *iptr);
8240float4 __ovld modf(float4 x, __private float4 *iptr);
8241float8 __ovld modf(float8 x, __private float8 *iptr);
8242float16 __ovld modf(float16 x, __private float16 *iptr);
8243#ifdef cl_khr_fp64
8244double __ovld modf(double x, __global double *iptr);
8245double2 __ovld modf(double2 x, __global double2 *iptr);
8246double3 __ovld modf(double3 x, __global double3 *iptr);
8247double4 __ovld modf(double4 x, __global double4 *iptr);
8248double8 __ovld modf(double8 x, __global double8 *iptr);
8249double16 __ovld modf(double16 x, __global double16 *iptr);
8250double __ovld modf(double x, __local double *iptr);
8251double2 __ovld modf(double2 x, __local double2 *iptr);
8252double3 __ovld modf(double3 x, __local double3 *iptr);
8253double4 __ovld modf(double4 x, __local double4 *iptr);
8254double8 __ovld modf(double8 x, __local double8 *iptr);
8255double16 __ovld modf(double16 x, __local double16 *iptr);
8256double __ovld modf(double x, __private double *iptr);
8257double2 __ovld modf(double2 x, __private double2 *iptr);
8258double3 __ovld modf(double3 x, __private double3 *iptr);
8259double4 __ovld modf(double4 x, __private double4 *iptr);
8260double8 __ovld modf(double8 x, __private double8 *iptr);
8261double16 __ovld modf(double16 x, __private double16 *iptr);
8262#endif //cl_khr_fp64
8263#ifdef cl_khr_fp16
8264half __ovld modf(half x, __global half *iptr);
8265half2 __ovld modf(half2 x, __global half2 *iptr);
8266half3 __ovld modf(half3 x, __global half3 *iptr);
8267half4 __ovld modf(half4 x, __global half4 *iptr);
8268half8 __ovld modf(half8 x, __global half8 *iptr);
8269half16 __ovld modf(half16 x, __global half16 *iptr);
8270half __ovld modf(half x, __local half *iptr);
8271half2 __ovld modf(half2 x, __local half2 *iptr);
8272half3 __ovld modf(half3 x, __local half3 *iptr);
8273half4 __ovld modf(half4 x, __local half4 *iptr);
8274half8 __ovld modf(half8 x, __local half8 *iptr);
8275half16 __ovld modf(half16 x, __local half16 *iptr);
8276half __ovld modf(half x, __private half *iptr);
8277half2 __ovld modf(half2 x, __private half2 *iptr);
8278half3 __ovld modf(half3 x, __private half3 *iptr);
8279half4 __ovld modf(half4 x, __private half4 *iptr);
8280half8 __ovld modf(half8 x, __private half8 *iptr);
8281half16 __ovld modf(half16 x, __private half16 *iptr);
8282#endif //cl_khr_fp16
8283#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
8284
8285/**
8286 * Returns a quiet NaN. The nancode may be placed
8287 * in the significand of the resulting NaN.
8288 */
8289float __ovld __cnfn nan(uint nancode);
8290float2 __ovld __cnfn nan(uint2 nancode);
8291float3 __ovld __cnfn nan(uint3 nancode);
8292float4 __ovld __cnfn nan(uint4 nancode);
8293float8 __ovld __cnfn nan(uint8 nancode);
8294float16 __ovld __cnfn nan(uint16 nancode);
8295#ifdef cl_khr_fp64
8296double __ovld __cnfn nan(ulong nancode);
8297double2 __ovld __cnfn nan(ulong2 nancode);
8298double3 __ovld __cnfn nan(ulong3 nancode);
8299double4 __ovld __cnfn nan(ulong4 nancode);
8300double8 __ovld __cnfn nan(ulong8 nancode);
8301double16 __ovld __cnfn nan(ulong16 nancode);
8302#endif //cl_khr_fp64
8303#ifdef cl_khr_fp16
8304half __ovld __cnfn nan(ushort nancode);
8305half2 __ovld __cnfn nan(ushort2 nancode);
8306half3 __ovld __cnfn nan(ushort3 nancode);
8307half4 __ovld __cnfn nan(ushort4 nancode);
8308half8 __ovld __cnfn nan(ushort8 nancode);
8309half16 __ovld __cnfn nan(ushort16 nancode);
8310#endif //cl_khr_fp16
8311
8312/**
8313 * Computes the next representable single-precision
8314 * floating-point value following x in the direction of
8315 * y. Thus, if y is less than x, nextafter() returns the
8316 * largest representable floating-point number less
8317 * than x.
8318 */
8319float __ovld __cnfn nextafter(float x, float y);
8320float2 __ovld __cnfn nextafter(float2 x, float2 y);
8321float3 __ovld __cnfn nextafter(float3 x, float3 y);
8322float4 __ovld __cnfn nextafter(float4 x, float4 y);
8323float8 __ovld __cnfn nextafter(float8 x, float8 y);
8324float16 __ovld __cnfn nextafter(float16 x, float16 y);
8325#ifdef cl_khr_fp64
8326double __ovld __cnfn nextafter(double x, double y);
8327double2 __ovld __cnfn nextafter(double2 x, double2 y);
8328double3 __ovld __cnfn nextafter(double3 x, double3 y);
8329double4 __ovld __cnfn nextafter(double4 x, double4 y);
8330double8 __ovld __cnfn nextafter(double8 x, double8 y);
8331double16 __ovld __cnfn nextafter(double16 x, double16 y);
8332#endif //cl_khr_fp64
8333#ifdef cl_khr_fp16
8334half __ovld __cnfn nextafter(half x, half y);
8335half2 __ovld __cnfn nextafter(half2 x, half2 y);
8336half3 __ovld __cnfn nextafter(half3 x, half3 y);
8337half4 __ovld __cnfn nextafter(half4 x, half4 y);
8338half8 __ovld __cnfn nextafter(half8 x, half8 y);
8339half16 __ovld __cnfn nextafter(half16 x, half16 y);
8340#endif //cl_khr_fp16
8341
8342/**
8343 * Compute x to the power y.
8344 */
8345float __ovld __cnfn pow(float x, float y);
8346float2 __ovld __cnfn pow(float2 x, float2 y);
8347float3 __ovld __cnfn pow(float3 x, float3 y);
8348float4 __ovld __cnfn pow(float4 x, float4 y);
8349float8 __ovld __cnfn pow(float8 x, float8 y);
8350float16 __ovld __cnfn pow(float16 x, float16 y);
8351#ifdef cl_khr_fp64
8352double __ovld __cnfn pow(double x, double y);
8353double2 __ovld __cnfn pow(double2 x, double2 y);
8354double3 __ovld __cnfn pow(double3 x, double3 y);
8355double4 __ovld __cnfn pow(double4 x, double4 y);
8356double8 __ovld __cnfn pow(double8 x, double8 y);
8357double16 __ovld __cnfn pow(double16 x, double16 y);
8358#endif //cl_khr_fp64
8359#ifdef cl_khr_fp16
8360half __ovld __cnfn pow(half x, half y);
8361half2 __ovld __cnfn pow(half2 x, half2 y);
8362half3 __ovld __cnfn pow(half3 x, half3 y);
8363half4 __ovld __cnfn pow(half4 x, half4 y);
8364half8 __ovld __cnfn pow(half8 x, half8 y);
8365half16 __ovld __cnfn pow(half16 x, half16 y);
8366#endif //cl_khr_fp16
8367
8368/**
8369 * Compute x to the power y, where y is an integer.
8370 */
8371float __ovld __cnfn pown(float x, int y);
8372float2 __ovld __cnfn pown(float2 x, int2 y);
8373float3 __ovld __cnfn pown(float3 x, int3 y);
8374float4 __ovld __cnfn pown(float4 x, int4 y);
8375float8 __ovld __cnfn pown(float8 x, int8 y);
8376float16 __ovld __cnfn pown(float16 x, int16 y);
8377#ifdef cl_khr_fp64
8378double __ovld __cnfn pown(double x, int y);
8379double2 __ovld __cnfn pown(double2 x, int2 y);
8380double3 __ovld __cnfn pown(double3 x, int3 y);
8381double4 __ovld __cnfn pown(double4 x, int4 y);
8382double8 __ovld __cnfn pown(double8 x, int8 y);
8383double16 __ovld __cnfn pown(double16 x, int16 y);
8384#endif //cl_khr_fp64
8385#ifdef cl_khr_fp16
8386half __ovld __cnfn pown(half x, int y);
8387half2 __ovld __cnfn pown(half2 x, int2 y);
8388half3 __ovld __cnfn pown(half3 x, int3 y);
8389half4 __ovld __cnfn pown(half4 x, int4 y);
8390half8 __ovld __cnfn pown(half8 x, int8 y);
8391half16 __ovld __cnfn pown(half16 x, int16 y);
8392#endif //cl_khr_fp16
8393
8394/**
8395 * Compute x to the power y, where x is >= 0.
8396 */
8397float __ovld __cnfn powr(float x, float y);
8398float2 __ovld __cnfn powr(float2 x, float2 y);
8399float3 __ovld __cnfn powr(float3 x, float3 y);
8400float4 __ovld __cnfn powr(float4 x, float4 y);
8401float8 __ovld __cnfn powr(float8 x, float8 y);
8402float16 __ovld __cnfn powr(float16 x, float16 y);
8403#ifdef cl_khr_fp64
8404double __ovld __cnfn powr(double x, double y);
8405double2 __ovld __cnfn powr(double2 x, double2 y);
8406double3 __ovld __cnfn powr(double3 x, double3 y);
8407double4 __ovld __cnfn powr(double4 x, double4 y);
8408double8 __ovld __cnfn powr(double8 x, double8 y);
8409double16 __ovld __cnfn powr(double16 x, double16 y);
8410#endif //cl_khr_fp64
8411#ifdef cl_khr_fp16
8412half __ovld __cnfn powr(half x, half y);
8413half2 __ovld __cnfn powr(half2 x, half2 y);
8414half3 __ovld __cnfn powr(half3 x, half3 y);
8415half4 __ovld __cnfn powr(half4 x, half4 y);
8416half8 __ovld __cnfn powr(half8 x, half8 y);
8417half16 __ovld __cnfn powr(half16 x, half16 y);
8418#endif //cl_khr_fp16
8419
8420/**
8421 * Compute the value r such that r = x - n*y, where n
8422 * is the integer nearest the exact value of x/y. If there
8423 * are two integers closest to x/y, n shall be the even
8424 * one. If r is zero, it is given the same sign as x.
8425 */
8426float __ovld __cnfn remainder(float x, float y);
8427float2 __ovld __cnfn remainder(float2 x, float2 y);
8428float3 __ovld __cnfn remainder(float3 x, float3 y);
8429float4 __ovld __cnfn remainder(float4 x, float4 y);
8430float8 __ovld __cnfn remainder(float8 x, float8 y);
8431float16 __ovld __cnfn remainder(float16 x, float16 y);
8432#ifdef cl_khr_fp64
8433double __ovld __cnfn remainder(double x, double y);
8434double2 __ovld __cnfn remainder(double2 x, double2 y);
8435double3 __ovld __cnfn remainder(double3 x, double3 y);
8436double4 __ovld __cnfn remainder(double4 x, double4 y);
8437double8 __ovld __cnfn remainder(double8 x, double8 y);
8438double16 __ovld __cnfn remainder(double16 x, double16 y);
8439#endif //cl_khr_fp64
8440#ifdef cl_khr_fp16
8441half __ovld __cnfn remainder(half x, half y);
8442half2 __ovld __cnfn remainder(half2 x, half2 y);
8443half3 __ovld __cnfn remainder(half3 x, half3 y);
8444half4 __ovld __cnfn remainder(half4 x, half4 y);
8445half8 __ovld __cnfn remainder(half8 x, half8 y);
8446half16 __ovld __cnfn remainder(half16 x, half16 y);
8447#endif //cl_khr_fp16
8448
8449/**
8450 * The remquo function computes the value r such
8451 * that r = x - n*y, where n is the integer nearest the
8452 * exact value of x/y. If there are two integers closest
8453 * to x/y, n shall be the even one. If r is zero, it is
8454 * given the same sign as x. This is the same value
8455 * that is returned by the remainder function.
8456 * remquo also calculates the lower seven bits of the
8457 * integral quotient x/y, and gives that value the same
8458 * sign as x/y. It stores this signed value in the object
8459 * pointed to by quo.
8460 */
8461#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
8462float __ovld remquo(float x, float y, int *quo);
8463float2 __ovld remquo(float2 x, float2 y, int2 *quo);
8464float3 __ovld remquo(float3 x, float3 y, int3 *quo);
8465float4 __ovld remquo(float4 x, float4 y, int4 *quo);
8466float8 __ovld remquo(float8 x, float8 y, int8 *quo);
8467float16 __ovld remquo(float16 x, float16 y, int16 *quo);
8468#ifdef cl_khr_fp64
8469double __ovld remquo(double x, double y, int *quo);
8470double2 __ovld remquo(double2 x, double2 y, int2 *quo);
8471double3 __ovld remquo(double3 x, double3 y, int3 *quo);
8472double4 __ovld remquo(double4 x, double4 y, int4 *quo);
8473double8 __ovld remquo(double8 x, double8 y, int8 *quo);
8474double16 __ovld remquo(double16 x, double16 y, int16 *quo);
8475#endif //cl_khr_fp64
8476#ifdef cl_khr_fp16
8477half __ovld remquo(half x, half y, int *quo);
8478half2 __ovld remquo(half2 x, half2 y, int2 *quo);
8479half3 __ovld remquo(half3 x, half3 y, int3 *quo);
8480half4 __ovld remquo(half4 x, half4 y, int4 *quo);
8481half8 __ovld remquo(half8 x, half8 y, int8 *quo);
8482half16 __ovld remquo(half16 x, half16 y, int16 *quo);
8483
8484#endif //cl_khr_fp16
8485#else
8486float __ovld remquo(float x, float y, __global int *quo);
8487float2 __ovld remquo(float2 x, float2 y, __global int2 *quo);
8488float3 __ovld remquo(float3 x, float3 y, __global int3 *quo);
8489float4 __ovld remquo(float4 x, float4 y, __global int4 *quo);
8490float8 __ovld remquo(float8 x, float8 y, __global int8 *quo);
8491float16 __ovld remquo(float16 x, float16 y, __global int16 *quo);
8492float __ovld remquo(float x, float y, __local int *quo);
8493float2 __ovld remquo(float2 x, float2 y, __local int2 *quo);
8494float3 __ovld remquo(float3 x, float3 y, __local int3 *quo);
8495float4 __ovld remquo(float4 x, float4 y, __local int4 *quo);
8496float8 __ovld remquo(float8 x, float8 y, __local int8 *quo);
8497float16 __ovld remquo(float16 x, float16 y, __local int16 *quo);
8498float __ovld remquo(float x, float y, __private int *quo);
8499float2 __ovld remquo(float2 x, float2 y, __private int2 *quo);
8500float3 __ovld remquo(float3 x, float3 y, __private int3 *quo);
8501float4 __ovld remquo(float4 x, float4 y, __private int4 *quo);
8502float8 __ovld remquo(float8 x, float8 y, __private int8 *quo);
8503float16 __ovld remquo(float16 x, float16 y, __private int16 *quo);
8504#ifdef cl_khr_fp64
8505double __ovld remquo(double x, double y, __global int *quo);
8506double2 __ovld remquo(double2 x, double2 y, __global int2 *quo);
8507double3 __ovld remquo(double3 x, double3 y, __global int3 *quo);
8508double4 __ovld remquo(double4 x, double4 y, __global int4 *quo);
8509double8 __ovld remquo(double8 x, double8 y, __global int8 *quo);
8510double16 __ovld remquo(double16 x, double16 y, __global int16 *quo);
8511double __ovld remquo(double x, double y, __local int *quo);
8512double2 __ovld remquo(double2 x, double2 y, __local int2 *quo);
8513double3 __ovld remquo(double3 x, double3 y, __local int3 *quo);
8514double4 __ovld remquo(double4 x, double4 y, __local int4 *quo);
8515double8 __ovld remquo(double8 x, double8 y, __local int8 *quo);
8516double16 __ovld remquo(double16 x, double16 y, __local int16 *quo);
8517double __ovld remquo(double x, double y, __private int *quo);
8518double2 __ovld remquo(double2 x, double2 y, __private int2 *quo);
8519double3 __ovld remquo(double3 x, double3 y, __private int3 *quo);
8520double4 __ovld remquo(double4 x, double4 y, __private int4 *quo);
8521double8 __ovld remquo(double8 x, double8 y, __private int8 *quo);
8522double16 __ovld remquo(double16 x, double16 y, __private int16 *quo);
8523#endif //cl_khr_fp64
8524#ifdef cl_khr_fp16
8525half __ovld remquo(half x, half y, __global int *quo);
8526half2 __ovld remquo(half2 x, half2 y, __global int2 *quo);
8527half3 __ovld remquo(half3 x, half3 y, __global int3 *quo);
8528half4 __ovld remquo(half4 x, half4 y, __global int4 *quo);
8529half8 __ovld remquo(half8 x, half8 y, __global int8 *quo);
8530half16 __ovld remquo(half16 x, half16 y, __global int16 *quo);
8531half __ovld remquo(half x, half y, __local int *quo);
8532half2 __ovld remquo(half2 x, half2 y, __local int2 *quo);
8533half3 __ovld remquo(half3 x, half3 y, __local int3 *quo);
8534half4 __ovld remquo(half4 x, half4 y, __local int4 *quo);
8535half8 __ovld remquo(half8 x, half8 y, __local int8 *quo);
8536half16 __ovld remquo(half16 x, half16 y, __local int16 *quo);
8537half __ovld remquo(half x, half y, __private int *quo);
8538half2 __ovld remquo(half2 x, half2 y, __private int2 *quo);
8539half3 __ovld remquo(half3 x, half3 y, __private int3 *quo);
8540half4 __ovld remquo(half4 x, half4 y, __private int4 *quo);
8541half8 __ovld remquo(half8 x, half8 y, __private int8 *quo);
8542half16 __ovld remquo(half16 x, half16 y, __private int16 *quo);
8543#endif //cl_khr_fp16
8544#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
8545/**
8546 * Round to integral value (using round to nearest
8547 * even rounding mode) in floating-point format.
8548 * Refer to section 7.1 for description of rounding
8549 * modes.
8550 */
8551float __ovld __cnfn rint(float);
8552float2 __ovld __cnfn rint(float2);
8553float3 __ovld __cnfn rint(float3);
8554float4 __ovld __cnfn rint(float4);
8555float8 __ovld __cnfn rint(float8);
8556float16 __ovld __cnfn rint(float16);
8557#ifdef cl_khr_fp64
8558double __ovld __cnfn rint(double);
8559double2 __ovld __cnfn rint(double2);
8560double3 __ovld __cnfn rint(double3);
8561double4 __ovld __cnfn rint(double4);
8562double8 __ovld __cnfn rint(double8);
8563double16 __ovld __cnfn rint(double16);
8564#endif //cl_khr_fp64
8565#ifdef cl_khr_fp16
8566half __ovld __cnfn rint(half);
8567half2 __ovld __cnfn rint(half2);
8568half3 __ovld __cnfn rint(half3);
8569half4 __ovld __cnfn rint(half4);
8570half8 __ovld __cnfn rint(half8);
8571half16 __ovld __cnfn rint(half16);
8572#endif //cl_khr_fp16
8573
8574/**
8575 * Compute x to the power 1/y.
8576 */
8577float __ovld __cnfn rootn(float x, int y);
8578float2 __ovld __cnfn rootn(float2 x, int2 y);
8579float3 __ovld __cnfn rootn(float3 x, int3 y);
8580float4 __ovld __cnfn rootn(float4 x, int4 y);
8581float8 __ovld __cnfn rootn(float8 x, int8 y);
8582float16 __ovld __cnfn rootn(float16 x, int16 y);
8583#ifdef cl_khr_fp64
8584double __ovld __cnfn rootn(double x, int y);
8585double2 __ovld __cnfn rootn(double2 x, int2 y);
8586double3 __ovld __cnfn rootn(double3 x, int3 y);
8587double4 __ovld __cnfn rootn(double4 x, int4 y);
8588double8 __ovld __cnfn rootn(double8 x, int8 y);
8589double16 __ovld __cnfn rootn(double16 x, int16 y);
8590#endif //cl_khr_fp64
8591#ifdef cl_khr_fp16
8592half __ovld __cnfn rootn(half x, int y);
8593half2 __ovld __cnfn rootn(half2 x, int2 y);
8594half3 __ovld __cnfn rootn(half3 x, int3 y);
8595half4 __ovld __cnfn rootn(half4 x, int4 y);
8596half8 __ovld __cnfn rootn(half8 x, int8 y);
8597half16 __ovld __cnfn rootn(half16 x, int16 y);
8598#endif //cl_khr_fp16
8599
8600/**
8601 * Return the integral value nearest to x rounding
8602 * halfway cases away from zero, regardless of the
8603 * current rounding direction.
8604 */
8605float __ovld __cnfn round(float x);
8606float2 __ovld __cnfn round(float2 x);
8607float3 __ovld __cnfn round(float3 x);
8608float4 __ovld __cnfn round(float4 x);
8609float8 __ovld __cnfn round(float8 x);
8610float16 __ovld __cnfn round(float16 x);
8611#ifdef cl_khr_fp64
8612double __ovld __cnfn round(double x);
8613double2 __ovld __cnfn round(double2 x);
8614double3 __ovld __cnfn round(double3 x);
8615double4 __ovld __cnfn round(double4 x);
8616double8 __ovld __cnfn round(double8 x);
8617double16 __ovld __cnfn round(double16 x);
8618#endif //cl_khr_fp64
8619#ifdef cl_khr_fp16
8620half __ovld __cnfn round(half x);
8621half2 __ovld __cnfn round(half2 x);
8622half3 __ovld __cnfn round(half3 x);
8623half4 __ovld __cnfn round(half4 x);
8624half8 __ovld __cnfn round(half8 x);
8625half16 __ovld __cnfn round(half16 x);
8626#endif //cl_khr_fp16
8627
8628/**
8629 * Compute inverse square root.
8630 */
8631float __ovld __cnfn rsqrt(float);
8632float2 __ovld __cnfn rsqrt(float2);
8633float3 __ovld __cnfn rsqrt(float3);
8634float4 __ovld __cnfn rsqrt(float4);
8635float8 __ovld __cnfn rsqrt(float8);
8636float16 __ovld __cnfn rsqrt(float16);
8637#ifdef cl_khr_fp64
8638double __ovld __cnfn rsqrt(double);
8639double2 __ovld __cnfn rsqrt(double2);
8640double3 __ovld __cnfn rsqrt(double3);
8641double4 __ovld __cnfn rsqrt(double4);
8642double8 __ovld __cnfn rsqrt(double8);
8643double16 __ovld __cnfn rsqrt(double16);
8644#endif //cl_khr_fp64
8645#ifdef cl_khr_fp16
8646half __ovld __cnfn rsqrt(half);
8647half2 __ovld __cnfn rsqrt(half2);
8648half3 __ovld __cnfn rsqrt(half3);
8649half4 __ovld __cnfn rsqrt(half4);
8650half8 __ovld __cnfn rsqrt(half8);
8651half16 __ovld __cnfn rsqrt(half16);
8652#endif //cl_khr_fp16
8653
8654/**
8655 * Compute sine.
8656 */
8657float __ovld __cnfn sin(float);
8658float2 __ovld __cnfn sin(float2);
8659float3 __ovld __cnfn sin(float3);
8660float4 __ovld __cnfn sin(float4);
8661float8 __ovld __cnfn sin(float8);
8662float16 __ovld __cnfn sin(float16);
8663#ifdef cl_khr_fp64
8664double __ovld __cnfn sin(double);
8665double2 __ovld __cnfn sin(double2);
8666double3 __ovld __cnfn sin(double3);
8667double4 __ovld __cnfn sin(double4);
8668double8 __ovld __cnfn sin(double8);
8669double16 __ovld __cnfn sin(double16);
8670#endif //cl_khr_fp64
8671#ifdef cl_khr_fp16
8672half __ovld __cnfn sin(half);
8673half2 __ovld __cnfn sin(half2);
8674half3 __ovld __cnfn sin(half3);
8675half4 __ovld __cnfn sin(half4);
8676half8 __ovld __cnfn sin(half8);
8677half16 __ovld __cnfn sin(half16);
8678#endif //cl_khr_fp16
8679
8680/**
8681 * Compute sine and cosine of x. The computed sine
8682 * is the return value and computed cosine is returned
8683 * in cosval.
8684 */
8685#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
8686float __ovld sincos(float x, float *cosval);
8687float2 __ovld sincos(float2 x, float2 *cosval);
8688float3 __ovld sincos(float3 x, float3 *cosval);
8689float4 __ovld sincos(float4 x, float4 *cosval);
8690float8 __ovld sincos(float8 x, float8 *cosval);
8691float16 __ovld sincos(float16 x, float16 *cosval);
8692#ifdef cl_khr_fp64
8693double __ovld sincos(double x, double *cosval);
8694double2 __ovld sincos(double2 x, double2 *cosval);
8695double3 __ovld sincos(double3 x, double3 *cosval);
8696double4 __ovld sincos(double4 x, double4 *cosval);
8697double8 __ovld sincos(double8 x, double8 *cosval);
8698double16 __ovld sincos(double16 x, double16 *cosval);
8699#endif //cl_khr_fp64
8700#ifdef cl_khr_fp16
8701half __ovld sincos(half x, half *cosval);
8702half2 __ovld sincos(half2 x, half2 *cosval);
8703half3 __ovld sincos(half3 x, half3 *cosval);
8704half4 __ovld sincos(half4 x, half4 *cosval);
8705half8 __ovld sincos(half8 x, half8 *cosval);
8706half16 __ovld sincos(half16 x, half16 *cosval);
8707#endif //cl_khr_fp16
8708#else
8709float __ovld sincos(float x, __global float *cosval);
8710float2 __ovld sincos(float2 x, __global float2 *cosval);
8711float3 __ovld sincos(float3 x, __global float3 *cosval);
8712float4 __ovld sincos(float4 x, __global float4 *cosval);
8713float8 __ovld sincos(float8 x, __global float8 *cosval);
8714float16 __ovld sincos(float16 x, __global float16 *cosval);
8715float __ovld sincos(float x, __local float *cosval);
8716float2 __ovld sincos(float2 x, __local float2 *cosval);
8717float3 __ovld sincos(float3 x, __local float3 *cosval);
8718float4 __ovld sincos(float4 x, __local float4 *cosval);
8719float8 __ovld sincos(float8 x, __local float8 *cosval);
8720float16 __ovld sincos(float16 x, __local float16 *cosval);
8721float __ovld sincos(float x, __private float *cosval);
8722float2 __ovld sincos(float2 x, __private float2 *cosval);
8723float3 __ovld sincos(float3 x, __private float3 *cosval);
8724float4 __ovld sincos(float4 x, __private float4 *cosval);
8725float8 __ovld sincos(float8 x, __private float8 *cosval);
8726float16 __ovld sincos(float16 x, __private float16 *cosval);
8727#ifdef cl_khr_fp64
8728double __ovld sincos(double x, __global double *cosval);
8729double2 __ovld sincos(double2 x, __global double2 *cosval);
8730double3 __ovld sincos(double3 x, __global double3 *cosval);
8731double4 __ovld sincos(double4 x, __global double4 *cosval);
8732double8 __ovld sincos(double8 x, __global double8 *cosval);
8733double16 __ovld sincos(double16 x, __global double16 *cosval);
8734double __ovld sincos(double x, __local double *cosval);
8735double2 __ovld sincos(double2 x, __local double2 *cosval);
8736double3 __ovld sincos(double3 x, __local double3 *cosval);
8737double4 __ovld sincos(double4 x, __local double4 *cosval);
8738double8 __ovld sincos(double8 x, __local double8 *cosval);
8739double16 __ovld sincos(double16 x, __local double16 *cosval);
8740double __ovld sincos(double x, __private double *cosval);
8741double2 __ovld sincos(double2 x, __private double2 *cosval);
8742double3 __ovld sincos(double3 x, __private double3 *cosval);
8743double4 __ovld sincos(double4 x, __private double4 *cosval);
8744double8 __ovld sincos(double8 x, __private double8 *cosval);
8745double16 __ovld sincos(double16 x, __private double16 *cosval);
8746#endif //cl_khr_fp64
8747#ifdef cl_khr_fp16
8748half __ovld sincos(half x, __global half *cosval);
8749half2 __ovld sincos(half2 x, __global half2 *cosval);
8750half3 __ovld sincos(half3 x, __global half3 *cosval);
8751half4 __ovld sincos(half4 x, __global half4 *cosval);
8752half8 __ovld sincos(half8 x, __global half8 *cosval);
8753half16 __ovld sincos(half16 x, __global half16 *cosval);
8754half __ovld sincos(half x, __local half *cosval);
8755half2 __ovld sincos(half2 x, __local half2 *cosval);
8756half3 __ovld sincos(half3 x, __local half3 *cosval);
8757half4 __ovld sincos(half4 x, __local half4 *cosval);
8758half8 __ovld sincos(half8 x, __local half8 *cosval);
8759half16 __ovld sincos(half16 x, __local half16 *cosval);
8760half __ovld sincos(half x, __private half *cosval);
8761half2 __ovld sincos(half2 x, __private half2 *cosval);
8762half3 __ovld sincos(half3 x, __private half3 *cosval);
8763half4 __ovld sincos(half4 x, __private half4 *cosval);
8764half8 __ovld sincos(half8 x, __private half8 *cosval);
8765half16 __ovld sincos(half16 x, __private half16 *cosval);
8766#endif //cl_khr_fp16
8767#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
8768
8769/**
8770 * Compute hyperbolic sine.
8771 */
8772float __ovld __cnfn sinh(float);
8773float2 __ovld __cnfn sinh(float2);
8774float3 __ovld __cnfn sinh(float3);
8775float4 __ovld __cnfn sinh(float4);
8776float8 __ovld __cnfn sinh(float8);
8777float16 __ovld __cnfn sinh(float16);
8778#ifdef cl_khr_fp64
8779double __ovld __cnfn sinh(double);
8780double2 __ovld __cnfn sinh(double2);
8781double3 __ovld __cnfn sinh(double3);
8782double4 __ovld __cnfn sinh(double4);
8783double8 __ovld __cnfn sinh(double8);
8784double16 __ovld __cnfn sinh(double16);
8785#endif //cl_khr_fp64
8786#ifdef cl_khr_fp16
8787half __ovld __cnfn sinh(half);
8788half2 __ovld __cnfn sinh(half2);
8789half3 __ovld __cnfn sinh(half3);
8790half4 __ovld __cnfn sinh(half4);
8791half8 __ovld __cnfn sinh(half8);
8792half16 __ovld __cnfn sinh(half16);
8793#endif //cl_khr_fp16
8794
8795/**
8796 * Compute sin (PI * x).
8797 */
8798float __ovld __cnfn sinpi(float x);
8799float2 __ovld __cnfn sinpi(float2 x);
8800float3 __ovld __cnfn sinpi(float3 x);
8801float4 __ovld __cnfn sinpi(float4 x);
8802float8 __ovld __cnfn sinpi(float8 x);
8803float16 __ovld __cnfn sinpi(float16 x);
8804#ifdef cl_khr_fp64
8805double __ovld __cnfn sinpi(double x);
8806double2 __ovld __cnfn sinpi(double2 x);
8807double3 __ovld __cnfn sinpi(double3 x);
8808double4 __ovld __cnfn sinpi(double4 x);
8809double8 __ovld __cnfn sinpi(double8 x);
8810double16 __ovld __cnfn sinpi(double16 x);
8811#endif //cl_khr_fp64
8812#ifdef cl_khr_fp16
8813half __ovld __cnfn sinpi(half x);
8814half2 __ovld __cnfn sinpi(half2 x);
8815half3 __ovld __cnfn sinpi(half3 x);
8816half4 __ovld __cnfn sinpi(half4 x);
8817half8 __ovld __cnfn sinpi(half8 x);
8818half16 __ovld __cnfn sinpi(half16 x);
8819#endif //cl_khr_fp16
8820
8821/**
8822 * Compute square root.
8823 */
8824float __ovld __cnfn sqrt(float);
8825float2 __ovld __cnfn sqrt(float2);
8826float3 __ovld __cnfn sqrt(float3);
8827float4 __ovld __cnfn sqrt(float4);
8828float8 __ovld __cnfn sqrt(float8);
8829float16 __ovld __cnfn sqrt(float16);
8830#ifdef cl_khr_fp64
8831double __ovld __cnfn sqrt(double);
8832double2 __ovld __cnfn sqrt(double2);
8833double3 __ovld __cnfn sqrt(double3);
8834double4 __ovld __cnfn sqrt(double4);
8835double8 __ovld __cnfn sqrt(double8);
8836double16 __ovld __cnfn sqrt(double16);
8837#endif //cl_khr_fp64
8838#ifdef cl_khr_fp16
8839half __ovld __cnfn sqrt(half);
8840half2 __ovld __cnfn sqrt(half2);
8841half3 __ovld __cnfn sqrt(half3);
8842half4 __ovld __cnfn sqrt(half4);
8843half8 __ovld __cnfn sqrt(half8);
8844half16 __ovld __cnfn sqrt(half16);
8845#endif //cl_khr_fp16
8846
8847/**
8848 * Compute tangent.
8849 */
8850float __ovld __cnfn tan(float);
8851float2 __ovld __cnfn tan(float2);
8852float3 __ovld __cnfn tan(float3);
8853float4 __ovld __cnfn tan(float4);
8854float8 __ovld __cnfn tan(float8);
8855float16 __ovld __cnfn tan(float16);
8856#ifdef cl_khr_fp64
8857double __ovld __cnfn tan(double);
8858double2 __ovld __cnfn tan(double2);
8859double3 __ovld __cnfn tan(double3);
8860double4 __ovld __cnfn tan(double4);
8861double8 __ovld __cnfn tan(double8);
8862double16 __ovld __cnfn tan(double16);
8863#endif //cl_khr_fp64
8864#ifdef cl_khr_fp16
8865half __ovld __cnfn tan(half);
8866half2 __ovld __cnfn tan(half2);
8867half3 __ovld __cnfn tan(half3);
8868half4 __ovld __cnfn tan(half4);
8869half8 __ovld __cnfn tan(half8);
8870half16 __ovld __cnfn tan(half16);
8871#endif //cl_khr_fp16
8872
8873/**
8874 * Compute hyperbolic tangent.
8875 */
8876float __ovld __cnfn tanh(float);
8877float2 __ovld __cnfn tanh(float2);
8878float3 __ovld __cnfn tanh(float3);
8879float4 __ovld __cnfn tanh(float4);
8880float8 __ovld __cnfn tanh(float8);
8881float16 __ovld __cnfn tanh(float16);
8882#ifdef cl_khr_fp64
8883double __ovld __cnfn tanh(double);
8884double2 __ovld __cnfn tanh(double2);
8885double3 __ovld __cnfn tanh(double3);
8886double4 __ovld __cnfn tanh(double4);
8887double8 __ovld __cnfn tanh(double8);
8888double16 __ovld __cnfn tanh(double16);
8889#endif //cl_khr_fp64
8890#ifdef cl_khr_fp16
8891half __ovld __cnfn tanh(half);
8892half2 __ovld __cnfn tanh(half2);
8893half3 __ovld __cnfn tanh(half3);
8894half4 __ovld __cnfn tanh(half4);
8895half8 __ovld __cnfn tanh(half8);
8896half16 __ovld __cnfn tanh(half16);
8897#endif //cl_khr_fp16
8898
8899/**
8900 * Compute tan (PI * x).
8901 */
8902float __ovld __cnfn tanpi(float x);
8903float2 __ovld __cnfn tanpi(float2 x);
8904float3 __ovld __cnfn tanpi(float3 x);
8905float4 __ovld __cnfn tanpi(float4 x);
8906float8 __ovld __cnfn tanpi(float8 x);
8907float16 __ovld __cnfn tanpi(float16 x);
8908#ifdef cl_khr_fp64
8909double __ovld __cnfn tanpi(double x);
8910double2 __ovld __cnfn tanpi(double2 x);
8911double3 __ovld __cnfn tanpi(double3 x);
8912double4 __ovld __cnfn tanpi(double4 x);
8913double8 __ovld __cnfn tanpi(double8 x);
8914double16 __ovld __cnfn tanpi(double16 x);
8915#endif //cl_khr_fp64
8916#ifdef cl_khr_fp16
8917half __ovld __cnfn tanpi(half x);
8918half2 __ovld __cnfn tanpi(half2 x);
8919half3 __ovld __cnfn tanpi(half3 x);
8920half4 __ovld __cnfn tanpi(half4 x);
8921half8 __ovld __cnfn tanpi(half8 x);
8922half16 __ovld __cnfn tanpi(half16 x);
8923#endif //cl_khr_fp16
8924
8925/**
8926 * Compute the gamma function.
8927 */
8928float __ovld __cnfn tgamma(float);
8929float2 __ovld __cnfn tgamma(float2);
8930float3 __ovld __cnfn tgamma(float3);
8931float4 __ovld __cnfn tgamma(float4);
8932float8 __ovld __cnfn tgamma(float8);
8933float16 __ovld __cnfn tgamma(float16);
8934#ifdef cl_khr_fp64
8935double __ovld __cnfn tgamma(double);
8936double2 __ovld __cnfn tgamma(double2);
8937double3 __ovld __cnfn tgamma(double3);
8938double4 __ovld __cnfn tgamma(double4);
8939double8 __ovld __cnfn tgamma(double8);
8940double16 __ovld __cnfn tgamma(double16);
8941#endif //cl_khr_fp64
8942#ifdef cl_khr_fp16
8943half __ovld __cnfn tgamma(half);
8944half2 __ovld __cnfn tgamma(half2);
8945half3 __ovld __cnfn tgamma(half3);
8946half4 __ovld __cnfn tgamma(half4);
8947half8 __ovld __cnfn tgamma(half8);
8948half16 __ovld __cnfn tgamma(half16);
8949#endif //cl_khr_fp16
8950
8951/**
8952 * Round to integral value using the round to zero
8953 * rounding mode.
8954 */
8955float __ovld __cnfn trunc(float);
8956float2 __ovld __cnfn trunc(float2);
8957float3 __ovld __cnfn trunc(float3);
8958float4 __ovld __cnfn trunc(float4);
8959float8 __ovld __cnfn trunc(float8);
8960float16 __ovld __cnfn trunc(float16);
8961#ifdef cl_khr_fp64
8962double __ovld __cnfn trunc(double);
8963double2 __ovld __cnfn trunc(double2);
8964double3 __ovld __cnfn trunc(double3);
8965double4 __ovld __cnfn trunc(double4);
8966double8 __ovld __cnfn trunc(double8);
8967double16 __ovld __cnfn trunc(double16);
8968#endif //cl_khr_fp64
8969#ifdef cl_khr_fp16
8970half __ovld __cnfn trunc(half);
8971half2 __ovld __cnfn trunc(half2);
8972half3 __ovld __cnfn trunc(half3);
8973half4 __ovld __cnfn trunc(half4);
8974half8 __ovld __cnfn trunc(half8);
8975half16 __ovld __cnfn trunc(half16);
8976#endif //cl_khr_fp16
8977
8978/**
8979 * Compute cosine. x must be in the range -2^16 ... +2^16.
8980 */
8981float __ovld __cnfn half_cos(float x);
8982float2 __ovld __cnfn half_cos(float2 x);
8983float3 __ovld __cnfn half_cos(float3 x);
8984float4 __ovld __cnfn half_cos(float4 x);
8985float8 __ovld __cnfn half_cos(float8 x);
8986float16 __ovld __cnfn half_cos(float16 x);
8987
8988/**
8989 * Compute x / y.
8990 */
8991float __ovld __cnfn half_divide(float x, float y);
8992float2 __ovld __cnfn half_divide(float2 x, float2 y);
8993float3 __ovld __cnfn half_divide(float3 x, float3 y);
8994float4 __ovld __cnfn half_divide(float4 x, float4 y);
8995float8 __ovld __cnfn half_divide(float8 x, float8 y);
8996float16 __ovld __cnfn half_divide(float16 x, float16 y);
8997
8998/**
8999 * Compute the base- e exponential of x.
9000 */
9001float __ovld __cnfn half_exp(float x);
9002float2 __ovld __cnfn half_exp(float2 x);
9003float3 __ovld __cnfn half_exp(float3 x);
9004float4 __ovld __cnfn half_exp(float4 x);
9005float8 __ovld __cnfn half_exp(float8 x);
9006float16 __ovld __cnfn half_exp(float16 x);
9007
9008/**
9009 * Compute the base- 2 exponential of x.
9010 */
9011float __ovld __cnfn half_exp2(float x);
9012float2 __ovld __cnfn half_exp2(float2 x);
9013float3 __ovld __cnfn half_exp2(float3 x);
9014float4 __ovld __cnfn half_exp2(float4 x);
9015float8 __ovld __cnfn half_exp2(float8 x);
9016float16 __ovld __cnfn half_exp2(float16 x);
9017
9018/**
9019 * Compute the base- 10 exponential of x.
9020 */
9021float __ovld __cnfn half_exp10(float x);
9022float2 __ovld __cnfn half_exp10(float2 x);
9023float3 __ovld __cnfn half_exp10(float3 x);
9024float4 __ovld __cnfn half_exp10(float4 x);
9025float8 __ovld __cnfn half_exp10(float8 x);
9026float16 __ovld __cnfn half_exp10(float16 x);
9027
9028/**
9029 * Compute natural logarithm.
9030 */
9031float __ovld __cnfn half_log(float x);
9032float2 __ovld __cnfn half_log(float2 x);
9033float3 __ovld __cnfn half_log(float3 x);
9034float4 __ovld __cnfn half_log(float4 x);
9035float8 __ovld __cnfn half_log(float8 x);
9036float16 __ovld __cnfn half_log(float16 x);
9037
9038/**
9039 * Compute a base 2 logarithm.
9040 */
9041float __ovld __cnfn half_log2(float x);
9042float2 __ovld __cnfn half_log2(float2 x);
9043float3 __ovld __cnfn half_log2(float3 x);
9044float4 __ovld __cnfn half_log2(float4 x);
9045float8 __ovld __cnfn half_log2(float8 x);
9046float16 __ovld __cnfn half_log2(float16 x);
9047
9048/**
9049 * Compute a base 10 logarithm.
9050 */
9051float __ovld __cnfn half_log10(float x);
9052float2 __ovld __cnfn half_log10(float2 x);
9053float3 __ovld __cnfn half_log10(float3 x);
9054float4 __ovld __cnfn half_log10(float4 x);
9055float8 __ovld __cnfn half_log10(float8 x);
9056float16 __ovld __cnfn half_log10(float16 x);
9057
9058/**
9059 * Compute x to the power y, where x is >= 0.
9060 */
9061float __ovld __cnfn half_powr(float x, float y);
9062float2 __ovld __cnfn half_powr(float2 x, float2 y);
9063float3 __ovld __cnfn half_powr(float3 x, float3 y);
9064float4 __ovld __cnfn half_powr(float4 x, float4 y);
9065float8 __ovld __cnfn half_powr(float8 x, float8 y);
9066float16 __ovld __cnfn half_powr(float16 x, float16 y);
9067
9068/**
9069 * Compute reciprocal.
9070 */
9071float __ovld __cnfn half_recip(float x);
9072float2 __ovld __cnfn half_recip(float2 x);
9073float3 __ovld __cnfn half_recip(float3 x);
9074float4 __ovld __cnfn half_recip(float4 x);
9075float8 __ovld __cnfn half_recip(float8 x);
9076float16 __ovld __cnfn half_recip(float16 x);
9077
9078/**
9079 * Compute inverse square root.
9080 */
9081float __ovld __cnfn half_rsqrt(float x);
9082float2 __ovld __cnfn half_rsqrt(float2 x);
9083float3 __ovld __cnfn half_rsqrt(float3 x);
9084float4 __ovld __cnfn half_rsqrt(float4 x);
9085float8 __ovld __cnfn half_rsqrt(float8 x);
9086float16 __ovld __cnfn half_rsqrt(float16 x);
9087
9088/**
9089 * Compute sine. x must be in the range -2^16 ... +2^16.
9090 */
9091float __ovld __cnfn half_sin(float x);
9092float2 __ovld __cnfn half_sin(float2 x);
9093float3 __ovld __cnfn half_sin(float3 x);
9094float4 __ovld __cnfn half_sin(float4 x);
9095float8 __ovld __cnfn half_sin(float8 x);
9096float16 __ovld __cnfn half_sin(float16 x);
9097
9098/**
9099 * Compute square root.
9100 */
9101float __ovld __cnfn half_sqrt(float x);
9102float2 __ovld __cnfn half_sqrt(float2 x);
9103float3 __ovld __cnfn half_sqrt(float3 x);
9104float4 __ovld __cnfn half_sqrt(float4 x);
9105float8 __ovld __cnfn half_sqrt(float8 x);
9106float16 __ovld __cnfn half_sqrt(float16 x);
9107
9108/**
9109 * Compute tangent. x must be in the range -216 ... +216.
9110 */
9111float __ovld __cnfn half_tan(float x);
9112float2 __ovld __cnfn half_tan(float2 x);
9113float3 __ovld __cnfn half_tan(float3 x);
9114float4 __ovld __cnfn half_tan(float4 x);
9115float8 __ovld __cnfn half_tan(float8 x);
9116float16 __ovld __cnfn half_tan(float16 x);
9117
9118/**
9119 * Compute cosine over an implementation-defined range.
9120 * The maximum error is implementation-defined.
9121 */
9122float __ovld __cnfn native_cos(float x);
9123float2 __ovld __cnfn native_cos(float2 x);
9124float3 __ovld __cnfn native_cos(float3 x);
9125float4 __ovld __cnfn native_cos(float4 x);
9126float8 __ovld __cnfn native_cos(float8 x);
9127float16 __ovld __cnfn native_cos(float16 x);
9128
9129/**
9130 * Compute x / y over an implementation-defined range.
9131 * The maximum error is implementation-defined.
9132 */
9133float __ovld __cnfn native_divide(float x, float y);
9134float2 __ovld __cnfn native_divide(float2 x, float2 y);
9135float3 __ovld __cnfn native_divide(float3 x, float3 y);
9136float4 __ovld __cnfn native_divide(float4 x, float4 y);
9137float8 __ovld __cnfn native_divide(float8 x, float8 y);
9138float16 __ovld __cnfn native_divide(float16 x, float16 y);
9139
9140/**
9141 * Compute the base- e exponential of x over an
9142 * implementation-defined range. The maximum error is
9143 * implementation-defined.
9144 */
9145float __ovld __cnfn native_exp(float x);
9146float2 __ovld __cnfn native_exp(float2 x);
9147float3 __ovld __cnfn native_exp(float3 x);
9148float4 __ovld __cnfn native_exp(float4 x);
9149float8 __ovld __cnfn native_exp(float8 x);
9150float16 __ovld __cnfn native_exp(float16 x);
9151
9152/**
9153 * Compute the base- 2 exponential of x over an
9154 * implementation-defined range. The maximum error is
9155 * implementation-defined.
9156 */
9157float __ovld __cnfn native_exp2(float x);
9158float2 __ovld __cnfn native_exp2(float2 x);
9159float3 __ovld __cnfn native_exp2(float3 x);
9160float4 __ovld __cnfn native_exp2(float4 x);
9161float8 __ovld __cnfn native_exp2(float8 x);
9162float16 __ovld __cnfn native_exp2(float16 x);
9163
9164/**
9165 * Compute the base- 10 exponential of x over an
9166 * implementation-defined range. The maximum error is
9167 * implementation-defined.
9168 */
9169float __ovld __cnfn native_exp10(float x);
9170float2 __ovld __cnfn native_exp10(float2 x);
9171float3 __ovld __cnfn native_exp10(float3 x);
9172float4 __ovld __cnfn native_exp10(float4 x);
9173float8 __ovld __cnfn native_exp10(float8 x);
9174float16 __ovld __cnfn native_exp10(float16 x);
9175
9176/**
9177 * Compute natural logarithm over an implementationdefined
9178 * range. The maximum error is implementation
9179 * defined.
9180 */
9181float __ovld __cnfn native_log(float x);
9182float2 __ovld __cnfn native_log(float2 x);
9183float3 __ovld __cnfn native_log(float3 x);
9184float4 __ovld __cnfn native_log(float4 x);
9185float8 __ovld __cnfn native_log(float8 x);
9186float16 __ovld __cnfn native_log(float16 x);
9187
9188/**
9189 * Compute a base 2 logarithm over an implementationdefined
9190 * range. The maximum error is implementationdefined.
9191 */
9192float __ovld __cnfn native_log2(float x);
9193float2 __ovld __cnfn native_log2(float2 x);
9194float3 __ovld __cnfn native_log2(float3 x);
9195float4 __ovld __cnfn native_log2(float4 x);
9196float8 __ovld __cnfn native_log2(float8 x);
9197float16 __ovld __cnfn native_log2(float16 x);
9198
9199/**
9200 * Compute a base 10 logarithm over an implementationdefined
9201 * range. The maximum error is implementationdefined.
9202 */
9203float __ovld __cnfn native_log10(float x);
9204float2 __ovld __cnfn native_log10(float2 x);
9205float3 __ovld __cnfn native_log10(float3 x);
9206float4 __ovld __cnfn native_log10(float4 x);
9207float8 __ovld __cnfn native_log10(float8 x);
9208float16 __ovld __cnfn native_log10(float16 x);
9209
9210/**
9211 * Compute x to the power y, where x is >= 0. The range of
9212 * x and y are implementation-defined. The maximum error
9213 * is implementation-defined.
9214 */
9215float __ovld __cnfn native_powr(float x, float y);
9216float2 __ovld __cnfn native_powr(float2 x, float2 y);
9217float3 __ovld __cnfn native_powr(float3 x, float3 y);
9218float4 __ovld __cnfn native_powr(float4 x, float4 y);
9219float8 __ovld __cnfn native_powr(float8 x, float8 y);
9220float16 __ovld __cnfn native_powr(float16 x, float16 y);
9221
9222/**
9223 * Compute reciprocal over an implementation-defined
9224 * range. The maximum error is implementation-defined.
9225 */
9226float __ovld __cnfn native_recip(float x);
9227float2 __ovld __cnfn native_recip(float2 x);
9228float3 __ovld __cnfn native_recip(float3 x);
9229float4 __ovld __cnfn native_recip(float4 x);
9230float8 __ovld __cnfn native_recip(float8 x);
9231float16 __ovld __cnfn native_recip(float16 x);
9232
9233/**
9234 * Compute inverse square root over an implementationdefined
9235 * range. The maximum error is implementationdefined.
9236 */
9237float __ovld __cnfn native_rsqrt(float x);
9238float2 __ovld __cnfn native_rsqrt(float2 x);
9239float3 __ovld __cnfn native_rsqrt(float3 x);
9240float4 __ovld __cnfn native_rsqrt(float4 x);
9241float8 __ovld __cnfn native_rsqrt(float8 x);
9242float16 __ovld __cnfn native_rsqrt(float16 x);
9243
9244/**
9245 * Compute sine over an implementation-defined range.
9246 * The maximum error is implementation-defined.
9247 */
9248float __ovld __cnfn native_sin(float x);
9249float2 __ovld __cnfn native_sin(float2 x);
9250float3 __ovld __cnfn native_sin(float3 x);
9251float4 __ovld __cnfn native_sin(float4 x);
9252float8 __ovld __cnfn native_sin(float8 x);
9253float16 __ovld __cnfn native_sin(float16 x);
9254
9255/**
9256 * Compute square root over an implementation-defined
9257 * range. The maximum error is implementation-defined.
9258 */
9259float __ovld __cnfn native_sqrt(float x);
9260float2 __ovld __cnfn native_sqrt(float2 x);
9261float3 __ovld __cnfn native_sqrt(float3 x);
9262float4 __ovld __cnfn native_sqrt(float4 x);
9263float8 __ovld __cnfn native_sqrt(float8 x);
9264float16 __ovld __cnfn native_sqrt(float16 x);
9265
9266/**
9267 * Compute tangent over an implementation-defined range.
9268 * The maximum error is implementation-defined.
9269 */
9270float __ovld __cnfn native_tan(float x);
9271float2 __ovld __cnfn native_tan(float2 x);
9272float3 __ovld __cnfn native_tan(float3 x);
9273float4 __ovld __cnfn native_tan(float4 x);
9274float8 __ovld __cnfn native_tan(float8 x);
9275float16 __ovld __cnfn native_tan(float16 x);
9276
9277// OpenCL v1.1 s6.11.3, v1.2 s6.12.3, v2.0 s6.13.3 - Integer Functions
9278
9279/**
9280 * Returns | x |.
9281 */
9282uchar __ovld __cnfn abs(char x);
9283uchar __ovld __cnfn abs(uchar x);
9284uchar2 __ovld __cnfn abs(char2 x);
9285uchar2 __ovld __cnfn abs(uchar2 x);
9286uchar3 __ovld __cnfn abs(char3 x);
9287uchar3 __ovld __cnfn abs(uchar3 x);
9288uchar4 __ovld __cnfn abs(char4 x);
9289uchar4 __ovld __cnfn abs(uchar4 x);
9290uchar8 __ovld __cnfn abs(char8 x);
9291uchar8 __ovld __cnfn abs(uchar8 x);
9292uchar16 __ovld __cnfn abs(char16 x);
9293uchar16 __ovld __cnfn abs(uchar16 x);
9294ushort __ovld __cnfn abs(short x);
9295ushort __ovld __cnfn abs(ushort x);
9296ushort2 __ovld __cnfn abs(short2 x);
9297ushort2 __ovld __cnfn abs(ushort2 x);
9298ushort3 __ovld __cnfn abs(short3 x);
9299ushort3 __ovld __cnfn abs(ushort3 x);
9300ushort4 __ovld __cnfn abs(short4 x);
9301ushort4 __ovld __cnfn abs(ushort4 x);
9302ushort8 __ovld __cnfn abs(short8 x);
9303ushort8 __ovld __cnfn abs(ushort8 x);
9304ushort16 __ovld __cnfn abs(short16 x);
9305ushort16 __ovld __cnfn abs(ushort16 x);
9306uint __ovld __cnfn abs(int x);
9307uint __ovld __cnfn abs(uint x);
9308uint2 __ovld __cnfn abs(int2 x);
9309uint2 __ovld __cnfn abs(uint2 x);
9310uint3 __ovld __cnfn abs(int3 x);
9311uint3 __ovld __cnfn abs(uint3 x);
9312uint4 __ovld __cnfn abs(int4 x);
9313uint4 __ovld __cnfn abs(uint4 x);
9314uint8 __ovld __cnfn abs(int8 x);
9315uint8 __ovld __cnfn abs(uint8 x);
9316uint16 __ovld __cnfn abs(int16 x);
9317uint16 __ovld __cnfn abs(uint16 x);
9318ulong __ovld __cnfn abs(long x);
9319ulong __ovld __cnfn abs(ulong x);
9320ulong2 __ovld __cnfn abs(long2 x);
9321ulong2 __ovld __cnfn abs(ulong2 x);
9322ulong3 __ovld __cnfn abs(long3 x);
9323ulong3 __ovld __cnfn abs(ulong3 x);
9324ulong4 __ovld __cnfn abs(long4 x);
9325ulong4 __ovld __cnfn abs(ulong4 x);
9326ulong8 __ovld __cnfn abs(long8 x);
9327ulong8 __ovld __cnfn abs(ulong8 x);
9328ulong16 __ovld __cnfn abs(long16 x);
9329ulong16 __ovld __cnfn abs(ulong16 x);
9330
9331/**
9332 * Returns | x - y | without modulo overflow.
9333 */
9334uchar __ovld __cnfn abs_diff(char x, char y);
9335uchar __ovld __cnfn abs_diff(uchar x, uchar y);
9336uchar2 __ovld __cnfn abs_diff(char2 x, char2 y);
9337uchar2 __ovld __cnfn abs_diff(uchar2 x, uchar2 y);
9338uchar3 __ovld __cnfn abs_diff(char3 x, char3 y);
9339uchar3 __ovld __cnfn abs_diff(uchar3 x, uchar3 y);
9340uchar4 __ovld __cnfn abs_diff(char4 x, char4 y);
9341uchar4 __ovld __cnfn abs_diff(uchar4 x, uchar4 y);
9342uchar8 __ovld __cnfn abs_diff(char8 x, char8 y);
9343uchar8 __ovld __cnfn abs_diff(uchar8 x, uchar8 y);
9344uchar16 __ovld __cnfn abs_diff(char16 x, char16 y);
9345uchar16 __ovld __cnfn abs_diff(uchar16 x, uchar16 y);
9346ushort __ovld __cnfn abs_diff(short x, short y);
9347ushort __ovld __cnfn abs_diff(ushort x, ushort y);
9348ushort2 __ovld __cnfn abs_diff(short2 x, short2 y);
9349ushort2 __ovld __cnfn abs_diff(ushort2 x, ushort2 y);
9350ushort3 __ovld __cnfn abs_diff(short3 x, short3 y);
9351ushort3 __ovld __cnfn abs_diff(ushort3 x, ushort3 y);
9352ushort4 __ovld __cnfn abs_diff(short4 x, short4 y);
9353ushort4 __ovld __cnfn abs_diff(ushort4 x, ushort4 y);
9354ushort8 __ovld __cnfn abs_diff(short8 x, short8 y);
9355ushort8 __ovld __cnfn abs_diff(ushort8 x, ushort8 y);
9356ushort16 __ovld __cnfn abs_diff(short16 x, short16 y);
9357ushort16 __ovld __cnfn abs_diff(ushort16 x, ushort16 y);
9358uint __ovld __cnfn abs_diff(int x, int y);
9359uint __ovld __cnfn abs_diff(uint x, uint y);
9360uint2 __ovld __cnfn abs_diff(int2 x, int2 y);
9361uint2 __ovld __cnfn abs_diff(uint2 x, uint2 y);
9362uint3 __ovld __cnfn abs_diff(int3 x, int3 y);
9363uint3 __ovld __cnfn abs_diff(uint3 x, uint3 y);
9364uint4 __ovld __cnfn abs_diff(int4 x, int4 y);
9365uint4 __ovld __cnfn abs_diff(uint4 x, uint4 y);
9366uint8 __ovld __cnfn abs_diff(int8 x, int8 y);
9367uint8 __ovld __cnfn abs_diff(uint8 x, uint8 y);
9368uint16 __ovld __cnfn abs_diff(int16 x, int16 y);
9369uint16 __ovld __cnfn abs_diff(uint16 x, uint16 y);
9370ulong __ovld __cnfn abs_diff(long x, long y);
9371ulong __ovld __cnfn abs_diff(ulong x, ulong y);
9372ulong2 __ovld __cnfn abs_diff(long2 x, long2 y);
9373ulong2 __ovld __cnfn abs_diff(ulong2 x, ulong2 y);
9374ulong3 __ovld __cnfn abs_diff(long3 x, long3 y);
9375ulong3 __ovld __cnfn abs_diff(ulong3 x, ulong3 y);
9376ulong4 __ovld __cnfn abs_diff(long4 x, long4 y);
9377ulong4 __ovld __cnfn abs_diff(ulong4 x, ulong4 y);
9378ulong8 __ovld __cnfn abs_diff(long8 x, long8 y);
9379ulong8 __ovld __cnfn abs_diff(ulong8 x, ulong8 y);
9380ulong16 __ovld __cnfn abs_diff(long16 x, long16 y);
9381ulong16 __ovld __cnfn abs_diff(ulong16 x, ulong16 y);
9382
9383/**
9384 * Returns x + y and saturates the result.
9385 */
9386char __ovld __cnfn add_sat(char x, char y);
9387uchar __ovld __cnfn add_sat(uchar x, uchar y);
9388char2 __ovld __cnfn add_sat(char2 x, char2 y);
9389uchar2 __ovld __cnfn add_sat(uchar2 x, uchar2 y);
9390char3 __ovld __cnfn add_sat(char3 x, char3 y);
9391uchar3 __ovld __cnfn add_sat(uchar3 x, uchar3 y);
9392char4 __ovld __cnfn add_sat(char4 x, char4 y);
9393uchar4 __ovld __cnfn add_sat(uchar4 x, uchar4 y);
9394char8 __ovld __cnfn add_sat(char8 x, char8 y);
9395uchar8 __ovld __cnfn add_sat(uchar8 x, uchar8 y);
9396char16 __ovld __cnfn add_sat(char16 x, char16 y);
9397uchar16 __ovld __cnfn add_sat(uchar16 x, uchar16 y);
9398short __ovld __cnfn add_sat(short x, short y);
9399ushort __ovld __cnfn add_sat(ushort x, ushort y);
9400short2 __ovld __cnfn add_sat(short2 x, short2 y);
9401ushort2 __ovld __cnfn add_sat(ushort2 x, ushort2 y);
9402short3 __ovld __cnfn add_sat(short3 x, short3 y);
9403ushort3 __ovld __cnfn add_sat(ushort3 x, ushort3 y);
9404short4 __ovld __cnfn add_sat(short4 x, short4 y);
9405ushort4 __ovld __cnfn add_sat(ushort4 x, ushort4 y);
9406short8 __ovld __cnfn add_sat(short8 x, short8 y);
9407ushort8 __ovld __cnfn add_sat(ushort8 x, ushort8 y);
9408short16 __ovld __cnfn add_sat(short16 x, short16 y);
9409ushort16 __ovld __cnfn add_sat(ushort16 x, ushort16 y);
9410int __ovld __cnfn add_sat(int x, int y);
9411uint __ovld __cnfn add_sat(uint x, uint y);
9412int2 __ovld __cnfn add_sat(int2 x, int2 y);
9413uint2 __ovld __cnfn add_sat(uint2 x, uint2 y);
9414int3 __ovld __cnfn add_sat(int3 x, int3 y);
9415uint3 __ovld __cnfn add_sat(uint3 x, uint3 y);
9416int4 __ovld __cnfn add_sat(int4 x, int4 y);
9417uint4 __ovld __cnfn add_sat(uint4 x, uint4 y);
9418int8 __ovld __cnfn add_sat(int8 x, int8 y);
9419uint8 __ovld __cnfn add_sat(uint8 x, uint8 y);
9420int16 __ovld __cnfn add_sat(int16 x, int16 y);
9421uint16 __ovld __cnfn add_sat(uint16 x, uint16 y);
9422long __ovld __cnfn add_sat(long x, long y);
9423ulong __ovld __cnfn add_sat(ulong x, ulong y);
9424long2 __ovld __cnfn add_sat(long2 x, long2 y);
9425ulong2 __ovld __cnfn add_sat(ulong2 x, ulong2 y);
9426long3 __ovld __cnfn add_sat(long3 x, long3 y);
9427ulong3 __ovld __cnfn add_sat(ulong3 x, ulong3 y);
9428long4 __ovld __cnfn add_sat(long4 x, long4 y);
9429ulong4 __ovld __cnfn add_sat(ulong4 x, ulong4 y);
9430long8 __ovld __cnfn add_sat(long8 x, long8 y);
9431ulong8 __ovld __cnfn add_sat(ulong8 x, ulong8 y);
9432long16 __ovld __cnfn add_sat(long16 x, long16 y);
9433ulong16 __ovld __cnfn add_sat(ulong16 x, ulong16 y);
9434
9435/**
9436 * Returns (x + y) >> 1. The intermediate sum does
9437 * not modulo overflow.
9438 */
9439char __ovld __cnfn hadd(char x, char y);
9440uchar __ovld __cnfn hadd(uchar x, uchar y);
9441char2 __ovld __cnfn hadd(char2 x, char2 y);
9442uchar2 __ovld __cnfn hadd(uchar2 x, uchar2 y);
9443char3 __ovld __cnfn hadd(char3 x, char3 y);
9444uchar3 __ovld __cnfn hadd(uchar3 x, uchar3 y);
9445char4 __ovld __cnfn hadd(char4 x, char4 y);
9446uchar4 __ovld __cnfn hadd(uchar4 x, uchar4 y);
9447char8 __ovld __cnfn hadd(char8 x, char8 y);
9448uchar8 __ovld __cnfn hadd(uchar8 x, uchar8 y);
9449char16 __ovld __cnfn hadd(char16 x, char16 y);
9450uchar16 __ovld __cnfn hadd(uchar16 x, uchar16 y);
9451short __ovld __cnfn hadd(short x, short y);
9452ushort __ovld __cnfn hadd(ushort x, ushort y);
9453short2 __ovld __cnfn hadd(short2 x, short2 y);
9454ushort2 __ovld __cnfn hadd(ushort2 x, ushort2 y);
9455short3 __ovld __cnfn hadd(short3 x, short3 y);
9456ushort3 __ovld __cnfn hadd(ushort3 x, ushort3 y);
9457short4 __ovld __cnfn hadd(short4 x, short4 y);
9458ushort4 __ovld __cnfn hadd(ushort4 x, ushort4 y);
9459short8 __ovld __cnfn hadd(short8 x, short8 y);
9460ushort8 __ovld __cnfn hadd(ushort8 x, ushort8 y);
9461short16 __ovld __cnfn hadd(short16 x, short16 y);
9462ushort16 __ovld __cnfn hadd(ushort16 x, ushort16 y);
9463int __ovld __cnfn hadd(int x, int y);
9464uint __ovld __cnfn hadd(uint x, uint y);
9465int2 __ovld __cnfn hadd(int2 x, int2 y);
9466uint2 __ovld __cnfn hadd(uint2 x, uint2 y);
9467int3 __ovld __cnfn hadd(int3 x, int3 y);
9468uint3 __ovld __cnfn hadd(uint3 x, uint3 y);
9469int4 __ovld __cnfn hadd(int4 x, int4 y);
9470uint4 __ovld __cnfn hadd(uint4 x, uint4 y);
9471int8 __ovld __cnfn hadd(int8 x, int8 y);
9472uint8 __ovld __cnfn hadd(uint8 x, uint8 y);
9473int16 __ovld __cnfn hadd(int16 x, int16 y);
9474uint16 __ovld __cnfn hadd(uint16 x, uint16 y);
9475long __ovld __cnfn hadd(long x, long y);
9476ulong __ovld __cnfn hadd(ulong x, ulong y);
9477long2 __ovld __cnfn hadd(long2 x, long2 y);
9478ulong2 __ovld __cnfn hadd(ulong2 x, ulong2 y);
9479long3 __ovld __cnfn hadd(long3 x, long3 y);
9480ulong3 __ovld __cnfn hadd(ulong3 x, ulong3 y);
9481long4 __ovld __cnfn hadd(long4 x, long4 y);
9482ulong4 __ovld __cnfn hadd(ulong4 x, ulong4 y);
9483long8 __ovld __cnfn hadd(long8 x, long8 y);
9484ulong8 __ovld __cnfn hadd(ulong8 x, ulong8 y);
9485long16 __ovld __cnfn hadd(long16 x, long16 y);
9486ulong16 __ovld __cnfn hadd(ulong16 x, ulong16 y);
9487
9488/**
9489 * Returns (x + y + 1) >> 1. The intermediate sum
9490 * does not modulo overflow.
9491 */
9492char __ovld __cnfn rhadd(char x, char y);
9493uchar __ovld __cnfn rhadd(uchar x, uchar y);
9494char2 __ovld __cnfn rhadd(char2 x, char2 y);
9495uchar2 __ovld __cnfn rhadd(uchar2 x, uchar2 y);
9496char3 __ovld __cnfn rhadd(char3 x, char3 y);
9497uchar3 __ovld __cnfn rhadd(uchar3 x, uchar3 y);
9498char4 __ovld __cnfn rhadd(char4 x, char4 y);
9499uchar4 __ovld __cnfn rhadd(uchar4 x, uchar4 y);
9500char8 __ovld __cnfn rhadd(char8 x, char8 y);
9501uchar8 __ovld __cnfn rhadd(uchar8 x, uchar8 y);
9502char16 __ovld __cnfn rhadd(char16 x, char16 y);
9503uchar16 __ovld __cnfn rhadd(uchar16 x, uchar16 y);
9504short __ovld __cnfn rhadd(short x, short y);
9505ushort __ovld __cnfn rhadd(ushort x, ushort y);
9506short2 __ovld __cnfn rhadd(short2 x, short2 y);
9507ushort2 __ovld __cnfn rhadd(ushort2 x, ushort2 y);
9508short3 __ovld __cnfn rhadd(short3 x, short3 y);
9509ushort3 __ovld __cnfn rhadd(ushort3 x, ushort3 y);
9510short4 __ovld __cnfn rhadd(short4 x, short4 y);
9511ushort4 __ovld __cnfn rhadd(ushort4 x, ushort4 y);
9512short8 __ovld __cnfn rhadd(short8 x, short8 y);
9513ushort8 __ovld __cnfn rhadd(ushort8 x, ushort8 y);
9514short16 __ovld __cnfn rhadd(short16 x, short16 y);
9515ushort16 __ovld __cnfn rhadd(ushort16 x, ushort16 y);
9516int __ovld __cnfn rhadd(int x, int y);
9517uint __ovld __cnfn rhadd(uint x, uint y);
9518int2 __ovld __cnfn rhadd(int2 x, int2 y);
9519uint2 __ovld __cnfn rhadd(uint2 x, uint2 y);
9520int3 __ovld __cnfn rhadd(int3 x, int3 y);
9521uint3 __ovld __cnfn rhadd(uint3 x, uint3 y);
9522int4 __ovld __cnfn rhadd(int4 x, int4 y);
9523uint4 __ovld __cnfn rhadd(uint4 x, uint4 y);
9524int8 __ovld __cnfn rhadd(int8 x, int8 y);
9525uint8 __ovld __cnfn rhadd(uint8 x, uint8 y);
9526int16 __ovld __cnfn rhadd(int16 x, int16 y);
9527uint16 __ovld __cnfn rhadd(uint16 x, uint16 y);
9528long __ovld __cnfn rhadd(long x, long y);
9529ulong __ovld __cnfn rhadd(ulong x, ulong y);
9530long2 __ovld __cnfn rhadd(long2 x, long2 y);
9531ulong2 __ovld __cnfn rhadd(ulong2 x, ulong2 y);
9532long3 __ovld __cnfn rhadd(long3 x, long3 y);
9533ulong3 __ovld __cnfn rhadd(ulong3 x, ulong3 y);
9534long4 __ovld __cnfn rhadd(long4 x, long4 y);
9535ulong4 __ovld __cnfn rhadd(ulong4 x, ulong4 y);
9536long8 __ovld __cnfn rhadd(long8 x, long8 y);
9537ulong8 __ovld __cnfn rhadd(ulong8 x, ulong8 y);
9538long16 __ovld __cnfn rhadd(long16 x, long16 y);
9539ulong16 __ovld __cnfn rhadd(ulong16 x, ulong16 y);
9540
9541/**
9542 * Returns min(max(x, minval), maxval).
9543 * Results are undefined if minval > maxval.
9544 */
9545char __ovld __cnfn clamp(char x, char minval, char maxval);
9546uchar __ovld __cnfn clamp(uchar x, uchar minval, uchar maxval);
9547char2 __ovld __cnfn clamp(char2 x, char2 minval, char2 maxval);
9548uchar2 __ovld __cnfn clamp(uchar2 x, uchar2 minval, uchar2 maxval);
9549char3 __ovld __cnfn clamp(char3 x, char3 minval, char3 maxval);
9550uchar3 __ovld __cnfn clamp(uchar3 x, uchar3 minval, uchar3 maxval);
9551char4 __ovld __cnfn clamp(char4 x, char4 minval, char4 maxval);
9552uchar4 __ovld __cnfn clamp(uchar4 x, uchar4 minval, uchar4 maxval);
9553char8 __ovld __cnfn clamp(char8 x, char8 minval, char8 maxval);
9554uchar8 __ovld __cnfn clamp(uchar8 x, uchar8 minval, uchar8 maxval);
9555char16 __ovld __cnfn clamp(char16 x, char16 minval, char16 maxval);
9556uchar16 __ovld __cnfn clamp(uchar16 x, uchar16 minval, uchar16 maxval);
9557short __ovld __cnfn clamp(short x, short minval, short maxval);
9558ushort __ovld __cnfn clamp(ushort x, ushort minval, ushort maxval);
9559short2 __ovld __cnfn clamp(short2 x, short2 minval, short2 maxval);
9560ushort2 __ovld __cnfn clamp(ushort2 x, ushort2 minval, ushort2 maxval);
9561short3 __ovld __cnfn clamp(short3 x, short3 minval, short3 maxval);
9562ushort3 __ovld __cnfn clamp(ushort3 x, ushort3 minval, ushort3 maxval);
9563short4 __ovld __cnfn clamp(short4 x, short4 minval, short4 maxval);
9564ushort4 __ovld __cnfn clamp(ushort4 x, ushort4 minval, ushort4 maxval);
9565short8 __ovld __cnfn clamp(short8 x, short8 minval, short8 maxval);
9566ushort8 __ovld __cnfn clamp(ushort8 x, ushort8 minval, ushort8 maxval);
9567short16 __ovld __cnfn clamp(short16 x, short16 minval, short16 maxval);
9568ushort16 __ovld __cnfn clamp(ushort16 x, ushort16 minval, ushort16 maxval);
9569int __ovld __cnfn clamp(int x, int minval, int maxval);
9570uint __ovld __cnfn clamp(uint x, uint minval, uint maxval);
9571int2 __ovld __cnfn clamp(int2 x, int2 minval, int2 maxval);
9572uint2 __ovld __cnfn clamp(uint2 x, uint2 minval, uint2 maxval);
9573int3 __ovld __cnfn clamp(int3 x, int3 minval, int3 maxval);
9574uint3 __ovld __cnfn clamp(uint3 x, uint3 minval, uint3 maxval);
9575int4 __ovld __cnfn clamp(int4 x, int4 minval, int4 maxval);
9576uint4 __ovld __cnfn clamp(uint4 x, uint4 minval, uint4 maxval);
9577int8 __ovld __cnfn clamp(int8 x, int8 minval, int8 maxval);
9578uint8 __ovld __cnfn clamp(uint8 x, uint8 minval, uint8 maxval);
9579int16 __ovld __cnfn clamp(int16 x, int16 minval, int16 maxval);
9580uint16 __ovld __cnfn clamp(uint16 x, uint16 minval, uint16 maxval);
9581long __ovld __cnfn clamp(long x, long minval, long maxval);
9582ulong __ovld __cnfn clamp(ulong x, ulong minval, ulong maxval);
9583long2 __ovld __cnfn clamp(long2 x, long2 minval, long2 maxval);
9584ulong2 __ovld __cnfn clamp(ulong2 x, ulong2 minval, ulong2 maxval);
9585long3 __ovld __cnfn clamp(long3 x, long3 minval, long3 maxval);
9586ulong3 __ovld __cnfn clamp(ulong3 x, ulong3 minval, ulong3 maxval);
9587long4 __ovld __cnfn clamp(long4 x, long4 minval, long4 maxval);
9588ulong4 __ovld __cnfn clamp(ulong4 x, ulong4 minval, ulong4 maxval);
9589long8 __ovld __cnfn clamp(long8 x, long8 minval, long8 maxval);
9590ulong8 __ovld __cnfn clamp(ulong8 x, ulong8 minval, ulong8 maxval);
9591long16 __ovld __cnfn clamp(long16 x, long16 minval, long16 maxval);
9592ulong16 __ovld __cnfn clamp(ulong16 x, ulong16 minval, ulong16 maxval);
9593char __ovld __cnfn clamp(char x, char minval, char maxval);
9594uchar __ovld __cnfn clamp(uchar x, uchar minval, uchar maxval);
9595char2 __ovld __cnfn clamp(char2 x, char minval, char maxval);
9596uchar2 __ovld __cnfn clamp(uchar2 x, uchar minval, uchar maxval);
9597char3 __ovld __cnfn clamp(char3 x, char minval, char maxval);
9598uchar3 __ovld __cnfn clamp(uchar3 x, uchar minval, uchar maxval);
9599char4 __ovld __cnfn clamp(char4 x, char minval, char maxval);
9600uchar4 __ovld __cnfn clamp(uchar4 x, uchar minval, uchar maxval);
9601char8 __ovld __cnfn clamp(char8 x, char minval, char maxval);
9602uchar8 __ovld __cnfn clamp(uchar8 x, uchar minval, uchar maxval);
9603char16 __ovld __cnfn clamp(char16 x, char minval, char maxval);
9604uchar16 __ovld __cnfn clamp(uchar16 x, uchar minval, uchar maxval);
9605short __ovld __cnfn clamp(short x, short minval, short maxval);
9606ushort __ovld __cnfn clamp(ushort x, ushort minval, ushort maxval);
9607short2 __ovld __cnfn clamp(short2 x, short minval, short maxval);
9608ushort2 __ovld __cnfn clamp(ushort2 x, ushort minval, ushort maxval);
9609short3 __ovld __cnfn clamp(short3 x, short minval, short maxval);
9610ushort3 __ovld __cnfn clamp(ushort3 x, ushort minval, ushort maxval);
9611short4 __ovld __cnfn clamp(short4 x, short minval, short maxval);
9612ushort4 __ovld __cnfn clamp(ushort4 x, ushort minval, ushort maxval);
9613short8 __ovld __cnfn clamp(short8 x, short minval, short maxval);
9614ushort8 __ovld __cnfn clamp(ushort8 x, ushort minval, ushort maxval);
9615short16 __ovld __cnfn clamp(short16 x, short minval, short maxval);
9616ushort16 __ovld __cnfn clamp(ushort16 x, ushort minval, ushort maxval);
9617int __ovld __cnfn clamp(int x, int minval, int maxval);
9618uint __ovld __cnfn clamp(uint x, uint minval, uint maxval);
9619int2 __ovld __cnfn clamp(int2 x, int minval, int maxval);
9620uint2 __ovld __cnfn clamp(uint2 x, uint minval, uint maxval);
9621int3 __ovld __cnfn clamp(int3 x, int minval, int maxval);
9622uint3 __ovld __cnfn clamp(uint3 x, uint minval, uint maxval);
9623int4 __ovld __cnfn clamp(int4 x, int minval, int maxval);
9624uint4 __ovld __cnfn clamp(uint4 x, uint minval, uint maxval);
9625int8 __ovld __cnfn clamp(int8 x, int minval, int maxval);
9626uint8 __ovld __cnfn clamp(uint8 x, uint minval, uint maxval);
9627int16 __ovld __cnfn clamp(int16 x, int minval, int maxval);
9628uint16 __ovld __cnfn clamp(uint16 x, uint minval, uint maxval);
9629long __ovld __cnfn clamp(long x, long minval, long maxval);
9630ulong __ovld __cnfn clamp(ulong x, ulong minval, ulong maxval);
9631long2 __ovld __cnfn clamp(long2 x, long minval, long maxval);
9632ulong2 __ovld __cnfn clamp(ulong2 x, ulong minval, ulong maxval);
9633long3 __ovld __cnfn clamp(long3 x, long minval, long maxval);
9634ulong3 __ovld __cnfn clamp(ulong3 x, ulong minval, ulong maxval);
9635long4 __ovld __cnfn clamp(long4 x, long minval, long maxval);
9636ulong4 __ovld __cnfn clamp(ulong4 x, ulong minval, ulong maxval);
9637long8 __ovld __cnfn clamp(long8 x, long minval, long maxval);
9638ulong8 __ovld __cnfn clamp(ulong8 x, ulong minval, ulong maxval);
9639long16 __ovld __cnfn clamp(long16 x, long minval, long maxval);
9640ulong16 __ovld __cnfn clamp(ulong16 x, ulong minval, ulong maxval);
9641
9642/**
9643 * Returns the number of leading 0-bits in x, starting
9644 * at the most significant bit position.
9645 */
9646char __ovld __cnfn clz(char x);
9647uchar __ovld __cnfn clz(uchar x);
9648char2 __ovld __cnfn clz(char2 x);
9649uchar2 __ovld __cnfn clz(uchar2 x);
9650char3 __ovld __cnfn clz(char3 x);
9651uchar3 __ovld __cnfn clz(uchar3 x);
9652char4 __ovld __cnfn clz(char4 x);
9653uchar4 __ovld __cnfn clz(uchar4 x);
9654char8 __ovld __cnfn clz(char8 x);
9655uchar8 __ovld __cnfn clz(uchar8 x);
9656char16 __ovld __cnfn clz(char16 x);
9657uchar16 __ovld __cnfn clz(uchar16 x);
9658short __ovld __cnfn clz(short x);
9659ushort __ovld __cnfn clz(ushort x);
9660short2 __ovld __cnfn clz(short2 x);
9661ushort2 __ovld __cnfn clz(ushort2 x);
9662short3 __ovld __cnfn clz(short3 x);
9663ushort3 __ovld __cnfn clz(ushort3 x);
9664short4 __ovld __cnfn clz(short4 x);
9665ushort4 __ovld __cnfn clz(ushort4 x);
9666short8 __ovld __cnfn clz(short8 x);
9667ushort8 __ovld __cnfn clz(ushort8 x);
9668short16 __ovld __cnfn clz(short16 x);
9669ushort16 __ovld __cnfn clz(ushort16 x);
9670int __ovld __cnfn clz(int x);
9671uint __ovld __cnfn clz(uint x);
9672int2 __ovld __cnfn clz(int2 x);
9673uint2 __ovld __cnfn clz(uint2 x);
9674int3 __ovld __cnfn clz(int3 x);
9675uint3 __ovld __cnfn clz(uint3 x);
9676int4 __ovld __cnfn clz(int4 x);
9677uint4 __ovld __cnfn clz(uint4 x);
9678int8 __ovld __cnfn clz(int8 x);
9679uint8 __ovld __cnfn clz(uint8 x);
9680int16 __ovld __cnfn clz(int16 x);
9681uint16 __ovld __cnfn clz(uint16 x);
9682long __ovld __cnfn clz(long x);
9683ulong __ovld __cnfn clz(ulong x);
9684long2 __ovld __cnfn clz(long2 x);
9685ulong2 __ovld __cnfn clz(ulong2 x);
9686long3 __ovld __cnfn clz(long3 x);
9687ulong3 __ovld __cnfn clz(ulong3 x);
9688long4 __ovld __cnfn clz(long4 x);
9689ulong4 __ovld __cnfn clz(ulong4 x);
9690long8 __ovld __cnfn clz(long8 x);
9691ulong8 __ovld __cnfn clz(ulong8 x);
9692long16 __ovld __cnfn clz(long16 x);
9693ulong16 __ovld __cnfn clz(ulong16 x);
9694
9695/**
9696 * Returns the count of trailing 0-bits in x. If x is 0,
9697 * returns the size in bits of the type of x or
9698 * component type of x, if x is a vector.
9699 */
9700#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
9701char __ovld ctz(char x);
9702uchar __ovld ctz(uchar x);
9703char2 __ovld ctz(char2 x);
9704uchar2 __ovld ctz(uchar2 x);
9705char3 __ovld ctz(char3 x);
9706uchar3 __ovld ctz(uchar3 x);
9707char4 __ovld ctz(char4 x);
9708uchar4 __ovld ctz(uchar4 x);
9709char8 __ovld ctz(char8 x);
9710uchar8 __ovld ctz(uchar8 x);
9711char16 __ovld ctz(char16 x);
9712uchar16 __ovld ctz(uchar16 x);
9713short __ovld ctz(short x);
9714ushort __ovld ctz(ushort x);
9715short2 __ovld ctz(short2 x);
9716ushort2 __ovld ctz(ushort2 x);
9717short3 __ovld ctz(short3 x);
9718ushort3 __ovld ctz(ushort3 x);
9719short4 __ovld ctz(short4 x);
9720ushort4 __ovld ctz(ushort4 x);
9721short8 __ovld ctz(short8 x);
9722ushort8 __ovld ctz(ushort8 x);
9723short16 __ovld ctz(short16 x);
9724ushort16 __ovld ctz(ushort16 x);
9725int __ovld ctz(int x);
9726uint __ovld ctz(uint x);
9727int2 __ovld ctz(int2 x);
9728uint2 __ovld ctz(uint2 x);
9729int3 __ovld ctz(int3 x);
9730uint3 __ovld ctz(uint3 x);
9731int4 __ovld ctz(int4 x);
9732uint4 __ovld ctz(uint4 x);
9733int8 __ovld ctz(int8 x);
9734uint8 __ovld ctz(uint8 x);
9735int16 __ovld ctz(int16 x);
9736uint16 __ovld ctz(uint16 x);
9737long __ovld ctz(long x);
9738ulong __ovld ctz(ulong x);
9739long2 __ovld ctz(long2 x);
9740ulong2 __ovld ctz(ulong2 x);
9741long3 __ovld ctz(long3 x);
9742ulong3 __ovld ctz(ulong3 x);
9743long4 __ovld ctz(long4 x);
9744ulong4 __ovld ctz(ulong4 x);
9745long8 __ovld ctz(long8 x);
9746ulong8 __ovld ctz(ulong8 x);
9747long16 __ovld ctz(long16 x);
9748ulong16 __ovld ctz(ulong16 x);
9749#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
9750
9751/**
9752 * Returns mul_hi(a, b) + c.
9753 */
9754char __ovld __cnfn mad_hi(char a, char b, char c);
9755uchar __ovld __cnfn mad_hi(uchar a, uchar b, uchar c);
9756char2 __ovld __cnfn mad_hi(char2 a, char2 b, char2 c);
9757uchar2 __ovld __cnfn mad_hi(uchar2 a, uchar2 b, uchar2 c);
9758char3 __ovld __cnfn mad_hi(char3 a, char3 b, char3 c);
9759uchar3 __ovld __cnfn mad_hi(uchar3 a, uchar3 b, uchar3 c);
9760char4 __ovld __cnfn mad_hi(char4 a, char4 b, char4 c);
9761uchar4 __ovld __cnfn mad_hi(uchar4 a, uchar4 b, uchar4 c);
9762char8 __ovld __cnfn mad_hi(char8 a, char8 b, char8 c);
9763uchar8 __ovld __cnfn mad_hi(uchar8 a, uchar8 b, uchar8 c);
9764char16 __ovld __cnfn mad_hi(char16 a, char16 b, char16 c);
9765uchar16 __ovld __cnfn mad_hi(uchar16 a, uchar16 b, uchar16 c);
9766short __ovld __cnfn mad_hi(short a, short b, short c);
9767ushort __ovld __cnfn mad_hi(ushort a, ushort b, ushort c);
9768short2 __ovld __cnfn mad_hi(short2 a, short2 b, short2 c);
9769ushort2 __ovld __cnfn mad_hi(ushort2 a, ushort2 b, ushort2 c);
9770short3 __ovld __cnfn mad_hi(short3 a, short3 b, short3 c);
9771ushort3 __ovld __cnfn mad_hi(ushort3 a, ushort3 b, ushort3 c);
9772short4 __ovld __cnfn mad_hi(short4 a, short4 b, short4 c);
9773ushort4 __ovld __cnfn mad_hi(ushort4 a, ushort4 b, ushort4 c);
9774short8 __ovld __cnfn mad_hi(short8 a, short8 b, short8 c);
9775ushort8 __ovld __cnfn mad_hi(ushort8 a, ushort8 b, ushort8 c);
9776short16 __ovld __cnfn mad_hi(short16 a, short16 b, short16 c);
9777ushort16 __ovld __cnfn mad_hi(ushort16 a, ushort16 b, ushort16 c);
9778int __ovld __cnfn mad_hi(int a, int b, int c);
9779uint __ovld __cnfn mad_hi(uint a, uint b, uint c);
9780int2 __ovld __cnfn mad_hi(int2 a, int2 b, int2 c);
9781uint2 __ovld __cnfn mad_hi(uint2 a, uint2 b, uint2 c);
9782int3 __ovld __cnfn mad_hi(int3 a, int3 b, int3 c);
9783uint3 __ovld __cnfn mad_hi(uint3 a, uint3 b, uint3 c);
9784int4 __ovld __cnfn mad_hi(int4 a, int4 b, int4 c);
9785uint4 __ovld __cnfn mad_hi(uint4 a, uint4 b, uint4 c);
9786int8 __ovld __cnfn mad_hi(int8 a, int8 b, int8 c);
9787uint8 __ovld __cnfn mad_hi(uint8 a, uint8 b, uint8 c);
9788int16 __ovld __cnfn mad_hi(int16 a, int16 b, int16 c);
9789uint16 __ovld __cnfn mad_hi(uint16 a, uint16 b, uint16 c);
9790long __ovld __cnfn mad_hi(long a, long b, long c);
9791ulong __ovld __cnfn mad_hi(ulong a, ulong b, ulong c);
9792long2 __ovld __cnfn mad_hi(long2 a, long2 b, long2 c);
9793ulong2 __ovld __cnfn mad_hi(ulong2 a, ulong2 b, ulong2 c);
9794long3 __ovld __cnfn mad_hi(long3 a, long3 b, long3 c);
9795ulong3 __ovld __cnfn mad_hi(ulong3 a, ulong3 b, ulong3 c);
9796long4 __ovld __cnfn mad_hi(long4 a, long4 b, long4 c);
9797ulong4 __ovld __cnfn mad_hi(ulong4 a, ulong4 b, ulong4 c);
9798long8 __ovld __cnfn mad_hi(long8 a, long8 b, long8 c);
9799ulong8 __ovld __cnfn mad_hi(ulong8 a, ulong8 b, ulong8 c);
9800long16 __ovld __cnfn mad_hi(long16 a, long16 b, long16 c);
9801ulong16 __ovld __cnfn mad_hi(ulong16 a, ulong16 b, ulong16 c);
9802
9803/**
9804 * Returns a * b + c and saturates the result.
9805 */
9806char __ovld __cnfn mad_sat(char a, char b, char c);
9807uchar __ovld __cnfn mad_sat(uchar a, uchar b, uchar c);
9808char2 __ovld __cnfn mad_sat(char2 a, char2 b, char2 c);
9809uchar2 __ovld __cnfn mad_sat(uchar2 a, uchar2 b, uchar2 c);
9810char3 __ovld __cnfn mad_sat(char3 a, char3 b, char3 c);
9811uchar3 __ovld __cnfn mad_sat(uchar3 a, uchar3 b, uchar3 c);
9812char4 __ovld __cnfn mad_sat(char4 a, char4 b, char4 c);
9813uchar4 __ovld __cnfn mad_sat(uchar4 a, uchar4 b, uchar4 c);
9814char8 __ovld __cnfn mad_sat(char8 a, char8 b, char8 c);
9815uchar8 __ovld __cnfn mad_sat(uchar8 a, uchar8 b, uchar8 c);
9816char16 __ovld __cnfn mad_sat(char16 a, char16 b, char16 c);
9817uchar16 __ovld __cnfn mad_sat(uchar16 a, uchar16 b, uchar16 c);
9818short __ovld __cnfn mad_sat(short a, short b, short c);
9819ushort __ovld __cnfn mad_sat(ushort a, ushort b, ushort c);
9820short2 __ovld __cnfn mad_sat(short2 a, short2 b, short2 c);
9821ushort2 __ovld __cnfn mad_sat(ushort2 a, ushort2 b, ushort2 c);
9822short3 __ovld __cnfn mad_sat(short3 a, short3 b, short3 c);
9823ushort3 __ovld __cnfn mad_sat(ushort3 a, ushort3 b, ushort3 c);
9824short4 __ovld __cnfn mad_sat(short4 a, short4 b, short4 c);
9825ushort4 __ovld __cnfn mad_sat(ushort4 a, ushort4 b, ushort4 c);
9826short8 __ovld __cnfn mad_sat(short8 a, short8 b, short8 c);
9827ushort8 __ovld __cnfn mad_sat(ushort8 a, ushort8 b, ushort8 c);
9828short16 __ovld __cnfn mad_sat(short16 a, short16 b, short16 c);
9829ushort16 __ovld __cnfn mad_sat(ushort16 a, ushort16 b, ushort16 c);
9830int __ovld __cnfn mad_sat(int a, int b, int c);
9831uint __ovld __cnfn mad_sat(uint a, uint b, uint c);
9832int2 __ovld __cnfn mad_sat(int2 a, int2 b, int2 c);
9833uint2 __ovld __cnfn mad_sat(uint2 a, uint2 b, uint2 c);
9834int3 __ovld __cnfn mad_sat(int3 a, int3 b, int3 c);
9835uint3 __ovld __cnfn mad_sat(uint3 a, uint3 b, uint3 c);
9836int4 __ovld __cnfn mad_sat(int4 a, int4 b, int4 c);
9837uint4 __ovld __cnfn mad_sat(uint4 a, uint4 b, uint4 c);
9838int8 __ovld __cnfn mad_sat(int8 a, int8 b, int8 c);
9839uint8 __ovld __cnfn mad_sat(uint8 a, uint8 b, uint8 c);
9840int16 __ovld __cnfn mad_sat(int16 a, int16 b, int16 c);
9841uint16 __ovld __cnfn mad_sat(uint16 a, uint16 b, uint16 c);
9842long __ovld __cnfn mad_sat(long a, long b, long c);
9843ulong __ovld __cnfn mad_sat(ulong a, ulong b, ulong c);
9844long2 __ovld __cnfn mad_sat(long2 a, long2 b, long2 c);
9845ulong2 __ovld __cnfn mad_sat(ulong2 a, ulong2 b, ulong2 c);
9846long3 __ovld __cnfn mad_sat(long3 a, long3 b, long3 c);
9847ulong3 __ovld __cnfn mad_sat(ulong3 a, ulong3 b, ulong3 c);
9848long4 __ovld __cnfn mad_sat(long4 a, long4 b, long4 c);
9849ulong4 __ovld __cnfn mad_sat(ulong4 a, ulong4 b, ulong4 c);
9850long8 __ovld __cnfn mad_sat(long8 a, long8 b, long8 c);
9851ulong8 __ovld __cnfn mad_sat(ulong8 a, ulong8 b, ulong8 c);
9852long16 __ovld __cnfn mad_sat(long16 a, long16 b, long16 c);
9853ulong16 __ovld __cnfn mad_sat(ulong16 a, ulong16 b, ulong16 c);
9854
9855/**
9856 * Returns y if x < y, otherwise it returns x.
9857 */
9858char __ovld __cnfn max(char x, char y);
9859uchar __ovld __cnfn max(uchar x, uchar y);
9860char2 __ovld __cnfn max(char2 x, char2 y);
9861uchar2 __ovld __cnfn max(uchar2 x, uchar2 y);
9862char3 __ovld __cnfn max(char3 x, char3 y);
9863uchar3 __ovld __cnfn max(uchar3 x, uchar3 y);
9864char4 __ovld __cnfn max(char4 x, char4 y);
9865uchar4 __ovld __cnfn max(uchar4 x, uchar4 y);
9866char8 __ovld __cnfn max(char8 x, char8 y);
9867uchar8 __ovld __cnfn max(uchar8 x, uchar8 y);
9868char16 __ovld __cnfn max(char16 x, char16 y);
9869uchar16 __ovld __cnfn max(uchar16 x, uchar16 y);
9870short __ovld __cnfn max(short x, short y);
9871ushort __ovld __cnfn max(ushort x, ushort y);
9872short2 __ovld __cnfn max(short2 x, short2 y);
9873ushort2 __ovld __cnfn max(ushort2 x, ushort2 y);
9874short3 __ovld __cnfn max(short3 x, short3 y);
9875ushort3 __ovld __cnfn max(ushort3 x, ushort3 y);
9876short4 __ovld __cnfn max(short4 x, short4 y);
9877ushort4 __ovld __cnfn max(ushort4 x, ushort4 y);
9878short8 __ovld __cnfn max(short8 x, short8 y);
9879ushort8 __ovld __cnfn max(ushort8 x, ushort8 y);
9880short16 __ovld __cnfn max(short16 x, short16 y);
9881ushort16 __ovld __cnfn max(ushort16 x, ushort16 y);
9882int __ovld __cnfn max(int x, int y);
9883uint __ovld __cnfn max(uint x, uint y);
9884int2 __ovld __cnfn max(int2 x, int2 y);
9885uint2 __ovld __cnfn max(uint2 x, uint2 y);
9886int3 __ovld __cnfn max(int3 x, int3 y);
9887uint3 __ovld __cnfn max(uint3 x, uint3 y);
9888int4 __ovld __cnfn max(int4 x, int4 y);
9889uint4 __ovld __cnfn max(uint4 x, uint4 y);
9890int8 __ovld __cnfn max(int8 x, int8 y);
9891uint8 __ovld __cnfn max(uint8 x, uint8 y);
9892int16 __ovld __cnfn max(int16 x, int16 y);
9893uint16 __ovld __cnfn max(uint16 x, uint16 y);
9894long __ovld __cnfn max(long x, long y);
9895ulong __ovld __cnfn max(ulong x, ulong y);
9896long2 __ovld __cnfn max(long2 x, long2 y);
9897ulong2 __ovld __cnfn max(ulong2 x, ulong2 y);
9898long3 __ovld __cnfn max(long3 x, long3 y);
9899ulong3 __ovld __cnfn max(ulong3 x, ulong3 y);
9900long4 __ovld __cnfn max(long4 x, long4 y);
9901ulong4 __ovld __cnfn max(ulong4 x, ulong4 y);
9902long8 __ovld __cnfn max(long8 x, long8 y);
9903ulong8 __ovld __cnfn max(ulong8 x, ulong8 y);
9904long16 __ovld __cnfn max(long16 x, long16 y);
9905ulong16 __ovld __cnfn max(ulong16 x, ulong16 y);
9906char __ovld __cnfn max(char x, char y);
9907uchar __ovld __cnfn max(uchar x, uchar y);
9908char2 __ovld __cnfn max(char2 x, char y);
9909uchar2 __ovld __cnfn max(uchar2 x, uchar y);
9910char3 __ovld __cnfn max(char3 x, char y);
9911uchar3 __ovld __cnfn max(uchar3 x, uchar y);
9912char4 __ovld __cnfn max(char4 x, char y);
9913uchar4 __ovld __cnfn max(uchar4 x, uchar y);
9914char8 __ovld __cnfn max(char8 x, char y);
9915uchar8 __ovld __cnfn max(uchar8 x, uchar y);
9916char16 __ovld __cnfn max(char16 x, char y);
9917uchar16 __ovld __cnfn max(uchar16 x, uchar y);
9918short __ovld __cnfn max(short x, short y);
9919ushort __ovld __cnfn max(ushort x, ushort y);
9920short2 __ovld __cnfn max(short2 x, short y);
9921ushort2 __ovld __cnfn max(ushort2 x, ushort y);
9922short3 __ovld __cnfn max(short3 x, short y);
9923ushort3 __ovld __cnfn max(ushort3 x, ushort y);
9924short4 __ovld __cnfn max(short4 x, short y);
9925ushort4 __ovld __cnfn max(ushort4 x, ushort y);
9926short8 __ovld __cnfn max(short8 x, short y);
9927ushort8 __ovld __cnfn max(ushort8 x, ushort y);
9928short16 __ovld __cnfn max(short16 x, short y);
9929ushort16 __ovld __cnfn max(ushort16 x, ushort y);
9930int __ovld __cnfn max(int x, int y);
9931uint __ovld __cnfn max(uint x, uint y);
9932int2 __ovld __cnfn max(int2 x, int y);
9933uint2 __ovld __cnfn max(uint2 x, uint y);
9934int3 __ovld __cnfn max(int3 x, int y);
9935uint3 __ovld __cnfn max(uint3 x, uint y);
9936int4 __ovld __cnfn max(int4 x, int y);
9937uint4 __ovld __cnfn max(uint4 x, uint y);
9938int8 __ovld __cnfn max(int8 x, int y);
9939uint8 __ovld __cnfn max(uint8 x, uint y);
9940int16 __ovld __cnfn max(int16 x, int y);
9941uint16 __ovld __cnfn max(uint16 x, uint y);
9942long __ovld __cnfn max(long x, long y);
9943ulong __ovld __cnfn max(ulong x, ulong y);
9944long2 __ovld __cnfn max(long2 x, long y);
9945ulong2 __ovld __cnfn max(ulong2 x, ulong y);
9946long3 __ovld __cnfn max(long3 x, long y);
9947ulong3 __ovld __cnfn max(ulong3 x, ulong y);
9948long4 __ovld __cnfn max(long4 x, long y);
9949ulong4 __ovld __cnfn max(ulong4 x, ulong y);
9950long8 __ovld __cnfn max(long8 x, long y);
9951ulong8 __ovld __cnfn max(ulong8 x, ulong y);
9952long16 __ovld __cnfn max(long16 x, long y);
9953ulong16 __ovld __cnfn max(ulong16 x, ulong y);
9954
9955/**
9956 * Returns y if y < x, otherwise it returns x.
9957 */
9958char __ovld __cnfn min(char x, char y);
9959uchar __ovld __cnfn min(uchar x, uchar y);
9960char2 __ovld __cnfn min(char2 x, char2 y);
9961uchar2 __ovld __cnfn min(uchar2 x, uchar2 y);
9962char3 __ovld __cnfn min(char3 x, char3 y);
9963uchar3 __ovld __cnfn min(uchar3 x, uchar3 y);
9964char4 __ovld __cnfn min(char4 x, char4 y);
9965uchar4 __ovld __cnfn min(uchar4 x, uchar4 y);
9966char8 __ovld __cnfn min(char8 x, char8 y);
9967uchar8 __ovld __cnfn min(uchar8 x, uchar8 y);
9968char16 __ovld __cnfn min(char16 x, char16 y);
9969uchar16 __ovld __cnfn min(uchar16 x, uchar16 y);
9970short __ovld __cnfn min(short x, short y);
9971ushort __ovld __cnfn min(ushort x, ushort y);
9972short2 __ovld __cnfn min(short2 x, short2 y);
9973ushort2 __ovld __cnfn min(ushort2 x, ushort2 y);
9974short3 __ovld __cnfn min(short3 x, short3 y);
9975ushort3 __ovld __cnfn min(ushort3 x, ushort3 y);
9976short4 __ovld __cnfn min(short4 x, short4 y);
9977ushort4 __ovld __cnfn min(ushort4 x, ushort4 y);
9978short8 __ovld __cnfn min(short8 x, short8 y);
9979ushort8 __ovld __cnfn min(ushort8 x, ushort8 y);
9980short16 __ovld __cnfn min(short16 x, short16 y);
9981ushort16 __ovld __cnfn min(ushort16 x, ushort16 y);
9982int __ovld __cnfn min(int x, int y);
9983uint __ovld __cnfn min(uint x, uint y);
9984int2 __ovld __cnfn min(int2 x, int2 y);
9985uint2 __ovld __cnfn min(uint2 x, uint2 y);
9986int3 __ovld __cnfn min(int3 x, int3 y);
9987uint3 __ovld __cnfn min(uint3 x, uint3 y);
9988int4 __ovld __cnfn min(int4 x, int4 y);
9989uint4 __ovld __cnfn min(uint4 x, uint4 y);
9990int8 __ovld __cnfn min(int8 x, int8 y);
9991uint8 __ovld __cnfn min(uint8 x, uint8 y);
9992int16 __ovld __cnfn min(int16 x, int16 y);
9993uint16 __ovld __cnfn min(uint16 x, uint16 y);
9994long __ovld __cnfn min(long x, long y);
9995ulong __ovld __cnfn min(ulong x, ulong y);
9996long2 __ovld __cnfn min(long2 x, long2 y);
9997ulong2 __ovld __cnfn min(ulong2 x, ulong2 y);
9998long3 __ovld __cnfn min(long3 x, long3 y);
9999ulong3 __ovld __cnfn min(ulong3 x, ulong3 y);
10000long4 __ovld __cnfn min(long4 x, long4 y);
10001ulong4 __ovld __cnfn min(ulong4 x, ulong4 y);
10002long8 __ovld __cnfn min(long8 x, long8 y);
10003ulong8 __ovld __cnfn min(ulong8 x, ulong8 y);
10004long16 __ovld __cnfn min(long16 x, long16 y);
10005ulong16 __ovld __cnfn min(ulong16 x, ulong16 y);
10006char __ovld __cnfn min(char x, char y);
10007uchar __ovld __cnfn min(uchar x, uchar y);
10008char2 __ovld __cnfn min(char2 x, char y);
10009uchar2 __ovld __cnfn min(uchar2 x, uchar y);
10010char3 __ovld __cnfn min(char3 x, char y);
10011uchar3 __ovld __cnfn min(uchar3 x, uchar y);
10012char4 __ovld __cnfn min(char4 x, char y);
10013uchar4 __ovld __cnfn min(uchar4 x, uchar y);
10014char8 __ovld __cnfn min(char8 x, char y);
10015uchar8 __ovld __cnfn min(uchar8 x, uchar y);
10016char16 __ovld __cnfn min(char16 x, char y);
10017uchar16 __ovld __cnfn min(uchar16 x, uchar y);
10018short __ovld __cnfn min(short x, short y);
10019ushort __ovld __cnfn min(ushort x, ushort y);
10020short2 __ovld __cnfn min(short2 x, short y);
10021ushort2 __ovld __cnfn min(ushort2 x, ushort y);
10022short3 __ovld __cnfn min(short3 x, short y);
10023ushort3 __ovld __cnfn min(ushort3 x, ushort y);
10024short4 __ovld __cnfn min(short4 x, short y);
10025ushort4 __ovld __cnfn min(ushort4 x, ushort y);
10026short8 __ovld __cnfn min(short8 x, short y);
10027ushort8 __ovld __cnfn min(ushort8 x, ushort y);
10028short16 __ovld __cnfn min(short16 x, short y);
10029ushort16 __ovld __cnfn min(ushort16 x, ushort y);
10030int __ovld __cnfn min(int x, int y);
10031uint __ovld __cnfn min(uint x, uint y);
10032int2 __ovld __cnfn min(int2 x, int y);
10033uint2 __ovld __cnfn min(uint2 x, uint y);
10034int3 __ovld __cnfn min(int3 x, int y);
10035uint3 __ovld __cnfn min(uint3 x, uint y);
10036int4 __ovld __cnfn min(int4 x, int y);
10037uint4 __ovld __cnfn min(uint4 x, uint y);
10038int8 __ovld __cnfn min(int8 x, int y);
10039uint8 __ovld __cnfn min(uint8 x, uint y);
10040int16 __ovld __cnfn min(int16 x, int y);
10041uint16 __ovld __cnfn min(uint16 x, uint y);
10042long __ovld __cnfn min(long x, long y);
10043ulong __ovld __cnfn min(ulong x, ulong y);
10044long2 __ovld __cnfn min(long2 x, long y);
10045ulong2 __ovld __cnfn min(ulong2 x, ulong y);
10046long3 __ovld __cnfn min(long3 x, long y);
10047ulong3 __ovld __cnfn min(ulong3 x, ulong y);
10048long4 __ovld __cnfn min(long4 x, long y);
10049ulong4 __ovld __cnfn min(ulong4 x, ulong y);
10050long8 __ovld __cnfn min(long8 x, long y);
10051ulong8 __ovld __cnfn min(ulong8 x, ulong y);
10052long16 __ovld __cnfn min(long16 x, long y);
10053ulong16 __ovld __cnfn min(ulong16 x, ulong y);
10054
10055/**
10056 * Computes x * y and returns the high half of the
10057 * product of x and y.
10058 */
10059char __ovld __cnfn mul_hi(char x, char y);
10060uchar __ovld __cnfn mul_hi(uchar x, uchar y);
10061char2 __ovld __cnfn mul_hi(char2 x, char2 y);
10062uchar2 __ovld __cnfn mul_hi(uchar2 x, uchar2 y);
10063char3 __ovld __cnfn mul_hi(char3 x, char3 y);
10064uchar3 __ovld __cnfn mul_hi(uchar3 x, uchar3 y);
10065char4 __ovld __cnfn mul_hi(char4 x, char4 y);
10066uchar4 __ovld __cnfn mul_hi(uchar4 x, uchar4 y);
10067char8 __ovld __cnfn mul_hi(char8 x, char8 y);
10068uchar8 __ovld __cnfn mul_hi(uchar8 x, uchar8 y);
10069char16 __ovld __cnfn mul_hi(char16 x, char16 y);
10070uchar16 __ovld __cnfn mul_hi(uchar16 x, uchar16 y);
10071short __ovld __cnfn mul_hi(short x, short y);
10072ushort __ovld __cnfn mul_hi(ushort x, ushort y);
10073short2 __ovld __cnfn mul_hi(short2 x, short2 y);
10074ushort2 __ovld __cnfn mul_hi(ushort2 x, ushort2 y);
10075short3 __ovld __cnfn mul_hi(short3 x, short3 y);
10076ushort3 __ovld __cnfn mul_hi(ushort3 x, ushort3 y);
10077short4 __ovld __cnfn mul_hi(short4 x, short4 y);
10078ushort4 __ovld __cnfn mul_hi(ushort4 x, ushort4 y);
10079short8 __ovld __cnfn mul_hi(short8 x, short8 y);
10080ushort8 __ovld __cnfn mul_hi(ushort8 x, ushort8 y);
10081short16 __ovld __cnfn mul_hi(short16 x, short16 y);
10082ushort16 __ovld __cnfn mul_hi(ushort16 x, ushort16 y);
10083int __ovld __cnfn mul_hi(int x, int y);
10084uint __ovld __cnfn mul_hi(uint x, uint y);
10085int2 __ovld __cnfn mul_hi(int2 x, int2 y);
10086uint2 __ovld __cnfn mul_hi(uint2 x, uint2 y);
10087int3 __ovld __cnfn mul_hi(int3 x, int3 y);
10088uint3 __ovld __cnfn mul_hi(uint3 x, uint3 y);
10089int4 __ovld __cnfn mul_hi(int4 x, int4 y);
10090uint4 __ovld __cnfn mul_hi(uint4 x, uint4 y);
10091int8 __ovld __cnfn mul_hi(int8 x, int8 y);
10092uint8 __ovld __cnfn mul_hi(uint8 x, uint8 y);
10093int16 __ovld __cnfn mul_hi(int16 x, int16 y);
10094uint16 __ovld __cnfn mul_hi(uint16 x, uint16 y);
10095long __ovld __cnfn mul_hi(long x, long y);
10096ulong __ovld __cnfn mul_hi(ulong x, ulong y);
10097long2 __ovld __cnfn mul_hi(long2 x, long2 y);
10098ulong2 __ovld __cnfn mul_hi(ulong2 x, ulong2 y);
10099long3 __ovld __cnfn mul_hi(long3 x, long3 y);
10100ulong3 __ovld __cnfn mul_hi(ulong3 x, ulong3 y);
10101long4 __ovld __cnfn mul_hi(long4 x, long4 y);
10102ulong4 __ovld __cnfn mul_hi(ulong4 x, ulong4 y);
10103long8 __ovld __cnfn mul_hi(long8 x, long8 y);
10104ulong8 __ovld __cnfn mul_hi(ulong8 x, ulong8 y);
10105long16 __ovld __cnfn mul_hi(long16 x, long16 y);
10106ulong16 __ovld __cnfn mul_hi(ulong16 x, ulong16 y);
10107
10108/**
10109 * For each element in v, the bits are shifted left by
10110 * the number of bits given by the corresponding
10111 * element in i (subject to usual shift modulo rules
10112 * described in section 6.3). Bits shifted off the left
10113 * side of the element are shifted back in from the
10114 * right.
10115 */
10116char __ovld __cnfn rotate(char v, char i);
10117uchar __ovld __cnfn rotate(uchar v, uchar i);
10118char2 __ovld __cnfn rotate(char2 v, char2 i);
10119uchar2 __ovld __cnfn rotate(uchar2 v, uchar2 i);
10120char3 __ovld __cnfn rotate(char3 v, char3 i);
10121uchar3 __ovld __cnfn rotate(uchar3 v, uchar3 i);
10122char4 __ovld __cnfn rotate(char4 v, char4 i);
10123uchar4 __ovld __cnfn rotate(uchar4 v, uchar4 i);
10124char8 __ovld __cnfn rotate(char8 v, char8 i);
10125uchar8 __ovld __cnfn rotate(uchar8 v, uchar8 i);
10126char16 __ovld __cnfn rotate(char16 v, char16 i);
10127uchar16 __ovld __cnfn rotate(uchar16 v, uchar16 i);
10128short __ovld __cnfn rotate(short v, short i);
10129ushort __ovld __cnfn rotate(ushort v, ushort i);
10130short2 __ovld __cnfn rotate(short2 v, short2 i);
10131ushort2 __ovld __cnfn rotate(ushort2 v, ushort2 i);
10132short3 __ovld __cnfn rotate(short3 v, short3 i);
10133ushort3 __ovld __cnfn rotate(ushort3 v, ushort3 i);
10134short4 __ovld __cnfn rotate(short4 v, short4 i);
10135ushort4 __ovld __cnfn rotate(ushort4 v, ushort4 i);
10136short8 __ovld __cnfn rotate(short8 v, short8 i);
10137ushort8 __ovld __cnfn rotate(ushort8 v, ushort8 i);
10138short16 __ovld __cnfn rotate(short16 v, short16 i);
10139ushort16 __ovld __cnfn rotate(ushort16 v, ushort16 i);
10140int __ovld __cnfn rotate(int v, int i);
10141uint __ovld __cnfn rotate(uint v, uint i);
10142int2 __ovld __cnfn rotate(int2 v, int2 i);
10143uint2 __ovld __cnfn rotate(uint2 v, uint2 i);
10144int3 __ovld __cnfn rotate(int3 v, int3 i);
10145uint3 __ovld __cnfn rotate(uint3 v, uint3 i);
10146int4 __ovld __cnfn rotate(int4 v, int4 i);
10147uint4 __ovld __cnfn rotate(uint4 v, uint4 i);
10148int8 __ovld __cnfn rotate(int8 v, int8 i);
10149uint8 __ovld __cnfn rotate(uint8 v, uint8 i);
10150int16 __ovld __cnfn rotate(int16 v, int16 i);
10151uint16 __ovld __cnfn rotate(uint16 v, uint16 i);
10152long __ovld __cnfn rotate(long v, long i);
10153ulong __ovld __cnfn rotate(ulong v, ulong i);
10154long2 __ovld __cnfn rotate(long2 v, long2 i);
10155ulong2 __ovld __cnfn rotate(ulong2 v, ulong2 i);
10156long3 __ovld __cnfn rotate(long3 v, long3 i);
10157ulong3 __ovld __cnfn rotate(ulong3 v, ulong3 i);
10158long4 __ovld __cnfn rotate(long4 v, long4 i);
10159ulong4 __ovld __cnfn rotate(ulong4 v, ulong4 i);
10160long8 __ovld __cnfn rotate(long8 v, long8 i);
10161ulong8 __ovld __cnfn rotate(ulong8 v, ulong8 i);
10162long16 __ovld __cnfn rotate(long16 v, long16 i);
10163ulong16 __ovld __cnfn rotate(ulong16 v, ulong16 i);
10164
10165/**
10166 * Returns x - y and saturates the result.
10167 */
10168char __ovld __cnfn sub_sat(char x, char y);
10169uchar __ovld __cnfn sub_sat(uchar x, uchar y);
10170char2 __ovld __cnfn sub_sat(char2 x, char2 y);
10171uchar2 __ovld __cnfn sub_sat(uchar2 x, uchar2 y);
10172char3 __ovld __cnfn sub_sat(char3 x, char3 y);
10173uchar3 __ovld __cnfn sub_sat(uchar3 x, uchar3 y);
10174char4 __ovld __cnfn sub_sat(char4 x, char4 y);
10175uchar4 __ovld __cnfn sub_sat(uchar4 x, uchar4 y);
10176char8 __ovld __cnfn sub_sat(char8 x, char8 y);
10177uchar8 __ovld __cnfn sub_sat(uchar8 x, uchar8 y);
10178char16 __ovld __cnfn sub_sat(char16 x, char16 y);
10179uchar16 __ovld __cnfn sub_sat(uchar16 x, uchar16 y);
10180short __ovld __cnfn sub_sat(short x, short y);
10181ushort __ovld __cnfn sub_sat(ushort x, ushort y);
10182short2 __ovld __cnfn sub_sat(short2 x, short2 y);
10183ushort2 __ovld __cnfn sub_sat(ushort2 x, ushort2 y);
10184short3 __ovld __cnfn sub_sat(short3 x, short3 y);
10185ushort3 __ovld __cnfn sub_sat(ushort3 x, ushort3 y);
10186short4 __ovld __cnfn sub_sat(short4 x, short4 y);
10187ushort4 __ovld __cnfn sub_sat(ushort4 x, ushort4 y);
10188short8 __ovld __cnfn sub_sat(short8 x, short8 y);
10189ushort8 __ovld __cnfn sub_sat(ushort8 x, ushort8 y);
10190short16 __ovld __cnfn sub_sat(short16 x, short16 y);
10191ushort16 __ovld __cnfn sub_sat(ushort16 x, ushort16 y);
10192int __ovld __cnfn sub_sat(int x, int y);
10193uint __ovld __cnfn sub_sat(uint x, uint y);
10194int2 __ovld __cnfn sub_sat(int2 x, int2 y);
10195uint2 __ovld __cnfn sub_sat(uint2 x, uint2 y);
10196int3 __ovld __cnfn sub_sat(int3 x, int3 y);
10197uint3 __ovld __cnfn sub_sat(uint3 x, uint3 y);
10198int4 __ovld __cnfn sub_sat(int4 x, int4 y);
10199uint4 __ovld __cnfn sub_sat(uint4 x, uint4 y);
10200int8 __ovld __cnfn sub_sat(int8 x, int8 y);
10201uint8 __ovld __cnfn sub_sat(uint8 x, uint8 y);
10202int16 __ovld __cnfn sub_sat(int16 x, int16 y);
10203uint16 __ovld __cnfn sub_sat(uint16 x, uint16 y);
10204long __ovld __cnfn sub_sat(long x, long y);
10205ulong __ovld __cnfn sub_sat(ulong x, ulong y);
10206long2 __ovld __cnfn sub_sat(long2 x, long2 y);
10207ulong2 __ovld __cnfn sub_sat(ulong2 x, ulong2 y);
10208long3 __ovld __cnfn sub_sat(long3 x, long3 y);
10209ulong3 __ovld __cnfn sub_sat(ulong3 x, ulong3 y);
10210long4 __ovld __cnfn sub_sat(long4 x, long4 y);
10211ulong4 __ovld __cnfn sub_sat(ulong4 x, ulong4 y);
10212long8 __ovld __cnfn sub_sat(long8 x, long8 y);
10213ulong8 __ovld __cnfn sub_sat(ulong8 x, ulong8 y);
10214long16 __ovld __cnfn sub_sat(long16 x, long16 y);
10215ulong16 __ovld __cnfn sub_sat(ulong16 x, ulong16 y);
10216
10217/**
10218 * result[i] = ((short)hi[i] << 8) | lo[i]
10219 * result[i] = ((ushort)hi[i] << 8) | lo[i]
10220 */
10221short __ovld __cnfn upsample(char hi, uchar lo);
10222ushort __ovld __cnfn upsample(uchar hi, uchar lo);
10223short2 __ovld __cnfn upsample(char2 hi, uchar2 lo);
10224short3 __ovld __cnfn upsample(char3 hi, uchar3 lo);
10225short4 __ovld __cnfn upsample(char4 hi, uchar4 lo);
10226short8 __ovld __cnfn upsample(char8 hi, uchar8 lo);
10227short16 __ovld __cnfn upsample(char16 hi, uchar16 lo);
10228ushort2 __ovld __cnfn upsample(uchar2 hi, uchar2 lo);
10229ushort3 __ovld __cnfn upsample(uchar3 hi, uchar3 lo);
10230ushort4 __ovld __cnfn upsample(uchar4 hi, uchar4 lo);
10231ushort8 __ovld __cnfn upsample(uchar8 hi, uchar8 lo);
10232ushort16 __ovld __cnfn upsample(uchar16 hi, uchar16 lo);
10233
10234/**
10235 * result[i] = ((int)hi[i] << 16) | lo[i]
10236 * result[i] = ((uint)hi[i] << 16) | lo[i]
10237 */
10238int __ovld __cnfn upsample(short hi, ushort lo);
10239uint __ovld __cnfn upsample(ushort hi, ushort lo);
10240int2 __ovld __cnfn upsample(short2 hi, ushort2 lo);
10241int3 __ovld __cnfn upsample(short3 hi, ushort3 lo);
10242int4 __ovld __cnfn upsample(short4 hi, ushort4 lo);
10243int8 __ovld __cnfn upsample(short8 hi, ushort8 lo);
10244int16 __ovld __cnfn upsample(short16 hi, ushort16 lo);
10245uint2 __ovld __cnfn upsample(ushort2 hi, ushort2 lo);
10246uint3 __ovld __cnfn upsample(ushort3 hi, ushort3 lo);
10247uint4 __ovld __cnfn upsample(ushort4 hi, ushort4 lo);
10248uint8 __ovld __cnfn upsample(ushort8 hi, ushort8 lo);
10249uint16 __ovld __cnfn upsample(ushort16 hi, ushort16 lo);
10250/**
10251 * result[i] = ((long)hi[i] << 32) | lo[i]
10252 * result[i] = ((ulong)hi[i] << 32) | lo[i]
10253 */
10254long __ovld __cnfn upsample(int hi, uint lo);
10255ulong __ovld __cnfn upsample(uint hi, uint lo);
10256long2 __ovld __cnfn upsample(int2 hi, uint2 lo);
10257long3 __ovld __cnfn upsample(int3 hi, uint3 lo);
10258long4 __ovld __cnfn upsample(int4 hi, uint4 lo);
10259long8 __ovld __cnfn upsample(int8 hi, uint8 lo);
10260long16 __ovld __cnfn upsample(int16 hi, uint16 lo);
10261ulong2 __ovld __cnfn upsample(uint2 hi, uint2 lo);
10262ulong3 __ovld __cnfn upsample(uint3 hi, uint3 lo);
10263ulong4 __ovld __cnfn upsample(uint4 hi, uint4 lo);
10264ulong8 __ovld __cnfn upsample(uint8 hi, uint8 lo);
10265ulong16 __ovld __cnfn upsample(uint16 hi, uint16 lo);
10266
10267/*
10268 * popcount(x): returns the number of set bit in x
10269 */
10270char __ovld __cnfn popcount(char x);
10271uchar __ovld __cnfn popcount(uchar x);
10272char2 __ovld __cnfn popcount(char2 x);
10273uchar2 __ovld __cnfn popcount(uchar2 x);
10274char3 __ovld __cnfn popcount(char3 x);
10275uchar3 __ovld __cnfn popcount(uchar3 x);
10276char4 __ovld __cnfn popcount(char4 x);
10277uchar4 __ovld __cnfn popcount(uchar4 x);
10278char8 __ovld __cnfn popcount(char8 x);
10279uchar8 __ovld __cnfn popcount(uchar8 x);
10280char16 __ovld __cnfn popcount(char16 x);
10281uchar16 __ovld __cnfn popcount(uchar16 x);
10282short __ovld __cnfn popcount(short x);
10283ushort __ovld __cnfn popcount(ushort x);
10284short2 __ovld __cnfn popcount(short2 x);
10285ushort2 __ovld __cnfn popcount(ushort2 x);
10286short3 __ovld __cnfn popcount(short3 x);
10287ushort3 __ovld __cnfn popcount(ushort3 x);
10288short4 __ovld __cnfn popcount(short4 x);
10289ushort4 __ovld __cnfn popcount(ushort4 x);
10290short8 __ovld __cnfn popcount(short8 x);
10291ushort8 __ovld __cnfn popcount(ushort8 x);
10292short16 __ovld __cnfn popcount(short16 x);
10293ushort16 __ovld __cnfn popcount(ushort16 x);
10294int __ovld __cnfn popcount(int x);
10295uint __ovld __cnfn popcount(uint x);
10296int2 __ovld __cnfn popcount(int2 x);
10297uint2 __ovld __cnfn popcount(uint2 x);
10298int3 __ovld __cnfn popcount(int3 x);
10299uint3 __ovld __cnfn popcount(uint3 x);
10300int4 __ovld __cnfn popcount(int4 x);
10301uint4 __ovld __cnfn popcount(uint4 x);
10302int8 __ovld __cnfn popcount(int8 x);
10303uint8 __ovld __cnfn popcount(uint8 x);
10304int16 __ovld __cnfn popcount(int16 x);
10305uint16 __ovld __cnfn popcount(uint16 x);
10306long __ovld __cnfn popcount(long x);
10307ulong __ovld __cnfn popcount(ulong x);
10308long2 __ovld __cnfn popcount(long2 x);
10309ulong2 __ovld __cnfn popcount(ulong2 x);
10310long3 __ovld __cnfn popcount(long3 x);
10311ulong3 __ovld __cnfn popcount(ulong3 x);
10312long4 __ovld __cnfn popcount(long4 x);
10313ulong4 __ovld __cnfn popcount(ulong4 x);
10314long8 __ovld __cnfn popcount(long8 x);
10315ulong8 __ovld __cnfn popcount(ulong8 x);
10316long16 __ovld __cnfn popcount(long16 x);
10317ulong16 __ovld __cnfn popcount(ulong16 x);
10318
10319/**
10320 * Multiply two 24-bit integer values x and y and add
10321 * the 32-bit integer result to the 32-bit integer z.
10322 * Refer to definition of mul24 to see how the 24-bit
10323 * integer multiplication is performed.
10324 */
10325int __ovld __cnfn mad24(int x, int y, int z);
10326uint __ovld __cnfn mad24(uint x, uint y, uint z);
10327int2 __ovld __cnfn mad24(int2 x, int2 y, int2 z);
10328uint2 __ovld __cnfn mad24(uint2 x, uint2 y, uint2 z);
10329int3 __ovld __cnfn mad24(int3 x, int3 y, int3 z);
10330uint3 __ovld __cnfn mad24(uint3 x, uint3 y, uint3 z);
10331int4 __ovld __cnfn mad24(int4 x, int4 y, int4 z);
10332uint4 __ovld __cnfn mad24(uint4 x, uint4 y, uint4 z);
10333int8 __ovld __cnfn mad24(int8 x, int8 y, int8 z);
10334uint8 __ovld __cnfn mad24(uint8 x, uint8 y, uint8 z);
10335int16 __ovld __cnfn mad24(int16 x, int16 y, int16 z);
10336uint16 __ovld __cnfn mad24(uint16 x, uint16 y, uint16 z);
10337
10338/**
10339 * Multiply two 24-bit integer values x and y. x and y
10340 * are 32-bit integers but only the low 24-bits are used
10341 * to perform the multiplication. mul24 should only
10342 * be used when values in x and y are in the range [-
10343 * 2^23, 2^23-1] if x and y are signed integers and in the
10344 * range [0, 2^24-1] if x and y are unsigned integers. If
10345 * x and y are not in this range, the multiplication
10346 * result is implementation-defined.
10347 */
10348int __ovld __cnfn mul24(int x, int y);
10349uint __ovld __cnfn mul24(uint x, uint y);
10350int2 __ovld __cnfn mul24(int2 x, int2 y);
10351uint2 __ovld __cnfn mul24(uint2 x, uint2 y);
10352int3 __ovld __cnfn mul24(int3 x, int3 y);
10353uint3 __ovld __cnfn mul24(uint3 x, uint3 y);
10354int4 __ovld __cnfn mul24(int4 x, int4 y);
10355uint4 __ovld __cnfn mul24(uint4 x, uint4 y);
10356int8 __ovld __cnfn mul24(int8 x, int8 y);
10357uint8 __ovld __cnfn mul24(uint8 x, uint8 y);
10358int16 __ovld __cnfn mul24(int16 x, int16 y);
10359uint16 __ovld __cnfn mul24(uint16 x, uint16 y);
10360
10361// OpenCL v1.1 s6.11.4, v1.2 s6.12.4, v2.0 s6.13.4 - Common Functions
10362
10363/**
10364 * Returns fmin(fmax(x, minval), maxval).
10365 * Results are undefined if minval > maxval.
10366 */
10367float __ovld __cnfn clamp(float x, float minval, float maxval);
10368float2 __ovld __cnfn clamp(float2 x, float2 minval, float2 maxval);
10369float3 __ovld __cnfn clamp(float3 x, float3 minval, float3 maxval);
10370float4 __ovld __cnfn clamp(float4 x, float4 minval, float4 maxval);
10371float8 __ovld __cnfn clamp(float8 x, float8 minval, float8 maxval);
10372float16 __ovld __cnfn clamp(float16 x, float16 minval, float16 maxval);
10373float2 __ovld __cnfn clamp(float2 x, float minval, float maxval);
10374float3 __ovld __cnfn clamp(float3 x, float minval, float maxval);
10375float4 __ovld __cnfn clamp(float4 x, float minval, float maxval);
10376float8 __ovld __cnfn clamp(float8 x, float minval, float maxval);
10377float16 __ovld __cnfn clamp(float16 x, float minval, float maxval);
10378#ifdef cl_khr_fp64
10379double __ovld __cnfn clamp(double x, double minval, double maxval);
10380double2 __ovld __cnfn clamp(double2 x, double2 minval, double2 maxval);
10381double3 __ovld __cnfn clamp(double3 x, double3 minval, double3 maxval);
10382double4 __ovld __cnfn clamp(double4 x, double4 minval, double4 maxval);
10383double8 __ovld __cnfn clamp(double8 x, double8 minval, double8 maxval);
10384double16 __ovld __cnfn clamp(double16 x, double16 minval, double16 maxval);
10385double2 __ovld __cnfn clamp(double2 x, double minval, double maxval);
10386double3 __ovld __cnfn clamp(double3 x, double minval, double maxval);
10387double4 __ovld __cnfn clamp(double4 x, double minval, double maxval);
10388double8 __ovld __cnfn clamp(double8 x, double minval, double maxval);
10389double16 __ovld __cnfn clamp(double16 x, double minval, double maxval);
10390#endif //cl_khr_fp64
10391#ifdef cl_khr_fp16
10392half __ovld __cnfn clamp(half x, half minval, half maxval);
10393half2 __ovld __cnfn clamp(half2 x, half2 minval, half2 maxval);
10394half3 __ovld __cnfn clamp(half3 x, half3 minval, half3 maxval);
10395half4 __ovld __cnfn clamp(half4 x, half4 minval, half4 maxval);
10396half8 __ovld __cnfn clamp(half8 x, half8 minval, half8 maxval);
10397half16 __ovld __cnfn clamp(half16 x, half16 minval, half16 maxval);
10398half2 __ovld __cnfn clamp(half2 x, half minval, half maxval);
10399half3 __ovld __cnfn clamp(half3 x, half minval, half maxval);
10400half4 __ovld __cnfn clamp(half4 x, half minval, half maxval);
10401half8 __ovld __cnfn clamp(half8 x, half minval, half maxval);
10402half16 __ovld __cnfn clamp(half16 x, half minval, half maxval);
10403#endif //cl_khr_fp16
10404
10405/**
10406 * Converts radians to degrees, i.e. (180 / PI) *
10407 * radians.
10408 */
10409float __ovld __cnfn degrees(float radians);
10410float2 __ovld __cnfn degrees(float2 radians);
10411float3 __ovld __cnfn degrees(float3 radians);
10412float4 __ovld __cnfn degrees(float4 radians);
10413float8 __ovld __cnfn degrees(float8 radians);
10414float16 __ovld __cnfn degrees(float16 radians);
10415#ifdef cl_khr_fp64
10416double __ovld __cnfn degrees(double radians);
10417double2 __ovld __cnfn degrees(double2 radians);
10418double3 __ovld __cnfn degrees(double3 radians);
10419double4 __ovld __cnfn degrees(double4 radians);
10420double8 __ovld __cnfn degrees(double8 radians);
10421double16 __ovld __cnfn degrees(double16 radians);
10422#endif //cl_khr_fp64
10423#ifdef cl_khr_fp16
10424half __ovld __cnfn degrees(half radians);
10425half2 __ovld __cnfn degrees(half2 radians);
10426half3 __ovld __cnfn degrees(half3 radians);
10427half4 __ovld __cnfn degrees(half4 radians);
10428half8 __ovld __cnfn degrees(half8 radians);
10429half16 __ovld __cnfn degrees(half16 radians);
10430#endif //cl_khr_fp16
10431
10432/**
10433 * Returns y if x < y, otherwise it returns x. If x and y
10434 * are infinite or NaN, the return values are undefined.
10435 */
10436float __ovld __cnfn max(float x, float y);
10437float2 __ovld __cnfn max(float2 x, float2 y);
10438float3 __ovld __cnfn max(float3 x, float3 y);
10439float4 __ovld __cnfn max(float4 x, float4 y);
10440float8 __ovld __cnfn max(float8 x, float8 y);
10441float16 __ovld __cnfn max(float16 x, float16 y);
10442float2 __ovld __cnfn max(float2 x, float y);
10443float3 __ovld __cnfn max(float3 x, float y);
10444float4 __ovld __cnfn max(float4 x, float y);
10445float8 __ovld __cnfn max(float8 x, float y);
10446float16 __ovld __cnfn max(float16 x, float y);
10447#ifdef cl_khr_fp64
10448double __ovld __cnfn max(double x, double y);
10449double2 __ovld __cnfn max(double2 x, double2 y);
10450double3 __ovld __cnfn max(double3 x, double3 y);
10451double4 __ovld __cnfn max(double4 x, double4 y);
10452double8 __ovld __cnfn max(double8 x, double8 y);
10453double16 __ovld __cnfn max(double16 x, double16 y);
10454double2 __ovld __cnfn max(double2 x, double y);
10455double3 __ovld __cnfn max(double3 x, double y);
10456double4 __ovld __cnfn max(double4 x, double y);
10457double8 __ovld __cnfn max(double8 x, double y);
10458double16 __ovld __cnfn max(double16 x, double y);
10459#endif //cl_khr_fp64
10460#ifdef cl_khr_fp16
10461half __ovld __cnfn max(half x, half y);
10462half2 __ovld __cnfn max(half2 x, half2 y);
10463half3 __ovld __cnfn max(half3 x, half3 y);
10464half4 __ovld __cnfn max(half4 x, half4 y);
10465half8 __ovld __cnfn max(half8 x, half8 y);
10466half16 __ovld __cnfn max(half16 x, half16 y);
10467half2 __ovld __cnfn max(half2 x, half y);
10468half3 __ovld __cnfn max(half3 x, half y);
10469half4 __ovld __cnfn max(half4 x, half y);
10470half8 __ovld __cnfn max(half8 x, half y);
10471half16 __ovld __cnfn max(half16 x, half y);
10472#endif //cl_khr_fp16
10473
10474/**
10475 * Returns y if y < x, otherwise it returns x. If x and y
10476 * are infinite or NaN, the return values are undefined.
10477 */
10478float __ovld __cnfn min(float x, float y);
10479float2 __ovld __cnfn min(float2 x, float2 y);
10480float3 __ovld __cnfn min(float3 x, float3 y);
10481float4 __ovld __cnfn min(float4 x, float4 y);
10482float8 __ovld __cnfn min(float8 x, float8 y);
10483float16 __ovld __cnfn min(float16 x, float16 y);
10484float2 __ovld __cnfn min(float2 x, float y);
10485float3 __ovld __cnfn min(float3 x, float y);
10486float4 __ovld __cnfn min(float4 x, float y);
10487float8 __ovld __cnfn min(float8 x, float y);
10488float16 __ovld __cnfn min(float16 x, float y);
10489#ifdef cl_khr_fp64
10490double __ovld __cnfn min(double x, double y);
10491double2 __ovld __cnfn min(double2 x, double2 y);
10492double3 __ovld __cnfn min(double3 x, double3 y);
10493double4 __ovld __cnfn min(double4 x, double4 y);
10494double8 __ovld __cnfn min(double8 x, double8 y);
10495double16 __ovld __cnfn min(double16 x, double16 y);
10496double2 __ovld __cnfn min(double2 x, double y);
10497double3 __ovld __cnfn min(double3 x, double y);
10498double4 __ovld __cnfn min(double4 x, double y);
10499double8 __ovld __cnfn min(double8 x, double y);
10500double16 __ovld __cnfn min(double16 x, double y);
10501#endif //cl_khr_fp64
10502#ifdef cl_khr_fp16
10503half __ovld __cnfn min(half x, half y);
10504half2 __ovld __cnfn min(half2 x, half2 y);
10505half3 __ovld __cnfn min(half3 x, half3 y);
10506half4 __ovld __cnfn min(half4 x, half4 y);
10507half8 __ovld __cnfn min(half8 x, half8 y);
10508half16 __ovld __cnfn min(half16 x, half16 y);
10509half2 __ovld __cnfn min(half2 x, half y);
10510half3 __ovld __cnfn min(half3 x, half y);
10511half4 __ovld __cnfn min(half4 x, half y);
10512half8 __ovld __cnfn min(half8 x, half y);
10513half16 __ovld __cnfn min(half16 x, half y);
10514#endif //cl_khr_fp16
10515
10516/**
10517 * Returns the linear blend of x & y implemented as:
10518 * x + (y - x) * a
10519 * a must be a value in the range 0.0 ... 1.0. If a is not
10520 * in the range 0.0 ... 1.0, the return values are
10521 * undefined.
10522 */
10523float __ovld __cnfn mix(float x, float y, float a);
10524float2 __ovld __cnfn mix(float2 x, float2 y, float2 a);
10525float3 __ovld __cnfn mix(float3 x, float3 y, float3 a);
10526float4 __ovld __cnfn mix(float4 x, float4 y, float4 a);
10527float8 __ovld __cnfn mix(float8 x, float8 y, float8 a);
10528float16 __ovld __cnfn mix(float16 x, float16 y, float16 a);
10529float2 __ovld __cnfn mix(float2 x, float2 y, float a);
10530float3 __ovld __cnfn mix(float3 x, float3 y, float a);
10531float4 __ovld __cnfn mix(float4 x, float4 y, float a);
10532float8 __ovld __cnfn mix(float8 x, float8 y, float a);
10533float16 __ovld __cnfn mix(float16 x, float16 y, float a);
10534#ifdef cl_khr_fp64
10535double __ovld __cnfn mix(double x, double y, double a);
10536double2 __ovld __cnfn mix(double2 x, double2 y, double2 a);
10537double3 __ovld __cnfn mix(double3 x, double3 y, double3 a);
10538double4 __ovld __cnfn mix(double4 x, double4 y, double4 a);
10539double8 __ovld __cnfn mix(double8 x, double8 y, double8 a);
10540double16 __ovld __cnfn mix(double16 x, double16 y, double16 a);
10541double2 __ovld __cnfn mix(double2 x, double2 y, double a);
10542double3 __ovld __cnfn mix(double3 x, double3 y, double a);
10543double4 __ovld __cnfn mix(double4 x, double4 y, double a);
10544double8 __ovld __cnfn mix(double8 x, double8 y, double a);
10545double16 __ovld __cnfn mix(double16 x, double16 y, double a);
10546#endif //cl_khr_fp64
10547#ifdef cl_khr_fp16
10548half __ovld __cnfn mix(half x, half y, half a);
10549half2 __ovld __cnfn mix(half2 x, half2 y, half2 a);
10550half3 __ovld __cnfn mix(half3 x, half3 y, half3 a);
10551half4 __ovld __cnfn mix(half4 x, half4 y, half4 a);
10552half8 __ovld __cnfn mix(half8 x, half8 y, half8 a);
10553half16 __ovld __cnfn mix(half16 x, half16 y, half16 a);
10554half2 __ovld __cnfn mix(half2 x, half2 y, half a);
10555half3 __ovld __cnfn mix(half3 x, half3 y, half a);
10556half4 __ovld __cnfn mix(half4 x, half4 y, half a);
10557half8 __ovld __cnfn mix(half8 x, half8 y, half a);
10558half16 __ovld __cnfn mix(half16 x, half16 y, half a);
10559#endif //cl_khr_fp16
10560
10561/**
10562 * Converts degrees to radians, i.e. (PI / 180) *
10563 * degrees.
10564 */
10565float __ovld __cnfn radians(float degrees);
10566float2 __ovld __cnfn radians(float2 degrees);
10567float3 __ovld __cnfn radians(float3 degrees);
10568float4 __ovld __cnfn radians(float4 degrees);
10569float8 __ovld __cnfn radians(float8 degrees);
10570float16 __ovld __cnfn radians(float16 degrees);
10571#ifdef cl_khr_fp64
10572double __ovld __cnfn radians(double degrees);
10573double2 __ovld __cnfn radians(double2 degrees);
10574double3 __ovld __cnfn radians(double3 degrees);
10575double4 __ovld __cnfn radians(double4 degrees);
10576double8 __ovld __cnfn radians(double8 degrees);
10577double16 __ovld __cnfn radians(double16 degrees);
10578#endif //cl_khr_fp64
10579#ifdef cl_khr_fp16
10580half __ovld __cnfn radians(half degrees);
10581half2 __ovld __cnfn radians(half2 degrees);
10582half3 __ovld __cnfn radians(half3 degrees);
10583half4 __ovld __cnfn radians(half4 degrees);
10584half8 __ovld __cnfn radians(half8 degrees);
10585half16 __ovld __cnfn radians(half16 degrees);
10586#endif //cl_khr_fp16
10587
10588/**
10589 * Returns 0.0 if x < edge, otherwise it returns 1.0.
10590 */
10591float __ovld __cnfn step(float edge, float x);
10592float2 __ovld __cnfn step(float2 edge, float2 x);
10593float3 __ovld __cnfn step(float3 edge, float3 x);
10594float4 __ovld __cnfn step(float4 edge, float4 x);
10595float8 __ovld __cnfn step(float8 edge, float8 x);
10596float16 __ovld __cnfn step(float16 edge, float16 x);
10597float2 __ovld __cnfn step(float edge, float2 x);
10598float3 __ovld __cnfn step(float edge, float3 x);
10599float4 __ovld __cnfn step(float edge, float4 x);
10600float8 __ovld __cnfn step(float edge, float8 x);
10601float16 __ovld __cnfn step(float edge, float16 x);
10602#ifdef cl_khr_fp64
10603double __ovld __cnfn step(double edge, double x);
10604double2 __ovld __cnfn step(double2 edge, double2 x);
10605double3 __ovld __cnfn step(double3 edge, double3 x);
10606double4 __ovld __cnfn step(double4 edge, double4 x);
10607double8 __ovld __cnfn step(double8 edge, double8 x);
10608double16 __ovld __cnfn step(double16 edge, double16 x);
10609double2 __ovld __cnfn step(double edge, double2 x);
10610double3 __ovld __cnfn step(double edge, double3 x);
10611double4 __ovld __cnfn step(double edge, double4 x);
10612double8 __ovld __cnfn step(double edge, double8 x);
10613double16 __ovld __cnfn step(double edge, double16 x);
10614#endif //cl_khr_fp64
10615#ifdef cl_khr_fp16
10616half __ovld __cnfn step(half edge, half x);
10617half2 __ovld __cnfn step(half2 edge, half2 x);
10618half3 __ovld __cnfn step(half3 edge, half3 x);
10619half4 __ovld __cnfn step(half4 edge, half4 x);
10620half8 __ovld __cnfn step(half8 edge, half8 x);
10621half16 __ovld __cnfn step(half16 edge, half16 x);
10622half __ovld __cnfn step(half edge, half x);
10623half2 __ovld __cnfn step(half edge, half2 x);
10624half3 __ovld __cnfn step(half edge, half3 x);
10625half4 __ovld __cnfn step(half edge, half4 x);
10626half8 __ovld __cnfn step(half edge, half8 x);
10627half16 __ovld __cnfn step(half edge, half16 x);
10628#endif //cl_khr_fp16
10629
10630/**
10631 * Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and
10632 * performs smooth Hermite interpolation between 0
10633 * and 1when edge0 < x < edge1. This is useful in
10634 * cases where you would want a threshold function
10635 * with a smooth transition.
10636 * This is equivalent to:
10637 * gentype t;
10638 * t = clamp ((x - edge0) / (edge1 - edge0), 0, 1);
10639 * return t * t * (3 - 2 * t);
10640 * Results are undefined if edge0 >= edge1 or if x,
10641 * edge0 or edge1 is a NaN.
10642 */
10643float __ovld __cnfn smoothstep(float edge0, float edge1, float x);
10644float2 __ovld __cnfn smoothstep(float2 edge0, float2 edge1, float2 x);
10645float3 __ovld __cnfn smoothstep(float3 edge0, float3 edge1, float3 x);
10646float4 __ovld __cnfn smoothstep(float4 edge0, float4 edge1, float4 x);
10647float8 __ovld __cnfn smoothstep(float8 edge0, float8 edge1, float8 x);
10648float16 __ovld __cnfn smoothstep(float16 edge0, float16 edge1, float16 x);
10649float2 __ovld __cnfn smoothstep(float edge0, float edge1, float2 x);
10650float3 __ovld __cnfn smoothstep(float edge0, float edge1, float3 x);
10651float4 __ovld __cnfn smoothstep(float edge0, float edge1, float4 x);
10652float8 __ovld __cnfn smoothstep(float edge0, float edge1, float8 x);
10653float16 __ovld __cnfn smoothstep(float edge0, float edge1, float16 x);
10654#ifdef cl_khr_fp64
10655double __ovld __cnfn smoothstep(double edge0, double edge1, double x);
10656double2 __ovld __cnfn smoothstep(double2 edge0, double2 edge1, double2 x);
10657double3 __ovld __cnfn smoothstep(double3 edge0, double3 edge1, double3 x);
10658double4 __ovld __cnfn smoothstep(double4 edge0, double4 edge1, double4 x);
10659double8 __ovld __cnfn smoothstep(double8 edge0, double8 edge1, double8 x);
10660double16 __ovld __cnfn smoothstep(double16 edge0, double16 edge1, double16 x);
10661double2 __ovld __cnfn smoothstep(double edge0, double edge1, double2 x);
10662double3 __ovld __cnfn smoothstep(double edge0, double edge1, double3 x);
10663double4 __ovld __cnfn smoothstep(double edge0, double edge1, double4 x);
10664double8 __ovld __cnfn smoothstep(double edge0, double edge1, double8 x);
10665double16 __ovld __cnfn smoothstep(double edge0, double edge1, double16 x);
10666#endif //cl_khr_fp64
10667#ifdef cl_khr_fp16
10668half __ovld __cnfn smoothstep(half edge0, half edge1, half x);
10669half2 __ovld __cnfn smoothstep(half2 edge0, half2 edge1, half2 x);
10670half3 __ovld __cnfn smoothstep(half3 edge0, half3 edge1, half3 x);
10671half4 __ovld __cnfn smoothstep(half4 edge0, half4 edge1, half4 x);
10672half8 __ovld __cnfn smoothstep(half8 edge0, half8 edge1, half8 x);
10673half16 __ovld __cnfn smoothstep(half16 edge0, half16 edge1, half16 x);
10674half __ovld __cnfn smoothstep(half edge0, half edge1, half x);
10675half2 __ovld __cnfn smoothstep(half edge0, half edge1, half2 x);
10676half3 __ovld __cnfn smoothstep(half edge0, half edge1, half3 x);
10677half4 __ovld __cnfn smoothstep(half edge0, half edge1, half4 x);
10678half8 __ovld __cnfn smoothstep(half edge0, half edge1, half8 x);
10679half16 __ovld __cnfn smoothstep(half edge0, half edge1, half16 x);
10680#endif //cl_khr_fp16
10681
10682/**
10683 * Returns 1.0 if x > 0, -0.0 if x = -0.0, +0.0 if x =
10684 * +0.0, or -1.0 if x < 0. Returns 0.0 if x is a NaN.
10685 */
10686float __ovld __cnfn sign(float x);
10687float2 __ovld __cnfn sign(float2 x);
10688float3 __ovld __cnfn sign(float3 x);
10689float4 __ovld __cnfn sign(float4 x);
10690float8 __ovld __cnfn sign(float8 x);
10691float16 __ovld __cnfn sign(float16 x);
10692#ifdef cl_khr_fp64
10693double __ovld __cnfn sign(double x);
10694double2 __ovld __cnfn sign(double2 x);
10695double3 __ovld __cnfn sign(double3 x);
10696double4 __ovld __cnfn sign(double4 x);
10697double8 __ovld __cnfn sign(double8 x);
10698double16 __ovld __cnfn sign(double16 x);
10699#endif //cl_khr_fp64
10700#ifdef cl_khr_fp16
10701half __ovld __cnfn sign(half x);
10702half2 __ovld __cnfn sign(half2 x);
10703half3 __ovld __cnfn sign(half3 x);
10704half4 __ovld __cnfn sign(half4 x);
10705half8 __ovld __cnfn sign(half8 x);
10706half16 __ovld __cnfn sign(half16 x);
10707#endif //cl_khr_fp16
10708
10709// OpenCL v1.1 s6.11.5, v1.2 s6.12.5, v2.0 s6.13.5 - Geometric Functions
10710
10711/**
10712 * Returns the cross product of p0.xyz and p1.xyz. The
10713 * w component of float4 result returned will be 0.0.
10714 */
10715float4 __ovld __cnfn cross(float4 p0, float4 p1);
10716float3 __ovld __cnfn cross(float3 p0, float3 p1);
10717#ifdef cl_khr_fp64
10718double4 __ovld __cnfn cross(double4 p0, double4 p1);
10719double3 __ovld __cnfn cross(double3 p0, double3 p1);
10720#endif //cl_khr_fp64
10721#ifdef cl_khr_fp16
10722half4 __ovld __cnfn cross(half4 p0, half4 p1);
10723half3 __ovld __cnfn cross(half3 p0, half3 p1);
10724#endif //cl_khr_fp16
10725
10726/**
10727 * Compute dot product.
10728 */
10729float __ovld __cnfn dot(float p0, float p1);
10730float __ovld __cnfn dot(float2 p0, float2 p1);
10731float __ovld __cnfn dot(float3 p0, float3 p1);
10732float __ovld __cnfn dot(float4 p0, float4 p1);
10733#ifdef cl_khr_fp64
10734double __ovld __cnfn dot(double p0, double p1);
10735double __ovld __cnfn dot(double2 p0, double2 p1);
10736double __ovld __cnfn dot(double3 p0, double3 p1);
10737double __ovld __cnfn dot(double4 p0, double4 p1);
10738#endif //cl_khr_fp64
10739#ifdef cl_khr_fp16
10740half __ovld __cnfn dot(half p0, half p1);
10741half __ovld __cnfn dot(half2 p0, half2 p1);
10742half __ovld __cnfn dot(half3 p0, half3 p1);
10743half __ovld __cnfn dot(half4 p0, half4 p1);
10744#endif //cl_khr_fp16
10745
10746/**
10747 * Returns the distance between p0 and p1. This is
10748 * calculated as length(p0 - p1).
10749 */
10750float __ovld __cnfn distance(float p0, float p1);
10751float __ovld __cnfn distance(float2 p0, float2 p1);
10752float __ovld __cnfn distance(float3 p0, float3 p1);
10753float __ovld __cnfn distance(float4 p0, float4 p1);
10754#ifdef cl_khr_fp64
10755double __ovld __cnfn distance(double p0, double p1);
10756double __ovld __cnfn distance(double2 p0, double2 p1);
10757double __ovld __cnfn distance(double3 p0, double3 p1);
10758double __ovld __cnfn distance(double4 p0, double4 p1);
10759#endif //cl_khr_fp64
10760#ifdef cl_khr_fp16
10761half __ovld __cnfn distance(half p0, half p1);
10762half __ovld __cnfn distance(half2 p0, half2 p1);
10763half __ovld __cnfn distance(half3 p0, half3 p1);
10764half __ovld __cnfn distance(half4 p0, half4 p1);
10765#endif //cl_khr_fp16
10766
10767/**
10768 * Return the length of vector p, i.e.,
10769 * sqrt(p.x2 + p.y 2 + ...)
10770 */
10771float __ovld __cnfn length(float p);
10772float __ovld __cnfn length(float2 p);
10773float __ovld __cnfn length(float3 p);
10774float __ovld __cnfn length(float4 p);
10775#ifdef cl_khr_fp64
10776double __ovld __cnfn length(double p);
10777double __ovld __cnfn length(double2 p);
10778double __ovld __cnfn length(double3 p);
10779double __ovld __cnfn length(double4 p);
10780#endif //cl_khr_fp64
10781#ifdef cl_khr_fp16
10782half __ovld __cnfn length(half p);
10783half __ovld __cnfn length(half2 p);
10784half __ovld __cnfn length(half3 p);
10785half __ovld __cnfn length(half4 p);
10786#endif //cl_khr_fp16
10787
10788/**
10789 * Returns a vector in the same direction as p but with a
10790 * length of 1.
10791 */
10792float __ovld __cnfn normalize(float p);
10793float2 __ovld __cnfn normalize(float2 p);
10794float3 __ovld __cnfn normalize(float3 p);
10795float4 __ovld __cnfn normalize(float4 p);
10796#ifdef cl_khr_fp64
10797double __ovld __cnfn normalize(double p);
10798double2 __ovld __cnfn normalize(double2 p);
10799double3 __ovld __cnfn normalize(double3 p);
10800double4 __ovld __cnfn normalize(double4 p);
10801#endif //cl_khr_fp64
10802#ifdef cl_khr_fp16
10803half __ovld __cnfn normalize(half p);
10804half2 __ovld __cnfn normalize(half2 p);
10805half3 __ovld __cnfn normalize(half3 p);
10806half4 __ovld __cnfn normalize(half4 p);
10807#endif //cl_khr_fp16
10808
10809/**
10810 * Returns fast_length(p0 - p1).
10811 */
10812float __ovld __cnfn fast_distance(float p0, float p1);
10813float __ovld __cnfn fast_distance(float2 p0, float2 p1);
10814float __ovld __cnfn fast_distance(float3 p0, float3 p1);
10815float __ovld __cnfn fast_distance(float4 p0, float4 p1);
10816#ifdef cl_khr_fp16
10817half __ovld __cnfn fast_distance(half p0, half p1);
10818half __ovld __cnfn fast_distance(half2 p0, half2 p1);
10819half __ovld __cnfn fast_distance(half3 p0, half3 p1);
10820half __ovld __cnfn fast_distance(half4 p0, half4 p1);
10821#endif //cl_khr_fp16
10822
10823/**
10824 * Returns the length of vector p computed as:
10825 * half_sqrt(p.x2 + p.y2 + ...)
10826 */
10827float __ovld __cnfn fast_length(float p);
10828float __ovld __cnfn fast_length(float2 p);
10829float __ovld __cnfn fast_length(float3 p);
10830float __ovld __cnfn fast_length(float4 p);
10831#ifdef cl_khr_fp16
10832half __ovld __cnfn fast_length(half p);
10833half __ovld __cnfn fast_length(half2 p);
10834half __ovld __cnfn fast_length(half3 p);
10835half __ovld __cnfn fast_length(half4 p);
10836#endif //cl_khr_fp16
10837
10838/**
10839 * Returns a vector in the same direction as p but with a
10840 * length of 1. fast_normalize is computed as:
10841 * p * half_rsqrt (p.x^2 + p.y^2 + ... )
10842 * The result shall be within 8192 ulps error from the
10843 * infinitely precise result of
10844 * if (all(p == 0.0f))
10845 * result = p;
10846 * else
10847 * result = p / sqrt (p.x^2 + p.y^2 + ...);
10848 * with the following exceptions:
10849 * 1) If the sum of squares is greater than FLT_MAX
10850 * then the value of the floating-point values in the
10851 * result vector are undefined.
10852 * 2) If the sum of squares is less than FLT_MIN then
10853 * the implementation may return back p.
10854 * 3) If the device is in "denorms are flushed to zero"
10855 * mode, individual operand elements with magnitude
10856 * less than sqrt(FLT_MIN) may be flushed to zero
10857 * before proceeding with the calculation.
10858 */
10859float __ovld __cnfn fast_normalize(float p);
10860float2 __ovld __cnfn fast_normalize(float2 p);
10861float3 __ovld __cnfn fast_normalize(float3 p);
10862float4 __ovld __cnfn fast_normalize(float4 p);
10863#ifdef cl_khr_fp16
10864half __ovld __cnfn fast_normalize(half p);
10865half2 __ovld __cnfn fast_normalize(half2 p);
10866half3 __ovld __cnfn fast_normalize(half3 p);
10867half4 __ovld __cnfn fast_normalize(half4 p);
10868#endif //cl_khr_fp16
10869
10870// OpenCL v1.1 s6.11.6, v1.2 s6.12.6, v2.0 s6.13.6 - Relational Functions
10871
10872/**
10873 * intn isequal (floatn x, floatn y)
10874 * Returns the component-wise compare of x == y.
10875 */
10876int __ovld __cnfn isequal(float x, float y);
10877int2 __ovld __cnfn isequal(float2 x, float2 y);
10878int3 __ovld __cnfn isequal(float3 x, float3 y);
10879int4 __ovld __cnfn isequal(float4 x, float4 y);
10880int8 __ovld __cnfn isequal(float8 x, float8 y);
10881int16 __ovld __cnfn isequal(float16 x, float16 y);
10882#ifdef cl_khr_fp64
10883int __ovld __cnfn isequal(double x, double y);
10884long2 __ovld __cnfn isequal(double2 x, double2 y);
10885long3 __ovld __cnfn isequal(double3 x, double3 y);
10886long4 __ovld __cnfn isequal(double4 x, double4 y);
10887long8 __ovld __cnfn isequal(double8 x, double8 y);
10888long16 __ovld __cnfn isequal(double16 x, double16 y);
10889#endif //cl_khr_fp64
10890#ifdef cl_khr_fp16
10891int __ovld __cnfn isequal(half x, half y);
10892short2 __ovld __cnfn isequal(half2 x, half2 y);
10893short3 __ovld __cnfn isequal(half3 x, half3 y);
10894short4 __ovld __cnfn isequal(half4 x, half4 y);
10895short8 __ovld __cnfn isequal(half8 x, half8 y);
10896short16 __ovld __cnfn isequal(half16 x, half16 y);
10897#endif //cl_khr_fp16
10898
10899/**
10900 * Returns the component-wise compare of x != y.
10901 */
10902int __ovld __cnfn isnotequal(float x, float y);
10903int2 __ovld __cnfn isnotequal(float2 x, float2 y);
10904int3 __ovld __cnfn isnotequal(float3 x, float3 y);
10905int4 __ovld __cnfn isnotequal(float4 x, float4 y);
10906int8 __ovld __cnfn isnotequal(float8 x, float8 y);
10907int16 __ovld __cnfn isnotequal(float16 x, float16 y);
10908#ifdef cl_khr_fp64
10909int __ovld __cnfn isnotequal(double x, double y);
10910long2 __ovld __cnfn isnotequal(double2 x, double2 y);
10911long3 __ovld __cnfn isnotequal(double3 x, double3 y);
10912long4 __ovld __cnfn isnotequal(double4 x, double4 y);
10913long8 __ovld __cnfn isnotequal(double8 x, double8 y);
10914long16 __ovld __cnfn isnotequal(double16 x, double16 y);
10915#endif //cl_khr_fp64
10916#ifdef cl_khr_fp16
10917int __ovld __cnfn isnotequal(half x, half y);
10918short2 __ovld __cnfn isnotequal(half2 x, half2 y);
10919short3 __ovld __cnfn isnotequal(half3 x, half3 y);
10920short4 __ovld __cnfn isnotequal(half4 x, half4 y);
10921short8 __ovld __cnfn isnotequal(half8 x, half8 y);
10922short16 __ovld __cnfn isnotequal(half16 x, half16 y);
10923#endif //cl_khr_fp16
10924
10925/**
10926 * Returns the component-wise compare of x > y.
10927 */
10928int __ovld __cnfn isgreater(float x, float y);
10929int2 __ovld __cnfn isgreater(float2 x, float2 y);
10930int3 __ovld __cnfn isgreater(float3 x, float3 y);
10931int4 __ovld __cnfn isgreater(float4 x, float4 y);
10932int8 __ovld __cnfn isgreater(float8 x, float8 y);
10933int16 __ovld __cnfn isgreater(float16 x, float16 y);
10934#ifdef cl_khr_fp64
10935int __ovld __cnfn isgreater(double x, double y);
10936long2 __ovld __cnfn isgreater(double2 x, double2 y);
10937long3 __ovld __cnfn isgreater(double3 x, double3 y);
10938long4 __ovld __cnfn isgreater(double4 x, double4 y);
10939long8 __ovld __cnfn isgreater(double8 x, double8 y);
10940long16 __ovld __cnfn isgreater(double16 x, double16 y);
10941#endif //cl_khr_fp64
10942#ifdef cl_khr_fp16
10943int __ovld __cnfn isgreater(half x, half y);
10944short2 __ovld __cnfn isgreater(half2 x, half2 y);
10945short3 __ovld __cnfn isgreater(half3 x, half3 y);
10946short4 __ovld __cnfn isgreater(half4 x, half4 y);
10947short8 __ovld __cnfn isgreater(half8 x, half8 y);
10948short16 __ovld __cnfn isgreater(half16 x, half16 y);
10949#endif //cl_khr_fp16
10950
10951/**
10952 * Returns the component-wise compare of x >= y.
10953 */
10954int __ovld __cnfn isgreaterequal(float x, float y);
10955int2 __ovld __cnfn isgreaterequal(float2 x, float2 y);
10956int3 __ovld __cnfn isgreaterequal(float3 x, float3 y);
10957int4 __ovld __cnfn isgreaterequal(float4 x, float4 y);
10958int8 __ovld __cnfn isgreaterequal(float8 x, float8 y);
10959int16 __ovld __cnfn isgreaterequal(float16 x, float16 y);
10960#ifdef cl_khr_fp64
10961int __ovld __cnfn isgreaterequal(double x, double y);
10962long2 __ovld __cnfn isgreaterequal(double2 x, double2 y);
10963long3 __ovld __cnfn isgreaterequal(double3 x, double3 y);
10964long4 __ovld __cnfn isgreaterequal(double4 x, double4 y);
10965long8 __ovld __cnfn isgreaterequal(double8 x, double8 y);
10966long16 __ovld __cnfn isgreaterequal(double16 x, double16 y);
10967#endif //cl_khr_fp64
10968#ifdef cl_khr_fp16
10969int __ovld __cnfn isgreaterequal(half x, half y);
10970short2 __ovld __cnfn isgreaterequal(half2 x, half2 y);
10971short3 __ovld __cnfn isgreaterequal(half3 x, half3 y);
10972short4 __ovld __cnfn isgreaterequal(half4 x, half4 y);
10973short8 __ovld __cnfn isgreaterequal(half8 x, half8 y);
10974short16 __ovld __cnfn isgreaterequal(half16 x, half16 y);
10975#endif //cl_khr_fp16
10976
10977/**
10978 * Returns the component-wise compare of x < y.
10979 */
10980int __ovld __cnfn isless(float x, float y);
10981int2 __ovld __cnfn isless(float2 x, float2 y);
10982int3 __ovld __cnfn isless(float3 x, float3 y);
10983int4 __ovld __cnfn isless(float4 x, float4 y);
10984int8 __ovld __cnfn isless(float8 x, float8 y);
10985int16 __ovld __cnfn isless(float16 x, float16 y);
10986#ifdef cl_khr_fp64
10987int __ovld __cnfn isless(double x, double y);
10988long2 __ovld __cnfn isless(double2 x, double2 y);
10989long3 __ovld __cnfn isless(double3 x, double3 y);
10990long4 __ovld __cnfn isless(double4 x, double4 y);
10991long8 __ovld __cnfn isless(double8 x, double8 y);
10992long16 __ovld __cnfn isless(double16 x, double16 y);
10993#endif //cl_khr_fp64
10994#ifdef cl_khr_fp16
10995int __ovld __cnfn isless(half x, half y);
10996short2 __ovld __cnfn isless(half2 x, half2 y);
10997short3 __ovld __cnfn isless(half3 x, half3 y);
10998short4 __ovld __cnfn isless(half4 x, half4 y);
10999short8 __ovld __cnfn isless(half8 x, half8 y);
11000short16 __ovld __cnfn isless(half16 x, half16 y);
11001#endif //cl_khr_fp16
11002
11003/**
11004 * Returns the component-wise compare of x <= y.
11005 */
11006int __ovld __cnfn islessequal(float x, float y);
11007int2 __ovld __cnfn islessequal(float2 x, float2 y);
11008int3 __ovld __cnfn islessequal(float3 x, float3 y);
11009int4 __ovld __cnfn islessequal(float4 x, float4 y);
11010int8 __ovld __cnfn islessequal(float8 x, float8 y);
11011int16 __ovld __cnfn islessequal(float16 x, float16 y);
11012#ifdef cl_khr_fp64
11013int __ovld __cnfn islessequal(double x, double y);
11014long2 __ovld __cnfn islessequal(double2 x, double2 y);
11015long3 __ovld __cnfn islessequal(double3 x, double3 y);
11016long4 __ovld __cnfn islessequal(double4 x, double4 y);
11017long8 __ovld __cnfn islessequal(double8 x, double8 y);
11018long16 __ovld __cnfn islessequal(double16 x, double16 y);
11019#endif //cl_khr_fp64
11020#ifdef cl_khr_fp16
11021int __ovld __cnfn islessequal(half x, half y);
11022short2 __ovld __cnfn islessequal(half2 x, half2 y);
11023short3 __ovld __cnfn islessequal(half3 x, half3 y);
11024short4 __ovld __cnfn islessequal(half4 x, half4 y);
11025short8 __ovld __cnfn islessequal(half8 x, half8 y);
11026short16 __ovld __cnfn islessequal(half16 x, half16 y);
11027#endif //cl_khr_fp16
11028
11029/**
11030 * Returns the component-wise compare of
11031 * (x < y) || (x > y) .
11032 */
11033int __ovld __cnfn islessgreater(float x, float y);
11034int2 __ovld __cnfn islessgreater(float2 x, float2 y);
11035int3 __ovld __cnfn islessgreater(float3 x, float3 y);
11036int4 __ovld __cnfn islessgreater(float4 x, float4 y);
11037int8 __ovld __cnfn islessgreater(float8 x, float8 y);
11038int16 __ovld __cnfn islessgreater(float16 x, float16 y);
11039#ifdef cl_khr_fp64
11040int __ovld __cnfn islessgreater(double x, double y);
11041long2 __ovld __cnfn islessgreater(double2 x, double2 y);
11042long3 __ovld __cnfn islessgreater(double3 x, double3 y);
11043long4 __ovld __cnfn islessgreater(double4 x, double4 y);
11044long8 __ovld __cnfn islessgreater(double8 x, double8 y);
11045long16 __ovld __cnfn islessgreater(double16 x, double16 y);
11046#endif //cl_khr_fp64
11047#ifdef cl_khr_fp16
11048int __ovld __cnfn islessgreater(half x, half y);
11049short2 __ovld __cnfn islessgreater(half2 x, half2 y);
11050short3 __ovld __cnfn islessgreater(half3 x, half3 y);
11051short4 __ovld __cnfn islessgreater(half4 x, half4 y);
11052short8 __ovld __cnfn islessgreater(half8 x, half8 y);
11053short16 __ovld __cnfn islessgreater(half16 x, half16 y);
11054#endif //cl_khr_fp16
11055
11056/**
11057 * Test for finite value.
11058 */
11059int __ovld __cnfn isfinite(float);
11060int2 __ovld __cnfn isfinite(float2);
11061int3 __ovld __cnfn isfinite(float3);
11062int4 __ovld __cnfn isfinite(float4);
11063int8 __ovld __cnfn isfinite(float8);
11064int16 __ovld __cnfn isfinite(float16);
11065#ifdef cl_khr_fp64
11066int __ovld __cnfn isfinite(double);
11067long2 __ovld __cnfn isfinite(double2);
11068long3 __ovld __cnfn isfinite(double3);
11069long4 __ovld __cnfn isfinite(double4);
11070long8 __ovld __cnfn isfinite(double8);
11071long16 __ovld __cnfn isfinite(double16);
11072#endif //cl_khr_fp64
11073#ifdef cl_khr_fp16
11074int __ovld __cnfn isfinite(half);
11075short2 __ovld __cnfn isfinite(half2);
11076short3 __ovld __cnfn isfinite(half3);
11077short4 __ovld __cnfn isfinite(half4);
11078short8 __ovld __cnfn isfinite(half8);
11079short16 __ovld __cnfn isfinite(half16);
11080#endif //cl_khr_fp16
11081
11082/**
11083 * Test for infinity value (+ve or -ve) .
11084 */
11085int __ovld __cnfn isinf(float);
11086int2 __ovld __cnfn isinf(float2);
11087int3 __ovld __cnfn isinf(float3);
11088int4 __ovld __cnfn isinf(float4);
11089int8 __ovld __cnfn isinf(float8);
11090int16 __ovld __cnfn isinf(float16);
11091#ifdef cl_khr_fp64
11092int __ovld __cnfn isinf(double);
11093long2 __ovld __cnfn isinf(double2);
11094long3 __ovld __cnfn isinf(double3);
11095long4 __ovld __cnfn isinf(double4);
11096long8 __ovld __cnfn isinf(double8);
11097long16 __ovld __cnfn isinf(double16);
11098#endif //cl_khr_fp64
11099#ifdef cl_khr_fp16
11100int __ovld __cnfn isinf(half);
11101short2 __ovld __cnfn isinf(half2);
11102short3 __ovld __cnfn isinf(half3);
11103short4 __ovld __cnfn isinf(half4);
11104short8 __ovld __cnfn isinf(half8);
11105short16 __ovld __cnfn isinf(half16);
11106#endif //cl_khr_fp16
11107
11108/**
11109 * Test for a NaN.
11110 */
11111int __ovld __cnfn isnan(float);
11112int2 __ovld __cnfn isnan(float2);
11113int3 __ovld __cnfn isnan(float3);
11114int4 __ovld __cnfn isnan(float4);
11115int8 __ovld __cnfn isnan(float8);
11116int16 __ovld __cnfn isnan(float16);
11117#ifdef cl_khr_fp64
11118int __ovld __cnfn isnan(double);
11119long2 __ovld __cnfn isnan(double2);
11120long3 __ovld __cnfn isnan(double3);
11121long4 __ovld __cnfn isnan(double4);
11122long8 __ovld __cnfn isnan(double8);
11123long16 __ovld __cnfn isnan(double16);
11124#endif //cl_khr_fp64
11125#ifdef cl_khr_fp16
11126int __ovld __cnfn isnan(half);
11127short2 __ovld __cnfn isnan(half2);
11128short3 __ovld __cnfn isnan(half3);
11129short4 __ovld __cnfn isnan(half4);
11130short8 __ovld __cnfn isnan(half8);
11131short16 __ovld __cnfn isnan(half16);
11132#endif //cl_khr_fp16
11133
11134/**
11135 * Test for a normal value.
11136 */
11137int __ovld __cnfn isnormal(float);
11138int2 __ovld __cnfn isnormal(float2);
11139int3 __ovld __cnfn isnormal(float3);
11140int4 __ovld __cnfn isnormal(float4);
11141int8 __ovld __cnfn isnormal(float8);
11142int16 __ovld __cnfn isnormal(float16);
11143#ifdef cl_khr_fp64
11144int __ovld __cnfn isnormal(double);
11145long2 __ovld __cnfn isnormal(double2);
11146long3 __ovld __cnfn isnormal(double3);
11147long4 __ovld __cnfn isnormal(double4);
11148long8 __ovld __cnfn isnormal(double8);
11149long16 __ovld __cnfn isnormal(double16);
11150#endif //cl_khr_fp64
11151#ifdef cl_khr_fp16
11152int __ovld __cnfn isnormal(half);
11153short2 __ovld __cnfn isnormal(half2);
11154short3 __ovld __cnfn isnormal(half3);
11155short4 __ovld __cnfn isnormal(half4);
11156short8 __ovld __cnfn isnormal(half8);
11157short16 __ovld __cnfn isnormal(half16);
11158#endif //cl_khr_fp16
11159
11160/**
11161 * Test if arguments are ordered. isordered() takes
11162 * arguments x and y, and returns the result
11163 * isequal(x, x) && isequal(y, y).
11164 */
11165int __ovld __cnfn isordered(float x, float y);
11166int2 __ovld __cnfn isordered(float2 x, float2 y);
11167int3 __ovld __cnfn isordered(float3 x, float3 y);
11168int4 __ovld __cnfn isordered(float4 x, float4 y);
11169int8 __ovld __cnfn isordered(float8 x, float8 y);
11170int16 __ovld __cnfn isordered(float16 x, float16 y);
11171#ifdef cl_khr_fp64
11172int __ovld __cnfn isordered(double x, double y);
11173long2 __ovld __cnfn isordered(double2 x, double2 y);
11174long3 __ovld __cnfn isordered(double3 x, double3 y);
11175long4 __ovld __cnfn isordered(double4 x, double4 y);
11176long8 __ovld __cnfn isordered(double8 x, double8 y);
11177long16 __ovld __cnfn isordered(double16 x, double16 y);
11178#endif //cl_khr_fp64
11179#ifdef cl_khr_fp16
11180int __ovld __cnfn isordered(half x, half y);
11181short2 __ovld __cnfn isordered(half2 x, half2 y);
11182short3 __ovld __cnfn isordered(half3 x, half3 y);
11183short4 __ovld __cnfn isordered(half4 x, half4 y);
11184short8 __ovld __cnfn isordered(half8 x, half8 y);
11185short16 __ovld __cnfn isordered(half16 x, half16 y);
11186#endif //cl_khr_fp16
11187
11188/**
11189 * Test if arguments are unordered. isunordered()
11190 * takes arguments x and y, returning non-zero if x or y
11191 * is NaN, and zero otherwise.
11192 */
11193int __ovld __cnfn isunordered(float x, float y);
11194int2 __ovld __cnfn isunordered(float2 x, float2 y);
11195int3 __ovld __cnfn isunordered(float3 x, float3 y);
11196int4 __ovld __cnfn isunordered(float4 x, float4 y);
11197int8 __ovld __cnfn isunordered(float8 x, float8 y);
11198int16 __ovld __cnfn isunordered(float16 x, float16 y);
11199#ifdef cl_khr_fp64
11200int __ovld __cnfn isunordered(double x, double y);
11201long2 __ovld __cnfn isunordered(double2 x, double2 y);
11202long3 __ovld __cnfn isunordered(double3 x, double3 y);
11203long4 __ovld __cnfn isunordered(double4 x, double4 y);
11204long8 __ovld __cnfn isunordered(double8 x, double8 y);
11205long16 __ovld __cnfn isunordered(double16 x, double16 y);
11206#endif //cl_khr_fp64
11207#ifdef cl_khr_fp16
11208int __ovld __cnfn isunordered(half x, half y);
11209short2 __ovld __cnfn isunordered(half2 x, half2 y);
11210short3 __ovld __cnfn isunordered(half3 x, half3 y);
11211short4 __ovld __cnfn isunordered(half4 x, half4 y);
11212short8 __ovld __cnfn isunordered(half8 x, half8 y);
11213short16 __ovld __cnfn isunordered(half16 x, half16 y);
11214#endif //cl_khr_fp16
11215
11216/**
11217 * Test for sign bit. The scalar version of the function
11218 * returns a 1 if the sign bit in the float is set else returns
11219 * 0. The vector version of the function returns the
11220 * following for each component in floatn: a -1 if the
11221 * sign bit in the float is set else returns 0.
11222 */
11223int __ovld __cnfn signbit(float);
11224int2 __ovld __cnfn signbit(float2);
11225int3 __ovld __cnfn signbit(float3);
11226int4 __ovld __cnfn signbit(float4);
11227int8 __ovld __cnfn signbit(float8);
11228int16 __ovld __cnfn signbit(float16);
11229#ifdef cl_khr_fp64
11230int __ovld __cnfn signbit(double);
11231long2 __ovld __cnfn signbit(double2);
11232long3 __ovld __cnfn signbit(double3);
11233long4 __ovld __cnfn signbit(double4);
11234long8 __ovld __cnfn signbit(double8);
11235long16 __ovld __cnfn signbit(double16);
11236#endif //cl_khr_fp64
11237#ifdef cl_khr_fp16
11238int __ovld __cnfn signbit(half);
11239short2 __ovld __cnfn signbit(half2);
11240short3 __ovld __cnfn signbit(half3);
11241short4 __ovld __cnfn signbit(half4);
11242short8 __ovld __cnfn signbit(half8);
11243short16 __ovld __cnfn signbit(half16);
11244#endif //cl_khr_fp16
11245
11246/**
11247 * Returns 1 if the most significant bit in any component
11248 * of x is set; otherwise returns 0.
11249 */
11250int __ovld __cnfn any(char x);
11251int __ovld __cnfn any(char2 x);
11252int __ovld __cnfn any(char3 x);
11253int __ovld __cnfn any(char4 x);
11254int __ovld __cnfn any(char8 x);
11255int __ovld __cnfn any(char16 x);
11256int __ovld __cnfn any(short x);
11257int __ovld __cnfn any(short2 x);
11258int __ovld __cnfn any(short3 x);
11259int __ovld __cnfn any(short4 x);
11260int __ovld __cnfn any(short8 x);
11261int __ovld __cnfn any(short16 x);
11262int __ovld __cnfn any(int x);
11263int __ovld __cnfn any(int2 x);
11264int __ovld __cnfn any(int3 x);
11265int __ovld __cnfn any(int4 x);
11266int __ovld __cnfn any(int8 x);
11267int __ovld __cnfn any(int16 x);
11268int __ovld __cnfn any(long x);
11269int __ovld __cnfn any(long2 x);
11270int __ovld __cnfn any(long3 x);
11271int __ovld __cnfn any(long4 x);
11272int __ovld __cnfn any(long8 x);
11273int __ovld __cnfn any(long16 x);
11274
11275/**
11276 * Returns 1 if the most significant bit in all components
11277 * of x is set; otherwise returns 0.
11278 */
11279int __ovld __cnfn all(char x);
11280int __ovld __cnfn all(char2 x);
11281int __ovld __cnfn all(char3 x);
11282int __ovld __cnfn all(char4 x);
11283int __ovld __cnfn all(char8 x);
11284int __ovld __cnfn all(char16 x);
11285int __ovld __cnfn all(short x);
11286int __ovld __cnfn all(short2 x);
11287int __ovld __cnfn all(short3 x);
11288int __ovld __cnfn all(short4 x);
11289int __ovld __cnfn all(short8 x);
11290int __ovld __cnfn all(short16 x);
11291int __ovld __cnfn all(int x);
11292int __ovld __cnfn all(int2 x);
11293int __ovld __cnfn all(int3 x);
11294int __ovld __cnfn all(int4 x);
11295int __ovld __cnfn all(int8 x);
11296int __ovld __cnfn all(int16 x);
11297int __ovld __cnfn all(long x);
11298int __ovld __cnfn all(long2 x);
11299int __ovld __cnfn all(long3 x);
11300int __ovld __cnfn all(long4 x);
11301int __ovld __cnfn all(long8 x);
11302int __ovld __cnfn all(long16 x);
11303
11304/**
11305 * Each bit of the result is the corresponding bit of a if
11306 * the corresponding bit of c is 0. Otherwise it is the
11307 * corresponding bit of b.
11308 */
11309char __ovld __cnfn bitselect(char a, char b, char c);
11310uchar __ovld __cnfn bitselect(uchar a, uchar b, uchar c);
11311char2 __ovld __cnfn bitselect(char2 a, char2 b, char2 c);
11312uchar2 __ovld __cnfn bitselect(uchar2 a, uchar2 b, uchar2 c);
11313char3 __ovld __cnfn bitselect(char3 a, char3 b, char3 c);
11314uchar3 __ovld __cnfn bitselect(uchar3 a, uchar3 b, uchar3 c);
11315char4 __ovld __cnfn bitselect(char4 a, char4 b, char4 c);
11316uchar4 __ovld __cnfn bitselect(uchar4 a, uchar4 b, uchar4 c);
11317char8 __ovld __cnfn bitselect(char8 a, char8 b, char8 c);
11318uchar8 __ovld __cnfn bitselect(uchar8 a, uchar8 b, uchar8 c);
11319char16 __ovld __cnfn bitselect(char16 a, char16 b, char16 c);
11320uchar16 __ovld __cnfn bitselect(uchar16 a, uchar16 b, uchar16 c);
11321short __ovld __cnfn bitselect(short a, short b, short c);
11322ushort __ovld __cnfn bitselect(ushort a, ushort b, ushort c);
11323short2 __ovld __cnfn bitselect(short2 a, short2 b, short2 c);
11324ushort2 __ovld __cnfn bitselect(ushort2 a, ushort2 b, ushort2 c);
11325short3 __ovld __cnfn bitselect(short3 a, short3 b, short3 c);
11326ushort3 __ovld __cnfn bitselect(ushort3 a, ushort3 b, ushort3 c);
11327short4 __ovld __cnfn bitselect(short4 a, short4 b, short4 c);
11328ushort4 __ovld __cnfn bitselect(ushort4 a, ushort4 b, ushort4 c);
11329short8 __ovld __cnfn bitselect(short8 a, short8 b, short8 c);
11330ushort8 __ovld __cnfn bitselect(ushort8 a, ushort8 b, ushort8 c);
11331short16 __ovld __cnfn bitselect(short16 a, short16 b, short16 c);
11332ushort16 __ovld __cnfn bitselect(ushort16 a, ushort16 b, ushort16 c);
11333int __ovld __cnfn bitselect(int a, int b, int c);
11334uint __ovld __cnfn bitselect(uint a, uint b, uint c);
11335int2 __ovld __cnfn bitselect(int2 a, int2 b, int2 c);
11336uint2 __ovld __cnfn bitselect(uint2 a, uint2 b, uint2 c);
11337int3 __ovld __cnfn bitselect(int3 a, int3 b, int3 c);
11338uint3 __ovld __cnfn bitselect(uint3 a, uint3 b, uint3 c);
11339int4 __ovld __cnfn bitselect(int4 a, int4 b, int4 c);
11340uint4 __ovld __cnfn bitselect(uint4 a, uint4 b, uint4 c);
11341int8 __ovld __cnfn bitselect(int8 a, int8 b, int8 c);
11342uint8 __ovld __cnfn bitselect(uint8 a, uint8 b, uint8 c);
11343int16 __ovld __cnfn bitselect(int16 a, int16 b, int16 c);
11344uint16 __ovld __cnfn bitselect(uint16 a, uint16 b, uint16 c);
11345long __ovld __cnfn bitselect(long a, long b, long c);
11346ulong __ovld __cnfn bitselect(ulong a, ulong b, ulong c);
11347long2 __ovld __cnfn bitselect(long2 a, long2 b, long2 c);
11348ulong2 __ovld __cnfn bitselect(ulong2 a, ulong2 b, ulong2 c);
11349long3 __ovld __cnfn bitselect(long3 a, long3 b, long3 c);
11350ulong3 __ovld __cnfn bitselect(ulong3 a, ulong3 b, ulong3 c);
11351long4 __ovld __cnfn bitselect(long4 a, long4 b, long4 c);
11352ulong4 __ovld __cnfn bitselect(ulong4 a, ulong4 b, ulong4 c);
11353long8 __ovld __cnfn bitselect(long8 a, long8 b, long8 c);
11354ulong8 __ovld __cnfn bitselect(ulong8 a, ulong8 b, ulong8 c);
11355long16 __ovld __cnfn bitselect(long16 a, long16 b, long16 c);
11356ulong16 __ovld __cnfn bitselect(ulong16 a, ulong16 b, ulong16 c);
11357float __ovld __cnfn bitselect(float a, float b, float c);
11358float2 __ovld __cnfn bitselect(float2 a, float2 b, float2 c);
11359float3 __ovld __cnfn bitselect(float3 a, float3 b, float3 c);
11360float4 __ovld __cnfn bitselect(float4 a, float4 b, float4 c);
11361float8 __ovld __cnfn bitselect(float8 a, float8 b, float8 c);
11362float16 __ovld __cnfn bitselect(float16 a, float16 b, float16 c);
11363#ifdef cl_khr_fp64
11364double __ovld __cnfn bitselect(double a, double b, double c);
11365double2 __ovld __cnfn bitselect(double2 a, double2 b, double2 c);
11366double3 __ovld __cnfn bitselect(double3 a, double3 b, double3 c);
11367double4 __ovld __cnfn bitselect(double4 a, double4 b, double4 c);
11368double8 __ovld __cnfn bitselect(double8 a, double8 b, double8 c);
11369double16 __ovld __cnfn bitselect(double16 a, double16 b, double16 c);
11370#endif //cl_khr_fp64
11371#ifdef cl_khr_fp16
11372half __ovld __cnfn bitselect(half a, half b, half c);
11373half2 __ovld __cnfn bitselect(half2 a, half2 b, half2 c);
11374half3 __ovld __cnfn bitselect(half3 a, half3 b, half3 c);
11375half4 __ovld __cnfn bitselect(half4 a, half4 b, half4 c);
11376half8 __ovld __cnfn bitselect(half8 a, half8 b, half8 c);
11377half16 __ovld __cnfn bitselect(half16 a, half16 b, half16 c);
11378#endif //cl_khr_fp16
11379
11380/**
11381 * For each component of a vector type,
11382 * result[i] = if MSB of c[i] is set ? b[i] : a[i].
11383 * For a scalar type, result = c ? b : a.
11384 * b and a must have the same type.
11385 * c must have the same number of elements and bits as a.
11386 */
11387char __ovld __cnfn select(char a, char b, char c);
11388uchar __ovld __cnfn select(uchar a, uchar b, char c);
11389char2 __ovld __cnfn select(char2 a, char2 b, char2 c);
11390uchar2 __ovld __cnfn select(uchar2 a, uchar2 b, char2 c);
11391char3 __ovld __cnfn select(char3 a, char3 b, char3 c);
11392uchar3 __ovld __cnfn select(uchar3 a, uchar3 b, char3 c);
11393char4 __ovld __cnfn select(char4 a, char4 b, char4 c);
11394uchar4 __ovld __cnfn select(uchar4 a, uchar4 b, char4 c);
11395char8 __ovld __cnfn select(char8 a, char8 b, char8 c);
11396uchar8 __ovld __cnfn select(uchar8 a, uchar8 b, char8 c);
11397char16 __ovld __cnfn select(char16 a, char16 b, char16 c);
11398uchar16 __ovld __cnfn select(uchar16 a, uchar16 b, char16 c);
11399
11400short __ovld __cnfn select(short a, short b, short c);
11401ushort __ovld __cnfn select(ushort a, ushort b, short c);
11402short2 __ovld __cnfn select(short2 a, short2 b, short2 c);
11403ushort2 __ovld __cnfn select(ushort2 a, ushort2 b, short2 c);
11404short3 __ovld __cnfn select(short3 a, short3 b, short3 c);
11405ushort3 __ovld __cnfn select(ushort3 a, ushort3 b, short3 c);
11406short4 __ovld __cnfn select(short4 a, short4 b, short4 c);
11407ushort4 __ovld __cnfn select(ushort4 a, ushort4 b, short4 c);
11408short8 __ovld __cnfn select(short8 a, short8 b, short8 c);
11409ushort8 __ovld __cnfn select(ushort8 a, ushort8 b, short8 c);
11410short16 __ovld __cnfn select(short16 a, short16 b, short16 c);
11411ushort16 __ovld __cnfn select(ushort16 a, ushort16 b, short16 c);
11412
11413int __ovld __cnfn select(int a, int b, int c);
11414uint __ovld __cnfn select(uint a, uint b, int c);
11415int2 __ovld __cnfn select(int2 a, int2 b, int2 c);
11416uint2 __ovld __cnfn select(uint2 a, uint2 b, int2 c);
11417int3 __ovld __cnfn select(int3 a, int3 b, int3 c);
11418uint3 __ovld __cnfn select(uint3 a, uint3 b, int3 c);
11419int4 __ovld __cnfn select(int4 a, int4 b, int4 c);
11420uint4 __ovld __cnfn select(uint4 a, uint4 b, int4 c);
11421int8 __ovld __cnfn select(int8 a, int8 b, int8 c);
11422uint8 __ovld __cnfn select(uint8 a, uint8 b, int8 c);
11423int16 __ovld __cnfn select(int16 a, int16 b, int16 c);
11424uint16 __ovld __cnfn select(uint16 a, uint16 b, int16 c);
11425float __ovld __cnfn select(float a, float b, int c);
11426float2 __ovld __cnfn select(float2 a, float2 b, int2 c);
11427float3 __ovld __cnfn select(float3 a, float3 b, int3 c);
11428float4 __ovld __cnfn select(float4 a, float4 b, int4 c);
11429float8 __ovld __cnfn select(float8 a, float8 b, int8 c);
11430float16 __ovld __cnfn select(float16 a, float16 b, int16 c);
11431
11432long __ovld __cnfn select(long a, long b, long c);
11433ulong __ovld __cnfn select(ulong a, ulong b, long c);
11434long2 __ovld __cnfn select(long2 a, long2 b, long2 c);
11435ulong2 __ovld __cnfn select(ulong2 a, ulong2 b, long2 c);
11436long3 __ovld __cnfn select(long3 a, long3 b, long3 c);
11437ulong3 __ovld __cnfn select(ulong3 a, ulong3 b, long3 c);
11438long4 __ovld __cnfn select(long4 a, long4 b, long4 c);
11439ulong4 __ovld __cnfn select(ulong4 a, ulong4 b, long4 c);
11440long8 __ovld __cnfn select(long8 a, long8 b, long8 c);
11441ulong8 __ovld __cnfn select(ulong8 a, ulong8 b, long8 c);
11442long16 __ovld __cnfn select(long16 a, long16 b, long16 c);
11443ulong16 __ovld __cnfn select(ulong16 a, ulong16 b, long16 c);
11444
11445char __ovld __cnfn select(char a, char b, uchar c);
11446uchar __ovld __cnfn select(uchar a, uchar b, uchar c);
11447char2 __ovld __cnfn select(char2 a, char2 b, uchar2 c);
11448uchar2 __ovld __cnfn select(uchar2 a, uchar2 b, uchar2 c);
11449char3 __ovld __cnfn select(char3 a, char3 b, uchar3 c);
11450uchar3 __ovld __cnfn select(uchar3 a, uchar3 b, uchar3 c);
11451char4 __ovld __cnfn select(char4 a, char4 b, uchar4 c);
11452uchar4 __ovld __cnfn select(uchar4 a, uchar4 b, uchar4 c);
11453char8 __ovld __cnfn select(char8 a, char8 b, uchar8 c);
11454uchar8 __ovld __cnfn select(uchar8 a, uchar8 b, uchar8 c);
11455char16 __ovld __cnfn select(char16 a, char16 b, uchar16 c);
11456uchar16 __ovld __cnfn select(uchar16 a, uchar16 b, uchar16 c);
11457
11458short __ovld __cnfn select(short a, short b, ushort c);
11459ushort __ovld __cnfn select(ushort a, ushort b, ushort c);
11460short2 __ovld __cnfn select(short2 a, short2 b, ushort2 c);
11461ushort2 __ovld __cnfn select(ushort2 a, ushort2 b, ushort2 c);
11462short3 __ovld __cnfn select(short3 a, short3 b, ushort3 c);
11463ushort3 __ovld __cnfn select(ushort3 a, ushort3 b, ushort3 c);
11464short4 __ovld __cnfn select(short4 a, short4 b, ushort4 c);
11465ushort4 __ovld __cnfn select(ushort4 a, ushort4 b, ushort4 c);
11466short8 __ovld __cnfn select(short8 a, short8 b, ushort8 c);
11467ushort8 __ovld __cnfn select(ushort8 a, ushort8 b, ushort8 c);
11468short16 __ovld __cnfn select(short16 a, short16 b, ushort16 c);
11469ushort16 __ovld __cnfn select(ushort16 a, ushort16 b, ushort16 c);
11470
11471int __ovld __cnfn select(int a, int b, uint c);
11472uint __ovld __cnfn select(uint a, uint b, uint c);
11473int2 __ovld __cnfn select(int2 a, int2 b, uint2 c);
11474uint2 __ovld __cnfn select(uint2 a, uint2 b, uint2 c);
11475int3 __ovld __cnfn select(int3 a, int3 b, uint3 c);
11476uint3 __ovld __cnfn select(uint3 a, uint3 b, uint3 c);
11477int4 __ovld __cnfn select(int4 a, int4 b, uint4 c);
11478uint4 __ovld __cnfn select(uint4 a, uint4 b, uint4 c);
11479int8 __ovld __cnfn select(int8 a, int8 b, uint8 c);
11480uint8 __ovld __cnfn select(uint8 a, uint8 b, uint8 c);
11481int16 __ovld __cnfn select(int16 a, int16 b, uint16 c);
11482uint16 __ovld __cnfn select(uint16 a, uint16 b, uint16 c);
11483float __ovld __cnfn select(float a, float b, uint c);
11484float2 __ovld __cnfn select(float2 a, float2 b, uint2 c);
11485float3 __ovld __cnfn select(float3 a, float3 b, uint3 c);
11486float4 __ovld __cnfn select(float4 a, float4 b, uint4 c);
11487float8 __ovld __cnfn select(float8 a, float8 b, uint8 c);
11488float16 __ovld __cnfn select(float16 a, float16 b, uint16 c);
11489
11490long __ovld __cnfn select(long a, long b, ulong c);
11491ulong __ovld __cnfn select(ulong a, ulong b, ulong c);
11492long2 __ovld __cnfn select(long2 a, long2 b, ulong2 c);
11493ulong2 __ovld __cnfn select(ulong2 a, ulong2 b, ulong2 c);
11494long3 __ovld __cnfn select(long3 a, long3 b, ulong3 c);
11495ulong3 __ovld __cnfn select(ulong3 a, ulong3 b, ulong3 c);
11496long4 __ovld __cnfn select(long4 a, long4 b, ulong4 c);
11497ulong4 __ovld __cnfn select(ulong4 a, ulong4 b, ulong4 c);
11498long8 __ovld __cnfn select(long8 a, long8 b, ulong8 c);
11499ulong8 __ovld __cnfn select(ulong8 a, ulong8 b, ulong8 c);
11500long16 __ovld __cnfn select(long16 a, long16 b, ulong16 c);
11501ulong16 __ovld __cnfn select(ulong16 a, ulong16 b, ulong16 c);
11502
11503#ifdef cl_khr_fp64
11504double __ovld __cnfn select(double a, double b, long c);
11505double2 __ovld __cnfn select(double2 a, double2 b, long2 c);
11506double3 __ovld __cnfn select(double3 a, double3 b, long3 c);
11507double4 __ovld __cnfn select(double4 a, double4 b, long4 c);
11508double8 __ovld __cnfn select(double8 a, double8 b, long8 c);
11509double16 __ovld __cnfn select(double16 a, double16 b, long16 c);
11510double __ovld __cnfn select(double a, double b, ulong c);
11511double2 __ovld __cnfn select(double2 a, double2 b, ulong2 c);
11512double3 __ovld __cnfn select(double3 a, double3 b, ulong3 c);
11513double4 __ovld __cnfn select(double4 a, double4 b, ulong4 c);
11514double8 __ovld __cnfn select(double8 a, double8 b, ulong8 c);
11515double16 __ovld __cnfn select(double16 a, double16 b, ulong16 c);
11516#endif //cl_khr_fp64
11517#ifdef cl_khr_fp16
11518half __ovld __cnfn select(half a, half b, short c);
11519half2 __ovld __cnfn select(half2 a, half2 b, short2 c);
11520half3 __ovld __cnfn select(half3 a, half3 b, short3 c);
11521half4 __ovld __cnfn select(half4 a, half4 b, short4 c);
11522half8 __ovld __cnfn select(half8 a, half8 b, short8 c);
11523half16 __ovld __cnfn select(half16 a, half16 b, short16 c);
11524half __ovld __cnfn select(half a, half b, ushort c);
11525half2 __ovld __cnfn select(half2 a, half2 b, ushort2 c);
11526half3 __ovld __cnfn select(half3 a, half3 b, ushort3 c);
11527half4 __ovld __cnfn select(half4 a, half4 b, ushort4 c);
11528half8 __ovld __cnfn select(half8 a, half8 b, ushort8 c);
11529half16 __ovld __cnfn select(half16 a, half16 b, ushort16 c);
11530#endif //cl_khr_fp16
11531
11532// OpenCL v1.1 s6.11.7, v1.2 s6.12.7, v2.0 s6.13.7 - Vector Data Load and Store Functions
11533// OpenCL extensions v1.1 s9.6.6, v1.2 s9.5.6, v2.0 s9.4.6 - Vector Data Load and Store Functions for Half Type
11534/**
11535 * Use generic type gentype to indicate the built-in data types
11536 * char, uchar, short, ushort, int, uint, long, ulong, float,
11537 * double or half.
11538 *
11539 * vloadn return sizeof (gentypen) bytes of data read from address (p + (offset * n)).
11540 *
11541 * vstoren write sizeof (gentypen) bytes given by data to address (p + (offset * n)).
11542 *
11543 * The address computed as (p + (offset * n)) must be
11544 * 8-bit aligned if gentype is char, uchar;
11545 * 16-bit aligned if gentype is short, ushort, half;
11546 * 32-bit aligned if gentype is int, uint, float;
11547 * 64-bit aligned if gentype is long, ulong, double.
11548 */
11549
11550char2 __ovld vload2(size_t offset, const __constant char *p);
11551uchar2 __ovld vload2(size_t offset, const __constant uchar *p);
11552short2 __ovld vload2(size_t offset, const __constant short *p);
11553ushort2 __ovld vload2(size_t offset, const __constant ushort *p);
11554int2 __ovld vload2(size_t offset, const __constant int *p);
11555uint2 __ovld vload2(size_t offset, const __constant uint *p);
11556long2 __ovld vload2(size_t offset, const __constant long *p);
11557ulong2 __ovld vload2(size_t offset, const __constant ulong *p);
11558float2 __ovld vload2(size_t offset, const __constant float *p);
11559char3 __ovld vload3(size_t offset, const __constant char *p);
11560uchar3 __ovld vload3(size_t offset, const __constant uchar *p);
11561short3 __ovld vload3(size_t offset, const __constant short *p);
11562ushort3 __ovld vload3(size_t offset, const __constant ushort *p);
11563int3 __ovld vload3(size_t offset, const __constant int *p);
11564uint3 __ovld vload3(size_t offset, const __constant uint *p);
11565long3 __ovld vload3(size_t offset, const __constant long *p);
11566ulong3 __ovld vload3(size_t offset, const __constant ulong *p);
11567float3 __ovld vload3(size_t offset, const __constant float *p);
11568char4 __ovld vload4(size_t offset, const __constant char *p);
11569uchar4 __ovld vload4(size_t offset, const __constant uchar *p);
11570short4 __ovld vload4(size_t offset, const __constant short *p);
11571ushort4 __ovld vload4(size_t offset, const __constant ushort *p);
11572int4 __ovld vload4(size_t offset, const __constant int *p);
11573uint4 __ovld vload4(size_t offset, const __constant uint *p);
11574long4 __ovld vload4(size_t offset, const __constant long *p);
11575ulong4 __ovld vload4(size_t offset, const __constant ulong *p);
11576float4 __ovld vload4(size_t offset, const __constant float *p);
11577char8 __ovld vload8(size_t offset, const __constant char *p);
11578uchar8 __ovld vload8(size_t offset, const __constant uchar *p);
11579short8 __ovld vload8(size_t offset, const __constant short *p);
11580ushort8 __ovld vload8(size_t offset, const __constant ushort *p);
11581int8 __ovld vload8(size_t offset, const __constant int *p);
11582uint8 __ovld vload8(size_t offset, const __constant uint *p);
11583long8 __ovld vload8(size_t offset, const __constant long *p);
11584ulong8 __ovld vload8(size_t offset, const __constant ulong *p);
11585float8 __ovld vload8(size_t offset, const __constant float *p);
11586char16 __ovld vload16(size_t offset, const __constant char *p);
11587uchar16 __ovld vload16(size_t offset, const __constant uchar *p);
11588short16 __ovld vload16(size_t offset, const __constant short *p);
11589ushort16 __ovld vload16(size_t offset, const __constant ushort *p);
11590int16 __ovld vload16(size_t offset, const __constant int *p);
11591uint16 __ovld vload16(size_t offset, const __constant uint *p);
11592long16 __ovld vload16(size_t offset, const __constant long *p);
11593ulong16 __ovld vload16(size_t offset, const __constant ulong *p);
11594float16 __ovld vload16(size_t offset, const __constant float *p);
11595#ifdef cl_khr_fp64
11596double2 __ovld vload2(size_t offset, const __constant double *p);
11597double3 __ovld vload3(size_t offset, const __constant double *p);
11598double4 __ovld vload4(size_t offset, const __constant double *p);
11599double8 __ovld vload8(size_t offset, const __constant double *p);
11600double16 __ovld vload16(size_t offset, const __constant double *p);
11601#endif //cl_khr_fp64
11602
11603#ifdef cl_khr_fp16
11604half __ovld vload(size_t offset, const __constant half *p);
11605half2 __ovld vload2(size_t offset, const __constant half *p);
11606half3 __ovld vload3(size_t offset, const __constant half *p);
11607half4 __ovld vload4(size_t offset, const __constant half *p);
11608half8 __ovld vload8(size_t offset, const __constant half *p);
11609half16 __ovld vload16(size_t offset, const __constant half *p);
11610#endif //cl_khr_fp16
11611
11612#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
11613char2 __ovld vload2(size_t offset, const char *p);
11614uchar2 __ovld vload2(size_t offset, const uchar *p);
11615short2 __ovld vload2(size_t offset, const short *p);
11616ushort2 __ovld vload2(size_t offset, const ushort *p);
11617int2 __ovld vload2(size_t offset, const int *p);
11618uint2 __ovld vload2(size_t offset, const uint *p);
11619long2 __ovld vload2(size_t offset, const long *p);
11620ulong2 __ovld vload2(size_t offset, const ulong *p);
11621float2 __ovld vload2(size_t offset, const float *p);
11622char3 __ovld vload3(size_t offset, const char *p);
11623uchar3 __ovld vload3(size_t offset, const uchar *p);
11624short3 __ovld vload3(size_t offset, const short *p);
11625ushort3 __ovld vload3(size_t offset, const ushort *p);
11626int3 __ovld vload3(size_t offset, const int *p);
11627uint3 __ovld vload3(size_t offset, const uint *p);
11628long3 __ovld vload3(size_t offset, const long *p);
11629ulong3 __ovld vload3(size_t offset, const ulong *p);
11630float3 __ovld vload3(size_t offset, const float *p);
11631char4 __ovld vload4(size_t offset, const char *p);
11632uchar4 __ovld vload4(size_t offset, const uchar *p);
11633short4 __ovld vload4(size_t offset, const short *p);
11634ushort4 __ovld vload4(size_t offset, const ushort *p);
11635int4 __ovld vload4(size_t offset, const int *p);
11636uint4 __ovld vload4(size_t offset, const uint *p);
11637long4 __ovld vload4(size_t offset, const long *p);
11638ulong4 __ovld vload4(size_t offset, const ulong *p);
11639float4 __ovld vload4(size_t offset, const float *p);
11640char8 __ovld vload8(size_t offset, const char *p);
11641uchar8 __ovld vload8(size_t offset, const uchar *p);
11642short8 __ovld vload8(size_t offset, const short *p);
11643ushort8 __ovld vload8(size_t offset, const ushort *p);
11644int8 __ovld vload8(size_t offset, const int *p);
11645uint8 __ovld vload8(size_t offset, const uint *p);
11646long8 __ovld vload8(size_t offset, const long *p);
11647ulong8 __ovld vload8(size_t offset, const ulong *p);
11648float8 __ovld vload8(size_t offset, const float *p);
11649char16 __ovld vload16(size_t offset, const char *p);
11650uchar16 __ovld vload16(size_t offset, const uchar *p);
11651short16 __ovld vload16(size_t offset, const short *p);
11652ushort16 __ovld vload16(size_t offset, const ushort *p);
11653int16 __ovld vload16(size_t offset, const int *p);
11654uint16 __ovld vload16(size_t offset, const uint *p);
11655long16 __ovld vload16(size_t offset, const long *p);
11656ulong16 __ovld vload16(size_t offset, const ulong *p);
11657float16 __ovld vload16(size_t offset, const float *p);
11658
11659#ifdef cl_khr_fp64
11660double2 __ovld vload2(size_t offset, const double *p);
11661double3 __ovld vload3(size_t offset, const double *p);
11662double4 __ovld vload4(size_t offset, const double *p);
11663double8 __ovld vload8(size_t offset, const double *p);
11664double16 __ovld vload16(size_t offset, const double *p);
11665#endif //cl_khr_fp64
11666
11667#ifdef cl_khr_fp16
11668half __ovld vload(size_t offset, const half *p);
11669half2 __ovld vload2(size_t offset, const half *p);
11670half3 __ovld vload3(size_t offset, const half *p);
11671half4 __ovld vload4(size_t offset, const half *p);
11672half8 __ovld vload8(size_t offset, const half *p);
11673half16 __ovld vload16(size_t offset, const half *p);
11674#endif //cl_khr_fp16
11675#else
11676char2 __ovld vload2(size_t offset, const __global char *p);
11677uchar2 __ovld vload2(size_t offset, const __global uchar *p);
11678short2 __ovld vload2(size_t offset, const __global short *p);
11679ushort2 __ovld vload2(size_t offset, const __global ushort *p);
11680int2 __ovld vload2(size_t offset, const __global int *p);
11681uint2 __ovld vload2(size_t offset, const __global uint *p);
11682long2 __ovld vload2(size_t offset, const __global long *p);
11683ulong2 __ovld vload2(size_t offset, const __global ulong *p);
11684float2 __ovld vload2(size_t offset, const __global float *p);
11685char3 __ovld vload3(size_t offset, const __global char *p);
11686uchar3 __ovld vload3(size_t offset, const __global uchar *p);
11687short3 __ovld vload3(size_t offset, const __global short *p);
11688ushort3 __ovld vload3(size_t offset, const __global ushort *p);
11689int3 __ovld vload3(size_t offset, const __global int *p);
11690uint3 __ovld vload3(size_t offset, const __global uint *p);
11691long3 __ovld vload3(size_t offset, const __global long *p);
11692ulong3 __ovld vload3(size_t offset, const __global ulong *p);
11693float3 __ovld vload3(size_t offset, const __global float *p);
11694char4 __ovld vload4(size_t offset, const __global char *p);
11695uchar4 __ovld vload4(size_t offset, const __global uchar *p);
11696short4 __ovld vload4(size_t offset, const __global short *p);
11697ushort4 __ovld vload4(size_t offset, const __global ushort *p);
11698int4 __ovld vload4(size_t offset, const __global int *p);
11699uint4 __ovld vload4(size_t offset, const __global uint *p);
11700long4 __ovld vload4(size_t offset, const __global long *p);
11701ulong4 __ovld vload4(size_t offset, const __global ulong *p);
11702float4 __ovld vload4(size_t offset, const __global float *p);
11703char8 __ovld vload8(size_t offset, const __global char *p);
11704uchar8 __ovld vload8(size_t offset, const __global uchar *p);
11705short8 __ovld vload8(size_t offset, const __global short *p);
11706ushort8 __ovld vload8(size_t offset, const __global ushort *p);
11707int8 __ovld vload8(size_t offset, const __global int *p);
11708uint8 __ovld vload8(size_t offset, const __global uint *p);
11709long8 __ovld vload8(size_t offset, const __global long *p);
11710ulong8 __ovld vload8(size_t offset, const __global ulong *p);
11711float8 __ovld vload8(size_t offset, const __global float *p);
11712char16 __ovld vload16(size_t offset, const __global char *p);
11713uchar16 __ovld vload16(size_t offset, const __global uchar *p);
11714short16 __ovld vload16(size_t offset, const __global short *p);
11715ushort16 __ovld vload16(size_t offset, const __global ushort *p);
11716int16 __ovld vload16(size_t offset, const __global int *p);
11717uint16 __ovld vload16(size_t offset, const __global uint *p);
11718long16 __ovld vload16(size_t offset, const __global long *p);
11719ulong16 __ovld vload16(size_t offset, const __global ulong *p);
11720float16 __ovld vload16(size_t offset, const __global float *p);
11721char2 __ovld vload2(size_t offset, const __local char *p);
11722uchar2 __ovld vload2(size_t offset, const __local uchar *p);
11723short2 __ovld vload2(size_t offset, const __local short *p);
11724ushort2 __ovld vload2(size_t offset, const __local ushort *p);
11725int2 __ovld vload2(size_t offset, const __local int *p);
11726uint2 __ovld vload2(size_t offset, const __local uint *p);
11727long2 __ovld vload2(size_t offset, const __local long *p);
11728ulong2 __ovld vload2(size_t offset, const __local ulong *p);
11729float2 __ovld vload2(size_t offset, const __local float *p);
11730char3 __ovld vload3(size_t offset, const __local char *p);
11731uchar3 __ovld vload3(size_t offset, const __local uchar *p);
11732short3 __ovld vload3(size_t offset, const __local short *p);
11733ushort3 __ovld vload3(size_t offset, const __local ushort *p);
11734int3 __ovld vload3(size_t offset, const __local int *p);
11735uint3 __ovld vload3(size_t offset, const __local uint *p);
11736long3 __ovld vload3(size_t offset, const __local long *p);
11737ulong3 __ovld vload3(size_t offset, const __local ulong *p);
11738float3 __ovld vload3(size_t offset, const __local float *p);
11739char4 __ovld vload4(size_t offset, const __local char *p);
11740uchar4 __ovld vload4(size_t offset, const __local uchar *p);
11741short4 __ovld vload4(size_t offset, const __local short *p);
11742ushort4 __ovld vload4(size_t offset, const __local ushort *p);
11743int4 __ovld vload4(size_t offset, const __local int *p);
11744uint4 __ovld vload4(size_t offset, const __local uint *p);
11745long4 __ovld vload4(size_t offset, const __local long *p);
11746ulong4 __ovld vload4(size_t offset, const __local ulong *p);
11747float4 __ovld vload4(size_t offset, const __local float *p);
11748char8 __ovld vload8(size_t offset, const __local char *p);
11749uchar8 __ovld vload8(size_t offset, const __local uchar *p);
11750short8 __ovld vload8(size_t offset, const __local short *p);
11751ushort8 __ovld vload8(size_t offset, const __local ushort *p);
11752int8 __ovld vload8(size_t offset, const __local int *p);
11753uint8 __ovld vload8(size_t offset, const __local uint *p);
11754long8 __ovld vload8(size_t offset, const __local long *p);
11755ulong8 __ovld vload8(size_t offset, const __local ulong *p);
11756float8 __ovld vload8(size_t offset, const __local float *p);
11757char16 __ovld vload16(size_t offset, const __local char *p);
11758uchar16 __ovld vload16(size_t offset, const __local uchar *p);
11759short16 __ovld vload16(size_t offset, const __local short *p);
11760ushort16 __ovld vload16(size_t offset, const __local ushort *p);
11761int16 __ovld vload16(size_t offset, const __local int *p);
11762uint16 __ovld vload16(size_t offset, const __local uint *p);
11763long16 __ovld vload16(size_t offset, const __local long *p);
11764ulong16 __ovld vload16(size_t offset, const __local ulong *p);
11765float16 __ovld vload16(size_t offset, const __local float *p);
11766char2 __ovld vload2(size_t offset, const __private char *p);
11767uchar2 __ovld vload2(size_t offset, const __private uchar *p);
11768short2 __ovld vload2(size_t offset, const __private short *p);
11769ushort2 __ovld vload2(size_t offset, const __private ushort *p);
11770int2 __ovld vload2(size_t offset, const __private int *p);
11771uint2 __ovld vload2(size_t offset, const __private uint *p);
11772long2 __ovld vload2(size_t offset, const __private long *p);
11773ulong2 __ovld vload2(size_t offset, const __private ulong *p);
11774float2 __ovld vload2(size_t offset, const __private float *p);
11775char3 __ovld vload3(size_t offset, const __private char *p);
11776uchar3 __ovld vload3(size_t offset, const __private uchar *p);
11777short3 __ovld vload3(size_t offset, const __private short *p);
11778ushort3 __ovld vload3(size_t offset, const __private ushort *p);
11779int3 __ovld vload3(size_t offset, const __private int *p);
11780uint3 __ovld vload3(size_t offset, const __private uint *p);
11781long3 __ovld vload3(size_t offset, const __private long *p);
11782ulong3 __ovld vload3(size_t offset, const __private ulong *p);
11783float3 __ovld vload3(size_t offset, const __private float *p);
11784char4 __ovld vload4(size_t offset, const __private char *p);
11785uchar4 __ovld vload4(size_t offset, const __private uchar *p);
11786short4 __ovld vload4(size_t offset, const __private short *p);
11787ushort4 __ovld vload4(size_t offset, const __private ushort *p);
11788int4 __ovld vload4(size_t offset, const __private int *p);
11789uint4 __ovld vload4(size_t offset, const __private uint *p);
11790long4 __ovld vload4(size_t offset, const __private long *p);
11791ulong4 __ovld vload4(size_t offset, const __private ulong *p);
11792float4 __ovld vload4(size_t offset, const __private float *p);
11793char8 __ovld vload8(size_t offset, const __private char *p);
11794uchar8 __ovld vload8(size_t offset, const __private uchar *p);
11795short8 __ovld vload8(size_t offset, const __private short *p);
11796ushort8 __ovld vload8(size_t offset, const __private ushort *p);
11797int8 __ovld vload8(size_t offset, const __private int *p);
11798uint8 __ovld vload8(size_t offset, const __private uint *p);
11799long8 __ovld vload8(size_t offset, const __private long *p);
11800ulong8 __ovld vload8(size_t offset, const __private ulong *p);
11801float8 __ovld vload8(size_t offset, const __private float *p);
11802char16 __ovld vload16(size_t offset, const __private char *p);
11803uchar16 __ovld vload16(size_t offset, const __private uchar *p);
11804short16 __ovld vload16(size_t offset, const __private short *p);
11805ushort16 __ovld vload16(size_t offset, const __private ushort *p);
11806int16 __ovld vload16(size_t offset, const __private int *p);
11807uint16 __ovld vload16(size_t offset, const __private uint *p);
11808long16 __ovld vload16(size_t offset, const __private long *p);
11809ulong16 __ovld vload16(size_t offset, const __private ulong *p);
11810float16 __ovld vload16(size_t offset, const __private float *p);
11811
11812#ifdef cl_khr_fp64
11813double2 __ovld vload2(size_t offset, const __global double *p);
11814double3 __ovld vload3(size_t offset, const __global double *p);
11815double4 __ovld vload4(size_t offset, const __global double *p);
11816double8 __ovld vload8(size_t offset, const __global double *p);
11817double16 __ovld vload16(size_t offset, const __global double *p);
11818double2 __ovld vload2(size_t offset, const __local double *p);
11819double3 __ovld vload3(size_t offset, const __local double *p);
11820double4 __ovld vload4(size_t offset, const __local double *p);
11821double8 __ovld vload8(size_t offset, const __local double *p);
11822double16 __ovld vload16(size_t offset, const __local double *p);
11823double2 __ovld vload2(size_t offset, const __private double *p);
11824double3 __ovld vload3(size_t offset, const __private double *p);
11825double4 __ovld vload4(size_t offset, const __private double *p);
11826double8 __ovld vload8(size_t offset, const __private double *p);
11827double16 __ovld vload16(size_t offset, const __private double *p);
11828#endif //cl_khr_fp64
11829
11830#ifdef cl_khr_fp16
11831half __ovld vload(size_t offset, const __global half *p);
11832half2 __ovld vload2(size_t offset, const __global half *p);
11833half3 __ovld vload3(size_t offset, const __global half *p);
11834half4 __ovld vload4(size_t offset, const __global half *p);
11835half8 __ovld vload8(size_t offset, const __global half *p);
11836half16 __ovld vload16(size_t offset, const __global half *p);
11837half __ovld vload(size_t offset, const __local half *p);
11838half2 __ovld vload2(size_t offset, const __local half *p);
11839half3 __ovld vload3(size_t offset, const __local half *p);
11840half4 __ovld vload4(size_t offset, const __local half *p);
11841half8 __ovld vload8(size_t offset, const __local half *p);
11842half16 __ovld vload16(size_t offset, const __local half *p);
11843half __ovld vload(size_t offset, const __private half *p);
11844half2 __ovld vload2(size_t offset, const __private half *p);
11845half3 __ovld vload3(size_t offset, const __private half *p);
11846half4 __ovld vload4(size_t offset, const __private half *p);
11847half8 __ovld vload8(size_t offset, const __private half *p);
11848half16 __ovld vload16(size_t offset, const __private half *p);
11849#endif //cl_khr_fp16
11850#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
11851
11852#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
11853void __ovld vstore2(char2 data, size_t offset, char *p);
11854void __ovld vstore2(uchar2 data, size_t offset, uchar *p);
11855void __ovld vstore2(short2 data, size_t offset, short *p);
11856void __ovld vstore2(ushort2 data, size_t offset, ushort *p);
11857void __ovld vstore2(int2 data, size_t offset, int *p);
11858void __ovld vstore2(uint2 data, size_t offset, uint *p);
11859void __ovld vstore2(long2 data, size_t offset, long *p);
11860void __ovld vstore2(ulong2 data, size_t offset, ulong *p);
11861void __ovld vstore2(float2 data, size_t offset, float *p);
11862void __ovld vstore3(char3 data, size_t offset, char *p);
11863void __ovld vstore3(uchar3 data, size_t offset, uchar *p);
11864void __ovld vstore3(short3 data, size_t offset, short *p);
11865void __ovld vstore3(ushort3 data, size_t offset, ushort *p);
11866void __ovld vstore3(int3 data, size_t offset, int *p);
11867void __ovld vstore3(uint3 data, size_t offset, uint *p);
11868void __ovld vstore3(long3 data, size_t offset, long *p);
11869void __ovld vstore3(ulong3 data, size_t offset, ulong *p);
11870void __ovld vstore3(float3 data, size_t offset, float *p);
11871void __ovld vstore4(char4 data, size_t offset, char *p);
11872void __ovld vstore4(uchar4 data, size_t offset, uchar *p);
11873void __ovld vstore4(short4 data, size_t offset, short *p);
11874void __ovld vstore4(ushort4 data, size_t offset, ushort *p);
11875void __ovld vstore4(int4 data, size_t offset, int *p);
11876void __ovld vstore4(uint4 data, size_t offset, uint *p);
11877void __ovld vstore4(long4 data, size_t offset, long *p);
11878void __ovld vstore4(ulong4 data, size_t offset, ulong *p);
11879void __ovld vstore4(float4 data, size_t offset, float *p);
11880void __ovld vstore8(char8 data, size_t offset, char *p);
11881void __ovld vstore8(uchar8 data, size_t offset, uchar *p);
11882void __ovld vstore8(short8 data, size_t offset, short *p);
11883void __ovld vstore8(ushort8 data, size_t offset, ushort *p);
11884void __ovld vstore8(int8 data, size_t offset, int *p);
11885void __ovld vstore8(uint8 data, size_t offset, uint *p);
11886void __ovld vstore8(long8 data, size_t offset, long *p);
11887void __ovld vstore8(ulong8 data, size_t offset, ulong *p);
11888void __ovld vstore8(float8 data, size_t offset, float *p);
11889void __ovld vstore16(char16 data, size_t offset, char *p);
11890void __ovld vstore16(uchar16 data, size_t offset, uchar *p);
11891void __ovld vstore16(short16 data, size_t offset, short *p);
11892void __ovld vstore16(ushort16 data, size_t offset, ushort *p);
11893void __ovld vstore16(int16 data, size_t offset, int *p);
11894void __ovld vstore16(uint16 data, size_t offset, uint *p);
11895void __ovld vstore16(long16 data, size_t offset, long *p);
11896void __ovld vstore16(ulong16 data, size_t offset, ulong *p);
11897void __ovld vstore16(float16 data, size_t offset, float *p);
11898#ifdef cl_khr_fp64
11899void __ovld vstore2(double2 data, size_t offset, double *p);
11900void __ovld vstore3(double3 data, size_t offset, double *p);
11901void __ovld vstore4(double4 data, size_t offset, double *p);
11902void __ovld vstore8(double8 data, size_t offset, double *p);
11903void __ovld vstore16(double16 data, size_t offset, double *p);
11904#endif //cl_khr_fp64
11905#ifdef cl_khr_fp16
11906void __ovld vstore(half data, size_t offset, half *p);
11907void __ovld vstore2(half2 data, size_t offset, half *p);
11908void __ovld vstore3(half3 data, size_t offset, half *p);
11909void __ovld vstore4(half4 data, size_t offset, half *p);
11910void __ovld vstore8(half8 data, size_t offset, half *p);
11911void __ovld vstore16(half16 data, size_t offset, half *p);
11912#endif //cl_khr_fp16
11913#else
11914void __ovld vstore2(char2 data, size_t offset, __global char *p);
11915void __ovld vstore2(uchar2 data, size_t offset, __global uchar *p);
11916void __ovld vstore2(short2 data, size_t offset, __global short *p);
11917void __ovld vstore2(ushort2 data, size_t offset, __global ushort *p);
11918void __ovld vstore2(int2 data, size_t offset, __global int *p);
11919void __ovld vstore2(uint2 data, size_t offset, __global uint *p);
11920void __ovld vstore2(long2 data, size_t offset, __global long *p);
11921void __ovld vstore2(ulong2 data, size_t offset, __global ulong *p);
11922void __ovld vstore2(float2 data, size_t offset, __global float *p);
11923void __ovld vstore3(char3 data, size_t offset, __global char *p);
11924void __ovld vstore3(uchar3 data, size_t offset, __global uchar *p);
11925void __ovld vstore3(short3 data, size_t offset, __global short *p);
11926void __ovld vstore3(ushort3 data, size_t offset, __global ushort *p);
11927void __ovld vstore3(int3 data, size_t offset, __global int *p);
11928void __ovld vstore3(uint3 data, size_t offset, __global uint *p);
11929void __ovld vstore3(long3 data, size_t offset, __global long *p);
11930void __ovld vstore3(ulong3 data, size_t offset, __global ulong *p);
11931void __ovld vstore3(float3 data, size_t offset, __global float *p);
11932void __ovld vstore4(char4 data, size_t offset, __global char *p);
11933void __ovld vstore4(uchar4 data, size_t offset, __global uchar *p);
11934void __ovld vstore4(short4 data, size_t offset, __global short *p);
11935void __ovld vstore4(ushort4 data, size_t offset, __global ushort *p);
11936void __ovld vstore4(int4 data, size_t offset, __global int *p);
11937void __ovld vstore4(uint4 data, size_t offset, __global uint *p);
11938void __ovld vstore4(long4 data, size_t offset, __global long *p);
11939void __ovld vstore4(ulong4 data, size_t offset, __global ulong *p);
11940void __ovld vstore4(float4 data, size_t offset, __global float *p);
11941void __ovld vstore8(char8 data, size_t offset, __global char *p);
11942void __ovld vstore8(uchar8 data, size_t offset, __global uchar *p);
11943void __ovld vstore8(short8 data, size_t offset, __global short *p);
11944void __ovld vstore8(ushort8 data, size_t offset, __global ushort *p);
11945void __ovld vstore8(int8 data, size_t offset, __global int *p);
11946void __ovld vstore8(uint8 data, size_t offset, __global uint *p);
11947void __ovld vstore8(long8 data, size_t offset, __global long *p);
11948void __ovld vstore8(ulong8 data, size_t offset, __global ulong *p);
11949void __ovld vstore8(float8 data, size_t offset, __global float *p);
11950void __ovld vstore16(char16 data, size_t offset, __global char *p);
11951void __ovld vstore16(uchar16 data, size_t offset, __global uchar *p);
11952void __ovld vstore16(short16 data, size_t offset, __global short *p);
11953void __ovld vstore16(ushort16 data, size_t offset, __global ushort *p);
11954void __ovld vstore16(int16 data, size_t offset, __global int *p);
11955void __ovld vstore16(uint16 data, size_t offset, __global uint *p);
11956void __ovld vstore16(long16 data, size_t offset, __global long *p);
11957void __ovld vstore16(ulong16 data, size_t offset, __global ulong *p);
11958void __ovld vstore16(float16 data, size_t offset, __global float *p);
11959void __ovld vstore2(char2 data, size_t offset, __local char *p);
11960void __ovld vstore2(uchar2 data, size_t offset, __local uchar *p);
11961void __ovld vstore2(short2 data, size_t offset, __local short *p);
11962void __ovld vstore2(ushort2 data, size_t offset, __local ushort *p);
11963void __ovld vstore2(int2 data, size_t offset, __local int *p);
11964void __ovld vstore2(uint2 data, size_t offset, __local uint *p);
11965void __ovld vstore2(long2 data, size_t offset, __local long *p);
11966void __ovld vstore2(ulong2 data, size_t offset, __local ulong *p);
11967void __ovld vstore2(float2 data, size_t offset, __local float *p);
11968void __ovld vstore3(char3 data, size_t offset, __local char *p);
11969void __ovld vstore3(uchar3 data, size_t offset, __local uchar *p);
11970void __ovld vstore3(short3 data, size_t offset, __local short *p);
11971void __ovld vstore3(ushort3 data, size_t offset, __local ushort *p);
11972void __ovld vstore3(int3 data, size_t offset, __local int *p);
11973void __ovld vstore3(uint3 data, size_t offset, __local uint *p);
11974void __ovld vstore3(long3 data, size_t offset, __local long *p);
11975void __ovld vstore3(ulong3 data, size_t offset, __local ulong *p);
11976void __ovld vstore3(float3 data, size_t offset, __local float *p);
11977void __ovld vstore4(char4 data, size_t offset, __local char *p);
11978void __ovld vstore4(uchar4 data, size_t offset, __local uchar *p);
11979void __ovld vstore4(short4 data, size_t offset, __local short *p);
11980void __ovld vstore4(ushort4 data, size_t offset, __local ushort *p);
11981void __ovld vstore4(int4 data, size_t offset, __local int *p);
11982void __ovld vstore4(uint4 data, size_t offset, __local uint *p);
11983void __ovld vstore4(long4 data, size_t offset, __local long *p);
11984void __ovld vstore4(ulong4 data, size_t offset, __local ulong *p);
11985void __ovld vstore4(float4 data, size_t offset, __local float *p);
11986void __ovld vstore8(char8 data, size_t offset, __local char *p);
11987void __ovld vstore8(uchar8 data, size_t offset, __local uchar *p);
11988void __ovld vstore8(short8 data, size_t offset, __local short *p);
11989void __ovld vstore8(ushort8 data, size_t offset, __local ushort *p);
11990void __ovld vstore8(int8 data, size_t offset, __local int *p);
11991void __ovld vstore8(uint8 data, size_t offset, __local uint *p);
11992void __ovld vstore8(long8 data, size_t offset, __local long *p);
11993void __ovld vstore8(ulong8 data, size_t offset, __local ulong *p);
11994void __ovld vstore8(float8 data, size_t offset, __local float *p);
11995void __ovld vstore16(char16 data, size_t offset, __local char *p);
11996void __ovld vstore16(uchar16 data, size_t offset, __local uchar *p);
11997void __ovld vstore16(short16 data, size_t offset, __local short *p);
11998void __ovld vstore16(ushort16 data, size_t offset, __local ushort *p);
11999void __ovld vstore16(int16 data, size_t offset, __local int *p);
12000void __ovld vstore16(uint16 data, size_t offset, __local uint *p);
12001void __ovld vstore16(long16 data, size_t offset, __local long *p);
12002void __ovld vstore16(ulong16 data, size_t offset, __local ulong *p);
12003void __ovld vstore16(float16 data, size_t offset, __local float *p);
12004void __ovld vstore2(char2 data, size_t offset, __private char *p);
12005void __ovld vstore2(uchar2 data, size_t offset, __private uchar *p);
12006void __ovld vstore2(short2 data, size_t offset, __private short *p);
12007void __ovld vstore2(ushort2 data, size_t offset, __private ushort *p);
12008void __ovld vstore2(int2 data, size_t offset, __private int *p);
12009void __ovld vstore2(uint2 data, size_t offset, __private uint *p);
12010void __ovld vstore2(long2 data, size_t offset, __private long *p);
12011void __ovld vstore2(ulong2 data, size_t offset, __private ulong *p);
12012void __ovld vstore2(float2 data, size_t offset, __private float *p);
12013void __ovld vstore3(char3 data, size_t offset, __private char *p);
12014void __ovld vstore3(uchar3 data, size_t offset, __private uchar *p);
12015void __ovld vstore3(short3 data, size_t offset, __private short *p);
12016void __ovld vstore3(ushort3 data, size_t offset, __private ushort *p);
12017void __ovld vstore3(int3 data, size_t offset, __private int *p);
12018void __ovld vstore3(uint3 data, size_t offset, __private uint *p);
12019void __ovld vstore3(long3 data, size_t offset, __private long *p);
12020void __ovld vstore3(ulong3 data, size_t offset, __private ulong *p);
12021void __ovld vstore3(float3 data, size_t offset, __private float *p);
12022void __ovld vstore4(char4 data, size_t offset, __private char *p);
12023void __ovld vstore4(uchar4 data, size_t offset, __private uchar *p);
12024void __ovld vstore4(short4 data, size_t offset, __private short *p);
12025void __ovld vstore4(ushort4 data, size_t offset, __private ushort *p);
12026void __ovld vstore4(int4 data, size_t offset, __private int *p);
12027void __ovld vstore4(uint4 data, size_t offset, __private uint *p);
12028void __ovld vstore4(long4 data, size_t offset, __private long *p);
12029void __ovld vstore4(ulong4 data, size_t offset, __private ulong *p);
12030void __ovld vstore4(float4 data, size_t offset, __private float *p);
12031void __ovld vstore8(char8 data, size_t offset, __private char *p);
12032void __ovld vstore8(uchar8 data, size_t offset, __private uchar *p);
12033void __ovld vstore8(short8 data, size_t offset, __private short *p);
12034void __ovld vstore8(ushort8 data, size_t offset, __private ushort *p);
12035void __ovld vstore8(int8 data, size_t offset, __private int *p);
12036void __ovld vstore8(uint8 data, size_t offset, __private uint *p);
12037void __ovld vstore8(long8 data, size_t offset, __private long *p);
12038void __ovld vstore8(ulong8 data, size_t offset, __private ulong *p);
12039void __ovld vstore8(float8 data, size_t offset, __private float *p);
12040void __ovld vstore16(char16 data, size_t offset, __private char *p);
12041void __ovld vstore16(uchar16 data, size_t offset, __private uchar *p);
12042void __ovld vstore16(short16 data, size_t offset, __private short *p);
12043void __ovld vstore16(ushort16 data, size_t offset, __private ushort *p);
12044void __ovld vstore16(int16 data, size_t offset, __private int *p);
12045void __ovld vstore16(uint16 data, size_t offset, __private uint *p);
12046void __ovld vstore16(long16 data, size_t offset, __private long *p);
12047void __ovld vstore16(ulong16 data, size_t offset, __private ulong *p);
12048void __ovld vstore16(float16 data, size_t offset, __private float *p);
12049#ifdef cl_khr_fp64
12050void __ovld vstore2(double2 data, size_t offset, __global double *p);
12051void __ovld vstore3(double3 data, size_t offset, __global double *p);
12052void __ovld vstore4(double4 data, size_t offset, __global double *p);
12053void __ovld vstore8(double8 data, size_t offset, __global double *p);
12054void __ovld vstore16(double16 data, size_t offset, __global double *p);
12055void __ovld vstore2(double2 data, size_t offset, __local double *p);
12056void __ovld vstore3(double3 data, size_t offset, __local double *p);
12057void __ovld vstore4(double4 data, size_t offset, __local double *p);
12058void __ovld vstore8(double8 data, size_t offset, __local double *p);
12059void __ovld vstore16(double16 data, size_t offset, __local double *p);
12060void __ovld vstore2(double2 data, size_t offset, __private double *p);
12061void __ovld vstore3(double3 data, size_t offset, __private double *p);
12062void __ovld vstore4(double4 data, size_t offset, __private double *p);
12063void __ovld vstore8(double8 data, size_t offset, __private double *p);
12064void __ovld vstore16(double16 data, size_t offset, __private double *p);
12065#endif //cl_khr_fp64
12066#ifdef cl_khr_fp16
12067void __ovld vstore(half data, size_t offset, __global half *p);
12068void __ovld vstore2(half2 data, size_t offset, __global half *p);
12069void __ovld vstore3(half3 data, size_t offset, __global half *p);
12070void __ovld vstore4(half4 data, size_t offset, __global half *p);
12071void __ovld vstore8(half8 data, size_t offset, __global half *p);
12072void __ovld vstore16(half16 data, size_t offset, __global half *p);
12073void __ovld vstore(half data, size_t offset, __local half *p);
12074void __ovld vstore2(half2 data, size_t offset, __local half *p);
12075void __ovld vstore3(half3 data, size_t offset, __local half *p);
12076void __ovld vstore4(half4 data, size_t offset, __local half *p);
12077void __ovld vstore8(half8 data, size_t offset, __local half *p);
12078void __ovld vstore16(half16 data, size_t offset, __local half *p);
12079void __ovld vstore(half data, size_t offset, __private half *p);
12080void __ovld vstore2(half2 data, size_t offset, __private half *p);
12081void __ovld vstore3(half3 data, size_t offset, __private half *p);
12082void __ovld vstore4(half4 data, size_t offset, __private half *p);
12083void __ovld vstore8(half8 data, size_t offset, __private half *p);
12084void __ovld vstore16(half16 data, size_t offset, __private half *p);
12085#endif //cl_khr_fp16
12086#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
12087
12088/**
12089 * Read sizeof (half) bytes of data from address
12090 * (p + offset). The data read is interpreted as a
12091 * half value. The half value is converted to a
12092 * float value and the float value is returned.
12093 * The read address computed as (p + offset)
12094 * must be 16-bit aligned.
12095 */
12096float __ovld vload_half(size_t offset, const __constant half *p);
12097#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
12098float __ovld vload_half(size_t offset, const half *p);
12099#else
12100float __ovld vload_half(size_t offset, const __global half *p);
12101float __ovld vload_half(size_t offset, const __local half *p);
12102float __ovld vload_half(size_t offset, const __private half *p);
12103#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
12104
12105/**
12106 * Read sizeof (halfn) bytes of data from address
12107 * (p + (offset * n)). The data read is interpreted
12108 * as a halfn value. The halfn value read is
12109 * converted to a floatn value and the floatn
12110 * value is returned. The read address computed
12111 * as (p + (offset * n)) must be 16-bit aligned.
12112 */
12113float2 __ovld vload_half2(size_t offset, const __constant half *p);
12114float3 __ovld vload_half3(size_t offset, const __constant half *p);
12115float4 __ovld vload_half4(size_t offset, const __constant half *p);
12116float8 __ovld vload_half8(size_t offset, const __constant half *p);
12117float16 __ovld vload_half16(size_t offset, const __constant half *p);
12118#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
12119float2 __ovld vload_half2(size_t offset, const half *p);
12120float3 __ovld vload_half3(size_t offset, const half *p);
12121float4 __ovld vload_half4(size_t offset, const half *p);
12122float8 __ovld vload_half8(size_t offset, const half *p);
12123float16 __ovld vload_half16(size_t offset, const half *p);
12124#else
12125float2 __ovld vload_half2(size_t offset, const __global half *p);
12126float3 __ovld vload_half3(size_t offset, const __global half *p);
12127float4 __ovld vload_half4(size_t offset, const __global half *p);
12128float8 __ovld vload_half8(size_t offset, const __global half *p);
12129float16 __ovld vload_half16(size_t offset, const __global half *p);
12130float2 __ovld vload_half2(size_t offset, const __local half *p);
12131float3 __ovld vload_half3(size_t offset, const __local half *p);
12132float4 __ovld vload_half4(size_t offset, const __local half *p);
12133float8 __ovld vload_half8(size_t offset, const __local half *p);
12134float16 __ovld vload_half16(size_t offset, const __local half *p);
12135float2 __ovld vload_half2(size_t offset, const __private half *p);
12136float3 __ovld vload_half3(size_t offset, const __private half *p);
12137float4 __ovld vload_half4(size_t offset, const __private half *p);
12138float8 __ovld vload_half8(size_t offset, const __private half *p);
12139float16 __ovld vload_half16(size_t offset, const __private half *p);
12140#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
12141
12142/**
12143 * The float value given by data is first
12144 * converted to a half value using the appropriate
12145 * rounding mode. The half value is then written
12146 * to address computed as (p + offset). The
12147 * address computed as (p + offset) must be 16-
12148 * bit aligned.
12149 * vstore_half use the current rounding mode.
12150 * The default current rounding mode is round to
12151 * nearest even.
12152 */
12153#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
12154void __ovld vstore_half(float data, size_t offset, half *p);
12155void __ovld vstore_half_rte(float data, size_t offset, half *p);
12156void __ovld vstore_half_rtz(float data, size_t offset, half *p);
12157void __ovld vstore_half_rtp(float data, size_t offset, half *p);
12158void __ovld vstore_half_rtn(float data, size_t offset, half *p);
12159#ifdef cl_khr_fp64
12160void __ovld vstore_half(double data, size_t offset, half *p);
12161void __ovld vstore_half_rte(double data, size_t offset, half *p);
12162void __ovld vstore_half_rtz(double data, size_t offset, half *p);
12163void __ovld vstore_half_rtp(double data, size_t offset, half *p);
12164void __ovld vstore_half_rtn(double data, size_t offset, half *p);
12165#endif //cl_khr_fp64
12166#else
12167void __ovld vstore_half(float data, size_t offset, __global half *p);
12168void __ovld vstore_half_rte(float data, size_t offset, __global half *p);
12169void __ovld vstore_half_rtz(float data, size_t offset, __global half *p);
12170void __ovld vstore_half_rtp(float data, size_t offset, __global half *p);
12171void __ovld vstore_half_rtn(float data, size_t offset, __global half *p);
12172void __ovld vstore_half(float data, size_t offset, __local half *p);
12173void __ovld vstore_half_rte(float data, size_t offset, __local half *p);
12174void __ovld vstore_half_rtz(float data, size_t offset, __local half *p);
12175void __ovld vstore_half_rtp(float data, size_t offset, __local half *p);
12176void __ovld vstore_half_rtn(float data, size_t offset, __local half *p);
12177void __ovld vstore_half(float data, size_t offset, __private half *p);
12178void __ovld vstore_half_rte(float data, size_t offset, __private half *p);
12179void __ovld vstore_half_rtz(float data, size_t offset, __private half *p);
12180void __ovld vstore_half_rtp(float data, size_t offset, __private half *p);
12181void __ovld vstore_half_rtn(float data, size_t offset, __private half *p);
12182#ifdef cl_khr_fp64
12183void __ovld vstore_half(double data, size_t offset, __global half *p);
12184void __ovld vstore_half_rte(double data, size_t offset, __global half *p);
12185void __ovld vstore_half_rtz(double data, size_t offset, __global half *p);
12186void __ovld vstore_half_rtp(double data, size_t offset, __global half *p);
12187void __ovld vstore_half_rtn(double data, size_t offset, __global half *p);
12188void __ovld vstore_half(double data, size_t offset, __local half *p);
12189void __ovld vstore_half_rte(double data, size_t offset, __local half *p);
12190void __ovld vstore_half_rtz(double data, size_t offset, __local half *p);
12191void __ovld vstore_half_rtp(double data, size_t offset, __local half *p);
12192void __ovld vstore_half_rtn(double data, size_t offset, __local half *p);
12193void __ovld vstore_half(double data, size_t offset, __private half *p);
12194void __ovld vstore_half_rte(double data, size_t offset, __private half *p);
12195void __ovld vstore_half_rtz(double data, size_t offset, __private half *p);
12196void __ovld vstore_half_rtp(double data, size_t offset, __private half *p);
12197void __ovld vstore_half_rtn(double data, size_t offset, __private half *p);
12198#endif //cl_khr_fp64
12199#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
12200
12201/**
12202 * The floatn value given by data is converted to
12203 * a halfn value using the appropriate rounding
12204 * mode. The halfn value is then written to
12205 * address computed as (p + (offset * n)). The
12206 * address computed as (p + (offset * n)) must be
12207 * 16-bit aligned.
12208 * vstore_halfn uses the current rounding mode.
12209 * The default current rounding mode is round to
12210 * nearest even.
12211 */
12212#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
12213void __ovld vstore_half2(float2 data, size_t offset, half *p);
12214void __ovld vstore_half3(float3 data, size_t offset, half *p);
12215void __ovld vstore_half4(float4 data, size_t offset, half *p);
12216void __ovld vstore_half8(float8 data, size_t offset, half *p);
12217void __ovld vstore_half16(float16 data, size_t offset, half *p);
12218void __ovld vstore_half2_rte(float2 data, size_t offset, half *p);
12219void __ovld vstore_half3_rte(float3 data, size_t offset, half *p);
12220void __ovld vstore_half4_rte(float4 data, size_t offset, half *p);
12221void __ovld vstore_half8_rte(float8 data, size_t offset, half *p);
12222void __ovld vstore_half16_rte(float16 data, size_t offset, half *p);
12223void __ovld vstore_half2_rtz(float2 data, size_t offset, half *p);
12224void __ovld vstore_half3_rtz(float3 data, size_t offset, half *p);
12225void __ovld vstore_half4_rtz(float4 data, size_t offset, half *p);
12226void __ovld vstore_half8_rtz(float8 data, size_t offset, half *p);
12227void __ovld vstore_half16_rtz(float16 data, size_t offset, half *p);
12228void __ovld vstore_half2_rtp(float2 data, size_t offset, half *p);
12229void __ovld vstore_half3_rtp(float3 data, size_t offset, half *p);
12230void __ovld vstore_half4_rtp(float4 data, size_t offset, half *p);
12231void __ovld vstore_half8_rtp(float8 data, size_t offset, half *p);
12232void __ovld vstore_half16_rtp(float16 data, size_t offset, half *p);
12233void __ovld vstore_half2_rtn(float2 data, size_t offset, half *p);
12234void __ovld vstore_half3_rtn(float3 data, size_t offset, half *p);
12235void __ovld vstore_half4_rtn(float4 data, size_t offset, half *p);
12236void __ovld vstore_half8_rtn(float8 data, size_t offset, half *p);
12237void __ovld vstore_half16_rtn(float16 data, size_t offset, half *p);
12238#ifdef cl_khr_fp64
12239void __ovld vstore_half2(double2 data, size_t offset, half *p);
12240void __ovld vstore_half3(double3 data, size_t offset, half *p);
12241void __ovld vstore_half4(double4 data, size_t offset, half *p);
12242void __ovld vstore_half8(double8 data, size_t offset, half *p);
12243void __ovld vstore_half16(double16 data, size_t offset, half *p);
12244void __ovld vstore_half2_rte(double2 data, size_t offset, half *p);
12245void __ovld vstore_half3_rte(double3 data, size_t offset, half *p);
12246void __ovld vstore_half4_rte(double4 data, size_t offset, half *p);
12247void __ovld vstore_half8_rte(double8 data, size_t offset, half *p);
12248void __ovld vstore_half16_rte(double16 data, size_t offset, half *p);
12249void __ovld vstore_half2_rtz(double2 data, size_t offset, half *p);
12250void __ovld vstore_half3_rtz(double3 data, size_t offset, half *p);
12251void __ovld vstore_half4_rtz(double4 data, size_t offset, half *p);
12252void __ovld vstore_half8_rtz(double8 data, size_t offset, half *p);
12253void __ovld vstore_half16_rtz(double16 data, size_t offset, half *p);
12254void __ovld vstore_half2_rtp(double2 data, size_t offset, half *p);
12255void __ovld vstore_half3_rtp(double3 data, size_t offset, half *p);
12256void __ovld vstore_half4_rtp(double4 data, size_t offset, half *p);
12257void __ovld vstore_half8_rtp(double8 data, size_t offset, half *p);
12258void __ovld vstore_half16_rtp(double16 data, size_t offset, half *p);
12259void __ovld vstore_half2_rtn(double2 data, size_t offset, half *p);
12260void __ovld vstore_half3_rtn(double3 data, size_t offset, half *p);
12261void __ovld vstore_half4_rtn(double4 data, size_t offset, half *p);
12262void __ovld vstore_half8_rtn(double8 data, size_t offset, half *p);
12263void __ovld vstore_half16_rtn(double16 data, size_t offset, half *p);
12264#endif //cl_khr_fp64
12265#else
12266void __ovld vstore_half2(float2 data, size_t offset, __global half *p);
12267void __ovld vstore_half3(float3 data, size_t offset, __global half *p);
12268void __ovld vstore_half4(float4 data, size_t offset, __global half *p);
12269void __ovld vstore_half8(float8 data, size_t offset, __global half *p);
12270void __ovld vstore_half16(float16 data, size_t offset, __global half *p);
12271void __ovld vstore_half2_rte(float2 data, size_t offset, __global half *p);
12272void __ovld vstore_half3_rte(float3 data, size_t offset, __global half *p);
12273void __ovld vstore_half4_rte(float4 data, size_t offset, __global half *p);
12274void __ovld vstore_half8_rte(float8 data, size_t offset, __global half *p);
12275void __ovld vstore_half16_rte(float16 data, size_t offset, __global half *p);
12276void __ovld vstore_half2_rtz(float2 data, size_t offset, __global half *p);
12277void __ovld vstore_half3_rtz(float3 data, size_t offset, __global half *p);
12278void __ovld vstore_half4_rtz(float4 data, size_t offset, __global half *p);
12279void __ovld vstore_half8_rtz(float8 data, size_t offset, __global half *p);
12280void __ovld vstore_half16_rtz(float16 data, size_t offset, __global half *p);
12281void __ovld vstore_half2_rtp(float2 data, size_t offset, __global half *p);
12282void __ovld vstore_half3_rtp(float3 data, size_t offset, __global half *p);
12283void __ovld vstore_half4_rtp(float4 data, size_t offset, __global half *p);
12284void __ovld vstore_half8_rtp(float8 data, size_t offset, __global half *p);
12285void __ovld vstore_half16_rtp(float16 data, size_t offset, __global half *p);
12286void __ovld vstore_half2_rtn(float2 data, size_t offset, __global half *p);
12287void __ovld vstore_half3_rtn(float3 data, size_t offset, __global half *p);
12288void __ovld vstore_half4_rtn(float4 data, size_t offset, __global half *p);
12289void __ovld vstore_half8_rtn(float8 data, size_t offset, __global half *p);
12290void __ovld vstore_half16_rtn(float16 data, size_t offset, __global half *p);
12291void __ovld vstore_half2(float2 data, size_t offset, __local half *p);
12292void __ovld vstore_half3(float3 data, size_t offset, __local half *p);
12293void __ovld vstore_half4(float4 data, size_t offset, __local half *p);
12294void __ovld vstore_half8(float8 data, size_t offset, __local half *p);
12295void __ovld vstore_half16(float16 data, size_t offset, __local half *p);
12296void __ovld vstore_half2_rte(float2 data, size_t offset, __local half *p);
12297void __ovld vstore_half3_rte(float3 data, size_t offset, __local half *p);
12298void __ovld vstore_half4_rte(float4 data, size_t offset, __local half *p);
12299void __ovld vstore_half8_rte(float8 data, size_t offset, __local half *p);
12300void __ovld vstore_half16_rte(float16 data, size_t offset, __local half *p);
12301void __ovld vstore_half2_rtz(float2 data, size_t offset, __local half *p);
12302void __ovld vstore_half3_rtz(float3 data, size_t offset, __local half *p);
12303void __ovld vstore_half4_rtz(float4 data, size_t offset, __local half *p);
12304void __ovld vstore_half8_rtz(float8 data, size_t offset, __local half *p);
12305void __ovld vstore_half16_rtz(float16 data, size_t offset, __local half *p);
12306void __ovld vstore_half2_rtp(float2 data, size_t offset, __local half *p);
12307void __ovld vstore_half3_rtp(float3 data, size_t offset, __local half *p);
12308void __ovld vstore_half4_rtp(float4 data, size_t offset, __local half *p);
12309void __ovld vstore_half8_rtp(float8 data, size_t offset, __local half *p);
12310void __ovld vstore_half16_rtp(float16 data, size_t offset, __local half *p);
12311void __ovld vstore_half2_rtn(float2 data, size_t offset, __local half *p);
12312void __ovld vstore_half3_rtn(float3 data, size_t offset, __local half *p);
12313void __ovld vstore_half4_rtn(float4 data, size_t offset, __local half *p);
12314void __ovld vstore_half8_rtn(float8 data, size_t offset, __local half *p);
12315void __ovld vstore_half16_rtn(float16 data, size_t offset, __local half *p);
12316void __ovld vstore_half2(float2 data, size_t offset, __private half *p);
12317void __ovld vstore_half3(float3 data, size_t offset, __private half *p);
12318void __ovld vstore_half4(float4 data, size_t offset, __private half *p);
12319void __ovld vstore_half8(float8 data, size_t offset, __private half *p);
12320void __ovld vstore_half16(float16 data, size_t offset, __private half *p);
12321void __ovld vstore_half2_rte(float2 data, size_t offset, __private half *p);
12322void __ovld vstore_half3_rte(float3 data, size_t offset, __private half *p);
12323void __ovld vstore_half4_rte(float4 data, size_t offset, __private half *p);
12324void __ovld vstore_half8_rte(float8 data, size_t offset, __private half *p);
12325void __ovld vstore_half16_rte(float16 data, size_t offset, __private half *p);
12326void __ovld vstore_half2_rtz(float2 data, size_t offset, __private half *p);
12327void __ovld vstore_half3_rtz(float3 data, size_t offset, __private half *p);
12328void __ovld vstore_half4_rtz(float4 data, size_t offset, __private half *p);
12329void __ovld vstore_half8_rtz(float8 data, size_t offset, __private half *p);
12330void __ovld vstore_half16_rtz(float16 data, size_t offset, __private half *p);
12331void __ovld vstore_half2_rtp(float2 data, size_t offset, __private half *p);
12332void __ovld vstore_half3_rtp(float3 data, size_t offset, __private half *p);
12333void __ovld vstore_half4_rtp(float4 data, size_t offset, __private half *p);
12334void __ovld vstore_half8_rtp(float8 data, size_t offset, __private half *p);
12335void __ovld vstore_half16_rtp(float16 data, size_t offset, __private half *p);
12336void __ovld vstore_half2_rtn(float2 data, size_t offset, __private half *p);
12337void __ovld vstore_half3_rtn(float3 data, size_t offset, __private half *p);
12338void __ovld vstore_half4_rtn(float4 data, size_t offset, __private half *p);
12339void __ovld vstore_half8_rtn(float8 data, size_t offset, __private half *p);
12340void __ovld vstore_half16_rtn(float16 data, size_t offset, __private half *p);
12341#ifdef cl_khr_fp64
12342void __ovld vstore_half2(double2 data, size_t offset, __global half *p);
12343void __ovld vstore_half3(double3 data, size_t offset, __global half *p);
12344void __ovld vstore_half4(double4 data, size_t offset, __global half *p);
12345void __ovld vstore_half8(double8 data, size_t offset, __global half *p);
12346void __ovld vstore_half16(double16 data, size_t offset, __global half *p);
12347void __ovld vstore_half2_rte(double2 data, size_t offset, __global half *p);
12348void __ovld vstore_half3_rte(double3 data, size_t offset, __global half *p);
12349void __ovld vstore_half4_rte(double4 data, size_t offset, __global half *p);
12350void __ovld vstore_half8_rte(double8 data, size_t offset, __global half *p);
12351void __ovld vstore_half16_rte(double16 data, size_t offset, __global half *p);
12352void __ovld vstore_half2_rtz(double2 data, size_t offset, __global half *p);
12353void __ovld vstore_half3_rtz(double3 data, size_t offset, __global half *p);
12354void __ovld vstore_half4_rtz(double4 data, size_t offset, __global half *p);
12355void __ovld vstore_half8_rtz(double8 data, size_t offset, __global half *p);
12356void __ovld vstore_half16_rtz(double16 data, size_t offset, __global half *p);
12357void __ovld vstore_half2_rtp(double2 data, size_t offset, __global half *p);
12358void __ovld vstore_half3_rtp(double3 data, size_t offset, __global half *p);
12359void __ovld vstore_half4_rtp(double4 data, size_t offset, __global half *p);
12360void __ovld vstore_half8_rtp(double8 data, size_t offset, __global half *p);
12361void __ovld vstore_half16_rtp(double16 data, size_t offset, __global half *p);
12362void __ovld vstore_half2_rtn(double2 data, size_t offset, __global half *p);
12363void __ovld vstore_half3_rtn(double3 data, size_t offset, __global half *p);
12364void __ovld vstore_half4_rtn(double4 data, size_t offset, __global half *p);
12365void __ovld vstore_half8_rtn(double8 data, size_t offset, __global half *p);
12366void __ovld vstore_half16_rtn(double16 data, size_t offset, __global half *p);
12367void __ovld vstore_half2(double2 data, size_t offset, __local half *p);
12368void __ovld vstore_half3(double3 data, size_t offset, __local half *p);
12369void __ovld vstore_half4(double4 data, size_t offset, __local half *p);
12370void __ovld vstore_half8(double8 data, size_t offset, __local half *p);
12371void __ovld vstore_half16(double16 data, size_t offset, __local half *p);
12372void __ovld vstore_half2_rte(double2 data, size_t offset, __local half *p);
12373void __ovld vstore_half3_rte(double3 data, size_t offset, __local half *p);
12374void __ovld vstore_half4_rte(double4 data, size_t offset, __local half *p);
12375void __ovld vstore_half8_rte(double8 data, size_t offset, __local half *p);
12376void __ovld vstore_half16_rte(double16 data, size_t offset, __local half *p);
12377void __ovld vstore_half2_rtz(double2 data, size_t offset, __local half *p);
12378void __ovld vstore_half3_rtz(double3 data, size_t offset, __local half *p);
12379void __ovld vstore_half4_rtz(double4 data, size_t offset, __local half *p);
12380void __ovld vstore_half8_rtz(double8 data, size_t offset, __local half *p);
12381void __ovld vstore_half16_rtz(double16 data, size_t offset, __local half *p);
12382void __ovld vstore_half2_rtp(double2 data, size_t offset, __local half *p);
12383void __ovld vstore_half3_rtp(double3 data, size_t offset, __local half *p);
12384void __ovld vstore_half4_rtp(double4 data, size_t offset, __local half *p);
12385void __ovld vstore_half8_rtp(double8 data, size_t offset, __local half *p);
12386void __ovld vstore_half16_rtp(double16 data, size_t offset, __local half *p);
12387void __ovld vstore_half2_rtn(double2 data, size_t offset, __local half *p);
12388void __ovld vstore_half3_rtn(double3 data, size_t offset, __local half *p);
12389void __ovld vstore_half4_rtn(double4 data, size_t offset, __local half *p);
12390void __ovld vstore_half8_rtn(double8 data, size_t offset, __local half *p);
12391void __ovld vstore_half16_rtn(double16 data, size_t offset, __local half *p);
12392void __ovld vstore_half2(double2 data, size_t offset, __private half *p);
12393void __ovld vstore_half3(double3 data, size_t offset, __private half *p);
12394void __ovld vstore_half4(double4 data, size_t offset, __private half *p);
12395void __ovld vstore_half8(double8 data, size_t offset, __private half *p);
12396void __ovld vstore_half16(double16 data, size_t offset, __private half *p);
12397void __ovld vstore_half2_rte(double2 data, size_t offset, __private half *p);
12398void __ovld vstore_half3_rte(double3 data, size_t offset, __private half *p);
12399void __ovld vstore_half4_rte(double4 data, size_t offset, __private half *p);
12400void __ovld vstore_half8_rte(double8 data, size_t offset, __private half *p);
12401void __ovld vstore_half16_rte(double16 data, size_t offset, __private half *p);
12402void __ovld vstore_half2_rtz(double2 data, size_t offset, __private half *p);
12403void __ovld vstore_half3_rtz(double3 data, size_t offset, __private half *p);
12404void __ovld vstore_half4_rtz(double4 data, size_t offset, __private half *p);
12405void __ovld vstore_half8_rtz(double8 data, size_t offset, __private half *p);
12406void __ovld vstore_half16_rtz(double16 data, size_t offset, __private half *p);
12407void __ovld vstore_half2_rtp(double2 data, size_t offset, __private half *p);
12408void __ovld vstore_half3_rtp(double3 data, size_t offset, __private half *p);
12409void __ovld vstore_half4_rtp(double4 data, size_t offset, __private half *p);
12410void __ovld vstore_half8_rtp(double8 data, size_t offset, __private half *p);
12411void __ovld vstore_half16_rtp(double16 data, size_t offset, __private half *p);
12412void __ovld vstore_half2_rtn(double2 data, size_t offset, __private half *p);
12413void __ovld vstore_half3_rtn(double3 data, size_t offset, __private half *p);
12414void __ovld vstore_half4_rtn(double4 data, size_t offset, __private half *p);
12415void __ovld vstore_half8_rtn(double8 data, size_t offset, __private half *p);
12416void __ovld vstore_half16_rtn(double16 data, size_t offset, __private half *p);
12417#endif //cl_khr_fp64
12418#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
12419
12420/**
12421 * For n = 1, 2, 4, 8 and 16 read sizeof (halfn)
12422 * bytes of data from address (p + (offset * n)).
12423 * The data read is interpreted as a halfn value.
12424 * The halfn value read is converted to a floatn
12425 * value and the floatn value is returned.
12426 * The address computed as (p + (offset * n))
12427 * must be aligned to sizeof (halfn) bytes.
12428 * For n = 3, vloada_half3 reads a half3 from
12429 * address (p + (offset * 4)) and returns a float3.
12430 * The address computed as (p + (offset * 4))
12431 * must be aligned to sizeof (half) * 4 bytes.
12432 */
12433float __ovld vloada_half(size_t offset, const __constant half *p);
12434float2 __ovld vloada_half2(size_t offset, const __constant half *p);
12435float3 __ovld vloada_half3(size_t offset, const __constant half *p);
12436float4 __ovld vloada_half4(size_t offset, const __constant half *p);
12437float8 __ovld vloada_half8(size_t offset, const __constant half *p);
12438float16 __ovld vloada_half16(size_t offset, const __constant half *p);
12439#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
12440float __ovld vloada_half(size_t offset, const half *p);
12441float2 __ovld vloada_half2(size_t offset, const half *p);
12442float3 __ovld vloada_half3(size_t offset, const half *p);
12443float4 __ovld vloada_half4(size_t offset, const half *p);
12444float8 __ovld vloada_half8(size_t offset, const half *p);
12445float16 __ovld vloada_half16(size_t offset, const half *p);
12446#else
12447float __ovld vloada_half(size_t offset, const __global half *p);
12448float2 __ovld vloada_half2(size_t offset, const __global half *p);
12449float3 __ovld vloada_half3(size_t offset, const __global half *p);
12450float4 __ovld vloada_half4(size_t offset, const __global half *p);
12451float8 __ovld vloada_half8(size_t offset, const __global half *p);
12452float16 __ovld vloada_half16(size_t offset, const __global half *p);
12453float __ovld vloada_half(size_t offset, const __local half *p);
12454float2 __ovld vloada_half2(size_t offset, const __local half *p);
12455float3 __ovld vloada_half3(size_t offset, const __local half *p);
12456float4 __ovld vloada_half4(size_t offset, const __local half *p);
12457float8 __ovld vloada_half8(size_t offset, const __local half *p);
12458float16 __ovld vloada_half16(size_t offset, const __local half *p);
12459float __ovld vloada_half(size_t offset, const __private half *p);
12460float2 __ovld vloada_half2(size_t offset, const __private half *p);
12461float3 __ovld vloada_half3(size_t offset, const __private half *p);
12462float4 __ovld vloada_half4(size_t offset, const __private half *p);
12463float8 __ovld vloada_half8(size_t offset, const __private half *p);
12464float16 __ovld vloada_half16(size_t offset, const __private half *p);
12465#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
12466
12467/**
12468 * The floatn value given by data is converted to
12469 * a halfn value using the appropriate rounding
12470 * mode.
12471 * For n = 1, 2, 4, 8 and 16, the halfn value is
12472 * written to the address computed as (p + (offset
12473 * * n)). The address computed as (p + (offset *
12474 * n)) must be aligned to sizeof (halfn) bytes.
12475 * For n = 3, the half3 value is written to the
12476 * address computed as (p + (offset * 4)). The
12477 * address computed as (p + (offset * 4)) must be
12478 * aligned to sizeof (half) * 4 bytes.
12479 * vstorea_halfn uses the current rounding
12480 * mode. The default current rounding mode is
12481 * round to nearest even.
12482 */
12483#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
12484void __ovld vstorea_half(float data, size_t offset, half *p);
12485void __ovld vstorea_half2(float2 data, size_t offset, half *p);
12486void __ovld vstorea_half3(float3 data, size_t offset, half *p);
12487void __ovld vstorea_half4(float4 data, size_t offset, half *p);
12488void __ovld vstorea_half8(float8 data, size_t offset, half *p);
12489void __ovld vstorea_half16(float16 data, size_t offset, half *p);
12490
12491void __ovld vstorea_half_rte(float data, size_t offset, half *p);
12492void __ovld vstorea_half2_rte(float2 data, size_t offset, half *p);
12493void __ovld vstorea_half3_rte(float3 data, size_t offset, half *p);
12494void __ovld vstorea_half4_rte(float4 data, size_t offset, half *p);
12495void __ovld vstorea_half8_rte(float8 data, size_t offset, half *p);
12496void __ovld vstorea_half16_rte(float16 data, size_t offset, half *p);
12497
12498void __ovld vstorea_half_rtz(float data, size_t offset, half *p);
12499void __ovld vstorea_half2_rtz(float2 data, size_t offset, half *p);
12500void __ovld vstorea_half3_rtz(float3 data, size_t offset, half *p);
12501void __ovld vstorea_half4_rtz(float4 data, size_t offset, half *p);
12502void __ovld vstorea_half8_rtz(float8 data, size_t offset, half *p);
12503void __ovld vstorea_half16_rtz(float16 data, size_t offset, half *p);
12504
12505void __ovld vstorea_half_rtp(float data, size_t offset, half *p);
12506void __ovld vstorea_half2_rtp(float2 data, size_t offset, half *p);
12507void __ovld vstorea_half3_rtp(float3 data, size_t offset, half *p);
12508void __ovld vstorea_half4_rtp(float4 data, size_t offset, half *p);
12509void __ovld vstorea_half8_rtp(float8 data, size_t offset, half *p);
12510void __ovld vstorea_half16_rtp(float16 data, size_t offset, half *p);
12511
12512void __ovld vstorea_half_rtn(float data, size_t offset, half *p);
12513void __ovld vstorea_half2_rtn(float2 data, size_t offset, half *p);
12514void __ovld vstorea_half3_rtn(float3 data, size_t offset, half *p);
12515void __ovld vstorea_half4_rtn(float4 data, size_t offset, half *p);
12516void __ovld vstorea_half8_rtn(float8 data, size_t offset, half *p);
12517void __ovld vstorea_half16_rtn(float16 data, size_t offset, half *p);
12518
12519#ifdef cl_khr_fp64
12520void __ovld vstorea_half(double data, size_t offset, half *p);
12521void __ovld vstorea_half2(double2 data, size_t offset, half *p);
12522void __ovld vstorea_half3(double3 data, size_t offset, half *p);
12523void __ovld vstorea_half4(double4 data, size_t offset, half *p);
12524void __ovld vstorea_half8(double8 data, size_t offset, half *p);
12525void __ovld vstorea_half16(double16 data, size_t offset, half *p);
12526
12527void __ovld vstorea_half_rte(double data, size_t offset, half *p);
12528void __ovld vstorea_half2_rte(double2 data, size_t offset, half *p);
12529void __ovld vstorea_half3_rte(double3 data, size_t offset, half *p);
12530void __ovld vstorea_half4_rte(double4 data, size_t offset, half *p);
12531void __ovld vstorea_half8_rte(double8 data, size_t offset, half *p);
12532void __ovld vstorea_half16_rte(double16 data, size_t offset, half *p);
12533
12534void __ovld vstorea_half_rtz(double data, size_t offset, half *p);
12535void __ovld vstorea_half2_rtz(double2 data, size_t offset, half *p);
12536void __ovld vstorea_half3_rtz(double3 data, size_t offset, half *p);
12537void __ovld vstorea_half4_rtz(double4 data, size_t offset, half *p);
12538void __ovld vstorea_half8_rtz(double8 data, size_t offset, half *p);
12539void __ovld vstorea_half16_rtz(double16 data, size_t offset, half *p);
12540
12541void __ovld vstorea_half_rtp(double data, size_t offset, half *p);
12542void __ovld vstorea_half2_rtp(double2 data, size_t offset, half *p);
12543void __ovld vstorea_half3_rtp(double3 data, size_t offset, half *p);
12544void __ovld vstorea_half4_rtp(double4 data, size_t offset, half *p);
12545void __ovld vstorea_half8_rtp(double8 data, size_t offset, half *p);
12546void __ovld vstorea_half16_rtp(double16 data, size_t offset, half *p);
12547
12548void __ovld vstorea_half_rtn(double data, size_t offset, half *p);
12549void __ovld vstorea_half2_rtn(double2 data, size_t offset, half *p);
12550void __ovld vstorea_half3_rtn(double3 data, size_t offset, half *p);
12551void __ovld vstorea_half4_rtn(double4 data, size_t offset, half *p);
12552void __ovld vstorea_half8_rtn(double8 data, size_t offset, half *p);
12553void __ovld vstorea_half16_rtn(double16 data, size_t offset, half *p);
12554#endif //cl_khr_fp64
12555
12556#else
12557void __ovld vstorea_half(float data, size_t offset, __global half *p);
12558void __ovld vstorea_half2(float2 data, size_t offset, __global half *p);
12559void __ovld vstorea_half3(float3 data, size_t offset, __global half *p);
12560void __ovld vstorea_half4(float4 data, size_t offset, __global half *p);
12561void __ovld vstorea_half8(float8 data, size_t offset, __global half *p);
12562void __ovld vstorea_half16(float16 data, size_t offset, __global half *p);
12563
12564void __ovld vstorea_half_rte(float data, size_t offset, __global half *p);
12565void __ovld vstorea_half2_rte(float2 data, size_t offset, __global half *p);
12566void __ovld vstorea_half3_rte(float3 data, size_t offset, __global half *p);
12567void __ovld vstorea_half4_rte(float4 data, size_t offset, __global half *p);
12568void __ovld vstorea_half8_rte(float8 data, size_t offset, __global half *p);
12569void __ovld vstorea_half16_rte(float16 data, size_t offset, __global half *p);
12570
12571void __ovld vstorea_half_rtz(float data, size_t offset, __global half *p);
12572void __ovld vstorea_half2_rtz(float2 data, size_t offset, __global half *p);
12573void __ovld vstorea_half3_rtz(float3 data, size_t offset, __global half *p);
12574void __ovld vstorea_half4_rtz(float4 data, size_t offset, __global half *p);
12575void __ovld vstorea_half8_rtz(float8 data, size_t offset, __global half *p);
12576void __ovld vstorea_half16_rtz(float16 data, size_t offset, __global half *p);
12577
12578void __ovld vstorea_half_rtp(float data, size_t offset, __global half *p);
12579void __ovld vstorea_half2_rtp(float2 data, size_t offset, __global half *p);
12580void __ovld vstorea_half3_rtp(float3 data, size_t offset, __global half *p);
12581void __ovld vstorea_half4_rtp(float4 data, size_t offset, __global half *p);
12582void __ovld vstorea_half8_rtp(float8 data, size_t offset, __global half *p);
12583void __ovld vstorea_half16_rtp(float16 data, size_t offset, __global half *p);
12584
12585void __ovld vstorea_half_rtn(float data, size_t offset, __global half *p);
12586void __ovld vstorea_half2_rtn(float2 data, size_t offset, __global half *p);
12587void __ovld vstorea_half3_rtn(float3 data, size_t offset, __global half *p);
12588void __ovld vstorea_half4_rtn(float4 data, size_t offset, __global half *p);
12589void __ovld vstorea_half8_rtn(float8 data, size_t offset, __global half *p);
12590void __ovld vstorea_half16_rtn(float16 data, size_t offset, __global half *p);
12591
12592void __ovld vstorea_half(float data, size_t offset, __local half *p);
12593void __ovld vstorea_half2(float2 data, size_t offset, __local half *p);
12594void __ovld vstorea_half3(float3 data, size_t offset, __local half *p);
12595void __ovld vstorea_half4(float4 data, size_t offset, __local half *p);
12596void __ovld vstorea_half8(float8 data, size_t offset, __local half *p);
12597void __ovld vstorea_half16(float16 data, size_t offset, __local half *p);
12598
12599void __ovld vstorea_half_rte(float data, size_t offset, __local half *p);
12600void __ovld vstorea_half2_rte(float2 data, size_t offset, __local half *p);
12601void __ovld vstorea_half3_rte(float3 data, size_t offset, __local half *p);
12602void __ovld vstorea_half4_rte(float4 data, size_t offset, __local half *p);
12603void __ovld vstorea_half8_rte(float8 data, size_t offset, __local half *p);
12604void __ovld vstorea_half16_rte(float16 data, size_t offset, __local half *p);
12605
12606void __ovld vstorea_half_rtz(float data, size_t offset, __local half *p);
12607void __ovld vstorea_half2_rtz(float2 data, size_t offset, __local half *p);
12608void __ovld vstorea_half3_rtz(float3 data, size_t offset, __local half *p);
12609void __ovld vstorea_half4_rtz(float4 data, size_t offset, __local half *p);
12610void __ovld vstorea_half8_rtz(float8 data, size_t offset, __local half *p);
12611void __ovld vstorea_half16_rtz(float16 data, size_t offset, __local half *p);
12612
12613void __ovld vstorea_half_rtp(float data, size_t offset, __local half *p);
12614void __ovld vstorea_half2_rtp(float2 data, size_t offset, __local half *p);
12615void __ovld vstorea_half3_rtp(float3 data, size_t offset, __local half *p);
12616void __ovld vstorea_half4_rtp(float4 data, size_t offset, __local half *p);
12617void __ovld vstorea_half8_rtp(float8 data, size_t offset, __local half *p);
12618void __ovld vstorea_half16_rtp(float16 data, size_t offset, __local half *p);
12619
12620void __ovld vstorea_half_rtn(float data, size_t offset, __local half *p);
12621void __ovld vstorea_half2_rtn(float2 data, size_t offset, __local half *p);
12622void __ovld vstorea_half3_rtn(float3 data, size_t offset, __local half *p);
12623void __ovld vstorea_half4_rtn(float4 data, size_t offset, __local half *p);
12624void __ovld vstorea_half8_rtn(float8 data, size_t offset, __local half *p);
12625void __ovld vstorea_half16_rtn(float16 data, size_t offset, __local half *p);
12626
12627void __ovld vstorea_half(float data, size_t offset, __private half *p);
12628void __ovld vstorea_half2(float2 data, size_t offset, __private half *p);
12629void __ovld vstorea_half3(float3 data, size_t offset, __private half *p);
12630void __ovld vstorea_half4(float4 data, size_t offset, __private half *p);
12631void __ovld vstorea_half8(float8 data, size_t offset, __private half *p);
12632void __ovld vstorea_half16(float16 data, size_t offset, __private half *p);
12633
12634void __ovld vstorea_half_rte(float data, size_t offset, __private half *p);
12635void __ovld vstorea_half2_rte(float2 data, size_t offset, __private half *p);
12636void __ovld vstorea_half3_rte(float3 data, size_t offset, __private half *p);
12637void __ovld vstorea_half4_rte(float4 data, size_t offset, __private half *p);
12638void __ovld vstorea_half8_rte(float8 data, size_t offset, __private half *p);
12639void __ovld vstorea_half16_rte(float16 data, size_t offset, __private half *p);
12640
12641void __ovld vstorea_half_rtz(float data, size_t offset, __private half *p);
12642void __ovld vstorea_half2_rtz(float2 data, size_t offset, __private half *p);
12643void __ovld vstorea_half3_rtz(float3 data, size_t offset, __private half *p);
12644void __ovld vstorea_half4_rtz(float4 data, size_t offset, __private half *p);
12645void __ovld vstorea_half8_rtz(float8 data, size_t offset, __private half *p);
12646void __ovld vstorea_half16_rtz(float16 data, size_t offset, __private half *p);
12647
12648void __ovld vstorea_half_rtp(float data, size_t offset, __private half *p);
12649void __ovld vstorea_half2_rtp(float2 data, size_t offset, __private half *p);
12650void __ovld vstorea_half3_rtp(float3 data, size_t offset, __private half *p);
12651void __ovld vstorea_half4_rtp(float4 data, size_t offset, __private half *p);
12652void __ovld vstorea_half8_rtp(float8 data, size_t offset, __private half *p);
12653void __ovld vstorea_half16_rtp(float16 data, size_t offset, __private half *p);
12654
12655void __ovld vstorea_half_rtn(float data, size_t offset, __private half *p);
12656void __ovld vstorea_half2_rtn(float2 data, size_t offset, __private half *p);
12657void __ovld vstorea_half3_rtn(float3 data, size_t offset, __private half *p);
12658void __ovld vstorea_half4_rtn(float4 data, size_t offset, __private half *p);
12659void __ovld vstorea_half8_rtn(float8 data, size_t offset, __private half *p);
12660void __ovld vstorea_half16_rtn(float16 data, size_t offset, __private half *p);
12661
12662#ifdef cl_khr_fp64
12663void __ovld vstorea_half(double data, size_t offset, __global half *p);
12664void __ovld vstorea_half2(double2 data, size_t offset, __global half *p);
12665void __ovld vstorea_half3(double3 data, size_t offset, __global half *p);
12666void __ovld vstorea_half4(double4 data, size_t offset, __global half *p);
12667void __ovld vstorea_half8(double8 data, size_t offset, __global half *p);
12668void __ovld vstorea_half16(double16 data, size_t offset, __global half *p);
12669
12670void __ovld vstorea_half_rte(double data, size_t offset, __global half *p);
12671void __ovld vstorea_half2_rte(double2 data, size_t offset, __global half *p);
12672void __ovld vstorea_half3_rte(double3 data, size_t offset, __global half *p);
12673void __ovld vstorea_half4_rte(double4 data, size_t offset, __global half *p);
12674void __ovld vstorea_half8_rte(double8 data, size_t offset, __global half *p);
12675void __ovld vstorea_half16_rte(double16 data, size_t offset, __global half *p);
12676
12677void __ovld vstorea_half_rtz(double data, size_t offset, __global half *p);
12678void __ovld vstorea_half2_rtz(double2 data, size_t offset, __global half *p);
12679void __ovld vstorea_half3_rtz(double3 data, size_t offset, __global half *p);
12680void __ovld vstorea_half4_rtz(double4 data, size_t offset, __global half *p);
12681void __ovld vstorea_half8_rtz(double8 data, size_t offset, __global half *p);
12682void __ovld vstorea_half16_rtz(double16 data, size_t offset, __global half *p);
12683
12684void __ovld vstorea_half_rtp(double data, size_t offset, __global half *p);
12685void __ovld vstorea_half2_rtp(double2 data, size_t offset, __global half *p);
12686void __ovld vstorea_half3_rtp(double3 data, size_t offset, __global half *p);
12687void __ovld vstorea_half4_rtp(double4 data, size_t offset, __global half *p);
12688void __ovld vstorea_half8_rtp(double8 data, size_t offset, __global half *p);
12689void __ovld vstorea_half16_rtp(double16 data, size_t offset, __global half *p);
12690
12691void __ovld vstorea_half_rtn(double data, size_t offset, __global half *p);
12692void __ovld vstorea_half2_rtn(double2 data, size_t offset, __global half *p);
12693void __ovld vstorea_half3_rtn(double3 data, size_t offset, __global half *p);
12694void __ovld vstorea_half4_rtn(double4 data, size_t offset, __global half *p);
12695void __ovld vstorea_half8_rtn(double8 data, size_t offset, __global half *p);
12696void __ovld vstorea_half16_rtn(double16 data, size_t offset, __global half *p);
12697
12698void __ovld vstorea_half(double data, size_t offset, __local half *p);
12699void __ovld vstorea_half2(double2 data, size_t offset, __local half *p);
12700void __ovld vstorea_half3(double3 data, size_t offset, __local half *p);
12701void __ovld vstorea_half4(double4 data, size_t offset, __local half *p);
12702void __ovld vstorea_half8(double8 data, size_t offset, __local half *p);
12703void __ovld vstorea_half16(double16 data, size_t offset, __local half *p);
12704
12705void __ovld vstorea_half_rte(double data, size_t offset, __local half *p);
12706void __ovld vstorea_half2_rte(double2 data, size_t offset, __local half *p);
12707void __ovld vstorea_half3_rte(double3 data, size_t offset, __local half *p);
12708void __ovld vstorea_half4_rte(double4 data, size_t offset, __local half *p);
12709void __ovld vstorea_half8_rte(double8 data, size_t offset, __local half *p);
12710void __ovld vstorea_half16_rte(double16 data, size_t offset, __local half *p);
12711
12712void __ovld vstorea_half_rtz(double data, size_t offset, __local half *p);
12713void __ovld vstorea_half2_rtz(double2 data, size_t offset, __local half *p);
12714void __ovld vstorea_half3_rtz(double3 data, size_t offset, __local half *p);
12715void __ovld vstorea_half4_rtz(double4 data, size_t offset, __local half *p);
12716void __ovld vstorea_half8_rtz(double8 data, size_t offset, __local half *p);
12717void __ovld vstorea_half16_rtz(double16 data, size_t offset, __local half *p);
12718
12719void __ovld vstorea_half_rtp(double data, size_t offset, __local half *p);
12720void __ovld vstorea_half2_rtp(double2 data, size_t offset, __local half *p);
12721void __ovld vstorea_half3_rtp(double3 data, size_t offset, __local half *p);
12722void __ovld vstorea_half4_rtp(double4 data, size_t offset, __local half *p);
12723void __ovld vstorea_half8_rtp(double8 data, size_t offset, __local half *p);
12724void __ovld vstorea_half16_rtp(double16 data, size_t offset, __local half *p);
12725
12726void __ovld vstorea_half_rtn(double data, size_t offset, __local half *p);
12727void __ovld vstorea_half2_rtn(double2 data, size_t offset, __local half *p);
12728void __ovld vstorea_half3_rtn(double3 data, size_t offset, __local half *p);
12729void __ovld vstorea_half4_rtn(double4 data, size_t offset, __local half *p);
12730void __ovld vstorea_half8_rtn(double8 data, size_t offset, __local half *p);
12731void __ovld vstorea_half16_rtn(double16 data, size_t offset, __local half *p);
12732
12733void __ovld vstorea_half(double data, size_t offset, __private half *p);
12734void __ovld vstorea_half2(double2 data, size_t offset, __private half *p);
12735void __ovld vstorea_half3(double3 data, size_t offset, __private half *p);
12736void __ovld vstorea_half4(double4 data, size_t offset, __private half *p);
12737void __ovld vstorea_half8(double8 data, size_t offset, __private half *p);
12738void __ovld vstorea_half16(double16 data, size_t offset, __private half *p);
12739
12740void __ovld vstorea_half_rte(double data, size_t offset, __private half *p);
12741void __ovld vstorea_half2_rte(double2 data, size_t offset, __private half *p);
12742void __ovld vstorea_half3_rte(double3 data, size_t offset, __private half *p);
12743void __ovld vstorea_half4_rte(double4 data, size_t offset, __private half *p);
12744void __ovld vstorea_half8_rte(double8 data, size_t offset, __private half *p);
12745void __ovld vstorea_half16_rte(double16 data, size_t offset, __private half *p);
12746
12747void __ovld vstorea_half_rtz(double data, size_t offset, __private half *p);
12748void __ovld vstorea_half2_rtz(double2 data, size_t offset, __private half *p);
12749void __ovld vstorea_half3_rtz(double3 data, size_t offset, __private half *p);
12750void __ovld vstorea_half4_rtz(double4 data, size_t offset, __private half *p);
12751void __ovld vstorea_half8_rtz(double8 data, size_t offset, __private half *p);
12752void __ovld vstorea_half16_rtz(double16 data, size_t offset, __private half *p);
12753
12754void __ovld vstorea_half_rtp(double data, size_t offset, __private half *p);
12755void __ovld vstorea_half2_rtp(double2 data, size_t offset, __private half *p);
12756void __ovld vstorea_half3_rtp(double3 data, size_t offset, __private half *p);
12757void __ovld vstorea_half4_rtp(double4 data, size_t offset, __private half *p);
12758void __ovld vstorea_half8_rtp(double8 data, size_t offset, __private half *p);
12759void __ovld vstorea_half16_rtp(double16 data, size_t offset, __private half *p);
12760
12761void __ovld vstorea_half_rtn(double data, size_t offset, __private half *p);
12762void __ovld vstorea_half2_rtn(double2 data,size_t offset, __private half *p);
12763void __ovld vstorea_half3_rtn(double3 data,size_t offset, __private half *p);
12764void __ovld vstorea_half4_rtn(double4 data,size_t offset, __private half *p);
12765void __ovld vstorea_half8_rtn(double8 data,size_t offset, __private half *p);
12766void __ovld vstorea_half16_rtn(double16 data,size_t offset, __private half *p);
12767#endif //cl_khr_fp64
12768#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
12769
12770// OpenCL v1.1 s6.11.8, v1.2 s6.12.8, v2.0 s6.13.8 - Synchronization Functions
12771
12772// Flag type and values for barrier, mem_fence, read_mem_fence, write_mem_fence
12773typedef uint cl_mem_fence_flags;
12774
12775/**
12776 * Queue a memory fence to ensure correct
12777 * ordering of memory operations to local memory
12778 */
12779#define CLK_LOCAL_MEM_FENCE    0x01
12780
12781/**
12782 * Queue a memory fence to ensure correct
12783 * ordering of memory operations to global memory
12784 */
12785#define CLK_GLOBAL_MEM_FENCE   0x02
12786
12787#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
12788/**
12789 * Queue a memory fence to ensure correct ordering of memory
12790 * operations between work-items of a work-group to
12791 * image memory.
12792 */
12793#define CLK_IMAGE_MEM_FENCE  0x04
12794#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
12795
12796/**
12797 * All work-items in a work-group executing the kernel
12798 * on a processor must execute this function before any
12799 * are allowed to continue execution beyond the barrier.
12800 * This function must be encountered by all work-items in
12801 * a work-group executing the kernel.
12802 * If barrier is inside a conditional statement, then all
12803 * work-items must enter the conditional if any work-item
12804 * enters the conditional statement and executes the
12805 * barrier.
12806 * If barrer is inside a loop, all work-items must execute
12807 * the barrier for each iteration of the loop before any are
12808 * allowed to continue execution beyond the barrier.
12809 * The barrier function also queues a memory fence
12810 * (reads and writes) to ensure correct ordering of
12811 * memory operations to local or global memory.
12812 * The flags argument specifies the memory address space
12813 * and can be set to a combination of the following literal
12814 * values.
12815 * CLK_LOCAL_MEM_FENCE - The barrier function
12816 * will either flush any variables stored in local memory
12817 * or queue a memory fence to ensure correct ordering of
12818 * memory operations to local memory.
12819 * CLK_GLOBAL_MEM_FENCE - The barrier function
12820 * will queue a memory fence to ensure correct ordering
12821 * of memory operations to global memory. This can be
12822 * useful when work-items, for example, write to buffer or
12823 * image objects and then want to read the updated data.
12824 */
12825
12826void __ovld __conv barrier(cl_mem_fence_flags flags);
12827
12828#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
12829
12830typedef enum memory_scope {
12831  memory_scope_work_item = __OPENCL_MEMORY_SCOPE_WORK_ITEM,
12832  memory_scope_work_group = __OPENCL_MEMORY_SCOPE_WORK_GROUP,
12833  memory_scope_device = __OPENCL_MEMORY_SCOPE_DEVICE,
12834  memory_scope_all_svm_devices = __OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES,
12835#if defined(cl_intel_subgroups) || defined(cl_khr_subgroups)
12836  memory_scope_sub_group = __OPENCL_MEMORY_SCOPE_SUB_GROUP
12837#endif
12838} memory_scope;
12839
12840void __ovld __conv work_group_barrier(cl_mem_fence_flags flags, memory_scope scope);
12841void __ovld __conv work_group_barrier(cl_mem_fence_flags flags);
12842#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
12843
12844// OpenCL v1.1 s6.11.9, v1.2 s6.12.9 - Explicit Memory Fence Functions
12845
12846/**
12847 * Orders loads and stores of a work-item
12848 * executing a kernel. This means that loads
12849 * and stores preceding the mem_fence will
12850 * be committed to memory before any loads
12851 * and stores following the mem_fence.
12852 * The flags argument specifies the memory
12853 * address space and can be set to a
12854 * combination of the following literal
12855 * values:
12856 * CLK_LOCAL_MEM_FENCE
12857 * CLK_GLOBAL_MEM_FENCE.
12858 */
12859void __ovld mem_fence(cl_mem_fence_flags flags);
12860
12861/**
12862 * Read memory barrier that orders only
12863 * loads.
12864 * The flags argument specifies the memory
12865 * address space and can be set to to a
12866 * combination of the following literal
12867 * values:
12868 * CLK_LOCAL_MEM_FENCE
12869 * CLK_GLOBAL_MEM_FENCE.
12870 */
12871void __ovld read_mem_fence(cl_mem_fence_flags flags);
12872
12873/**
12874 * Write memory barrier that orders only
12875 * stores.
12876 * The flags argument specifies the memory
12877 * address space and can be set to to a
12878 * combination of the following literal
12879 * values:
12880 * CLK_LOCAL_MEM_FENCE
12881 * CLK_GLOBAL_MEM_FENCE.
12882 */
12883void __ovld write_mem_fence(cl_mem_fence_flags flags);
12884
12885// OpenCL v2.0 s6.13.9 - Address Space Qualifier Functions
12886
12887#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
12888cl_mem_fence_flags __ovld get_fence(const void *ptr);
12889cl_mem_fence_flags __ovld get_fence(void *ptr);
12890
12891/**
12892 * Builtin functions to_global, to_local, and to_private need to be declared as Clang builtin functions
12893 * and checked in Sema since they should be declared as
12894 *   addr gentype* to_addr (gentype*);
12895 * where gentype is builtin type or user defined type.
12896 */
12897
12898#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
12899
12900// OpenCL v1.1 s6.11.10, v1.2 s6.12.10, v2.0 s6.13.10 - Async Copies from Global to Local Memory, Local to Global Memory, and Prefetch
12901
12902/**
12903 * event_t async_work_group_copy (
12904 * __global gentype *dst,
12905 * const __local gentype *src,
12906 * size_t num_elements,
12907 * event_t event)
12908 * Perform an async copy of num_elements
12909 * gentype elements from src to dst. The async
12910 * copy is performed by all work-items in a workgroup
12911 * and this built-in function must therefore
12912 * be encountered by all work-items in a workgroup
12913 * executing the kernel with the same
12914 * argument values; otherwise the results are
12915 * undefined.
12916 * Returns an event object that can be used by
12917 * wait_group_events to wait for the async copy
12918 * to finish. The event argument can also be used
12919 * to associate the async_work_group_copy with
12920 * a previous async copy allowing an event to be
12921 * shared by multiple async copies; otherwise event
12922 * should be zero.
12923 * If event argument is non-zero, the event object
12924 * supplied in event argument will be returned.
12925 * This function does not perform any implicit
12926 * synchronization of source data such as using a
12927 * barrier before performing the copy.
12928 */
12929event_t __ovld async_work_group_copy(__local char *dst, const __global char *src, size_t num_elements, event_t event);
12930event_t __ovld async_work_group_copy(__local uchar *dst, const __global uchar *src, size_t num_elements, event_t event);
12931event_t __ovld async_work_group_copy(__local short *dst, const __global short *src, size_t num_elements, event_t event);
12932event_t __ovld async_work_group_copy(__local ushort *dst, const __global ushort *src, size_t num_elements, event_t event);
12933event_t __ovld async_work_group_copy(__local int *dst, const __global int *src, size_t num_elements, event_t event);
12934event_t __ovld async_work_group_copy(__local uint *dst, const __global uint *src, size_t num_elements, event_t event);
12935event_t __ovld async_work_group_copy(__local long *dst, const __global long *src, size_t num_elements, event_t event);
12936event_t __ovld async_work_group_copy(__local ulong *dst, const __global ulong *src, size_t num_elements, event_t event);
12937event_t __ovld async_work_group_copy(__local float *dst, const __global float *src, size_t num_elements, event_t event);
12938event_t __ovld async_work_group_copy(__local char2 *dst, const __global char2 *src, size_t num_elements, event_t event);
12939event_t __ovld async_work_group_copy(__local uchar2 *dst, const __global uchar2 *src, size_t num_elements, event_t event);
12940event_t __ovld async_work_group_copy(__local short2 *dst, const __global short2 *src, size_t num_elements, event_t event);
12941event_t __ovld async_work_group_copy(__local ushort2 *dst, const __global ushort2 *src, size_t num_elements, event_t event);
12942event_t __ovld async_work_group_copy(__local int2 *dst, const __global int2 *src, size_t num_elements, event_t event);
12943event_t __ovld async_work_group_copy(__local uint2 *dst, const __global uint2 *src, size_t num_elements, event_t event);
12944event_t __ovld async_work_group_copy(__local long2 *dst, const __global long2 *src, size_t num_elements, event_t event);
12945event_t __ovld async_work_group_copy(__local ulong2 *dst, const __global ulong2 *src, size_t num_elements, event_t event);
12946event_t __ovld async_work_group_copy(__local float2 *dst, const __global float2 *src, size_t num_elements, event_t event);
12947event_t __ovld async_work_group_copy(__local char3 *dst, const __global char3 *src, size_t num_elements, event_t event);
12948event_t __ovld async_work_group_copy(__local uchar3 *dst, const __global uchar3 *src, size_t num_elements, event_t event);
12949event_t __ovld async_work_group_copy(__local short3 *dst, const __global short3 *src, size_t num_elements, event_t event);
12950event_t __ovld async_work_group_copy(__local ushort3 *dst, const __global ushort3 *src, size_t num_elements, event_t event);
12951event_t __ovld async_work_group_copy(__local int3 *dst, const __global int3 *src, size_t num_elements, event_t event);
12952event_t __ovld async_work_group_copy(__local uint3 *dst, const __global uint3 *src, size_t num_elements, event_t event);
12953event_t __ovld async_work_group_copy(__local long3 *dst, const __global long3 *src, size_t num_elements, event_t event);
12954event_t __ovld async_work_group_copy(__local ulong3 *dst, const __global ulong3 *src, size_t num_elements, event_t event);
12955event_t __ovld async_work_group_copy(__local float3 *dst, const __global float3 *src, size_t num_elements, event_t event);
12956event_t __ovld async_work_group_copy(__local char4 *dst, const __global char4 *src, size_t num_elements, event_t event);
12957event_t __ovld async_work_group_copy(__local uchar4 *dst, const __global uchar4 *src, size_t num_elements, event_t event);
12958event_t __ovld async_work_group_copy(__local short4 *dst, const __global short4 *src, size_t num_elements, event_t event);
12959event_t __ovld async_work_group_copy(__local ushort4 *dst, const __global ushort4 *src, size_t num_elements, event_t event);
12960event_t __ovld async_work_group_copy(__local int4 *dst, const __global int4 *src, size_t num_elements, event_t event);
12961event_t __ovld async_work_group_copy(__local uint4 *dst, const __global uint4 *src, size_t num_elements, event_t event);
12962event_t __ovld async_work_group_copy(__local long4 *dst, const __global long4 *src, size_t num_elements, event_t event);
12963event_t __ovld async_work_group_copy(__local ulong4 *dst, const __global ulong4 *src, size_t num_elements, event_t event);
12964event_t __ovld async_work_group_copy(__local float4 *dst, const __global float4 *src, size_t num_elements, event_t event);
12965event_t __ovld async_work_group_copy(__local char8 *dst, const __global char8 *src, size_t num_elements, event_t event);
12966event_t __ovld async_work_group_copy(__local uchar8 *dst, const __global uchar8 *src, size_t num_elements, event_t event);
12967event_t __ovld async_work_group_copy(__local short8 *dst, const __global short8 *src, size_t num_elements, event_t event);
12968event_t __ovld async_work_group_copy(__local ushort8 *dst, const __global ushort8 *src, size_t num_elements, event_t event);
12969event_t __ovld async_work_group_copy(__local int8 *dst, const __global int8 *src, size_t num_elements, event_t event);
12970event_t __ovld async_work_group_copy(__local uint8 *dst, const __global uint8 *src, size_t num_elements, event_t event);
12971event_t __ovld async_work_group_copy(__local long8 *dst, const __global long8 *src, size_t num_elements, event_t event);
12972event_t __ovld async_work_group_copy(__local ulong8 *dst, const __global ulong8 *src, size_t num_elements, event_t event);
12973event_t __ovld async_work_group_copy(__local float8 *dst, const __global float8 *src, size_t num_elements, event_t event);
12974event_t __ovld async_work_group_copy(__local char16 *dst, const __global char16 *src, size_t num_elements, event_t event);
12975event_t __ovld async_work_group_copy(__local uchar16 *dst, const __global uchar16 *src, size_t num_elements, event_t event);
12976event_t __ovld async_work_group_copy(__local short16 *dst, const __global short16 *src, size_t num_elements, event_t event);
12977event_t __ovld async_work_group_copy(__local ushort16 *dst, const __global ushort16 *src, size_t num_elements, event_t event);
12978event_t __ovld async_work_group_copy(__local int16 *dst, const __global int16 *src, size_t num_elements, event_t event);
12979event_t __ovld async_work_group_copy(__local uint16 *dst, const __global uint16 *src, size_t num_elements, event_t event);
12980event_t __ovld async_work_group_copy(__local long16 *dst, const __global long16 *src, size_t num_elements, event_t event);
12981event_t __ovld async_work_group_copy(__local ulong16 *dst, const __global ulong16 *src, size_t num_elements, event_t event);
12982event_t __ovld async_work_group_copy(__local float16 *dst, const __global float16 *src, size_t num_elements, event_t event);
12983event_t __ovld async_work_group_copy(__global char *dst, const __local char *src, size_t num_elements, event_t event);
12984event_t __ovld async_work_group_copy(__global uchar *dst, const __local uchar *src, size_t num_elements, event_t event);
12985event_t __ovld async_work_group_copy(__global short *dst, const __local short *src, size_t num_elements, event_t event);
12986event_t __ovld async_work_group_copy(__global ushort *dst, const __local ushort *src, size_t num_elements, event_t event);
12987event_t __ovld async_work_group_copy(__global int *dst, const __local int *src, size_t num_elements, event_t event);
12988event_t __ovld async_work_group_copy(__global uint *dst, const __local uint *src, size_t num_elements, event_t event);
12989event_t __ovld async_work_group_copy(__global long *dst, const __local long *src, size_t num_elements, event_t event);
12990event_t __ovld async_work_group_copy(__global ulong *dst, const __local ulong *src, size_t num_elements, event_t event);
12991event_t __ovld async_work_group_copy(__global float *dst, const __local float *src, size_t num_elements, event_t event);
12992event_t __ovld async_work_group_copy(__global char2 *dst, const __local char2 *src, size_t num_elements, event_t event);
12993event_t __ovld async_work_group_copy(__global uchar2 *dst, const __local uchar2 *src, size_t num_elements, event_t event);
12994event_t __ovld async_work_group_copy(__global short2 *dst, const __local short2 *src, size_t num_elements, event_t event);
12995event_t __ovld async_work_group_copy(__global ushort2 *dst, const __local ushort2 *src, size_t num_elements, event_t event);
12996event_t __ovld async_work_group_copy(__global int2 *dst, const __local int2 *src, size_t num_elements, event_t event);
12997event_t __ovld async_work_group_copy(__global uint2 *dst, const __local uint2 *src, size_t num_elements, event_t event);
12998event_t __ovld async_work_group_copy(__global long2 *dst, const __local long2 *src, size_t num_elements, event_t event);
12999event_t __ovld async_work_group_copy(__global ulong2 *dst, const __local ulong2 *src, size_t num_elements, event_t event);
13000event_t __ovld async_work_group_copy(__global float2 *dst, const __local float2 *src, size_t num_elements, event_t event);
13001event_t __ovld async_work_group_copy(__global char3 *dst, const __local char3 *src, size_t num_elements, event_t event);
13002event_t __ovld async_work_group_copy(__global uchar3 *dst, const __local uchar3 *src, size_t num_elements, event_t event);
13003event_t __ovld async_work_group_copy(__global short3 *dst, const __local short3 *src, size_t num_elements, event_t event);
13004event_t __ovld async_work_group_copy(__global ushort3 *dst, const __local ushort3 *src, size_t num_elements, event_t event);
13005event_t __ovld async_work_group_copy(__global int3 *dst, const __local int3 *src, size_t num_elements, event_t event);
13006event_t __ovld async_work_group_copy(__global uint3 *dst, const __local uint3 *src, size_t num_elements, event_t event);
13007event_t __ovld async_work_group_copy(__global long3 *dst, const __local long3 *src, size_t num_elements, event_t event);
13008event_t __ovld async_work_group_copy(__global ulong3 *dst, const __local ulong3 *src, size_t num_elements, event_t event);
13009event_t __ovld async_work_group_copy(__global float3 *dst, const __local float3 *src, size_t num_elements, event_t event);
13010event_t __ovld async_work_group_copy(__global char4 *dst, const __local char4 *src, size_t num_elements, event_t event);
13011event_t __ovld async_work_group_copy(__global uchar4 *dst, const __local uchar4 *src, size_t num_elements, event_t event);
13012event_t __ovld async_work_group_copy(__global short4 *dst, const __local short4 *src, size_t num_elements, event_t event);
13013event_t __ovld async_work_group_copy(__global ushort4 *dst, const __local ushort4 *src, size_t num_elements, event_t event);
13014event_t __ovld async_work_group_copy(__global int4 *dst, const __local int4 *src, size_t num_elements, event_t event);
13015event_t __ovld async_work_group_copy(__global uint4 *dst, const __local uint4 *src, size_t num_elements, event_t event);
13016event_t __ovld async_work_group_copy(__global long4 *dst, const __local long4 *src, size_t num_elements, event_t event);
13017event_t __ovld async_work_group_copy(__global ulong4 *dst, const __local ulong4 *src, size_t num_elements, event_t event);
13018event_t __ovld async_work_group_copy(__global float4 *dst, const __local float4 *src, size_t num_elements, event_t event);
13019event_t __ovld async_work_group_copy(__global char8 *dst, const __local char8 *src, size_t num_elements, event_t event);
13020event_t __ovld async_work_group_copy(__global uchar8 *dst, const __local uchar8 *src, size_t num_elements, event_t event);
13021event_t __ovld async_work_group_copy(__global short8 *dst, const __local short8 *src, size_t num_elements, event_t event);
13022event_t __ovld async_work_group_copy(__global ushort8 *dst, const __local ushort8 *src, size_t num_elements, event_t event);
13023event_t __ovld async_work_group_copy(__global int8 *dst, const __local int8 *src, size_t num_elements, event_t event);
13024event_t __ovld async_work_group_copy(__global uint8 *dst, const __local uint8 *src, size_t num_elements, event_t event);
13025event_t __ovld async_work_group_copy(__global long8 *dst, const __local long8 *src, size_t num_elements, event_t event);
13026event_t __ovld async_work_group_copy(__global ulong8 *dst, const __local ulong8 *src, size_t num_elements, event_t event);
13027event_t __ovld async_work_group_copy(__global float8 *dst, const __local float8 *src, size_t num_elements, event_t event);
13028event_t __ovld async_work_group_copy(__global char16 *dst, const __local char16 *src, size_t num_elements, event_t event);
13029event_t __ovld async_work_group_copy(__global uchar16 *dst, const __local uchar16 *src, size_t num_elements, event_t event);
13030event_t __ovld async_work_group_copy(__global short16 *dst, const __local short16 *src, size_t num_elements, event_t event);
13031event_t __ovld async_work_group_copy(__global ushort16 *dst, const __local ushort16 *src, size_t num_elements, event_t event);
13032event_t __ovld async_work_group_copy(__global int16 *dst, const __local int16 *src, size_t num_elements, event_t event);
13033event_t __ovld async_work_group_copy(__global uint16 *dst, const __local uint16 *src, size_t num_elements, event_t event);
13034event_t __ovld async_work_group_copy(__global long16 *dst, const __local long16 *src, size_t num_elements, event_t event);
13035event_t __ovld async_work_group_copy(__global ulong16 *dst, const __local ulong16 *src, size_t num_elements, event_t event);
13036event_t __ovld async_work_group_copy(__global float16 *dst, const __local float16 *src, size_t num_elements, event_t event);
13037#ifdef cl_khr_fp64
13038event_t __ovld async_work_group_copy(__local double *dst, const __global double *src, size_t num_elements, event_t event);
13039event_t __ovld async_work_group_copy(__local double2 *dst, const __global double2 *src, size_t num_elements, event_t event);
13040event_t __ovld async_work_group_copy(__local double3 *dst, const __global double3 *src, size_t num_elements, event_t event);
13041event_t __ovld async_work_group_copy(__local double4 *dst, const __global double4 *src, size_t num_elements, event_t event);
13042event_t __ovld async_work_group_copy(__local double8 *dst, const __global double8 *src, size_t num_elements, event_t event);
13043event_t __ovld async_work_group_copy(__local double16 *dst, const __global double16 *src, size_t num_elements, event_t event);
13044event_t __ovld async_work_group_copy(__global double *dst, const __local double *src, size_t num_elements, event_t event);
13045event_t __ovld async_work_group_copy(__global double2 *dst, const __local double2 *src, size_t num_elements, event_t event);
13046event_t __ovld async_work_group_copy(__global double3 *dst, const __local double3 *src, size_t num_elements, event_t event);
13047event_t __ovld async_work_group_copy(__global double4 *dst, const __local double4 *src, size_t num_elements, event_t event);
13048event_t __ovld async_work_group_copy(__global double8 *dst, const __local double8 *src, size_t num_elements, event_t event);
13049event_t __ovld async_work_group_copy(__global double16 *dst, const __local double16 *src, size_t num_elements, event_t event);
13050#endif //cl_khr_fp64
13051#ifdef cl_khr_fp16
13052event_t __ovld async_work_group_copy(__local half *dst, const __global half *src, size_t num_elements, event_t event);
13053event_t __ovld async_work_group_copy(__local half2 *dst, const __global half2 *src, size_t num_elements, event_t event);
13054event_t __ovld async_work_group_copy(__local half3 *dst, const __global half3 *src, size_t num_elements, event_t event);
13055event_t __ovld async_work_group_copy(__local half4 *dst, const __global half4 *src, size_t num_elements, event_t event);
13056event_t __ovld async_work_group_copy(__local half8 *dst, const __global half8 *src, size_t num_elements, event_t event);
13057event_t __ovld async_work_group_copy(__local half16 *dst, const __global half16 *src, size_t num_elements, event_t event);
13058event_t __ovld async_work_group_copy(__global half *dst, const __local half *src, size_t num_elements, event_t event);
13059event_t __ovld async_work_group_copy(__global half2 *dst, const __local half2 *src, size_t num_elements, event_t event);
13060event_t __ovld async_work_group_copy(__global half3 *dst, const __local half3 *src, size_t num_elements, event_t event);
13061event_t __ovld async_work_group_copy(__global half4 *dst, const __local half4 *src, size_t num_elements, event_t event);
13062event_t __ovld async_work_group_copy(__global half8 *dst, const __local half8 *src, size_t num_elements, event_t event);
13063event_t __ovld async_work_group_copy(__global half16 *dst, const __local half16 *src, size_t num_elements, event_t event);
13064#endif //cl_khr_fp16
13065
13066/**
13067 * Perform an async gather of num_elements
13068 * gentype elements from src to dst. The
13069 * src_stride is the stride in elements for each
13070 * gentype element read from src. The dst_stride
13071 * is the stride in elements for each gentype
13072 * element written to dst. The async gather is
13073 * performed by all work-items in a work-group.
13074 * This built-in function must therefore be
13075 * encountered by all work-items in a work-group
13076 * executing the kernel with the same argument
13077 * values; otherwise the results are undefined.
13078 * Returns an event object that can be used by
13079 * wait_group_events to wait for the async copy
13080 * to finish. The event argument can also be used
13081 * to associate the
13082 * async_work_group_strided_copy with a
13083 * previous async copy allowing an event to be
13084 * shared by multiple async copies; otherwise event
13085 * should be zero.
13086 * If event argument is non-zero, the event object
13087 * supplied in event argument will be returned.
13088 * This function does not perform any implicit
13089 * synchronization of source data such as using a
13090 * barrier before performing the copy.
13091 */
13092event_t __ovld async_work_group_strided_copy(__local char *dst, const __global char *src, size_t num_elements, size_t src_stride, event_t event);
13093event_t __ovld async_work_group_strided_copy(__local uchar *dst, const __global uchar *src, size_t num_elements, size_t src_stride, event_t event);
13094event_t __ovld async_work_group_strided_copy(__local short *dst, const __global short *src, size_t num_elements, size_t src_stride, event_t event);
13095event_t __ovld async_work_group_strided_copy(__local ushort *dst, const __global ushort *src, size_t num_elements, size_t src_stride, event_t event);
13096event_t __ovld async_work_group_strided_copy(__local int *dst, const __global int *src, size_t num_elements, size_t src_stride, event_t event);
13097event_t __ovld async_work_group_strided_copy(__local uint *dst, const __global uint *src, size_t num_elements, size_t src_stride, event_t event);
13098event_t __ovld async_work_group_strided_copy(__local long *dst, const __global long *src, size_t num_elements, size_t src_stride, event_t event);
13099event_t __ovld async_work_group_strided_copy(__local ulong *dst, const __global ulong *src, size_t num_elements, size_t src_stride, event_t event);
13100event_t __ovld async_work_group_strided_copy(__local float *dst, const __global float *src, size_t num_elements, size_t src_stride, event_t event);
13101event_t __ovld async_work_group_strided_copy(__local char2 *dst, const __global char2 *src, size_t num_elements, size_t src_stride, event_t event);
13102event_t __ovld async_work_group_strided_copy(__local uchar2 *dst, const __global uchar2 *src, size_t num_elements, size_t src_stride, event_t event);
13103event_t __ovld async_work_group_strided_copy(__local short2 *dst, const __global short2 *src, size_t num_elements, size_t src_stride, event_t event);
13104event_t __ovld async_work_group_strided_copy(__local ushort2 *dst, const __global ushort2 *src, size_t num_elements, size_t src_stride, event_t event);
13105event_t __ovld async_work_group_strided_copy(__local int2 *dst, const __global int2 *src, size_t num_elements, size_t src_stride, event_t event);
13106event_t __ovld async_work_group_strided_copy(__local uint2 *dst, const __global uint2 *src, size_t num_elements, size_t src_stride, event_t event);
13107event_t __ovld async_work_group_strided_copy(__local long2 *dst, const __global long2 *src, size_t num_elements, size_t src_stride, event_t event);
13108event_t __ovld async_work_group_strided_copy(__local ulong2 *dst, const __global ulong2 *src, size_t num_elements, size_t src_stride, event_t event);
13109event_t __ovld async_work_group_strided_copy(__local float2 *dst, const __global float2 *src, size_t num_elements, size_t src_stride, event_t event);
13110event_t __ovld async_work_group_strided_copy(__local char3 *dst, const __global char3 *src, size_t num_elements, size_t src_stride, event_t event);
13111event_t __ovld async_work_group_strided_copy(__local uchar3 *dst, const __global uchar3 *src, size_t num_elements, size_t src_stride, event_t event);
13112event_t __ovld async_work_group_strided_copy(__local short3 *dst, const __global short3 *src, size_t num_elements, size_t src_stride, event_t event);
13113event_t __ovld async_work_group_strided_copy(__local ushort3 *dst, const __global ushort3 *src, size_t num_elements, size_t src_stride, event_t event);
13114event_t __ovld async_work_group_strided_copy(__local int3 *dst, const __global int3 *src, size_t num_elements, size_t src_stride, event_t event);
13115event_t __ovld async_work_group_strided_copy(__local uint3 *dst, const __global uint3 *src, size_t num_elements, size_t src_stride, event_t event);
13116event_t __ovld async_work_group_strided_copy(__local long3 *dst, const __global long3 *src, size_t num_elements, size_t src_stride, event_t event);
13117event_t __ovld async_work_group_strided_copy(__local ulong3 *dst, const __global ulong3 *src, size_t num_elements, size_t src_stride, event_t event);
13118event_t __ovld async_work_group_strided_copy(__local float3 *dst, const __global float3 *src, size_t num_elements, size_t src_stride, event_t event);
13119event_t __ovld async_work_group_strided_copy(__local char4 *dst, const __global char4 *src, size_t num_elements, size_t src_stride, event_t event);
13120event_t __ovld async_work_group_strided_copy(__local uchar4 *dst, const __global uchar4 *src, size_t num_elements, size_t src_stride, event_t event);
13121event_t __ovld async_work_group_strided_copy(__local short4 *dst, const __global short4 *src, size_t num_elements, size_t src_stride, event_t event);
13122event_t __ovld async_work_group_strided_copy(__local ushort4 *dst, const __global ushort4 *src, size_t num_elements, size_t src_stride, event_t event);
13123event_t __ovld async_work_group_strided_copy(__local int4 *dst, const __global int4 *src, size_t num_elements, size_t src_stride, event_t event);
13124event_t __ovld async_work_group_strided_copy(__local uint4 *dst, const __global uint4 *src, size_t num_elements, size_t src_stride, event_t event);
13125event_t __ovld async_work_group_strided_copy(__local long4 *dst, const __global long4 *src, size_t num_elements, size_t src_stride, event_t event);
13126event_t __ovld async_work_group_strided_copy(__local ulong4 *dst, const __global ulong4 *src, size_t num_elements, size_t src_stride, event_t event);
13127event_t __ovld async_work_group_strided_copy(__local float4 *dst, const __global float4 *src, size_t num_elements, size_t src_stride, event_t event);
13128event_t __ovld async_work_group_strided_copy(__local char8 *dst, const __global char8 *src, size_t num_elements, size_t src_stride, event_t event);
13129event_t __ovld async_work_group_strided_copy(__local uchar8 *dst, const __global uchar8 *src, size_t num_elements, size_t src_stride, event_t event);
13130event_t __ovld async_work_group_strided_copy(__local short8 *dst, const __global short8 *src, size_t num_elements, size_t src_stride, event_t event);
13131event_t __ovld async_work_group_strided_copy(__local ushort8 *dst, const __global ushort8 *src, size_t num_elements, size_t src_stride, event_t event);
13132event_t __ovld async_work_group_strided_copy(__local int8 *dst, const __global int8 *src, size_t num_elements, size_t src_stride, event_t event);
13133event_t __ovld async_work_group_strided_copy(__local uint8 *dst, const __global uint8 *src, size_t num_elements, size_t src_stride, event_t event);
13134event_t __ovld async_work_group_strided_copy(__local long8 *dst, const __global long8 *src, size_t num_elements, size_t src_stride, event_t event);
13135event_t __ovld async_work_group_strided_copy(__local ulong8 *dst, const __global ulong8 *src, size_t num_elements, size_t src_stride, event_t event);
13136event_t __ovld async_work_group_strided_copy(__local float8 *dst, const __global float8 *src, size_t num_elements, size_t src_stride, event_t event);
13137event_t __ovld async_work_group_strided_copy(__local char16 *dst, const __global char16 *src, size_t num_elements, size_t src_stride, event_t event);
13138event_t __ovld async_work_group_strided_copy(__local uchar16 *dst, const __global uchar16 *src, size_t num_elements, size_t src_stride, event_t event);
13139event_t __ovld async_work_group_strided_copy(__local short16 *dst, const __global short16 *src, size_t num_elements, size_t src_stride, event_t event);
13140event_t __ovld async_work_group_strided_copy(__local ushort16 *dst, const __global ushort16 *src, size_t num_elements, size_t src_stride, event_t event);
13141event_t __ovld async_work_group_strided_copy(__local int16 *dst, const __global int16 *src, size_t num_elements, size_t src_stride, event_t event);
13142event_t __ovld async_work_group_strided_copy(__local uint16 *dst, const __global uint16 *src, size_t num_elements, size_t src_stride, event_t event);
13143event_t __ovld async_work_group_strided_copy(__local long16 *dst, const __global long16 *src, size_t num_elements, size_t src_stride, event_t event);
13144event_t __ovld async_work_group_strided_copy(__local ulong16 *dst, const __global ulong16 *src, size_t num_elements, size_t src_stride, event_t event);
13145event_t __ovld async_work_group_strided_copy(__local float16 *dst, const __global float16 *src, size_t num_elements, size_t src_stride, event_t event);
13146event_t __ovld async_work_group_strided_copy(__global char *dst, const __local char *src, size_t num_elements, size_t dst_stride, event_t event);
13147event_t __ovld async_work_group_strided_copy(__global uchar *dst, const __local uchar *src, size_t num_elements, size_t dst_stride, event_t event);
13148event_t __ovld async_work_group_strided_copy(__global short *dst, const __local short *src, size_t num_elements, size_t dst_stride, event_t event);
13149event_t __ovld async_work_group_strided_copy(__global ushort *dst, const __local ushort *src, size_t num_elements, size_t dst_stride, event_t event);
13150event_t __ovld async_work_group_strided_copy(__global int *dst, const __local int *src, size_t num_elements, size_t dst_stride, event_t event);
13151event_t __ovld async_work_group_strided_copy(__global uint *dst, const __local uint *src, size_t num_elements, size_t dst_stride, event_t event);
13152event_t __ovld async_work_group_strided_copy(__global long *dst, const __local long *src, size_t num_elements, size_t dst_stride, event_t event);
13153event_t __ovld async_work_group_strided_copy(__global ulong *dst, const __local ulong *src, size_t num_elements, size_t dst_stride, event_t event);
13154event_t __ovld async_work_group_strided_copy(__global float *dst, const __local float *src, size_t num_elements, size_t dst_stride, event_t event);
13155event_t __ovld async_work_group_strided_copy(__global char2 *dst, const __local char2 *src, size_t num_elements, size_t dst_stride, event_t event);
13156event_t __ovld async_work_group_strided_copy(__global uchar2 *dst, const __local uchar2 *src, size_t num_elements, size_t dst_stride, event_t event);
13157event_t __ovld async_work_group_strided_copy(__global short2 *dst, const __local short2 *src, size_t num_elements, size_t dst_stride, event_t event);
13158event_t __ovld async_work_group_strided_copy(__global ushort2 *dst, const __local ushort2 *src, size_t num_elements, size_t dst_stride, event_t event);
13159event_t __ovld async_work_group_strided_copy(__global int2 *dst, const __local int2 *src, size_t num_elements, size_t dst_stride, event_t event);
13160event_t __ovld async_work_group_strided_copy(__global uint2 *dst, const __local uint2 *src, size_t num_elements, size_t dst_stride, event_t event);
13161event_t __ovld async_work_group_strided_copy(__global long2 *dst, const __local long2 *src, size_t num_elements, size_t dst_stride, event_t event);
13162event_t __ovld async_work_group_strided_copy(__global ulong2 *dst, const __local ulong2 *src, size_t num_elements, size_t dst_stride, event_t event);
13163event_t __ovld async_work_group_strided_copy(__global float2 *dst, const __local float2 *src, size_t num_elements, size_t dst_stride, event_t event);
13164event_t __ovld async_work_group_strided_copy(__global char3 *dst, const __local char3 *src, size_t num_elements, size_t dst_stride, event_t event);
13165event_t __ovld async_work_group_strided_copy(__global uchar3 *dst, const __local uchar3 *src, size_t num_elements, size_t dst_stride, event_t event);
13166event_t __ovld async_work_group_strided_copy(__global short3 *dst, const __local short3 *src, size_t num_elements, size_t dst_stride, event_t event);
13167event_t __ovld async_work_group_strided_copy(__global ushort3 *dst, const __local ushort3 *src, size_t num_elements, size_t dst_stride, event_t event);
13168event_t __ovld async_work_group_strided_copy(__global int3 *dst, const __local int3 *src, size_t num_elements, size_t dst_stride, event_t event);
13169event_t __ovld async_work_group_strided_copy(__global uint3 *dst, const __local uint3 *src, size_t num_elements, size_t dst_stride, event_t event);
13170event_t __ovld async_work_group_strided_copy(__global long3 *dst, const __local long3 *src, size_t num_elements, size_t dst_stride, event_t event);
13171event_t __ovld async_work_group_strided_copy(__global ulong3 *dst, const __local ulong3 *src, size_t num_elements, size_t dst_stride, event_t event);
13172event_t __ovld async_work_group_strided_copy(__global float3 *dst, const __local float3 *src, size_t num_elements, size_t dst_stride, event_t event);
13173event_t __ovld async_work_group_strided_copy(__global char4 *dst, const __local char4 *src, size_t num_elements, size_t dst_stride, event_t event);
13174event_t __ovld async_work_group_strided_copy(__global uchar4 *dst, const __local uchar4 *src, size_t num_elements, size_t dst_stride, event_t event);
13175event_t __ovld async_work_group_strided_copy(__global short4 *dst, const __local short4 *src, size_t num_elements, size_t dst_stride, event_t event);
13176event_t __ovld async_work_group_strided_copy(__global ushort4 *dst, const __local ushort4 *src, size_t num_elements, size_t dst_stride, event_t event);
13177event_t __ovld async_work_group_strided_copy(__global int4 *dst, const __local int4 *src, size_t num_elements, size_t dst_stride, event_t event);
13178event_t __ovld async_work_group_strided_copy(__global uint4 *dst, const __local uint4 *src, size_t num_elements, size_t dst_stride, event_t event);
13179event_t __ovld async_work_group_strided_copy(__global long4 *dst, const __local long4 *src, size_t num_elements, size_t dst_stride, event_t event);
13180event_t __ovld async_work_group_strided_copy(__global ulong4 *dst, const __local ulong4 *src, size_t num_elements, size_t dst_stride, event_t event);
13181event_t __ovld async_work_group_strided_copy(__global float4 *dst, const __local float4 *src, size_t num_elements, size_t dst_stride, event_t event);
13182event_t __ovld async_work_group_strided_copy(__global char8 *dst, const __local char8 *src, size_t num_elements, size_t dst_stride, event_t event);
13183event_t __ovld async_work_group_strided_copy(__global uchar8 *dst, const __local uchar8 *src, size_t num_elements, size_t dst_stride, event_t event);
13184event_t __ovld async_work_group_strided_copy(__global short8 *dst, const __local short8 *src, size_t num_elements, size_t dst_stride, event_t event);
13185event_t __ovld async_work_group_strided_copy(__global ushort8 *dst, const __local ushort8 *src, size_t num_elements, size_t dst_stride, event_t event);
13186event_t __ovld async_work_group_strided_copy(__global int8 *dst, const __local int8 *src, size_t num_elements, size_t dst_stride, event_t event);
13187event_t __ovld async_work_group_strided_copy(__global uint8 *dst, const __local uint8 *src, size_t num_elements, size_t dst_stride, event_t event);
13188event_t __ovld async_work_group_strided_copy(__global long8 *dst, const __local long8 *src, size_t num_elements, size_t dst_stride, event_t event);
13189event_t __ovld async_work_group_strided_copy(__global ulong8 *dst, const __local ulong8 *src, size_t num_elements, size_t dst_stride, event_t event);
13190event_t __ovld async_work_group_strided_copy(__global float8 *dst, const __local float8 *src, size_t num_elements, size_t dst_stride, event_t event);
13191event_t __ovld async_work_group_strided_copy(__global char16 *dst, const __local char16 *src, size_t num_elements, size_t dst_stride, event_t event);
13192event_t __ovld async_work_group_strided_copy(__global uchar16 *dst, const __local uchar16 *src, size_t num_elements, size_t dst_stride, event_t event);
13193event_t __ovld async_work_group_strided_copy(__global short16 *dst, const __local short16 *src, size_t num_elements, size_t dst_stride, event_t event);
13194event_t __ovld async_work_group_strided_copy(__global ushort16 *dst, const __local ushort16 *src, size_t num_elements, size_t dst_stride, event_t event);
13195event_t __ovld async_work_group_strided_copy(__global int16 *dst, const __local int16 *src, size_t num_elements, size_t dst_stride, event_t event);
13196event_t __ovld async_work_group_strided_copy(__global uint16 *dst, const __local uint16 *src, size_t num_elements, size_t dst_stride, event_t event);
13197event_t __ovld async_work_group_strided_copy(__global long16 *dst, const __local long16 *src, size_t num_elements, size_t dst_stride, event_t event);
13198event_t __ovld async_work_group_strided_copy(__global ulong16 *dst, const __local ulong16 *src, size_t num_elements, size_t dst_stride, event_t event);
13199event_t __ovld async_work_group_strided_copy(__global float16 *dst, const __local float16 *src, size_t num_elements, size_t dst_stride, event_t event);
13200#ifdef cl_khr_fp64
13201event_t __ovld async_work_group_strided_copy(__local double *dst, const __global double *src, size_t num_elements, size_t src_stride, event_t event);
13202event_t __ovld async_work_group_strided_copy(__local double2 *dst, const __global double2 *src, size_t num_elements, size_t src_stride, event_t event);
13203event_t __ovld async_work_group_strided_copy(__local double3 *dst, const __global double3 *src, size_t num_elements, size_t src_stride, event_t event);
13204event_t __ovld async_work_group_strided_copy(__local double4 *dst, const __global double4 *src, size_t num_elements, size_t src_stride, event_t event);
13205event_t __ovld async_work_group_strided_copy(__local double8 *dst, const __global double8 *src, size_t num_elements, size_t src_stride, event_t event);
13206event_t __ovld async_work_group_strided_copy(__local double16 *dst, const __global double16 *src, size_t num_elements, size_t src_stride, event_t event);
13207event_t __ovld async_work_group_strided_copy(__global double *dst, const __local double *src, size_t num_elements, size_t dst_stride, event_t event);
13208event_t __ovld async_work_group_strided_copy(__global double2 *dst, const __local double2 *src, size_t num_elements, size_t dst_stride, event_t event);
13209event_t __ovld async_work_group_strided_copy(__global double3 *dst, const __local double3 *src, size_t num_elements, size_t dst_stride, event_t event);
13210event_t __ovld async_work_group_strided_copy(__global double4 *dst, const __local double4 *src, size_t num_elements, size_t dst_stride, event_t event);
13211event_t __ovld async_work_group_strided_copy(__global double8 *dst, const __local double8 *src, size_t num_elements, size_t dst_stride, event_t event);
13212event_t __ovld async_work_group_strided_copy(__global double16 *dst, const __local double16 *src, size_t num_elements, size_t dst_stride, event_t event);
13213#endif //cl_khr_fp64
13214#ifdef cl_khr_fp16
13215event_t __ovld async_work_group_strided_copy(__local half *dst, const __global half *src, size_t num_elements, size_t src_stride, event_t event);
13216event_t __ovld async_work_group_strided_copy(__local half2 *dst, const __global half2 *src, size_t num_elements, size_t src_stride, event_t event);
13217event_t __ovld async_work_group_strided_copy(__local half3 *dst, const __global half3 *src, size_t num_elements, size_t src_stride, event_t event);
13218event_t __ovld async_work_group_strided_copy(__local half4 *dst, const __global half4 *src, size_t num_elements, size_t src_stride, event_t event);
13219event_t __ovld async_work_group_strided_copy(__local half8 *dst, const __global half8 *src, size_t num_elements, size_t src_stride, event_t event);
13220event_t __ovld async_work_group_strided_copy(__local half16 *dst, const __global half16 *src, size_t num_elements, size_t src_stride, event_t event);
13221event_t __ovld async_work_group_strided_copy(__global half *dst, const __local half *src, size_t num_elements, size_t dst_stride, event_t event);
13222event_t __ovld async_work_group_strided_copy(__global half2 *dst, const __local half2 *src, size_t num_elements, size_t dst_stride, event_t event);
13223event_t __ovld async_work_group_strided_copy(__global half3 *dst, const __local half3 *src, size_t num_elements, size_t dst_stride, event_t event);
13224event_t __ovld async_work_group_strided_copy(__global half4 *dst, const __local half4 *src, size_t num_elements, size_t dst_stride, event_t event);
13225event_t __ovld async_work_group_strided_copy(__global half8 *dst, const __local half8 *src, size_t num_elements, size_t dst_stride, event_t event);
13226event_t __ovld async_work_group_strided_copy(__global half16 *dst, const __local half16 *src, size_t num_elements, size_t dst_stride, event_t event);
13227#endif //cl_khr_fp16
13228
13229/**
13230 * Wait for events that identify the
13231 * async_work_group_copy operations to
13232 * complete. The event objects specified in
13233 * event_list will be released after the wait is
13234 * performed.
13235 * This function must be encountered by all workitems
13236 * in a work-group executing the kernel with
13237 * the same num_events and event objects specified
13238 * in event_list; otherwise the results are undefined.
13239 */
13240void __ovld wait_group_events(int num_events, event_t *event_list);
13241
13242/**
13243 * Prefetch num_elements * sizeof(gentype)
13244 * bytes into the global cache. The prefetch
13245 * instruction is applied to a work-item in a workgroup
13246 * and does not affect the functional
13247 * behavior of the kernel.
13248 */
13249void __ovld prefetch(const __global char *p, size_t num_elements);
13250void __ovld prefetch(const __global uchar *p, size_t num_elements);
13251void __ovld prefetch(const __global short *p, size_t num_elements);
13252void __ovld prefetch(const __global ushort *p, size_t num_elements);
13253void __ovld prefetch(const __global int *p, size_t num_elements);
13254void __ovld prefetch(const __global uint *p, size_t num_elements);
13255void __ovld prefetch(const __global long *p, size_t num_elements);
13256void __ovld prefetch(const __global ulong *p, size_t num_elements);
13257void __ovld prefetch(const __global float *p, size_t num_elements);
13258void __ovld prefetch(const __global char2 *p, size_t num_elements);
13259void __ovld prefetch(const __global uchar2 *p, size_t num_elements);
13260void __ovld prefetch(const __global short2 *p, size_t num_elements);
13261void __ovld prefetch(const __global ushort2 *p, size_t num_elements);
13262void __ovld prefetch(const __global int2 *p, size_t num_elements);
13263void __ovld prefetch(const __global uint2 *p, size_t num_elements);
13264void __ovld prefetch(const __global long2 *p, size_t num_elements);
13265void __ovld prefetch(const __global ulong2 *p, size_t num_elements);
13266void __ovld prefetch(const __global float2 *p, size_t num_elements);
13267void __ovld prefetch(const __global char3 *p, size_t num_elements);
13268void __ovld prefetch(const __global uchar3 *p, size_t num_elements);
13269void __ovld prefetch(const __global short3 *p, size_t num_elements);
13270void __ovld prefetch(const __global ushort3 *p, size_t num_elements);
13271void __ovld prefetch(const __global int3 *p, size_t num_elements);
13272void __ovld prefetch(const __global uint3 *p, size_t num_elements);
13273void __ovld prefetch(const __global long3 *p, size_t num_elements);
13274void __ovld prefetch(const __global ulong3 *p, size_t num_elements);
13275void __ovld prefetch(const __global float3 *p, size_t num_elements);
13276void __ovld prefetch(const __global char4 *p, size_t num_elements);
13277void __ovld prefetch(const __global uchar4 *p, size_t num_elements);
13278void __ovld prefetch(const __global short4 *p, size_t num_elements);
13279void __ovld prefetch(const __global ushort4 *p, size_t num_elements);
13280void __ovld prefetch(const __global int4 *p, size_t num_elements);
13281void __ovld prefetch(const __global uint4 *p, size_t num_elements);
13282void __ovld prefetch(const __global long4 *p, size_t num_elements);
13283void __ovld prefetch(const __global ulong4 *p, size_t num_elements);
13284void __ovld prefetch(const __global float4 *p, size_t num_elements);
13285void __ovld prefetch(const __global char8 *p, size_t num_elements);
13286void __ovld prefetch(const __global uchar8 *p, size_t num_elements);
13287void __ovld prefetch(const __global short8 *p, size_t num_elements);
13288void __ovld prefetch(const __global ushort8 *p, size_t num_elements);
13289void __ovld prefetch(const __global int8 *p, size_t num_elements);
13290void __ovld prefetch(const __global uint8 *p, size_t num_elements);
13291void __ovld prefetch(const __global long8 *p, size_t num_elements);
13292void __ovld prefetch(const __global ulong8 *p, size_t num_elements);
13293void __ovld prefetch(const __global float8 *p, size_t num_elements);
13294void __ovld prefetch(const __global char16 *p, size_t num_elements);
13295void __ovld prefetch(const __global uchar16 *p, size_t num_elements);
13296void __ovld prefetch(const __global short16 *p, size_t num_elements);
13297void __ovld prefetch(const __global ushort16 *p, size_t num_elements);
13298void __ovld prefetch(const __global int16 *p, size_t num_elements);
13299void __ovld prefetch(const __global uint16 *p, size_t num_elements);
13300void __ovld prefetch(const __global long16 *p, size_t num_elements);
13301void __ovld prefetch(const __global ulong16 *p, size_t num_elements);
13302void __ovld prefetch(const __global float16 *p, size_t num_elements);
13303#ifdef cl_khr_fp64
13304void __ovld prefetch(const __global double *p, size_t num_elements);
13305void __ovld prefetch(const __global double2 *p, size_t num_elements);
13306void __ovld prefetch(const __global double3 *p, size_t num_elements);
13307void __ovld prefetch(const __global double4 *p, size_t num_elements);
13308void __ovld prefetch(const __global double8 *p, size_t num_elements);
13309void __ovld prefetch(const __global double16 *p, size_t num_elements);
13310#endif //cl_khr_fp64
13311#ifdef cl_khr_fp16
13312void __ovld prefetch(const __global half *p, size_t num_elements);
13313void __ovld prefetch(const __global half2 *p, size_t num_elements);
13314void __ovld prefetch(const __global half3 *p, size_t num_elements);
13315void __ovld prefetch(const __global half4 *p, size_t num_elements);
13316void __ovld prefetch(const __global half8 *p, size_t num_elements);
13317void __ovld prefetch(const __global half16 *p, size_t num_elements);
13318#endif // cl_khr_fp16
13319
13320// OpenCL v1.1 s6.11.1, v1.2 s6.12.11 - Atomic Functions
13321
13322#if defined(cl_khr_int64_base_atomics) && defined(cl_khr_int64_extended_atomics)
13323#pragma OPENCL EXTENSION cl_khr_int64_base_atomics : enable
13324#pragma OPENCL EXTENSION cl_khr_int64_extended_atomics : enable
13325#endif
13326/**
13327 * Read the 32-bit value (referred to as old)
13328 * stored at location pointed by p. Compute
13329 * (old + val) and store result at location
13330 * pointed by p. The function returns old.
13331 */
13332int __ovld atomic_add(volatile __global int *p, int val);
13333unsigned int __ovld atomic_add(volatile __global unsigned int *p, unsigned int val);
13334int __ovld atomic_add(volatile __local int *p, int val);
13335unsigned int __ovld atomic_add(volatile __local unsigned int *p, unsigned int val);
13336
13337#if defined(cl_khr_global_int32_base_atomics)
13338int __ovld atom_add(volatile __global int *p, int val);
13339unsigned int __ovld atom_add(volatile __global unsigned int *p, unsigned int val);
13340#endif
13341#if defined(cl_khr_local_int32_base_atomics)
13342int __ovld atom_add(volatile __local int *p, int val);
13343unsigned int __ovld atom_add(volatile __local unsigned int *p, unsigned int val);
13344#endif
13345
13346#if defined(cl_khr_int64_base_atomics)
13347long __ovld atom_add(volatile __global long *p, long val);
13348unsigned long __ovld atom_add(volatile __global unsigned long *p, unsigned long val);
13349long __ovld atom_add(volatile __local long *p, long val);
13350unsigned long __ovld atom_add(volatile __local unsigned long *p, unsigned long val);
13351#endif
13352
13353/**
13354 * Read the 32-bit value (referred to as old) stored at location pointed by p.
13355 * Compute (old - val) and store result at location pointed by p. The function
13356 * returns old.
13357 */
13358int __ovld atomic_sub(volatile __global int *p, int val);
13359unsigned int __ovld atomic_sub(volatile __global unsigned int *p, unsigned int val);
13360int __ovld atomic_sub(volatile __local int *p, int val);
13361unsigned int __ovld atomic_sub(volatile __local unsigned int *p, unsigned int val);
13362
13363#if defined(cl_khr_global_int32_base_atomics)
13364int __ovld atom_sub(volatile __global int *p, int val);
13365unsigned int __ovld atom_sub(volatile __global unsigned int *p, unsigned int val);
13366#endif
13367#if defined(cl_khr_local_int32_base_atomics)
13368int __ovld atom_sub(volatile __local int *p, int val);
13369unsigned int __ovld atom_sub(volatile __local unsigned int *p, unsigned int val);
13370#endif
13371
13372#if defined(cl_khr_int64_base_atomics)
13373long __ovld atom_sub(volatile __global long *p, long val);
13374unsigned long __ovld atom_sub(volatile __global unsigned long *p, unsigned long val);
13375long __ovld atom_sub(volatile __local long *p, long val);
13376unsigned long __ovld atom_sub(volatile __local unsigned long *p, unsigned long val);
13377#endif
13378
13379/**
13380 * Swaps the old value stored at location p
13381 * with new value given by val. Returns old
13382 * value.
13383 */
13384int __ovld atomic_xchg(volatile __global int *p, int val);
13385unsigned int __ovld atomic_xchg(volatile __global unsigned int *p, unsigned int val);
13386int __ovld atomic_xchg(volatile __local int *p, int val);
13387unsigned int __ovld atomic_xchg(volatile __local unsigned int *p, unsigned int val);
13388float __ovld atomic_xchg(volatile __global float *p, float val);
13389float __ovld atomic_xchg(volatile __local float *p, float val);
13390
13391#if defined(cl_khr_global_int32_base_atomics)
13392int __ovld atom_xchg(volatile __global int *p, int val);
13393unsigned int __ovld atom_xchg(volatile __global unsigned int *p, unsigned int val);
13394#endif
13395#if defined(cl_khr_local_int32_base_atomics)
13396int __ovld atom_xchg(volatile __local int *p, int val);
13397unsigned int __ovld atom_xchg(volatile __local unsigned int *p, unsigned int val);
13398#endif
13399
13400#if defined(cl_khr_int64_base_atomics)
13401long __ovld atom_xchg(volatile __global long *p, long val);
13402long __ovld atom_xchg(volatile __local long *p, long val);
13403unsigned long __ovld atom_xchg(volatile __global unsigned long *p, unsigned long val);
13404unsigned long __ovld atom_xchg(volatile __local unsigned long *p, unsigned long val);
13405#endif
13406
13407/**
13408 * Read the 32-bit value (referred to as old)
13409 * stored at location pointed by p. Compute
13410 * (old + 1) and store result at location
13411 * pointed by p. The function returns old.
13412 */
13413int __ovld atomic_inc(volatile __global int *p);
13414unsigned int __ovld atomic_inc(volatile __global unsigned int *p);
13415int __ovld atomic_inc(volatile __local int *p);
13416unsigned int __ovld atomic_inc(volatile __local unsigned int *p);
13417
13418#if defined(cl_khr_global_int32_base_atomics)
13419int __ovld atom_inc(volatile __global int *p);
13420unsigned int __ovld atom_inc(volatile __global unsigned int *p);
13421#endif
13422#if defined(cl_khr_local_int32_base_atomics)
13423int __ovld atom_inc(volatile __local int *p);
13424unsigned int __ovld atom_inc(volatile __local unsigned int *p);
13425#endif
13426
13427#if defined(cl_khr_int64_base_atomics)
13428long __ovld atom_inc(volatile __global long *p);
13429unsigned long __ovld atom_inc(volatile __global unsigned long *p);
13430long __ovld atom_inc(volatile __local long *p);
13431unsigned long __ovld atom_inc(volatile __local unsigned long *p);
13432#endif
13433
13434/**
13435 * Read the 32-bit value (referred to as old)
13436 * stored at location pointed by p. Compute
13437 * (old - 1) and store result at location
13438 * pointed by p. The function returns old.
13439 */
13440int __ovld atomic_dec(volatile __global int *p);
13441unsigned int __ovld atomic_dec(volatile __global unsigned int *p);
13442int __ovld atomic_dec(volatile __local int *p);
13443unsigned int __ovld atomic_dec(volatile __local unsigned int *p);
13444
13445#if defined(cl_khr_global_int32_base_atomics)
13446int __ovld atom_dec(volatile __global int *p);
13447unsigned int __ovld atom_dec(volatile __global unsigned int *p);
13448#endif
13449#if defined(cl_khr_local_int32_base_atomics)
13450int __ovld atom_dec(volatile __local int *p);
13451unsigned int __ovld atom_dec(volatile __local unsigned int *p);
13452#endif
13453
13454#if defined(cl_khr_int64_base_atomics)
13455long __ovld atom_dec(volatile __global long *p);
13456unsigned long __ovld atom_dec(volatile __global unsigned long *p);
13457long __ovld atom_dec(volatile __local long *p);
13458unsigned long __ovld atom_dec(volatile __local unsigned long *p);
13459#endif
13460
13461/**
13462 * Read the 32-bit value (referred to as old)
13463 * stored at location pointed by p. Compute
13464 * (old == cmp) ? val : old and store result at
13465 * location pointed by p. The function
13466 * returns old.
13467 */
13468int __ovld atomic_cmpxchg(volatile __global int *p, int cmp, int val);
13469unsigned int __ovld atomic_cmpxchg(volatile __global unsigned int *p, unsigned int cmp, unsigned int val);
13470int __ovld atomic_cmpxchg(volatile __local int *p, int cmp, int val);
13471unsigned int __ovld atomic_cmpxchg(volatile __local unsigned int *p, unsigned int cmp, unsigned int val);
13472
13473#if defined(cl_khr_global_int32_base_atomics)
13474int __ovld atom_cmpxchg(volatile __global int *p, int cmp, int val);
13475unsigned int __ovld atom_cmpxchg(volatile __global unsigned int *p, unsigned int cmp, unsigned int val);
13476#endif
13477#if defined(cl_khr_local_int32_base_atomics)
13478int __ovld atom_cmpxchg(volatile __local int *p, int cmp, int val);
13479unsigned int __ovld atom_cmpxchg(volatile __local unsigned int *p, unsigned int cmp, unsigned int val);
13480#endif
13481
13482#if defined(cl_khr_int64_base_atomics)
13483long __ovld atom_cmpxchg(volatile __global long *p, long cmp, long val);
13484unsigned long __ovld atom_cmpxchg(volatile __global unsigned long *p, unsigned long cmp, unsigned long val);
13485long __ovld atom_cmpxchg(volatile __local long *p, long cmp, long val);
13486unsigned long __ovld atom_cmpxchg(volatile __local unsigned long *p, unsigned long cmp, unsigned long val);
13487#endif
13488
13489/**
13490 * Read the 32-bit value (referred to as old)
13491 * stored at location pointed by p. Compute
13492 * min(old, val) and store minimum value at
13493 * location pointed by p. The function
13494 * returns old.
13495 */
13496int __ovld atomic_min(volatile __global int *p, int val);
13497unsigned int __ovld atomic_min(volatile __global unsigned int *p, unsigned int val);
13498int __ovld atomic_min(volatile __local int *p, int val);
13499unsigned int __ovld atomic_min(volatile __local unsigned int *p, unsigned int val);
13500
13501#if defined(cl_khr_global_int32_extended_atomics)
13502int __ovld atom_min(volatile __global int *p, int val);
13503unsigned int __ovld atom_min(volatile __global unsigned int *p, unsigned int val);
13504#endif
13505#if defined(cl_khr_local_int32_extended_atomics)
13506int __ovld atom_min(volatile __local int *p, int val);
13507unsigned int __ovld atom_min(volatile __local unsigned int *p, unsigned int val);
13508#endif
13509
13510#if defined(cl_khr_int64_extended_atomics)
13511long __ovld atom_min(volatile __global long *p, long val);
13512unsigned long __ovld atom_min(volatile __global unsigned long *p, unsigned long val);
13513long __ovld atom_min(volatile __local long *p, long val);
13514unsigned long __ovld atom_min(volatile __local unsigned long *p, unsigned long val);
13515#endif
13516
13517/**
13518 * Read the 32-bit value (referred to as old)
13519 * stored at location pointed by p. Compute
13520 * max(old, val) and store maximum value at
13521 * location pointed by p. The function
13522 * returns old.
13523 */
13524int __ovld atomic_max(volatile __global int *p, int val);
13525unsigned int __ovld atomic_max(volatile __global unsigned int *p, unsigned int val);
13526int __ovld atomic_max(volatile __local int *p, int val);
13527unsigned int __ovld atomic_max(volatile __local unsigned int *p, unsigned int val);
13528
13529#if defined(cl_khr_global_int32_extended_atomics)
13530int __ovld atom_max(volatile __global int *p, int val);
13531unsigned int __ovld atom_max(volatile __global unsigned int *p, unsigned int val);
13532#endif
13533#if defined(cl_khr_local_int32_extended_atomics)
13534int __ovld atom_max(volatile __local int *p, int val);
13535unsigned int __ovld atom_max(volatile __local unsigned int *p, unsigned int val);
13536#endif
13537
13538#if defined(cl_khr_int64_extended_atomics)
13539long __ovld atom_max(volatile __global long *p, long val);
13540unsigned long __ovld atom_max(volatile __global unsigned long *p, unsigned long val);
13541long __ovld atom_max(volatile __local long *p, long val);
13542unsigned long __ovld atom_max(volatile __local unsigned long *p, unsigned long val);
13543#endif
13544
13545/**
13546 * Read the 32-bit value (referred to as old)
13547 * stored at location pointed by p. Compute
13548 * (old & val) and store result at location
13549 * pointed by p. The function returns old.
13550 */
13551int __ovld atomic_and(volatile __global int *p, int val);
13552unsigned int __ovld atomic_and(volatile __global unsigned int *p, unsigned int val);
13553int __ovld atomic_and(volatile __local int *p, int val);
13554unsigned int __ovld atomic_and(volatile __local unsigned int *p, unsigned int val);
13555
13556#if defined(cl_khr_global_int32_extended_atomics)
13557int __ovld atom_and(volatile __global int *p, int val);
13558unsigned int __ovld atom_and(volatile __global unsigned int *p, unsigned int val);
13559#endif
13560#if defined(cl_khr_local_int32_extended_atomics)
13561int __ovld atom_and(volatile __local int *p, int val);
13562unsigned int __ovld atom_and(volatile __local unsigned int *p, unsigned int val);
13563#endif
13564
13565#if defined(cl_khr_int64_extended_atomics)
13566long __ovld atom_and(volatile __global long *p, long val);
13567unsigned long __ovld atom_and(volatile __global unsigned long *p, unsigned long val);
13568long __ovld atom_and(volatile __local long *p, long val);
13569unsigned long __ovld atom_and(volatile __local unsigned long *p, unsigned long val);
13570#endif
13571
13572/**
13573 * Read the 32-bit value (referred to as old)
13574 * stored at location pointed by p. Compute
13575 * (old | val) and store result at location
13576 * pointed by p. The function returns old.
13577 */
13578int __ovld atomic_or(volatile __global int *p, int val);
13579unsigned int __ovld atomic_or(volatile __global unsigned int *p, unsigned int val);
13580int __ovld atomic_or(volatile __local int *p, int val);
13581unsigned int __ovld atomic_or(volatile __local unsigned int *p, unsigned int val);
13582
13583#if defined(cl_khr_global_int32_extended_atomics)
13584int __ovld atom_or(volatile __global int *p, int val);
13585unsigned int __ovld atom_or(volatile __global unsigned int *p, unsigned int val);
13586#endif
13587#if defined(cl_khr_local_int32_extended_atomics)
13588int __ovld atom_or(volatile __local int *p, int val);
13589unsigned int __ovld atom_or(volatile __local unsigned int *p, unsigned int val);
13590#endif
13591
13592#if defined(cl_khr_int64_extended_atomics)
13593long __ovld atom_or(volatile __global long *p, long val);
13594unsigned long __ovld atom_or(volatile __global unsigned long *p, unsigned long val);
13595long __ovld atom_or(volatile __local long *p, long val);
13596unsigned long __ovld atom_or(volatile __local unsigned long *p, unsigned long val);
13597#endif
13598
13599/**
13600 * Read the 32-bit value (referred to as old)
13601 * stored at location pointed by p. Compute
13602 * (old ^ val) and store result at location
13603 * pointed by p. The function returns old.
13604 */
13605int __ovld atomic_xor(volatile __global int *p, int val);
13606unsigned int __ovld atomic_xor(volatile __global unsigned int *p, unsigned int val);
13607int __ovld atomic_xor(volatile __local int *p, int val);
13608unsigned int __ovld atomic_xor(volatile __local unsigned int *p, unsigned int val);
13609
13610#if defined(cl_khr_global_int32_extended_atomics)
13611int __ovld atom_xor(volatile __global int *p, int val);
13612unsigned int __ovld atom_xor(volatile __global unsigned int *p, unsigned int val);
13613#endif
13614#if defined(cl_khr_local_int32_extended_atomics)
13615int __ovld atom_xor(volatile __local int *p, int val);
13616unsigned int __ovld atom_xor(volatile __local unsigned int *p, unsigned int val);
13617#endif
13618
13619#if defined(cl_khr_int64_extended_atomics)
13620long __ovld atom_xor(volatile __global long *p, long val);
13621unsigned long __ovld atom_xor(volatile __global unsigned long *p, unsigned long val);
13622long __ovld atom_xor(volatile __local long *p, long val);
13623unsigned long __ovld atom_xor(volatile __local unsigned long *p, unsigned long val);
13624#endif
13625
13626#if defined(cl_khr_int64_base_atomics) && defined(cl_khr_int64_extended_atomics)
13627#pragma OPENCL EXTENSION cl_khr_int64_base_atomics : disable
13628#pragma OPENCL EXTENSION cl_khr_int64_extended_atomics : disable
13629#endif
13630
13631// OpenCL v2.0 s6.13.11 - Atomics Functions
13632
13633#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
13634#ifndef ATOMIC_VAR_INIT
13635#define ATOMIC_VAR_INIT(x) (x)
13636#endif //ATOMIC_VAR_INIT
13637#define ATOMIC_FLAG_INIT 0
13638
13639// enum values aligned with what clang uses in EmitAtomicExpr()
13640typedef enum memory_order
13641{
13642  memory_order_relaxed = __ATOMIC_RELAXED,
13643  memory_order_acquire = __ATOMIC_ACQUIRE,
13644  memory_order_release = __ATOMIC_RELEASE,
13645  memory_order_acq_rel = __ATOMIC_ACQ_REL,
13646  memory_order_seq_cst = __ATOMIC_SEQ_CST
13647} memory_order;
13648
13649// double atomics support requires extensions cl_khr_int64_base_atomics and cl_khr_int64_extended_atomics
13650#if defined(cl_khr_int64_base_atomics) && defined(cl_khr_int64_extended_atomics)
13651#pragma OPENCL EXTENSION cl_khr_int64_base_atomics : enable
13652#pragma OPENCL EXTENSION cl_khr_int64_extended_atomics : enable
13653#endif
13654
13655// atomic_init()
13656void __ovld atomic_init(volatile atomic_int *object, int value);
13657void __ovld atomic_init(volatile atomic_uint *object, uint value);
13658void __ovld atomic_init(volatile atomic_float *object, float value);
13659#if defined(cl_khr_int64_base_atomics) && defined(cl_khr_int64_extended_atomics)
13660void __ovld atomic_init(volatile atomic_long *object, long value);
13661void __ovld atomic_init(volatile atomic_ulong *object, ulong value);
13662#ifdef cl_khr_fp64
13663void __ovld atomic_init(volatile atomic_double *object, double value);
13664#endif //cl_khr_fp64
13665#endif
13666
13667// atomic_work_item_fence()
13668void __ovld atomic_work_item_fence(cl_mem_fence_flags flags, memory_order order, memory_scope scope);
13669
13670// atomic_fetch()
13671
13672int __ovld atomic_fetch_add(volatile atomic_int *object, int operand);
13673int __ovld atomic_fetch_add_explicit(volatile atomic_int *object, int operand, memory_order order);
13674int __ovld atomic_fetch_add_explicit(volatile atomic_int *object, int operand, memory_order order, memory_scope scope);
13675uint __ovld atomic_fetch_add(volatile atomic_uint *object, uint operand);
13676uint __ovld atomic_fetch_add_explicit(volatile atomic_uint *object, uint operand, memory_order order);
13677uint __ovld atomic_fetch_add_explicit(volatile atomic_uint *object, uint operand, memory_order order, memory_scope scope);
13678int __ovld atomic_fetch_sub(volatile atomic_int *object, int operand);
13679int __ovld atomic_fetch_sub_explicit(volatile atomic_int *object, int operand, memory_order order);
13680int __ovld atomic_fetch_sub_explicit(volatile atomic_int *object, int operand, memory_order order, memory_scope scope);
13681uint __ovld atomic_fetch_sub(volatile atomic_uint *object, uint operand);
13682uint __ovld atomic_fetch_sub_explicit(volatile atomic_uint *object, uint operand, memory_order order);
13683uint __ovld atomic_fetch_sub_explicit(volatile atomic_uint *object, uint operand, memory_order order, memory_scope scope);
13684int __ovld atomic_fetch_or(volatile atomic_int *object, int operand);
13685int __ovld atomic_fetch_or_explicit(volatile atomic_int *object, int operand, memory_order order);
13686int __ovld atomic_fetch_or_explicit(volatile atomic_int *object, int operand, memory_order order, memory_scope scope);
13687uint __ovld atomic_fetch_or(volatile atomic_uint *object, uint operand);
13688uint __ovld atomic_fetch_or_explicit(volatile atomic_uint *object, uint operand, memory_order order);
13689uint __ovld atomic_fetch_or_explicit(volatile atomic_uint *object, uint operand, memory_order order, memory_scope scope);
13690int __ovld atomic_fetch_xor(volatile atomic_int *object, int operand);
13691int __ovld atomic_fetch_xor_explicit(volatile atomic_int *object, int operand, memory_order order);
13692int __ovld atomic_fetch_xor_explicit(volatile atomic_int *object, int operand, memory_order order, memory_scope scope);
13693uint __ovld atomic_fetch_xor(volatile atomic_uint *object, uint operand);
13694uint __ovld atomic_fetch_xor_explicit(volatile atomic_uint *object, uint operand, memory_order order);
13695uint __ovld atomic_fetch_xor_explicit(volatile atomic_uint *object, uint operand, memory_order order, memory_scope scope);
13696int __ovld atomic_fetch_and(volatile atomic_int *object, int operand);
13697int __ovld atomic_fetch_and_explicit(volatile atomic_int *object, int operand, memory_order order);
13698int __ovld atomic_fetch_and_explicit(volatile atomic_int *object, int operand, memory_order order, memory_scope scope);
13699uint __ovld atomic_fetch_and(volatile atomic_uint *object, uint operand);
13700uint __ovld atomic_fetch_and_explicit(volatile atomic_uint *object, uint operand, memory_order order);
13701uint __ovld atomic_fetch_and_explicit(volatile atomic_uint *object, uint operand, memory_order order, memory_scope scope);
13702int __ovld atomic_fetch_min(volatile atomic_int *object, int operand);
13703int __ovld atomic_fetch_min_explicit(volatile atomic_int *object, int operand, memory_order order);
13704int __ovld atomic_fetch_min_explicit(volatile atomic_int *object, int operand, memory_order order, memory_scope scope);
13705uint __ovld atomic_fetch_min(volatile atomic_uint *object, uint operand);
13706uint __ovld atomic_fetch_min_explicit(volatile atomic_uint *object, uint operand, memory_order order);
13707uint __ovld atomic_fetch_min_explicit(volatile atomic_uint *object, uint operand, memory_order order, memory_scope scope);
13708uint __ovld atomic_fetch_min(volatile atomic_uint *object, int operand);
13709uint __ovld atomic_fetch_min_explicit(volatile atomic_uint *object, int operand, memory_order order);
13710uint __ovld atomic_fetch_min_explicit(volatile atomic_uint *object, int operand, memory_order order, memory_scope scope);
13711int __ovld atomic_fetch_max(volatile atomic_int *object, int operand);
13712int __ovld atomic_fetch_max_explicit(volatile atomic_int *object, int operand, memory_order order);
13713int __ovld atomic_fetch_max_explicit(volatile atomic_int *object, int operand, memory_order order, memory_scope scope);
13714uint __ovld atomic_fetch_max(volatile atomic_uint *object, uint operand);
13715uint __ovld atomic_fetch_max_explicit(volatile atomic_uint *object, uint operand, memory_order order);
13716uint __ovld atomic_fetch_max_explicit(volatile atomic_uint *object, uint operand, memory_order order, memory_scope scope);
13717uint __ovld atomic_fetch_max(volatile atomic_uint *object, int operand);
13718uint __ovld atomic_fetch_max_explicit(volatile atomic_uint *object, int operand, memory_order order);
13719uint __ovld atomic_fetch_max_explicit(volatile atomic_uint *object, int operand, memory_order order, memory_scope scope);
13720
13721#if defined(cl_khr_int64_base_atomics) && defined(cl_khr_int64_extended_atomics)
13722long __ovld atomic_fetch_add(volatile atomic_long *object, long operand);
13723long __ovld atomic_fetch_add_explicit(volatile atomic_long *object, long operand, memory_order order);
13724long __ovld atomic_fetch_add_explicit(volatile atomic_long *object, long operand, memory_order order, memory_scope scope);
13725ulong __ovld atomic_fetch_add(volatile atomic_ulong *object, ulong operand);
13726ulong __ovld atomic_fetch_add_explicit(volatile atomic_ulong *object, ulong operand, memory_order order);
13727ulong __ovld atomic_fetch_add_explicit(volatile atomic_ulong *object, ulong operand, memory_order order, memory_scope scope);
13728long __ovld atomic_fetch_sub(volatile atomic_long *object, long operand);
13729long __ovld atomic_fetch_sub_explicit(volatile atomic_long *object, long operand, memory_order order);
13730long __ovld atomic_fetch_sub_explicit(volatile atomic_long *object, long operand, memory_order order, memory_scope scope);
13731ulong __ovld atomic_fetch_sub(volatile atomic_ulong *object, ulong operand);
13732ulong __ovld atomic_fetch_sub_explicit(volatile atomic_ulong *object, ulong operand, memory_order order);
13733ulong __ovld atomic_fetch_sub_explicit(volatile atomic_ulong *object, ulong operand, memory_order order, memory_scope scope);
13734long __ovld atomic_fetch_or(volatile atomic_long *object, long operand);
13735long __ovld atomic_fetch_or_explicit(volatile atomic_long *object, long operand, memory_order order);
13736long __ovld atomic_fetch_or_explicit(volatile atomic_long *object, long operand, memory_order order, memory_scope scope);
13737ulong __ovld atomic_fetch_or(volatile atomic_ulong *object, ulong operand);
13738ulong __ovld atomic_fetch_or_explicit(volatile atomic_ulong *object, ulong operand, memory_order order);
13739ulong __ovld atomic_fetch_or_explicit(volatile atomic_ulong *object, ulong operand, memory_order order, memory_scope scope);
13740long __ovld atomic_fetch_xor(volatile atomic_long *object, long operand);
13741long __ovld atomic_fetch_xor_explicit(volatile atomic_long *object, long operand, memory_order order);
13742long __ovld atomic_fetch_xor_explicit(volatile atomic_long *object, long operand, memory_order order, memory_scope scope);
13743ulong __ovld atomic_fetch_xor(volatile atomic_ulong *object, ulong operand);
13744ulong __ovld atomic_fetch_xor_explicit(volatile atomic_ulong *object, ulong operand, memory_order order);
13745ulong __ovld atomic_fetch_xor_explicit(volatile atomic_ulong *object, ulong operand, memory_order order, memory_scope scope);
13746long __ovld atomic_fetch_and(volatile atomic_long *object, long operand);
13747long __ovld atomic_fetch_and_explicit(volatile atomic_long *object, long operand, memory_order order);
13748long __ovld atomic_fetch_and_explicit(volatile atomic_long *object, long operand, memory_order order, memory_scope scope);
13749ulong __ovld atomic_fetch_and(volatile atomic_ulong *object, ulong operand);
13750ulong __ovld atomic_fetch_and_explicit(volatile atomic_ulong *object, ulong operand, memory_order order);
13751ulong __ovld atomic_fetch_and_explicit(volatile atomic_ulong *object, ulong operand, memory_order order, memory_scope scope);
13752long __ovld atomic_fetch_min(volatile atomic_long *object, long operand);
13753long __ovld atomic_fetch_min_explicit(volatile atomic_long *object, long operand, memory_order order);
13754long __ovld atomic_fetch_min_explicit(volatile atomic_long *object, long operand, memory_order order, memory_scope scope);
13755ulong __ovld atomic_fetch_min(volatile atomic_ulong *object, ulong operand);
13756ulong __ovld atomic_fetch_min_explicit(volatile atomic_ulong *object, ulong operand, memory_order order);
13757ulong __ovld atomic_fetch_min_explicit(volatile atomic_ulong *object, ulong operand, memory_order order, memory_scope scope);
13758ulong __ovld atomic_fetch_min(volatile atomic_ulong *object, long operand);
13759ulong __ovld atomic_fetch_min_explicit(volatile atomic_ulong *object, long operand, memory_order order);
13760ulong __ovld atomic_fetch_min_explicit(volatile atomic_ulong *object, long operand, memory_order order, memory_scope scope);
13761long __ovld atomic_fetch_max(volatile atomic_long *object, long operand);
13762long __ovld atomic_fetch_max_explicit(volatile atomic_long *object, long operand, memory_order order);
13763long __ovld atomic_fetch_max_explicit(volatile atomic_long *object, long operand, memory_order order, memory_scope scope);
13764ulong __ovld atomic_fetch_max(volatile atomic_ulong *object, ulong operand);
13765ulong __ovld atomic_fetch_max_explicit(volatile atomic_ulong *object, ulong operand, memory_order order);
13766ulong __ovld atomic_fetch_max_explicit(volatile atomic_ulong *object, ulong operand, memory_order order, memory_scope scope);
13767ulong __ovld atomic_fetch_max(volatile atomic_ulong *object, long operand);
13768ulong __ovld atomic_fetch_max_explicit(volatile atomic_ulong *object, long operand, memory_order order);
13769ulong __ovld atomic_fetch_max_explicit(volatile atomic_ulong *object, long operand, memory_order order, memory_scope scope);
13770#endif //defined(cl_khr_int64_base_atomics) && defined(cl_khr_int64_extended_atomics)
13771
13772// OpenCL v2.0 s6.13.11.7.5:
13773// add/sub: atomic type argument can be uintptr_t/intptr_t, value type argument can be ptrdiff_t.
13774// or/xor/and/min/max: atomic type argument can be intptr_t/uintptr_t, value type argument can be intptr_t/uintptr_t.
13775
13776#if defined(cl_khr_int64_base_atomics) && defined(cl_khr_int64_extended_atomics)
13777uintptr_t __ovld atomic_fetch_add(volatile atomic_uintptr_t *object, ptrdiff_t operand);
13778uintptr_t __ovld atomic_fetch_add_explicit(volatile atomic_uintptr_t *object, ptrdiff_t operand, memory_order order);
13779uintptr_t __ovld atomic_fetch_add_explicit(volatile atomic_uintptr_t *object, ptrdiff_t operand, memory_order order, memory_scope scope);
13780uintptr_t __ovld atomic_fetch_sub(volatile atomic_uintptr_t *object, ptrdiff_t operand);
13781uintptr_t __ovld atomic_fetch_sub_explicit(volatile atomic_uintptr_t *object, ptrdiff_t operand, memory_order order);
13782uintptr_t __ovld atomic_fetch_sub_explicit(volatile atomic_uintptr_t *object, ptrdiff_t operand, memory_order order, memory_scope scope);
13783
13784uintptr_t __ovld atomic_fetch_or(volatile atomic_uintptr_t *object, intptr_t operand);
13785uintptr_t __ovld atomic_fetch_or_explicit(volatile atomic_uintptr_t *object, intptr_t operand, memory_order order);
13786uintptr_t __ovld atomic_fetch_or_explicit(volatile atomic_uintptr_t *object, intptr_t operand, memory_order order, memory_scope scope);
13787uintptr_t __ovld atomic_fetch_xor(volatile atomic_uintptr_t *object, intptr_t operand);
13788uintptr_t __ovld atomic_fetch_xor_explicit(volatile atomic_uintptr_t *object, intptr_t operand, memory_order order);
13789uintptr_t __ovld atomic_fetch_xor_explicit(volatile atomic_uintptr_t *object, intptr_t operand, memory_order order, memory_scope scope);
13790uintptr_t __ovld atomic_fetch_and(volatile atomic_uintptr_t *object, intptr_t operand);
13791uintptr_t __ovld atomic_fetch_and_explicit(volatile atomic_uintptr_t *object, intptr_t operand, memory_order order);
13792uintptr_t __ovld atomic_fetch_and_explicit(volatile atomic_uintptr_t *object, intptr_t operand, memory_order order, memory_scope scope);
13793uintptr_t __ovld atomic_fetch_min(volatile atomic_uintptr_t *object, intptr_t opermax);
13794uintptr_t __ovld atomic_fetch_min_explicit(volatile atomic_uintptr_t *object, intptr_t opermax, memory_order minder);
13795uintptr_t __ovld atomic_fetch_min_explicit(volatile atomic_uintptr_t *object, intptr_t opermax, memory_order minder, memory_scope scope);
13796uintptr_t __ovld atomic_fetch_max(volatile atomic_uintptr_t *object, intptr_t opermax);
13797uintptr_t __ovld atomic_fetch_max_explicit(volatile atomic_uintptr_t *object, intptr_t opermax, memory_order minder);
13798uintptr_t __ovld atomic_fetch_max_explicit(volatile atomic_uintptr_t *object, intptr_t opermax, memory_order minder, memory_scope scope);
13799
13800intptr_t __ovld atomic_fetch_or(volatile atomic_intptr_t *object, uintptr_t operand);
13801intptr_t __ovld atomic_fetch_or_explicit(volatile atomic_intptr_t *object, uintptr_t operand, memory_order order);
13802intptr_t __ovld atomic_fetch_or_explicit(volatile atomic_intptr_t *object, uintptr_t operand, memory_order order, memory_scope scope);
13803intptr_t __ovld atomic_fetch_xor(volatile atomic_intptr_t *object, uintptr_t operand);
13804intptr_t __ovld atomic_fetch_xor_explicit(volatile atomic_intptr_t *object, uintptr_t operand, memory_order order);
13805intptr_t __ovld atomic_fetch_xor_explicit(volatile atomic_intptr_t *object, uintptr_t operand, memory_order order, memory_scope scope);
13806intptr_t __ovld atomic_fetch_and(volatile atomic_intptr_t *object, uintptr_t operand);
13807intptr_t __ovld atomic_fetch_and_explicit(volatile atomic_intptr_t *object, uintptr_t operand, memory_order order);
13808intptr_t __ovld atomic_fetch_and_explicit(volatile atomic_intptr_t *object, uintptr_t operand, memory_order order, memory_scope scope);
13809intptr_t __ovld atomic_fetch_min(volatile atomic_intptr_t *object, uintptr_t opermax);
13810intptr_t __ovld atomic_fetch_min_explicit(volatile atomic_intptr_t *object, uintptr_t opermax, memory_order minder);
13811intptr_t __ovld atomic_fetch_min_explicit(volatile atomic_intptr_t *object, uintptr_t opermax, memory_order minder, memory_scope scope);
13812intptr_t __ovld atomic_fetch_max(volatile atomic_intptr_t *object, uintptr_t opermax);
13813intptr_t __ovld atomic_fetch_max_explicit(volatile atomic_intptr_t *object, uintptr_t opermax, memory_order minder);
13814intptr_t __ovld atomic_fetch_max_explicit(volatile atomic_intptr_t *object, uintptr_t opermax, memory_order minder, memory_scope scope);
13815#endif
13816
13817// atomic_store()
13818
13819void __ovld atomic_store(volatile atomic_int *object, int desired);
13820void __ovld atomic_store_explicit(volatile atomic_int *object, int desired, memory_order order);
13821void __ovld atomic_store_explicit(volatile atomic_int *object, int desired, memory_order order, memory_scope scope);
13822void __ovld atomic_store(volatile atomic_uint *object, uint desired);
13823void __ovld atomic_store_explicit(volatile atomic_uint *object, uint desired, memory_order order);
13824void __ovld atomic_store_explicit(volatile atomic_uint *object, uint desired, memory_order order, memory_scope scope);
13825void __ovld atomic_store(volatile atomic_float *object, float desired);
13826void __ovld atomic_store_explicit(volatile atomic_float *object, float desired, memory_order order);
13827void __ovld atomic_store_explicit(volatile atomic_float *object, float desired, memory_order order, memory_scope scope);
13828#if defined(cl_khr_int64_base_atomics) && defined(cl_khr_int64_extended_atomics)
13829#ifdef cl_khr_fp64
13830void __ovld atomic_store(volatile atomic_double *object, double desired);
13831void __ovld atomic_store_explicit(volatile atomic_double *object, double desired, memory_order order);
13832void __ovld atomic_store_explicit(volatile atomic_double *object, double desired, memory_order order, memory_scope scope);
13833#endif //cl_khr_fp64
13834void __ovld atomic_store(volatile atomic_long *object, long desired);
13835void __ovld atomic_store_explicit(volatile atomic_long *object, long desired, memory_order order);
13836void __ovld atomic_store_explicit(volatile atomic_long *object, long desired, memory_order order, memory_scope scope);
13837void __ovld atomic_store(volatile atomic_ulong *object, ulong desired);
13838void __ovld atomic_store_explicit(volatile atomic_ulong *object, ulong desired, memory_order order);
13839void __ovld atomic_store_explicit(volatile atomic_ulong *object, ulong desired, memory_order order, memory_scope scope);
13840#endif
13841
13842// atomic_load()
13843
13844int __ovld atomic_load(volatile atomic_int *object);
13845int __ovld atomic_load_explicit(volatile atomic_int *object, memory_order order);
13846int __ovld atomic_load_explicit(volatile atomic_int *object, memory_order order, memory_scope scope);
13847uint __ovld atomic_load(volatile atomic_uint *object);
13848uint __ovld atomic_load_explicit(volatile atomic_uint *object, memory_order order);
13849uint __ovld atomic_load_explicit(volatile atomic_uint *object, memory_order order, memory_scope scope);
13850float __ovld atomic_load(volatile atomic_float *object);
13851float __ovld atomic_load_explicit(volatile atomic_float *object, memory_order order);
13852float __ovld atomic_load_explicit(volatile atomic_float *object, memory_order order, memory_scope scope);
13853#if defined(cl_khr_int64_base_atomics) && defined(cl_khr_int64_extended_atomics)
13854#ifdef cl_khr_fp64
13855double __ovld atomic_load(volatile atomic_double *object);
13856double __ovld atomic_load_explicit(volatile atomic_double *object, memory_order order);
13857double __ovld atomic_load_explicit(volatile atomic_double *object, memory_order order, memory_scope scope);
13858#endif //cl_khr_fp64
13859long __ovld atomic_load(volatile atomic_long *object);
13860long __ovld atomic_load_explicit(volatile atomic_long *object, memory_order order);
13861long __ovld atomic_load_explicit(volatile atomic_long *object, memory_order order, memory_scope scope);
13862ulong __ovld atomic_load(volatile atomic_ulong *object);
13863ulong __ovld atomic_load_explicit(volatile atomic_ulong *object, memory_order order);
13864ulong __ovld atomic_load_explicit(volatile atomic_ulong *object, memory_order order, memory_scope scope);
13865#endif
13866
13867// atomic_exchange()
13868
13869int __ovld atomic_exchange(volatile atomic_int *object, int desired);
13870int __ovld atomic_exchange_explicit(volatile atomic_int *object, int desired, memory_order order);
13871int __ovld atomic_exchange_explicit(volatile atomic_int *object, int desired, memory_order order, memory_scope scope);
13872uint __ovld atomic_exchange(volatile atomic_uint *object, uint desired);
13873uint __ovld atomic_exchange_explicit(volatile atomic_uint *object, uint desired, memory_order order);
13874uint __ovld atomic_exchange_explicit(volatile atomic_uint *object, uint desired, memory_order order, memory_scope scope);
13875float __ovld atomic_exchange(volatile atomic_float *object, float desired);
13876float __ovld atomic_exchange_explicit(volatile atomic_float *object, float desired, memory_order order);
13877float __ovld atomic_exchange_explicit(volatile atomic_float *object, float desired, memory_order order, memory_scope scope);
13878#if defined(cl_khr_int64_base_atomics) && defined(cl_khr_int64_extended_atomics)
13879#ifdef cl_khr_fp64
13880double __ovld atomic_exchange(volatile atomic_double *object, double desired);
13881double __ovld atomic_exchange_explicit(volatile atomic_double *object, double desired, memory_order order);
13882double __ovld atomic_exchange_explicit(volatile atomic_double *object, double desired, memory_order order, memory_scope scope);
13883#endif //cl_khr_fp64
13884long __ovld atomic_exchange(volatile atomic_long *object, long desired);
13885long __ovld atomic_exchange_explicit(volatile atomic_long *object, long desired, memory_order order);
13886long __ovld atomic_exchange_explicit(volatile atomic_long *object, long desired, memory_order order, memory_scope scope);
13887ulong __ovld atomic_exchange(volatile atomic_ulong *object, ulong desired);
13888ulong __ovld atomic_exchange_explicit(volatile atomic_ulong *object, ulong desired, memory_order order);
13889ulong __ovld atomic_exchange_explicit(volatile atomic_ulong *object, ulong desired, memory_order order, memory_scope scope);
13890#endif
13891
13892// atomic_compare_exchange_strong() and atomic_compare_exchange_weak()
13893
13894bool __ovld atomic_compare_exchange_strong(volatile atomic_int *object, int *expected, int desired);
13895bool __ovld atomic_compare_exchange_strong_explicit(volatile atomic_int *object, int *expected,
13896                                                                                 int desired, memory_order success, memory_order failure);
13897bool __ovld atomic_compare_exchange_strong_explicit(volatile atomic_int *object, int *expected,
13898                                                                                 int desired, memory_order success, memory_order failure, memory_scope scope);
13899bool __ovld atomic_compare_exchange_strong(volatile atomic_uint *object, uint *expected, uint desired);
13900bool __ovld atomic_compare_exchange_strong_explicit(volatile atomic_uint *object, uint *expected,
13901                                                                                 uint desired, memory_order success, memory_order failure);
13902bool __ovld atomic_compare_exchange_strong_explicit(volatile atomic_uint *object, uint *expected,
13903                                                                                 uint desired, memory_order success, memory_order failure, memory_scope scope);
13904bool __ovld atomic_compare_exchange_weak(volatile atomic_int *object, int *expected, int desired);
13905bool __ovld atomic_compare_exchange_weak_explicit(volatile atomic_int *object, int *expected,
13906                                                                                 int desired, memory_order success, memory_order failure);
13907bool __ovld atomic_compare_exchange_weak_explicit(volatile atomic_int *object, int *expected,
13908                                                                                 int desired, memory_order success, memory_order failure, memory_scope scope);
13909bool __ovld atomic_compare_exchange_weak(volatile atomic_uint *object, uint *expected, uint desired);
13910bool __ovld atomic_compare_exchange_weak_explicit(volatile atomic_uint *object, uint *expected,
13911                                                                                 uint desired, memory_order success, memory_order failure);
13912bool __ovld atomic_compare_exchange_weak_explicit(volatile atomic_uint *object, uint *expected,
13913                                                                                 uint desired, memory_order success, memory_order failure, memory_scope scope);
13914bool __ovld atomic_compare_exchange_strong(volatile atomic_float *object, float *expected, float desired);
13915bool __ovld atomic_compare_exchange_strong_explicit(volatile atomic_float *object, float *expected,
13916                                                                                 float desired, memory_order success, memory_order failure);
13917bool __ovld atomic_compare_exchange_strong_explicit(volatile atomic_float *object, float *expected,
13918                                                                                 float desired, memory_order success, memory_order failure, memory_scope scope);
13919bool __ovld atomic_compare_exchange_weak(volatile atomic_float *object, float *expected, float desired);
13920bool __ovld atomic_compare_exchange_weak_explicit(volatile atomic_float *object, float *expected,
13921                                                                                 float desired, memory_order success, memory_order failure);
13922bool __ovld atomic_compare_exchange_weak_explicit(volatile atomic_float *object, float *expected,
13923                                                                                 float desired, memory_order success, memory_order failure, memory_scope scope);
13924#if defined(cl_khr_int64_base_atomics) && defined(cl_khr_int64_extended_atomics)
13925#ifdef cl_khr_fp64
13926bool __ovld atomic_compare_exchange_strong(volatile atomic_double *object, double *expected, double desired);
13927bool __ovld atomic_compare_exchange_strong_explicit(volatile atomic_double *object, double *expected,
13928                                                                                 double desired, memory_order success, memory_order failure);
13929bool __ovld atomic_compare_exchange_strong_explicit(volatile atomic_double *object, double *expected,
13930                                                                                 double desired, memory_order success, memory_order failure, memory_scope scope);
13931bool __ovld atomic_compare_exchange_weak(volatile atomic_double *object, double *expected, double desired);
13932bool __ovld atomic_compare_exchange_weak_explicit(volatile atomic_double *object, double *expected,
13933                                                                                 double desired, memory_order success, memory_order failure);
13934bool __ovld atomic_compare_exchange_weak_explicit(volatile atomic_double *object, double *expected,
13935                                                                                 double desired, memory_order success, memory_order failure, memory_scope scope);
13936#endif //cl_khr_fp64
13937bool __ovld atomic_compare_exchange_strong(volatile atomic_long *object, long *expected, long desired);
13938bool __ovld atomic_compare_exchange_strong_explicit(volatile atomic_long *object, long *expected,
13939                                                                                 long desired, memory_order success, memory_order failure);
13940bool __ovld atomic_compare_exchange_strong_explicit(volatile atomic_long *object, long *expected,
13941                                                                                 long desired, memory_order success, memory_order failure, memory_scope scope);
13942bool __ovld atomic_compare_exchange_weak(volatile atomic_long *object, long *expected, long desired);
13943bool __ovld atomic_compare_exchange_weak_explicit(volatile atomic_long *object, long *expected,
13944                                                                                 long desired, memory_order success, memory_order failure);
13945bool __ovld atomic_compare_exchange_weak_explicit(volatile atomic_long *object, long *expected,
13946                                                                                 long desired, memory_order success, memory_order failure, memory_scope scope);
13947bool __ovld atomic_compare_exchange_strong(volatile atomic_ulong *object, ulong *expected, ulong desired);
13948bool __ovld atomic_compare_exchange_strong_explicit(volatile atomic_ulong *object, ulong *expected,
13949                                                                                 ulong desired, memory_order success, memory_order failure);
13950bool __ovld atomic_compare_exchange_strong_explicit(volatile atomic_ulong *object, ulong *expected,
13951                                                                                 ulong desired, memory_order success, memory_order failure, memory_scope scope);
13952bool __ovld atomic_compare_exchange_weak(volatile atomic_ulong *object, ulong *expected, ulong desired);
13953bool __ovld atomic_compare_exchange_weak_explicit(volatile atomic_ulong *object, ulong *expected,
13954                                                                                 ulong desired, memory_order success, memory_order failure);
13955bool __ovld atomic_compare_exchange_weak_explicit(volatile atomic_ulong *object, ulong *expected,
13956                                                                                 ulong desired, memory_order success, memory_order failure, memory_scope scope);
13957#endif
13958
13959// atomic_flag_test_and_set() and atomic_flag_clear()
13960
13961bool __ovld atomic_flag_test_and_set(volatile atomic_flag *object);
13962bool __ovld atomic_flag_test_and_set_explicit(volatile atomic_flag *object, memory_order order);
13963bool __ovld atomic_flag_test_and_set_explicit(volatile atomic_flag *object, memory_order order, memory_scope scope);
13964void __ovld atomic_flag_clear(volatile atomic_flag *object);
13965void __ovld atomic_flag_clear_explicit(volatile atomic_flag *object, memory_order order);
13966void __ovld atomic_flag_clear_explicit(volatile atomic_flag *object, memory_order order, memory_scope scope);
13967
13968#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
13969
13970// OpenCL v1.1 s6.11.12, v1.2 s6.12.12, v2.0 s6.13.12 - Miscellaneous Vector Functions
13971
13972/**
13973 * The shuffle and shuffle2 built-in functions construct
13974 * a permutation of elements from one or two input
13975 * vectors respectively that are of the same type,
13976 * returning a vector with the same element type as the
13977 * input and length that is the same as the shuffle mask.
13978 * The size of each element in the mask must match the
13979 * size of each element in the result. For shuffle, only
13980 * the ilogb(2m-1) least significant bits of each mask
13981 * element are considered. For shuffle2, only the
13982 * ilogb(2m-1)+1 least significant bits of each mask
13983 * element are considered. Other bits in the mask shall
13984 * be ignored.
13985 * The elements of the input vectors are numbered from
13986 * left to right across one or both of the vectors. For this
13987 * purpose, the number of elements in a vector is given
13988 * by vec_step(gentypem). The shuffle mask operand
13989 * specifies, for each element of the result vector, which
13990 * element of the one or two input vectors the result
13991 * element gets.
13992 * Examples:
13993 * uint4 mask = (uint4)(3, 2,
13994 * 1, 0);
13995 * float4 a;
13996 * float4 r = shuffle(a, mask);
13997 * // r.s0123 = a.wzyx
13998 * uint8 mask = (uint8)(0, 1, 2, 3,
13999 * 4, 5, 6, 7);
14000 * float4 a, b;
14001 * float8 r = shuffle2(a, b, mask);
14002 * // r.s0123 = a.xyzw
14003 * // r.s4567 = b.xyzw
14004 * uint4 mask;
14005 * float8 a;
14006 * float4 b;
14007 * b = shuffle(a, mask);
14008 * Examples that are not valid are:
14009 * uint8 mask;
14010 * short16 a;
14011 * short8 b;
14012 * b = shuffle(a, mask); <- not valid
14013 */
14014char2 __ovld __cnfn shuffle(char2 x, uchar2 mask);
14015char2 __ovld __cnfn shuffle(char4 x, uchar2 mask);
14016char2 __ovld __cnfn shuffle(char8 x, uchar2 mask);
14017char2 __ovld __cnfn shuffle(char16 x, uchar2 mask);
14018
14019uchar2 __ovld __cnfn shuffle(uchar2 x, uchar2 mask);
14020uchar2 __ovld __cnfn shuffle(uchar4 x, uchar2 mask);
14021uchar2 __ovld __cnfn shuffle(uchar8 x, uchar2 mask);
14022uchar2 __ovld __cnfn shuffle(uchar16 x, uchar2 mask);
14023
14024short2 __ovld __cnfn shuffle(short2 x, ushort2 mask);
14025short2 __ovld __cnfn shuffle(short4 x, ushort2 mask);
14026short2 __ovld __cnfn shuffle(short8 x, ushort2 mask);
14027short2 __ovld __cnfn shuffle(short16 x, ushort2 mask);
14028
14029ushort2 __ovld __cnfn shuffle(ushort2 x, ushort2 mask);
14030ushort2 __ovld __cnfn shuffle(ushort4 x, ushort2 mask);
14031ushort2 __ovld __cnfn shuffle(ushort8 x, ushort2 mask);
14032ushort2 __ovld __cnfn shuffle(ushort16 x, ushort2 mask);
14033
14034int2 __ovld __cnfn shuffle(int2 x, uint2 mask);
14035int2 __ovld __cnfn shuffle(int4 x, uint2 mask);
14036int2 __ovld __cnfn shuffle(int8 x, uint2 mask);
14037int2 __ovld __cnfn shuffle(int16 x, uint2 mask);
14038
14039uint2 __ovld __cnfn shuffle(uint2 x, uint2 mask);
14040uint2 __ovld __cnfn shuffle(uint4 x, uint2 mask);
14041uint2 __ovld __cnfn shuffle(uint8 x, uint2 mask);
14042uint2 __ovld __cnfn shuffle(uint16 x, uint2 mask);
14043
14044long2 __ovld __cnfn shuffle(long2 x, ulong2 mask);
14045long2 __ovld __cnfn shuffle(long4 x, ulong2 mask);
14046long2 __ovld __cnfn shuffle(long8 x, ulong2 mask);
14047long2 __ovld __cnfn shuffle(long16 x, ulong2 mask);
14048
14049ulong2 __ovld __cnfn shuffle(ulong2 x, ulong2 mask);
14050ulong2 __ovld __cnfn shuffle(ulong4 x, ulong2 mask);
14051ulong2 __ovld __cnfn shuffle(ulong8 x, ulong2 mask);
14052ulong2 __ovld __cnfn shuffle(ulong16 x, ulong2 mask);
14053
14054float2 __ovld __cnfn shuffle(float2 x, uint2 mask);
14055float2 __ovld __cnfn shuffle(float4 x, uint2 mask);
14056float2 __ovld __cnfn shuffle(float8 x, uint2 mask);
14057float2 __ovld __cnfn shuffle(float16 x, uint2 mask);
14058
14059char4 __ovld __cnfn shuffle(char2 x, uchar4 mask);
14060char4 __ovld __cnfn shuffle(char4 x, uchar4 mask);
14061char4 __ovld __cnfn shuffle(char8 x, uchar4 mask);
14062char4 __ovld __cnfn shuffle(char16 x, uchar4 mask);
14063
14064uchar4 __ovld __cnfn shuffle(uchar2 x, uchar4 mask);
14065uchar4 __ovld __cnfn shuffle(uchar4 x, uchar4 mask);
14066uchar4 __ovld __cnfn shuffle(uchar8 x, uchar4 mask);
14067uchar4 __ovld __cnfn shuffle(uchar16 x, uchar4 mask);
14068
14069short4 __ovld __cnfn shuffle(short2 x, ushort4 mask);
14070short4 __ovld __cnfn shuffle(short4 x, ushort4 mask);
14071short4 __ovld __cnfn shuffle(short8 x, ushort4 mask);
14072short4 __ovld __cnfn shuffle(short16 x, ushort4 mask);
14073
14074ushort4 __ovld __cnfn shuffle(ushort2 x, ushort4 mask);
14075ushort4 __ovld __cnfn shuffle(ushort4 x, ushort4 mask);
14076ushort4 __ovld __cnfn shuffle(ushort8 x, ushort4 mask);
14077ushort4 __ovld __cnfn shuffle(ushort16 x, ushort4 mask);
14078
14079int4 __ovld __cnfn shuffle(int2 x, uint4 mask);
14080int4 __ovld __cnfn shuffle(int4 x, uint4 mask);
14081int4 __ovld __cnfn shuffle(int8 x, uint4 mask);
14082int4 __ovld __cnfn shuffle(int16 x, uint4 mask);
14083
14084uint4 __ovld __cnfn shuffle(uint2 x, uint4 mask);
14085uint4 __ovld __cnfn shuffle(uint4 x, uint4 mask);
14086uint4 __ovld __cnfn shuffle(uint8 x, uint4 mask);
14087uint4 __ovld __cnfn shuffle(uint16 x, uint4 mask);
14088
14089long4 __ovld __cnfn shuffle(long2 x, ulong4 mask);
14090long4 __ovld __cnfn shuffle(long4 x, ulong4 mask);
14091long4 __ovld __cnfn shuffle(long8 x, ulong4 mask);
14092long4 __ovld __cnfn shuffle(long16 x, ulong4 mask);
14093
14094ulong4 __ovld __cnfn shuffle(ulong2 x, ulong4 mask);
14095ulong4 __ovld __cnfn shuffle(ulong4 x, ulong4 mask);
14096ulong4 __ovld __cnfn shuffle(ulong8 x, ulong4 mask);
14097ulong4 __ovld __cnfn shuffle(ulong16 x, ulong4 mask);
14098
14099float4 __ovld __cnfn shuffle(float2 x, uint4 mask);
14100float4 __ovld __cnfn shuffle(float4 x, uint4 mask);
14101float4 __ovld __cnfn shuffle(float8 x, uint4 mask);
14102float4 __ovld __cnfn shuffle(float16 x, uint4 mask);
14103
14104char8 __ovld __cnfn shuffle(char2 x, uchar8 mask);
14105char8 __ovld __cnfn shuffle(char4 x, uchar8 mask);
14106char8 __ovld __cnfn shuffle(char8 x, uchar8 mask);
14107char8 __ovld __cnfn shuffle(char16 x, uchar8 mask);
14108
14109uchar8 __ovld __cnfn shuffle(uchar2 x, uchar8 mask);
14110uchar8 __ovld __cnfn shuffle(uchar4 x, uchar8 mask);
14111uchar8 __ovld __cnfn shuffle(uchar8 x, uchar8 mask);
14112uchar8 __ovld __cnfn shuffle(uchar16 x, uchar8 mask);
14113
14114short8 __ovld __cnfn shuffle(short2 x, ushort8 mask);
14115short8 __ovld __cnfn shuffle(short4 x, ushort8 mask);
14116short8 __ovld __cnfn shuffle(short8 x, ushort8 mask);
14117short8 __ovld __cnfn shuffle(short16 x, ushort8 mask);
14118
14119ushort8 __ovld __cnfn shuffle(ushort2 x, ushort8 mask);
14120ushort8 __ovld __cnfn shuffle(ushort4 x, ushort8 mask);
14121ushort8 __ovld __cnfn shuffle(ushort8 x, ushort8 mask);
14122ushort8 __ovld __cnfn shuffle(ushort16 x, ushort8 mask);
14123
14124int8 __ovld __cnfn shuffle(int2 x, uint8 mask);
14125int8 __ovld __cnfn shuffle(int4 x, uint8 mask);
14126int8 __ovld __cnfn shuffle(int8 x, uint8 mask);
14127int8 __ovld __cnfn shuffle(int16 x, uint8 mask);
14128
14129uint8 __ovld __cnfn shuffle(uint2 x, uint8 mask);
14130uint8 __ovld __cnfn shuffle(uint4 x, uint8 mask);
14131uint8 __ovld __cnfn shuffle(uint8 x, uint8 mask);
14132uint8 __ovld __cnfn shuffle(uint16 x, uint8 mask);
14133
14134long8 __ovld __cnfn shuffle(long2 x, ulong8 mask);
14135long8 __ovld __cnfn shuffle(long4 x, ulong8 mask);
14136long8 __ovld __cnfn shuffle(long8 x, ulong8 mask);
14137long8 __ovld __cnfn shuffle(long16 x, ulong8 mask);
14138
14139ulong8 __ovld __cnfn shuffle(ulong2 x, ulong8 mask);
14140ulong8 __ovld __cnfn shuffle(ulong4 x, ulong8 mask);
14141ulong8 __ovld __cnfn shuffle(ulong8 x, ulong8 mask);
14142ulong8 __ovld __cnfn shuffle(ulong16 x, ulong8 mask);
14143
14144float8 __ovld __cnfn shuffle(float2 x, uint8 mask);
14145float8 __ovld __cnfn shuffle(float4 x, uint8 mask);
14146float8 __ovld __cnfn shuffle(float8 x, uint8 mask);
14147float8 __ovld __cnfn shuffle(float16 x, uint8 mask);
14148
14149char16 __ovld __cnfn shuffle(char2 x, uchar16 mask);
14150char16 __ovld __cnfn shuffle(char4 x, uchar16 mask);
14151char16 __ovld __cnfn shuffle(char8 x, uchar16 mask);
14152char16 __ovld __cnfn shuffle(char16 x, uchar16 mask);
14153
14154uchar16 __ovld __cnfn shuffle(uchar2 x, uchar16 mask);
14155uchar16 __ovld __cnfn shuffle(uchar4 x, uchar16 mask);
14156uchar16 __ovld __cnfn shuffle(uchar8 x, uchar16 mask);
14157uchar16 __ovld __cnfn shuffle(uchar16 x, uchar16 mask);
14158
14159short16 __ovld __cnfn shuffle(short2 x, ushort16 mask);
14160short16 __ovld __cnfn shuffle(short4 x, ushort16 mask);
14161short16 __ovld __cnfn shuffle(short8 x, ushort16 mask);
14162short16 __ovld __cnfn shuffle(short16 x, ushort16 mask);
14163
14164ushort16 __ovld __cnfn shuffle(ushort2 x, ushort16 mask);
14165ushort16 __ovld __cnfn shuffle(ushort4 x, ushort16 mask);
14166ushort16 __ovld __cnfn shuffle(ushort8 x, ushort16 mask);
14167ushort16 __ovld __cnfn shuffle(ushort16 x, ushort16 mask);
14168
14169int16 __ovld __cnfn shuffle(int2 x, uint16 mask);
14170int16 __ovld __cnfn shuffle(int4 x, uint16 mask);
14171int16 __ovld __cnfn shuffle(int8 x, uint16 mask);
14172int16 __ovld __cnfn shuffle(int16 x, uint16 mask);
14173
14174uint16 __ovld __cnfn shuffle(uint2 x, uint16 mask);
14175uint16 __ovld __cnfn shuffle(uint4 x, uint16 mask);
14176uint16 __ovld __cnfn shuffle(uint8 x, uint16 mask);
14177uint16 __ovld __cnfn shuffle(uint16 x, uint16 mask);
14178
14179long16 __ovld __cnfn shuffle(long2 x, ulong16 mask);
14180long16 __ovld __cnfn shuffle(long4 x, ulong16 mask);
14181long16 __ovld __cnfn shuffle(long8 x, ulong16 mask);
14182long16 __ovld __cnfn shuffle(long16 x, ulong16 mask);
14183
14184ulong16 __ovld __cnfn shuffle(ulong2 x, ulong16 mask);
14185ulong16 __ovld __cnfn shuffle(ulong4 x, ulong16 mask);
14186ulong16 __ovld __cnfn shuffle(ulong8 x, ulong16 mask);
14187ulong16 __ovld __cnfn shuffle(ulong16 x, ulong16 mask);
14188
14189float16 __ovld __cnfn shuffle(float2 x, uint16 mask);
14190float16 __ovld __cnfn shuffle(float4 x, uint16 mask);
14191float16 __ovld __cnfn shuffle(float8 x, uint16 mask);
14192float16 __ovld __cnfn shuffle(float16 x, uint16 mask);
14193
14194#ifdef cl_khr_fp64
14195double2 __ovld __cnfn shuffle(double2 x, ulong2 mask);
14196double2 __ovld __cnfn shuffle(double4 x, ulong2 mask);
14197double2 __ovld __cnfn shuffle(double8 x, ulong2 mask);
14198double2 __ovld __cnfn shuffle(double16 x, ulong2 mask);
14199
14200double4 __ovld __cnfn shuffle(double2 x, ulong4 mask);
14201double4 __ovld __cnfn shuffle(double4 x, ulong4 mask);
14202double4 __ovld __cnfn shuffle(double8 x, ulong4 mask);
14203double4 __ovld __cnfn shuffle(double16 x, ulong4 mask);
14204
14205double8 __ovld __cnfn shuffle(double2 x, ulong8 mask);
14206double8 __ovld __cnfn shuffle(double4 x, ulong8 mask);
14207double8 __ovld __cnfn shuffle(double8 x, ulong8 mask);
14208double8 __ovld __cnfn shuffle(double16 x, ulong8 mask);
14209
14210double16 __ovld __cnfn shuffle(double2 x, ulong16 mask);
14211double16 __ovld __cnfn shuffle(double4 x, ulong16 mask);
14212double16 __ovld __cnfn shuffle(double8 x, ulong16 mask);
14213double16 __ovld __cnfn shuffle(double16 x, ulong16 mask);
14214#endif //cl_khr_fp64
14215
14216#ifdef cl_khr_fp16
14217half2 __ovld __cnfn shuffle(half2 x, ushort2 mask);
14218half2 __ovld __cnfn shuffle(half4 x, ushort2 mask);
14219half2 __ovld __cnfn shuffle(half8 x, ushort2 mask);
14220half2 __ovld __cnfn shuffle(half16 x, ushort2 mask);
14221
14222half4 __ovld __cnfn shuffle(half2 x, ushort4 mask);
14223half4 __ovld __cnfn shuffle(half4 x, ushort4 mask);
14224half4 __ovld __cnfn shuffle(half8 x, ushort4 mask);
14225half4 __ovld __cnfn shuffle(half16 x, ushort4 mask);
14226
14227half8 __ovld __cnfn shuffle(half2 x, ushort8 mask);
14228half8 __ovld __cnfn shuffle(half4 x, ushort8 mask);
14229half8 __ovld __cnfn shuffle(half8 x, ushort8 mask);
14230half8 __ovld __cnfn shuffle(half16 x, ushort8 mask);
14231
14232half16 __ovld __cnfn shuffle(half2 x, ushort16 mask);
14233half16 __ovld __cnfn shuffle(half4 x, ushort16 mask);
14234half16 __ovld __cnfn shuffle(half8 x, ushort16 mask);
14235half16 __ovld __cnfn shuffle(half16 x, ushort16 mask);
14236#endif //cl_khr_fp16
14237
14238char2 __ovld __cnfn shuffle2(char2 x, char2 y, uchar2 mask);
14239char2 __ovld __cnfn shuffle2(char4 x, char4 y, uchar2 mask);
14240char2 __ovld __cnfn shuffle2(char8 x, char8 y, uchar2 mask);
14241char2 __ovld __cnfn shuffle2(char16 x, char16 y, uchar2 mask);
14242
14243uchar2 __ovld __cnfn shuffle2(uchar2 x, uchar2 y, uchar2 mask);
14244uchar2 __ovld __cnfn shuffle2(uchar4 x, uchar4 y, uchar2 mask);
14245uchar2 __ovld __cnfn shuffle2(uchar8 x, uchar8 y, uchar2 mask);
14246uchar2 __ovld __cnfn shuffle2(uchar16 x, uchar16 y, uchar2 mask);
14247
14248short2 __ovld __cnfn shuffle2(short2 x, short2 y, ushort2 mask);
14249short2 __ovld __cnfn shuffle2(short4 x, short4 y, ushort2 mask);
14250short2 __ovld __cnfn shuffle2(short8 x, short8 y, ushort2 mask);
14251short2 __ovld __cnfn shuffle2(short16 x, short16 y, ushort2 mask);
14252
14253ushort2 __ovld __cnfn shuffle2(ushort2 x, ushort2 y, ushort2 mask);
14254ushort2 __ovld __cnfn shuffle2(ushort4 x, ushort4 y, ushort2 mask);
14255ushort2 __ovld __cnfn shuffle2(ushort8 x, ushort8 y, ushort2 mask);
14256ushort2 __ovld __cnfn shuffle2(ushort16 x, ushort16 y, ushort2 mask);
14257
14258int2 __ovld __cnfn shuffle2(int2 x, int2 y, uint2 mask);
14259int2 __ovld __cnfn shuffle2(int4 x, int4 y, uint2 mask);
14260int2 __ovld __cnfn shuffle2(int8 x, int8 y, uint2 mask);
14261int2 __ovld __cnfn shuffle2(int16 x, int16 y, uint2 mask);
14262
14263uint2 __ovld __cnfn shuffle2(uint2 x, uint2 y, uint2 mask);
14264uint2 __ovld __cnfn shuffle2(uint4 x, uint4 y, uint2 mask);
14265uint2 __ovld __cnfn shuffle2(uint8 x, uint8 y, uint2 mask);
14266uint2 __ovld __cnfn shuffle2(uint16 x, uint16 y, uint2 mask);
14267
14268long2 __ovld __cnfn shuffle2(long2 x, long2 y, ulong2 mask);
14269long2 __ovld __cnfn shuffle2(long4 x, long4 y, ulong2 mask);
14270long2 __ovld __cnfn shuffle2(long8 x, long8 y, ulong2 mask);
14271long2 __ovld __cnfn shuffle2(long16 x, long16 y, ulong2 mask);
14272
14273ulong2 __ovld __cnfn shuffle2(ulong2 x, ulong2 y, ulong2 mask);
14274ulong2 __ovld __cnfn shuffle2(ulong4 x, ulong4 y, ulong2 mask);
14275ulong2 __ovld __cnfn shuffle2(ulong8 x, ulong8 y, ulong2 mask);
14276ulong2 __ovld __cnfn shuffle2(ulong16 x, ulong16 y, ulong2 mask);
14277
14278float2 __ovld __cnfn shuffle2(float2 x, float2 y, uint2 mask);
14279float2 __ovld __cnfn shuffle2(float4 x, float4 y, uint2 mask);
14280float2 __ovld __cnfn shuffle2(float8 x, float8 y, uint2 mask);
14281float2 __ovld __cnfn shuffle2(float16 x, float16 y, uint2 mask);
14282
14283char4 __ovld __cnfn shuffle2(char2 x, char2 y, uchar4 mask);
14284char4 __ovld __cnfn shuffle2(char4 x, char4 y, uchar4 mask);
14285char4 __ovld __cnfn shuffle2(char8 x, char8 y, uchar4 mask);
14286char4 __ovld __cnfn shuffle2(char16 x, char16 y, uchar4 mask);
14287
14288uchar4 __ovld __cnfn shuffle2(uchar2 x, uchar2 y, uchar4 mask);
14289uchar4 __ovld __cnfn shuffle2(uchar4 x, uchar4 y, uchar4 mask);
14290uchar4 __ovld __cnfn shuffle2(uchar8 x, uchar8 y, uchar4 mask);
14291uchar4 __ovld __cnfn shuffle2(uchar16 x, uchar16 y, uchar4 mask);
14292
14293short4 __ovld __cnfn shuffle2(short2 x, short2 y, ushort4 mask);
14294short4 __ovld __cnfn shuffle2(short4 x, short4 y, ushort4 mask);
14295short4 __ovld __cnfn shuffle2(short8 x, short8 y, ushort4 mask);
14296short4 __ovld __cnfn shuffle2(short16 x, short16 y, ushort4 mask);
14297
14298ushort4 __ovld __cnfn shuffle2(ushort2 x, ushort2 y, ushort4 mask);
14299ushort4 __ovld __cnfn shuffle2(ushort4 x, ushort4 y, ushort4 mask);
14300ushort4 __ovld __cnfn shuffle2(ushort8 x, ushort8 y, ushort4 mask);
14301ushort4 __ovld __cnfn shuffle2(ushort16 x, ushort16 y, ushort4 mask);
14302
14303int4 __ovld __cnfn shuffle2(int2 x, int2 y, uint4 mask);
14304int4 __ovld __cnfn shuffle2(int4 x, int4 y, uint4 mask);
14305int4 __ovld __cnfn shuffle2(int8 x, int8 y, uint4 mask);
14306int4 __ovld __cnfn shuffle2(int16 x, int16 y, uint4 mask);
14307
14308uint4 __ovld __cnfn shuffle2(uint2 x, uint2 y, uint4 mask);
14309uint4 __ovld __cnfn shuffle2(uint4 x, uint4 y, uint4 mask);
14310uint4 __ovld __cnfn shuffle2(uint8 x, uint8 y, uint4 mask);
14311uint4 __ovld __cnfn shuffle2(uint16 x, uint16 y, uint4 mask);
14312
14313long4 __ovld __cnfn shuffle2(long2 x, long2 y, ulong4 mask);
14314long4 __ovld __cnfn shuffle2(long4 x, long4 y, ulong4 mask);
14315long4 __ovld __cnfn shuffle2(long8 x, long8 y, ulong4 mask);
14316long4 __ovld __cnfn shuffle2(long16 x, long16 y, ulong4 mask);
14317
14318ulong4 __ovld __cnfn shuffle2(ulong2 x, ulong2 y, ulong4 mask);
14319ulong4 __ovld __cnfn shuffle2(ulong4 x, ulong4 y, ulong4 mask);
14320ulong4 __ovld __cnfn shuffle2(ulong8 x, ulong8 y, ulong4 mask);
14321ulong4 __ovld __cnfn shuffle2(ulong16 x, ulong16 y, ulong4 mask);
14322
14323float4 __ovld __cnfn shuffle2(float2 x, float2 y, uint4 mask);
14324float4 __ovld __cnfn shuffle2(float4 x, float4 y, uint4 mask);
14325float4 __ovld __cnfn shuffle2(float8 x, float8 y, uint4 mask);
14326float4 __ovld __cnfn shuffle2(float16 x, float16 y, uint4 mask);
14327
14328char8 __ovld __cnfn shuffle2(char2 x, char2 y, uchar8 mask);
14329char8 __ovld __cnfn shuffle2(char4 x, char4 y, uchar8 mask);
14330char8 __ovld __cnfn shuffle2(char8 x, char8 y, uchar8 mask);
14331char8 __ovld __cnfn shuffle2(char16 x, char16 y, uchar8 mask);
14332
14333uchar8 __ovld __cnfn shuffle2(uchar2 x, uchar2 y, uchar8 mask);
14334uchar8 __ovld __cnfn shuffle2(uchar4 x, uchar4 y, uchar8 mask);
14335uchar8 __ovld __cnfn shuffle2(uchar8 x, uchar8 y, uchar8 mask);
14336uchar8 __ovld __cnfn shuffle2(uchar16 x, uchar16 y, uchar8 mask);
14337
14338short8 __ovld __cnfn shuffle2(short2 x, short2 y, ushort8 mask);
14339short8 __ovld __cnfn shuffle2(short4 x, short4 y, ushort8 mask);
14340short8 __ovld __cnfn shuffle2(short8 x, short8 y, ushort8 mask);
14341short8 __ovld __cnfn shuffle2(short16 x, short16 y, ushort8 mask);
14342
14343ushort8 __ovld __cnfn shuffle2(ushort2 x, ushort2 y, ushort8 mask);
14344ushort8 __ovld __cnfn shuffle2(ushort4 x, ushort4 y, ushort8 mask);
14345ushort8 __ovld __cnfn shuffle2(ushort8 x, ushort8 y, ushort8 mask);
14346ushort8 __ovld __cnfn shuffle2(ushort16 x, ushort16 y, ushort8 mask);
14347
14348int8 __ovld __cnfn shuffle2(int2 x, int2 y, uint8 mask);
14349int8 __ovld __cnfn shuffle2(int4 x, int4 y, uint8 mask);
14350int8 __ovld __cnfn shuffle2(int8 x, int8 y, uint8 mask);
14351int8 __ovld __cnfn shuffle2(int16 x, int16 y, uint8 mask);
14352
14353uint8 __ovld __cnfn shuffle2(uint2 x, uint2 y, uint8 mask);
14354uint8 __ovld __cnfn shuffle2(uint4 x, uint4 y, uint8 mask);
14355uint8 __ovld __cnfn shuffle2(uint8 x, uint8 y, uint8 mask);
14356uint8 __ovld __cnfn shuffle2(uint16 x, uint16 y, uint8 mask);
14357
14358long8 __ovld __cnfn shuffle2(long2 x, long2 y, ulong8 mask);
14359long8 __ovld __cnfn shuffle2(long4 x, long4 y, ulong8 mask);
14360long8 __ovld __cnfn shuffle2(long8 x, long8 y, ulong8 mask);
14361long8 __ovld __cnfn shuffle2(long16 x, long16 y, ulong8 mask);
14362
14363ulong8 __ovld __cnfn shuffle2(ulong2 x, ulong2 y, ulong8 mask);
14364ulong8 __ovld __cnfn shuffle2(ulong4 x, ulong4 y, ulong8 mask);
14365ulong8 __ovld __cnfn shuffle2(ulong8 x, ulong8 y, ulong8 mask);
14366ulong8 __ovld __cnfn shuffle2(ulong16 x, ulong16 y, ulong8 mask);
14367
14368float8 __ovld __cnfn shuffle2(float2 x, float2 y, uint8 mask);
14369float8 __ovld __cnfn shuffle2(float4 x, float4 y, uint8 mask);
14370float8 __ovld __cnfn shuffle2(float8 x, float8 y, uint8 mask);
14371float8 __ovld __cnfn shuffle2(float16 x, float16 y, uint8 mask);
14372
14373char16 __ovld __cnfn shuffle2(char2 x, char2 y, uchar16 mask);
14374char16 __ovld __cnfn shuffle2(char4 x, char4 y, uchar16 mask);
14375char16 __ovld __cnfn shuffle2(char8 x, char8 y, uchar16 mask);
14376char16 __ovld __cnfn shuffle2(char16 x, char16 y, uchar16 mask);
14377
14378uchar16 __ovld __cnfn shuffle2(uchar2 x, uchar2 y, uchar16 mask);
14379uchar16 __ovld __cnfn shuffle2(uchar4 x, uchar4 y, uchar16 mask);
14380uchar16 __ovld __cnfn shuffle2(uchar8 x, uchar8 y, uchar16 mask);
14381uchar16 __ovld __cnfn shuffle2(uchar16 x, uchar16 y, uchar16 mask);
14382
14383short16 __ovld __cnfn shuffle2(short2 x, short2 y, ushort16 mask);
14384short16 __ovld __cnfn shuffle2(short4 x, short4 y, ushort16 mask);
14385short16 __ovld __cnfn shuffle2(short8 x, short8 y, ushort16 mask);
14386short16 __ovld __cnfn shuffle2(short16 x, short16 y, ushort16 mask);
14387
14388ushort16 __ovld __cnfn shuffle2(ushort2 x, ushort2 y, ushort16 mask);
14389ushort16 __ovld __cnfn shuffle2(ushort4 x, ushort4 y, ushort16 mask);
14390ushort16 __ovld __cnfn shuffle2(ushort8 x, ushort8 y, ushort16 mask);
14391ushort16 __ovld __cnfn shuffle2(ushort16 x, ushort16 y, ushort16 mask);
14392
14393int16 __ovld __cnfn shuffle2(int2 x, int2 y, uint16 mask);
14394int16 __ovld __cnfn shuffle2(int4 x, int4 y, uint16 mask);
14395int16 __ovld __cnfn shuffle2(int8 x, int8 y, uint16 mask);
14396int16 __ovld __cnfn shuffle2(int16 x, int16 y, uint16 mask);
14397
14398uint16 __ovld __cnfn shuffle2(uint2 x, uint2 y, uint16 mask);
14399uint16 __ovld __cnfn shuffle2(uint4 x, uint4 y, uint16 mask);
14400uint16 __ovld __cnfn shuffle2(uint8 x, uint8 y, uint16 mask);
14401uint16 __ovld __cnfn shuffle2(uint16 x, uint16 y, uint16 mask);
14402
14403long16 __ovld __cnfn shuffle2(long2 x, long2 y, ulong16 mask);
14404long16 __ovld __cnfn shuffle2(long4 x, long4 y, ulong16 mask);
14405long16 __ovld __cnfn shuffle2(long8 x, long8 y, ulong16 mask);
14406long16 __ovld __cnfn shuffle2(long16 x, long16 y, ulong16 mask);
14407
14408ulong16 __ovld __cnfn shuffle2(ulong2 x, ulong2 y, ulong16 mask);
14409ulong16 __ovld __cnfn shuffle2(ulong4 x, ulong4 y, ulong16 mask);
14410ulong16 __ovld __cnfn shuffle2(ulong8 x, ulong8 y, ulong16 mask);
14411ulong16 __ovld __cnfn shuffle2(ulong16 x, ulong16 y, ulong16 mask);
14412
14413float16 __ovld __cnfn shuffle2(float2 x, float2 y, uint16 mask);
14414float16 __ovld __cnfn shuffle2(float4 x, float4 y, uint16 mask);
14415float16 __ovld __cnfn shuffle2(float8 x, float8 y, uint16 mask);
14416float16 __ovld __cnfn shuffle2(float16 x, float16 y, uint16 mask);
14417
14418#ifdef cl_khr_fp64
14419double2 __ovld __cnfn shuffle2(double2 x, double2 y, ulong2 mask);
14420double2 __ovld __cnfn shuffle2(double4 x, double4 y, ulong2 mask);
14421double2 __ovld __cnfn shuffle2(double8 x, double8 y, ulong2 mask);
14422double2 __ovld __cnfn shuffle2(double16 x, double16 y, ulong2 mask);
14423
14424double4 __ovld __cnfn shuffle2(double2 x, double2 y, ulong4 mask);
14425double4 __ovld __cnfn shuffle2(double4 x, double4 y, ulong4 mask);
14426double4 __ovld __cnfn shuffle2(double8 x, double8 y, ulong4 mask);
14427double4 __ovld __cnfn shuffle2(double16 x, double16 y, ulong4 mask);
14428
14429double8 __ovld __cnfn shuffle2(double2 x, double2 y, ulong8 mask);
14430double8 __ovld __cnfn shuffle2(double4 x, double4 y, ulong8 mask);
14431double8 __ovld __cnfn shuffle2(double8 x, double8 y, ulong8 mask);
14432double8 __ovld __cnfn shuffle2(double16 x, double16 y, ulong8 mask);
14433
14434double16 __ovld __cnfn shuffle2(double2 x, double2 y, ulong16 mask);
14435double16 __ovld __cnfn shuffle2(double4 x, double4 y, ulong16 mask);
14436double16 __ovld __cnfn shuffle2(double8 x, double8 y, ulong16 mask);
14437double16 __ovld __cnfn shuffle2(double16 x, double16 y, ulong16 mask);
14438#endif //cl_khr_fp64
14439
14440#ifdef cl_khr_fp16
14441half2 __ovld __cnfn shuffle2(half2 x, half2 y, ushort2 mask);
14442half2 __ovld __cnfn shuffle2(half4 x, half4 y, ushort2 mask);
14443half2 __ovld __cnfn shuffle2(half8 x, half8 y, ushort2 mask);
14444half2 __ovld __cnfn shuffle2(half16 x, half16 y, ushort2 mask);
14445
14446half4 __ovld __cnfn shuffle2(half2 x, half2 y, ushort4 mask);
14447half4 __ovld __cnfn shuffle2(half4 x, half4 y, ushort4 mask);
14448half4 __ovld __cnfn shuffle2(half8 x, half8 y, ushort4 mask);
14449half4 __ovld __cnfn shuffle2(half16 x, half16 y, ushort4 mask);
14450
14451half8 __ovld __cnfn shuffle2(half2 x, half2 y, ushort8 mask);
14452half8 __ovld __cnfn shuffle2(half4 x, half4 y, ushort8 mask);
14453half8 __ovld __cnfn shuffle2(half8 x, half8 y, ushort8 mask);
14454half8 __ovld __cnfn shuffle2(half16 x, half16 y, ushort8 mask);
14455
14456half16 __ovld __cnfn shuffle2(half2 x, half2 y, ushort16 mask);
14457half16 __ovld __cnfn shuffle2(half4 x, half4 y, ushort16 mask);
14458half16 __ovld __cnfn shuffle2(half8 x, half8 y, ushort16 mask);
14459half16 __ovld __cnfn shuffle2(half16 x, half16 y, ushort16 mask);
14460#endif //cl_khr_fp16
14461
14462#if __OPENCL_C_VERSION__ >= CL_VERSION_1_2
14463// OpenCL v1.2 s6.12.13, v2.0 s6.13.13 - printf
14464
14465int printf(__constant const char* st, ...);
14466#endif
14467
14468// OpenCL v1.1 s6.11.3, v1.2 s6.12.14, v2.0 s6.13.14 - Image Read and Write Functions
14469
14470// These values need to match the runtime equivalent
14471//
14472// Addressing Mode.
14473//
14474#define CLK_ADDRESS_NONE                0
14475#define CLK_ADDRESS_CLAMP_TO_EDGE       2
14476#define CLK_ADDRESS_CLAMP               4
14477#define CLK_ADDRESS_REPEAT              6
14478#define CLK_ADDRESS_MIRRORED_REPEAT     8
14479
14480//
14481// Coordination Normalization
14482//
14483#define CLK_NORMALIZED_COORDS_FALSE     0
14484#define CLK_NORMALIZED_COORDS_TRUE      1
14485
14486//
14487// Filtering Mode.
14488//
14489#define CLK_FILTER_NEAREST              0x10
14490#define CLK_FILTER_LINEAR               0x20
14491
14492#ifdef cl_khr_gl_msaa_sharing
14493#pragma OPENCL EXTENSION cl_khr_gl_msaa_sharing : enable
14494#endif //cl_khr_gl_msaa_sharing
14495
14496/**
14497 * Use the coordinate (coord.xy) to do an element lookup in
14498 * the 2D image object specified by image.
14499 *
14500 * Use the coordinate (coord.x, coord.y, coord.z) to do
14501 * an element lookup in the 3D image object specified
14502 * by image. coord.w is ignored.
14503 *
14504 * Use the coordinate (coord.z) to index into the
14505 * 2D image array object specified by image_array
14506 * and (coord.x, coord.y) to do an element lookup in
14507 * the 2D image object specified by image.
14508 *
14509 * Use the coordinate (x) to do an element lookup in
14510 * the 1D image object specified by image.
14511 *
14512 * Use the coordinate (coord.y) to index into the
14513 * 1D image array object specified by image_array
14514 * and (coord.x) to do an element lookup in
14515 * the 1D image object specified by image.
14516 *
14517 * Use the coordinate (cood.xy) and sample to do an
14518 * element lookup in the 2D multi-sample image specified
14519 * by image.
14520 *
14521 * Use coord.xy and sample to do an element
14522 * lookup in the 2D multi-sample image layer
14523 * identified by index coord.z in the 2D multi-sample
14524 * image array specified by image.
14525 *
14526 * For mipmap images, use the mip-level specified by
14527 * the Level-of-Detail (lod) or use gradients for LOD
14528 * computation.
14529 *
14530 * read_imagef returns floating-point values in the
14531 * range [0.0 ... 1.0] for image objects created with
14532 * image_channel_data_type set to one of the predefined
14533 * packed formats or CL_UNORM_INT8, or
14534 * CL_UNORM_INT16.
14535 *
14536 * read_imagef returns floating-point values in the
14537 * range [-1.0 ... 1.0] for image objects created with
14538 * image_channel_data_type set to CL_SNORM_INT8,
14539 * or CL_SNORM_INT16.
14540 *
14541 * read_imagef returns floating-point values for image
14542 * objects created with image_channel_data_type set to
14543 * CL_HALF_FLOAT or CL_FLOAT.
14544 *
14545 * read_imagei and read_imageui return
14546 * unnormalized signed integer and unsigned integer
14547 * values respectively. Each channel will be stored in a
14548 * 32-bit integer.
14549 *
14550 * read_imagei can only be used with image objects
14551 * created with image_channel_data_type set to one of
14552 * the following values:
14553 * CL_SIGNED_INT8,
14554 * CL_SIGNED_INT16 and
14555 * CL_SIGNED_INT32.
14556 * If the image_channel_data_type is not one of the
14557 * above values, the values returned by read_imagei
14558 * are undefined.
14559 *
14560 * read_imageui can only be used with image objects
14561 * created with image_channel_data_type set to one of
14562 * the following values:
14563 * CL_UNSIGNED_INT8,
14564 * CL_UNSIGNED_INT16 and
14565 * CL_UNSIGNED_INT32.
14566 * If the image_channel_data_type is not one of the
14567 * above values, the values returned by read_imageui
14568 * are undefined.
14569 *
14570 * The read_image{i|ui} calls support a nearest filter
14571 * only. The filter_mode specified in sampler
14572 * must be set to CLK_FILTER_NEAREST; otherwise
14573 * the values returned are undefined.
14574
14575 * The read_image{f|i|ui} calls that take
14576 * integer coordinates must use a sampler with
14577 * normalized coordinates set to
14578 * CLK_NORMALIZED_COORDS_FALSE and
14579 * addressing mode set to
14580 * CLK_ADDRESS_CLAMP_TO_EDGE,
14581 * CLK_ADDRESS_CLAMP or CLK_ADDRESS_NONE;
14582 * otherwise the values returned are undefined.
14583 *
14584 * Values returned by read_imagef for image objects
14585 * with image_channel_data_type values not specified
14586 * in the description above are undefined.
14587 */
14588
14589float4 __purefn __ovld read_imagef(read_only image2d_t image, sampler_t sampler, int2 coord);
14590float4 __purefn __ovld read_imagef(read_only image2d_t image, sampler_t sampler, float2 coord);
14591
14592int4 __purefn __ovld read_imagei(read_only image2d_t image, sampler_t sampler, int2 coord);
14593int4 __purefn __ovld read_imagei(read_only image2d_t image, sampler_t sampler, float2 coord);
14594uint4 __purefn __ovld read_imageui(read_only image2d_t image, sampler_t sampler, int2 coord);
14595uint4 __purefn __ovld read_imageui(read_only image2d_t image, sampler_t sampler, float2 coord);
14596
14597float4 __purefn __ovld read_imagef(read_only image3d_t image, sampler_t sampler, int4 coord);
14598float4 __purefn __ovld read_imagef(read_only image3d_t image, sampler_t sampler, float4 coord);
14599
14600int4 __purefn __ovld read_imagei(read_only image3d_t image, sampler_t sampler, int4 coord);
14601int4 __purefn __ovld read_imagei(read_only image3d_t image, sampler_t sampler, float4 coord);
14602uint4 __purefn __ovld read_imageui(read_only image3d_t image, sampler_t sampler, int4 coord);
14603uint4 __purefn __ovld read_imageui(read_only image3d_t image, sampler_t sampler, float4 coord);
14604
14605float4 __purefn __ovld read_imagef(read_only image2d_array_t image_array, sampler_t sampler, int4 coord);
14606float4 __purefn __ovld read_imagef(read_only image2d_array_t image_array, sampler_t sampler, float4 coord);
14607
14608int4 __purefn __ovld read_imagei(read_only image2d_array_t image_array, sampler_t sampler, int4 coord);
14609int4 __purefn __ovld read_imagei(read_only image2d_array_t image_array, sampler_t sampler, float4 coord);
14610uint4 __purefn __ovld read_imageui(read_only image2d_array_t image_array, sampler_t sampler, int4 coord);
14611uint4 __purefn __ovld read_imageui(read_only image2d_array_t image_array, sampler_t sampler, float4 coord);
14612
14613float4 __purefn __ovld read_imagef(read_only image1d_t image, sampler_t sampler, int coord);
14614float4 __purefn __ovld read_imagef(read_only image1d_t image, sampler_t sampler, float coord);
14615
14616int4 __purefn __ovld read_imagei(read_only image1d_t image, sampler_t sampler, int coord);
14617int4 __purefn __ovld read_imagei(read_only image1d_t image, sampler_t sampler, float coord);
14618uint4 __purefn __ovld read_imageui(read_only image1d_t image, sampler_t sampler, int coord);
14619uint4 __purefn __ovld read_imageui(read_only image1d_t image, sampler_t sampler, float coord);
14620
14621float4 __purefn __ovld read_imagef(read_only image1d_array_t image_array, sampler_t sampler, int2 coord);
14622float4 __purefn __ovld read_imagef(read_only image1d_array_t image_array, sampler_t sampler, float2 coord);
14623
14624int4 __purefn __ovld read_imagei(read_only image1d_array_t image_array, sampler_t sampler, int2 coord);
14625int4 __purefn __ovld read_imagei(read_only image1d_array_t image_array, sampler_t sampler, float2 coord);
14626uint4 __purefn __ovld read_imageui(read_only image1d_array_t image_array, sampler_t sampler, int2 coord);
14627uint4 __purefn __ovld read_imageui(read_only image1d_array_t image_array, sampler_t sampler, float2 coord);
14628
14629#ifdef cl_khr_depth_images
14630float __purefn __ovld read_imagef(read_only image2d_depth_t image, sampler_t sampler, float2 coord);
14631float __purefn __ovld read_imagef(read_only image2d_depth_t image, sampler_t sampler, int2 coord);
14632
14633float __purefn __ovld read_imagef(read_only image2d_array_depth_t image, sampler_t sampler, float4 coord);
14634float __purefn __ovld read_imagef(read_only image2d_array_depth_t image, sampler_t sampler, int4 coord);
14635#endif //cl_khr_depth_images
14636
14637#if defined(cl_khr_gl_msaa_sharing)
14638float4 __purefn __ovld read_imagef(read_only image2d_msaa_t image, int2 coord, int sample);
14639int4 __purefn __ovld read_imagei(read_only image2d_msaa_t image, int2 coord, int sample);
14640uint4 __purefn __ovld read_imageui(read_only image2d_msaa_t image, int2 coord, int sample);
14641
14642float __purefn __ovld read_imagef(read_only image2d_msaa_depth_t image, int2 coord, int sample);
14643
14644float4 __purefn __ovld read_imagef(read_only image2d_array_msaa_t image, int4 coord, int sample);
14645int4 __purefn __ovld read_imagei(read_only image2d_array_msaa_t image, int4 coord, int sample);
14646uint4 __purefn __ovld read_imageui(read_only image2d_array_msaa_t image, int4 coord, int sample);
14647
14648float __purefn __ovld read_imagef(read_only image2d_array_msaa_depth_t image, int4 coord, int sample);
14649#endif //cl_khr_gl_msaa_sharing
14650
14651// OpenCL Extension v2.0 s9.18 - Mipmaps
14652#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
14653#ifdef cl_khr_mipmap_image
14654
14655float4 __purefn __ovld read_imagef(read_only image1d_t image, sampler_t sampler, float coord, float lod);
14656int4 __purefn __ovld read_imagei(read_only image1d_t image, sampler_t sampler, float coord, float lod);
14657uint4 __purefn __ovld read_imageui(read_only image1d_t image, sampler_t sampler, float coord, float lod);
14658
14659float4 __purefn __ovld read_imagef(read_only image1d_array_t image_array, sampler_t sampler, float2 coord, float lod);
14660int4 __purefn __ovld read_imagei(read_only image1d_array_t image_array, sampler_t sampler, float2 coord, float lod);
14661uint4 __purefn __ovld read_imageui(read_only image1d_array_t image_array, sampler_t sampler, float2 coord, float lod);
14662
14663float4 __purefn __ovld read_imagef(read_only image2d_t image, sampler_t sampler, float2 coord, float lod);
14664int4 __purefn __ovld read_imagei(read_only image2d_t image, sampler_t sampler, float2 coord, float lod);
14665uint4 __purefn __ovld read_imageui(read_only image2d_t image, sampler_t sampler, float2 coord, float lod);
14666
14667float __purefn __ovld read_imagef(read_only image2d_depth_t image, sampler_t sampler, float2 coord, float lod);
14668
14669float4 __purefn __ovld read_imagef(read_only image2d_array_t image_array, sampler_t sampler, float4 coord, float lod);
14670int4 __purefn __ovld read_imagei(read_only image2d_array_t image_array, sampler_t sampler, float4 coord, float lod);
14671uint4 __purefn __ovld read_imageui(read_only image2d_array_t image_array, sampler_t sampler, float4 coord, float lod);
14672
14673float __purefn __ovld read_imagef(read_only image2d_array_depth_t image, sampler_t sampler, float4 coord, float lod);
14674
14675float4 __purefn __ovld read_imagef(read_only image3d_t image, sampler_t sampler, float4 coord, float lod);
14676int4 __purefn __ovld read_imagei(read_only image3d_t image, sampler_t sampler, float4 coord, float lod);
14677uint4 __purefn __ovld read_imageui(read_only image3d_t image, sampler_t sampler, float4 coord, float lod);
14678
14679float4 __purefn __ovld read_imagef(read_only image1d_t image, sampler_t sampler, float coord, float gradientX, float gradientY);
14680int4 __purefn __ovld read_imagei(read_only image1d_t image, sampler_t sampler, float coord, float gradientX, float gradientY);
14681uint4 __purefn __ovld read_imageui(read_only image1d_t image, sampler_t sampler, float coord, float gradientX, float gradientY);
14682
14683float4 __purefn __ovld read_imagef(read_only image1d_array_t image_array, sampler_t sampler, float2 coord, float gradientX, float gradientY);
14684int4 __purefn __ovld read_imagei(read_only image1d_array_t image_array, sampler_t sampler, float2 coord, float gradientX, float gradientY);
14685uint4 __purefn __ovld read_imageui(read_only image1d_array_t image_array, sampler_t sampler, float2 coord, float gradientX, float gradientY);
14686
14687float4 __purefn __ovld read_imagef(read_only image2d_t image, sampler_t sampler, float2 coord, float2 gradientX, float2 gradientY);
14688int4 __purefn __ovld read_imagei(read_only image2d_t image, sampler_t sampler, float2 coord, float2 gradientX, float2 gradientY);
14689uint4 __purefn __ovld read_imageui(read_only image2d_t image, sampler_t sampler, float2 coord, float2 gradientX, float2 gradientY);
14690
14691float __purefn __ovld read_imagef(read_only image2d_depth_t image, sampler_t sampler, float2 coord, float2 gradientX, float2 gradientY);
14692
14693float4 __purefn __ovld read_imagef(read_only image2d_array_t image_array, sampler_t sampler, float4 coord, float2 gradientX, float2 gradientY);
14694int4 __purefn __ovld read_imagei(read_only image2d_array_t image_array, sampler_t sampler, float4 coord, float2 gradientX, float2 gradientY);
14695uint4 __purefn __ovld read_imageui(read_only image2d_array_t image_array, sampler_t sampler, float4 coord, float2 gradientX, float2 gradientY);
14696
14697float __purefn __ovld read_imagef(read_only image2d_array_depth_t image, sampler_t sampler, float4 coord, float2 gradientX, float2 gradientY);
14698
14699float4 __purefn __ovld read_imagef(read_only image3d_t image, sampler_t sampler, float4 coord, float4 gradientX, float4 gradientY);
14700int4 __purefn __ovld read_imagei(read_only image3d_t image, sampler_t sampler, float4 coord, float4 gradientX, float4 gradientY);
14701uint4 __purefn __ovld read_imageui(read_only image3d_t image, sampler_t sampler, float4 coord, float4 gradientX, float4 gradientY);
14702
14703float4 __purefn __ovld read_imagef(read_only image1d_t image, sampler_t sampler, float coord, float lod);
14704int4 __purefn __ovld read_imagei(read_only image1d_t image, sampler_t sampler, float coord, float lod);
14705uint4 __purefn __ovld read_imageui(read_only image1d_t image, sampler_t sampler, float coord, float lod);
14706
14707float4 __purefn __ovld read_imagef(read_only image1d_array_t image_array, sampler_t sampler, float2 coord, float lod);
14708int4 __purefn __ovld read_imagei(read_only image1d_array_t image_array, sampler_t sampler, float2 coord, float lod);
14709uint4 __purefn __ovld read_imageui(read_only image1d_array_t image_array, sampler_t sampler, float2 coord, float lod);
14710
14711float4 __purefn __ovld read_imagef(read_only image2d_t image, sampler_t sampler, float2 coord, float lod);
14712int4 __purefn __ovld read_imagei(read_only image2d_t image, sampler_t sampler, float2 coord, float lod);
14713uint4 __purefn __ovld read_imageui(read_only image2d_t image, sampler_t sampler, float2 coord, float lod);
14714
14715float __purefn __ovld read_imagef(read_only image2d_depth_t image, sampler_t sampler, float2 coord, float lod);
14716
14717float4 __purefn __ovld read_imagef(read_only image2d_array_t image_array, sampler_t sampler, float4 coord, float lod);
14718int4 __purefn __ovld read_imagei(read_only image2d_array_t image_array, sampler_t sampler, float4 coord, float lod);
14719uint4 __purefn __ovld read_imageui(read_only image2d_array_t image_array, sampler_t sampler, float4 coord, float lod);
14720
14721float __purefn __ovld read_imagef(read_only image2d_array_depth_t image, sampler_t sampler, float4 coord, float lod);
14722
14723float4 __purefn __ovld read_imagef(read_only image3d_t image, sampler_t sampler, float4 coord, float lod);
14724int4 __purefn __ovld read_imagei(read_only image3d_t image, sampler_t sampler, float4 coord, float lod);
14725uint4 __purefn __ovld read_imageui(read_only image3d_t image, sampler_t sampler, float4 coord, float lod);
14726
14727#endif //cl_khr_mipmap_image
14728#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
14729
14730/**
14731* Sampler-less Image Access
14732*/
14733
14734float4 __purefn __ovld read_imagef(read_only image1d_t image, int coord);
14735int4 __purefn __ovld read_imagei(read_only image1d_t image, int coord);
14736uint4 __purefn __ovld read_imageui(read_only image1d_t image, int coord);
14737
14738float4 __purefn __ovld read_imagef(read_only image1d_buffer_t image, int coord);
14739int4 __purefn __ovld read_imagei(read_only image1d_buffer_t image, int coord);
14740uint4 __purefn __ovld read_imageui(read_only image1d_buffer_t image, int coord);
14741
14742float4 __purefn __ovld read_imagef(read_only image1d_array_t image, int2 coord);
14743int4 __purefn __ovld read_imagei(read_only image1d_array_t image, int2 coord);
14744uint4 __purefn __ovld read_imageui(read_only image1d_array_t image, int2 coord);
14745
14746float4 __purefn __ovld read_imagef(read_only image2d_t image, int2 coord);
14747int4 __purefn __ovld read_imagei(read_only image2d_t image, int2 coord);
14748uint4 __purefn __ovld read_imageui(read_only image2d_t image, int2 coord);
14749
14750float4 __purefn __ovld read_imagef(read_only image2d_array_t image, int4 coord);
14751int4 __purefn __ovld read_imagei(read_only image2d_array_t image, int4 coord);
14752uint4 __purefn __ovld read_imageui(read_only image2d_array_t image, int4 coord);
14753
14754#ifdef cl_khr_depth_images
14755float __purefn __ovld read_imagef(read_only image2d_depth_t image, int2 coord);
14756float __purefn __ovld read_imagef(read_only image2d_array_depth_t image, int4 coord);
14757#endif //cl_khr_depth_images
14758
14759float4 __purefn __ovld read_imagef(read_only image3d_t image, int4 coord);
14760int4 __purefn __ovld read_imagei(read_only image3d_t image, int4 coord);
14761uint4 __purefn __ovld read_imageui(read_only image3d_t image, int4 coord);
14762
14763// Image read functions returning half4 type
14764#ifdef cl_khr_fp16
14765half4 __purefn __ovld read_imageh(read_only image1d_t image, sampler_t sampler, int coord);
14766half4 __purefn __ovld read_imageh(read_only image1d_t image, sampler_t sampler, float coord);
14767half4 __purefn __ovld read_imageh(read_only image1d_array_t image, sampler_t sampler, int2 coord);
14768half4 __purefn __ovld read_imageh(read_only image1d_array_t image, sampler_t sampler, float2 coord);
14769half4 __purefn __ovld read_imageh(read_only image2d_t image, sampler_t sampler, int2 coord);
14770half4 __purefn __ovld read_imageh(read_only image2d_t image, sampler_t sampler, float2 coord);
14771half4 __purefn __ovld read_imageh(read_only image3d_t image, sampler_t sampler, int4 coord);
14772half4 __purefn __ovld read_imageh(read_only image3d_t image, sampler_t sampler, float4 coord);
14773half4 __purefn __ovld read_imageh(read_only image2d_array_t image, sampler_t sampler, int4 coord);
14774half4 __purefn __ovld read_imageh(read_only image2d_array_t image, sampler_t sampler, float4 coord);
14775half4 __purefn __ovld read_imageh(read_only image1d_t image, int coord);
14776half4 __purefn __ovld read_imageh(read_only image2d_t image, int2 coord);
14777half4 __purefn __ovld read_imageh(read_only image3d_t image, int4 coord);
14778half4 __purefn __ovld read_imageh(read_only image1d_array_t image, int2 coord);
14779half4 __purefn __ovld read_imageh(read_only image2d_array_t image, int4 coord);
14780half4 __purefn __ovld read_imageh(read_only image1d_buffer_t image, int coord);
14781#endif //cl_khr_fp16
14782
14783// Image read functions for read_write images
14784#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
14785float4 __purefn __ovld read_imagef(read_write image1d_t image, int coord);
14786int4 __purefn __ovld read_imagei(read_write image1d_t image, int coord);
14787uint4 __purefn __ovld read_imageui(read_write image1d_t image, int coord);
14788
14789float4 __purefn __ovld read_imagef(read_write image1d_buffer_t image, int coord);
14790int4 __purefn __ovld read_imagei(read_write image1d_buffer_t image, int coord);
14791uint4 __purefn __ovld read_imageui(read_write image1d_buffer_t image, int coord);
14792
14793float4 __purefn __ovld read_imagef(read_write image1d_array_t image, int2 coord);
14794int4 __purefn __ovld read_imagei(read_write image1d_array_t image, int2 coord);
14795uint4 __purefn __ovld read_imageui(read_write image1d_array_t image, int2 coord);
14796
14797float4 __purefn __ovld read_imagef(read_write image2d_t image, int2 coord);
14798int4 __purefn __ovld read_imagei(read_write image2d_t image, int2 coord);
14799uint4 __purefn __ovld read_imageui(read_write image2d_t image, int2 coord);
14800
14801float4 __purefn __ovld read_imagef(read_write image2d_array_t image, int4 coord);
14802int4 __purefn __ovld read_imagei(read_write image2d_array_t image, int4 coord);
14803uint4 __purefn __ovld read_imageui(read_write image2d_array_t image, int4 coord);
14804
14805float4 __purefn __ovld read_imagef(read_write image3d_t image, int4 coord);
14806int4 __purefn __ovld read_imagei(read_write image3d_t image, int4 coord);
14807uint4 __purefn __ovld read_imageui(read_write image3d_t image, int4 coord);
14808
14809#ifdef cl_khr_depth_images
14810float __purefn __ovld read_imagef(read_write image2d_depth_t image, int2 coord);
14811float __purefn __ovld read_imagef(read_write image2d_array_depth_t image, int4 coord);
14812#endif //cl_khr_depth_images
14813
14814#if cl_khr_gl_msaa_sharing
14815float4 __purefn __ovld read_imagef(read_write image2d_msaa_t image, int2 coord, int sample);
14816int4 __purefn __ovld read_imagei(read_write image2d_msaa_t image, int2 coord, int sample);
14817uint4 __purefn __ovld read_imageui(read_write image2d_msaa_t image, int2 coord, int sample);
14818
14819float4 __purefn __ovld read_imagef(read_write image2d_array_msaa_t image, int4 coord, int sample);
14820int4 __purefn __ovld read_imagei(read_write image2d_array_msaa_t image, int4 coord, int sample);
14821uint4 __purefn __ovld read_imageui(read_write image2d_array_msaa_t image, int4 coord, int sample);
14822
14823float __purefn __ovld read_imagef(read_write image2d_msaa_depth_t image, int2 coord, int sample);
14824float __purefn __ovld read_imagef(read_write image2d_array_msaa_depth_t image, int4 coord, int sample);
14825#endif //cl_khr_gl_msaa_sharing
14826
14827#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
14828#ifdef cl_khr_mipmap_image
14829float4 __purefn __ovld read_imagef(read_write image1d_t image, sampler_t sampler, float coord, float lod);
14830int4 __purefn __ovld read_imagei(read_write image1d_t image, sampler_t sampler, float coord, float lod);
14831uint4 __purefn __ovld read_imageui(read_write image1d_t image, sampler_t sampler, float coord, float lod);
14832
14833float4 __purefn __ovld read_imagef(read_write image1d_array_t image_array, sampler_t sampler, float2 coord, float lod);
14834int4 __purefn __ovld read_imagei(read_write image1d_array_t image_array, sampler_t sampler, float2 coord, float lod);
14835uint4 __purefn __ovld read_imageui(read_write image1d_array_t image_array, sampler_t sampler, float2 coord, float lod);
14836
14837float4 __purefn __ovld read_imagef(read_write image2d_t image, sampler_t sampler, float2 coord, float lod);
14838int4 __purefn __ovld read_imagei(read_write image2d_t image, sampler_t sampler, float2 coord, float lod);
14839uint4 __purefn __ovld read_imageui(read_write image2d_t image, sampler_t sampler, float2 coord, float lod);
14840
14841float __purefn __ovld read_imagef(read_write image2d_depth_t image, sampler_t sampler, float2 coord, float lod);
14842
14843float4 __purefn __ovld read_imagef(read_write image2d_array_t image_array, sampler_t sampler, float4 coord, float lod);
14844int4 __purefn __ovld read_imagei(read_write image2d_array_t image_array, sampler_t sampler, float4 coord, float lod);
14845uint4 __purefn __ovld read_imageui(read_write image2d_array_t image_array, sampler_t sampler, float4 coord, float lod);
14846
14847float __purefn __ovld read_imagef(read_write image2d_array_depth_t image, sampler_t sampler, float4 coord, float lod);
14848
14849float4 __purefn __ovld read_imagef(read_write image3d_t image, sampler_t sampler, float4 coord, float lod);
14850int4 __purefn __ovld read_imagei(read_write image3d_t image, sampler_t sampler, float4 coord, float lod);
14851uint4 __purefn __ovld read_imageui(read_write image3d_t image, sampler_t sampler, float4 coord, float lod);
14852
14853float4 __purefn __ovld read_imagef(read_write image1d_t image, sampler_t sampler, float coord, float gradientX, float gradientY);
14854int4 __purefn __ovld read_imagei(read_write image1d_t image, sampler_t sampler, float coord, float gradientX, float gradientY);
14855uint4 __purefn __ovld read_imageui(read_write image1d_t image, sampler_t sampler, float coord, float gradientX, float gradientY);
14856
14857float4 __purefn __ovld read_imagef(read_write image1d_array_t image_array, sampler_t sampler, float2 coord, float gradientX, float gradientY);
14858int4 __purefn __ovld read_imagei(read_write image1d_array_t image_array, sampler_t sampler, float2 coord, float gradientX, float gradientY);
14859uint4 __purefn __ovld read_imageui(read_write image1d_array_t image_array, sampler_t sampler, float2 coord, float gradientX, float gradientY);
14860
14861float4 __purefn __ovld read_imagef(read_write image2d_t image, sampler_t sampler, float2 coord, float2 gradientX, float2 gradientY);
14862int4 __purefn __ovld read_imagei(read_write image2d_t image, sampler_t sampler, float2 coord, float2 gradientX, float2 gradientY);
14863uint4 __purefn __ovld read_imageui(read_write image2d_t image, sampler_t sampler, float2 coord, float2 gradientX, float2 gradientY);
14864
14865float __purefn __ovld read_imagef(read_write image2d_depth_t image, sampler_t sampler, float2 coord, float2 gradientX, float2 gradientY);
14866
14867float4 __purefn __ovld read_imagef(read_write image2d_array_t image_array, sampler_t sampler, float4 coord, float2 gradientX, float2 gradientY);
14868int4 __purefn __ovld read_imagei(read_write image2d_array_t image_array, sampler_t sampler, float4 coord, float2 gradientX, float2 gradientY);
14869uint4 __purefn __ovld read_imageui(read_write image2d_array_t image_array, sampler_t sampler, float4 coord, float2 gradientX, float2 gradientY);
14870
14871float __purefn __ovld read_imagef(read_write image2d_array_depth_t image, sampler_t sampler, float4 coord, float2 gradientX, float2 gradientY);
14872
14873float4 __purefn __ovld read_imagef(read_write image3d_t image, sampler_t sampler, float4 coord, float4 gradientX, float4 gradientY);
14874int4 __purefn __ovld read_imagei(read_write image3d_t image, sampler_t sampler, float4 coord, float4 gradientX, float4 gradientY);
14875uint4 __purefn __ovld read_imageui(read_write image3d_t image, sampler_t sampler, float4 coord, float4 gradientX, float4 gradientY);
14876
14877float4 __purefn __ovld read_imagef(read_write image1d_t image, sampler_t sampler, float coord, float lod);
14878int4 __purefn __ovld read_imagei(read_write image1d_t image, sampler_t sampler, float coord, float lod);
14879uint4 __purefn __ovld read_imageui(read_write image1d_t image, sampler_t sampler, float coord, float lod);
14880
14881float4 __purefn __ovld read_imagef(read_write image1d_array_t image_array, sampler_t sampler, float2 coord, float lod);
14882int4 __purefn __ovld read_imagei(read_write image1d_array_t image_array, sampler_t sampler, float2 coord, float lod);
14883uint4 __purefn __ovld read_imageui(read_write image1d_array_t image_array, sampler_t sampler, float2 coord, float lod);
14884
14885float4 __purefn __ovld read_imagef(read_write image2d_t image, sampler_t sampler, float2 coord, float lod);
14886int4 __purefn __ovld read_imagei(read_write image2d_t image, sampler_t sampler, float2 coord, float lod);
14887uint4 __purefn __ovld read_imageui(read_write image2d_t image, sampler_t sampler, float2 coord, float lod);
14888
14889float __purefn __ovld read_imagef(read_write image2d_depth_t image, sampler_t sampler, float2 coord, float lod);
14890
14891float4 __purefn __ovld read_imagef(read_write image2d_array_t image_array, sampler_t sampler, float4 coord, float lod);
14892int4 __purefn __ovld read_imagei(read_write image2d_array_t image_array, sampler_t sampler, float4 coord, float lod);
14893uint4 __purefn __ovld read_imageui(read_write image2d_array_t image_array, sampler_t sampler, float4 coord, float lod);
14894
14895float __purefn __ovld read_imagef(read_write image2d_array_depth_t image, sampler_t sampler, float4 coord, float lod);
14896
14897float4 __purefn __ovld read_imagef(read_write image3d_t image, sampler_t sampler, float4 coord, float lod);
14898int4 __purefn __ovld read_imagei(read_write image3d_t image, sampler_t sampler, float4 coord, float lod);
14899uint4 __purefn __ovld read_imageui(read_write image3d_t image, sampler_t sampler, float4 coord, float lod);
14900#endif //cl_khr_mipmap_image
14901#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
14902
14903// Image read functions returning half4 type
14904#ifdef cl_khr_fp16
14905half4 __purefn __ovld read_imageh(read_write image1d_t image, int coord);
14906half4 __purefn __ovld read_imageh(read_write image2d_t image, int2 coord);
14907half4 __purefn __ovld read_imageh(read_write image3d_t image, int4 coord);
14908half4 __purefn __ovld read_imageh(read_write image1d_array_t image, int2 coord);
14909half4 __purefn __ovld read_imageh(read_write image2d_array_t image, int4 coord);
14910half4 __purefn __ovld read_imageh(read_write image1d_buffer_t image, int coord);
14911#endif //cl_khr_fp16
14912#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
14913
14914/**
14915 * Write color value to location specified by coordinate
14916 * (coord.x, coord.y) in the 2D image object specified by image.
14917 * (coord.x, coord.y) are considered to be unnormalized coordinates
14918 * and must be in the range 0 ... image width - 1, and 0
14919 * ... image height - 1.
14920
14921 * Write color value to location specified by coordinate
14922 * (coord.x, coord.y) in the 2D image object specified by index
14923 * (coord.z) of the 2D image array object image_array.
14924 * (coord.x, coord.y) are considered to be unnormalized
14925 * coordinates and must be in the range 0 ... image width
14926 * - 1.
14927 *
14928 * Write color value to location specified by coordinate
14929 * (coord) in the 1D image (buffer) object specified by image.
14930 * coord is considered to be unnormalized coordinates
14931 * and must be in the range 0 ... image width - 1.
14932 *
14933 * Write color value to location specified by coordinate
14934 * (coord.x) in the 1D image object specified by index
14935 * (coord.y) of the 1D image array object image_array.
14936 * x is considered to be unnormalized coordinates
14937 * and must be in the range 0 ... image width - 1.
14938 *
14939 * Write color value to location specified by coordinate
14940 * (coord.x, coord.y, coord.z) in the 3D image object specified by image.
14941 * coord.x & coord.y are considered to be unnormalized coordinates
14942 * and must be in the range 0 ... image width - 1, and 0
14943 * ... image height - 1.
14944 *
14945 * For mipmap images, use mip-level specified by lod.
14946 *
14947 * Appropriate data format conversion to the specified
14948 * image format is done before writing the color value.
14949 *
14950 * write_imagef can only be used with image objects
14951 * created with image_channel_data_type set to one of
14952 * the pre-defined packed formats or set to
14953 * CL_SNORM_INT8, CL_UNORM_INT8,
14954 * CL_SNORM_INT16, CL_UNORM_INT16,
14955 * CL_HALF_FLOAT or CL_FLOAT. Appropriate data
14956 * format conversion will be done to convert channel
14957 * data from a floating-point value to actual data format
14958 * in which the channels are stored.
14959 *
14960 * write_imagei can only be used with image objects
14961 * created with image_channel_data_type set to one of
14962 * the following values:
14963 * CL_SIGNED_INT8,
14964 * CL_SIGNED_INT16 and
14965 * CL_SIGNED_INT32.
14966 *
14967 * write_imageui can only be used with image objects
14968 * created with image_channel_data_type set to one of
14969 * the following values:
14970 * CL_UNSIGNED_INT8,
14971 * CL_UNSIGNED_INT16 and
14972 * CL_UNSIGNED_INT32.
14973 *
14974 * The behavior of write_imagef, write_imagei and
14975 * write_imageui for image objects created with
14976 * image_channel_data_type values not specified in
14977 * the description above or with (x, y) coordinate
14978 * values that are not in the range (0 ... image width -1,
14979 * 0 ... image height - 1), respectively, is undefined.
14980 */
14981void __ovld write_imagef(write_only image2d_t image, int2 coord, float4 color);
14982void __ovld write_imagei(write_only image2d_t image, int2 coord, int4 color);
14983void __ovld write_imageui(write_only image2d_t image, int2 coord, uint4 color);
14984
14985void __ovld write_imagef(write_only image2d_array_t image_array, int4 coord, float4 color);
14986void __ovld write_imagei(write_only image2d_array_t image_array, int4 coord, int4 color);
14987void __ovld write_imageui(write_only image2d_array_t image_array, int4 coord, uint4 color);
14988
14989void __ovld write_imagef(write_only image1d_t image, int coord, float4 color);
14990void __ovld write_imagei(write_only image1d_t image, int coord, int4 color);
14991void __ovld write_imageui(write_only image1d_t image, int coord, uint4 color);
14992
14993void __ovld write_imagef(write_only image1d_buffer_t image, int coord, float4 color);
14994void __ovld write_imagei(write_only image1d_buffer_t image, int coord, int4 color);
14995void __ovld write_imageui(write_only image1d_buffer_t image, int coord, uint4 color);
14996
14997void __ovld write_imagef(write_only image1d_array_t image_array, int2 coord, float4 color);
14998void __ovld write_imagei(write_only image1d_array_t image_array, int2 coord, int4 color);
14999void __ovld write_imageui(write_only image1d_array_t image_array, int2 coord, uint4 color);
15000
15001#ifdef cl_khr_3d_image_writes
15002void __ovld write_imagef(write_only image3d_t image, int4 coord, float4 color);
15003void __ovld write_imagei(write_only image3d_t image, int4 coord, int4 color);
15004void __ovld write_imageui(write_only image3d_t image, int4 coord, uint4 color);
15005#endif
15006
15007#ifdef cl_khr_depth_images
15008void __ovld write_imagef(write_only image2d_depth_t image, int2 coord, float color);
15009void __ovld write_imagef(write_only image2d_array_depth_t image, int4 coord, float color);
15010#endif //cl_khr_depth_images
15011
15012// OpenCL Extension v2.0 s9.18 - Mipmaps
15013#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15014#ifdef cl_khr_mipmap_image
15015void __ovld write_imagef(write_only image1d_t image, int coord, int lod, float4 color);
15016void __ovld write_imagei(write_only image1d_t image, int coord, int lod, int4 color);
15017void __ovld write_imageui(write_only image1d_t image, int coord, int lod, uint4 color);
15018
15019void __ovld write_imagef(write_only image1d_array_t image_array, int2 coord, int lod, float4 color);
15020void __ovld write_imagei(write_only image1d_array_t image_array, int2 coord, int lod, int4 color);
15021void __ovld write_imageui(write_only image1d_array_t image_array, int2 coord, int lod, uint4 color);
15022
15023void __ovld write_imagef(write_only image2d_t image, int2 coord, int lod, float4 color);
15024void __ovld write_imagei(write_only image2d_t image, int2 coord, int lod, int4 color);
15025void __ovld write_imageui(write_only image2d_t image, int2 coord, int lod, uint4 color);
15026
15027void __ovld write_imagef(write_only image2d_array_t image_array, int4 coord, int lod, float4 color);
15028void __ovld write_imagei(write_only image2d_array_t image_array, int4 coord, int lod, int4 color);
15029void __ovld write_imageui(write_only image2d_array_t image_array, int4 coord, int lod, uint4 color);
15030
15031void __ovld write_imagef(write_only image2d_depth_t image, int2 coord, int lod, float color);
15032void __ovld write_imagef(write_only image2d_array_depth_t image, int4 coord, int lod, float color);
15033
15034#ifdef cl_khr_3d_image_writes
15035void __ovld write_imagef(write_only image3d_t image, int4 coord, int lod, float4 color);
15036void __ovld write_imagei(write_only image3d_t image, int4 coord, int lod, int4 color);
15037void __ovld write_imageui(write_only image3d_t image, int4 coord, int lod, uint4 color);
15038#endif
15039#endif //cl_khr_mipmap_image
15040#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15041
15042// Image write functions for half4 type
15043#ifdef cl_khr_fp16
15044void __ovld write_imageh(write_only image1d_t image, int coord, half4 color);
15045void __ovld write_imageh(write_only image2d_t image, int2 coord, half4 color);
15046#ifdef cl_khr_3d_image_writes
15047void __ovld write_imageh(write_only image3d_t image, int4 coord, half4 color);
15048#endif
15049void __ovld write_imageh(write_only image1d_array_t image, int2 coord, half4 color);
15050void __ovld write_imageh(write_only image2d_array_t image, int4 coord, half4 color);
15051void __ovld write_imageh(write_only image1d_buffer_t image, int coord, half4 color);
15052#endif //cl_khr_fp16
15053
15054// Image write functions for read_write images
15055#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15056void __ovld write_imagef(read_write image2d_t image, int2 coord, float4 color);
15057void __ovld write_imagei(read_write image2d_t image, int2 coord, int4 color);
15058void __ovld write_imageui(read_write image2d_t image, int2 coord, uint4 color);
15059
15060void __ovld write_imagef(read_write image2d_array_t image_array, int4 coord, float4 color);
15061void __ovld write_imagei(read_write image2d_array_t image_array, int4 coord, int4 color);
15062void __ovld write_imageui(read_write image2d_array_t image_array, int4 coord, uint4 color);
15063
15064void __ovld write_imagef(read_write image1d_t image, int coord, float4 color);
15065void __ovld write_imagei(read_write image1d_t image, int coord, int4 color);
15066void __ovld write_imageui(read_write image1d_t image, int coord, uint4 color);
15067
15068void __ovld write_imagef(read_write image1d_buffer_t image, int coord, float4 color);
15069void __ovld write_imagei(read_write image1d_buffer_t image, int coord, int4 color);
15070void __ovld write_imageui(read_write image1d_buffer_t image, int coord, uint4 color);
15071
15072void __ovld write_imagef(read_write image1d_array_t image_array, int2 coord, float4 color);
15073void __ovld write_imagei(read_write image1d_array_t image_array, int2 coord, int4 color);
15074void __ovld write_imageui(read_write image1d_array_t image_array, int2 coord, uint4 color);
15075
15076#ifdef cl_khr_3d_image_writes
15077void __ovld write_imagef(read_write image3d_t image, int4 coord, float4 color);
15078void __ovld write_imagei(read_write image3d_t image, int4 coord, int4 color);
15079void __ovld write_imageui(read_write image3d_t image, int4 coord, uint4 color);
15080#endif
15081
15082#ifdef cl_khr_depth_images
15083void __ovld write_imagef(read_write image2d_depth_t image, int2 coord, float color);
15084void __ovld write_imagef(read_write image2d_array_depth_t image, int4 coord, float color);
15085#endif //cl_khr_depth_images
15086
15087#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15088#ifdef cl_khr_mipmap_image
15089void __ovld write_imagef(read_write image1d_t image, int coord, int lod, float4 color);
15090void __ovld write_imagei(read_write image1d_t image, int coord, int lod, int4 color);
15091void __ovld write_imageui(read_write image1d_t image, int coord, int lod, uint4 color);
15092
15093void __ovld write_imagef(read_write image1d_array_t image_array, int2 coord, int lod, float4 color);
15094void __ovld write_imagei(read_write image1d_array_t image_array, int2 coord, int lod, int4 color);
15095void __ovld write_imageui(read_write image1d_array_t image_array, int2 coord, int lod, uint4 color);
15096
15097void __ovld write_imagef(read_write image2d_t image, int2 coord, int lod, float4 color);
15098void __ovld write_imagei(read_write image2d_t image, int2 coord, int lod, int4 color);
15099void __ovld write_imageui(read_write image2d_t image, int2 coord, int lod, uint4 color);
15100
15101void __ovld write_imagef(read_write image2d_array_t image_array, int4 coord, int lod, float4 color);
15102void __ovld write_imagei(read_write image2d_array_t image_array, int4 coord, int lod, int4 color);
15103void __ovld write_imageui(read_write image2d_array_t image_array, int4 coord, int lod, uint4 color);
15104
15105void __ovld write_imagef(read_write image2d_depth_t image, int2 coord, int lod, float color);
15106void __ovld write_imagef(read_write image2d_array_depth_t image, int4 coord, int lod, float color);
15107
15108#ifdef cl_khr_3d_image_writes
15109void __ovld write_imagef(read_write image3d_t image, int4 coord, int lod, float4 color);
15110void __ovld write_imagei(read_write image3d_t image, int4 coord, int lod, int4 color);
15111void __ovld write_imageui(read_write image3d_t image, int4 coord, int lod, uint4 color);
15112#endif
15113#endif //cl_khr_mipmap_image
15114#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15115
15116// Image write functions for half4 type
15117#ifdef cl_khr_fp16
15118void __ovld write_imageh(read_write image1d_t image, int coord, half4 color);
15119void __ovld write_imageh(read_write image2d_t image, int2 coord, half4 color);
15120#ifdef cl_khr_3d_image_writes
15121void __ovld write_imageh(read_write image3d_t image, int4 coord, half4 color);
15122#endif
15123void __ovld write_imageh(read_write image1d_array_t image, int2 coord, half4 color);
15124void __ovld write_imageh(read_write image2d_array_t image, int4 coord, half4 color);
15125void __ovld write_imageh(read_write image1d_buffer_t image, int coord, half4 color);
15126#endif //cl_khr_fp16
15127#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15128
15129// Note: In OpenCL v1.0/1.1/1.2, image argument of image query builtin functions does not have
15130// access qualifier, which by default assume read_only access qualifier. Image query builtin
15131// functions with write_only image argument should also be declared.
15132
15133/**
15134 * Return the image width in pixels.
15135 *
15136  */
15137int __ovld __cnfn get_image_width(read_only image1d_t image);
15138int __ovld __cnfn get_image_width(read_only image1d_buffer_t image);
15139int __ovld __cnfn get_image_width(read_only image2d_t image);
15140#ifdef cl_khr_3d_image_writes
15141int __ovld __cnfn get_image_width(read_only image3d_t image);
15142#endif
15143int __ovld __cnfn get_image_width(read_only image1d_array_t image);
15144int __ovld __cnfn get_image_width(read_only image2d_array_t image);
15145#ifdef cl_khr_depth_images
15146int __ovld __cnfn get_image_width(read_only image2d_depth_t image);
15147int __ovld __cnfn get_image_width(read_only image2d_array_depth_t image);
15148#endif //cl_khr_depth_images
15149#if defined(cl_khr_gl_msaa_sharing)
15150int __ovld __cnfn get_image_width(read_only image2d_msaa_t image);
15151int __ovld __cnfn get_image_width(read_only image2d_msaa_depth_t image);
15152int __ovld __cnfn get_image_width(read_only image2d_array_msaa_t image);
15153int __ovld __cnfn get_image_width(read_only image2d_array_msaa_depth_t image);
15154#endif //cl_khr_gl_msaa_sharing
15155
15156int __ovld __cnfn get_image_width(write_only image1d_t image);
15157int __ovld __cnfn get_image_width(write_only image1d_buffer_t image);
15158int __ovld __cnfn get_image_width(write_only image2d_t image);
15159#ifdef cl_khr_3d_image_writes
15160int __ovld __cnfn get_image_width(write_only image3d_t image);
15161#endif
15162int __ovld __cnfn get_image_width(write_only image1d_array_t image);
15163int __ovld __cnfn get_image_width(write_only image2d_array_t image);
15164#ifdef cl_khr_depth_images
15165int __ovld __cnfn get_image_width(write_only image2d_depth_t image);
15166int __ovld __cnfn get_image_width(write_only image2d_array_depth_t image);
15167#endif //cl_khr_depth_images
15168#if defined(cl_khr_gl_msaa_sharing)
15169int __ovld __cnfn get_image_width(write_only image2d_msaa_t image);
15170int __ovld __cnfn get_image_width(write_only image2d_msaa_depth_t image);
15171int __ovld __cnfn get_image_width(write_only image2d_array_msaa_t image);
15172int __ovld __cnfn get_image_width(write_only image2d_array_msaa_depth_t image);
15173#endif //cl_khr_gl_msaa_sharing
15174
15175#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15176int __ovld __cnfn get_image_width(read_write image1d_t image);
15177int __ovld __cnfn get_image_width(read_write image1d_buffer_t image);
15178int __ovld __cnfn get_image_width(read_write image2d_t image);
15179int __ovld __cnfn get_image_width(read_write image3d_t image);
15180int __ovld __cnfn get_image_width(read_write image1d_array_t image);
15181int __ovld __cnfn get_image_width(read_write image2d_array_t image);
15182#ifdef cl_khr_depth_images
15183int __ovld __cnfn get_image_width(read_write image2d_depth_t image);
15184int __ovld __cnfn get_image_width(read_write image2d_array_depth_t image);
15185#endif //cl_khr_depth_images
15186#if defined(cl_khr_gl_msaa_sharing)
15187int __ovld __cnfn get_image_width(read_write image2d_msaa_t image);
15188int __ovld __cnfn get_image_width(read_write image2d_msaa_depth_t image);
15189int __ovld __cnfn get_image_width(read_write image2d_array_msaa_t image);
15190int __ovld __cnfn get_image_width(read_write image2d_array_msaa_depth_t image);
15191#endif //cl_khr_gl_msaa_sharing
15192#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15193
15194/**
15195 * Return the image height in pixels.
15196 */
15197int __ovld __cnfn get_image_height(read_only image2d_t image);
15198int __ovld __cnfn get_image_height(read_only image3d_t image);
15199int __ovld __cnfn get_image_height(read_only image2d_array_t image);
15200#ifdef cl_khr_depth_images
15201int __ovld __cnfn get_image_height(read_only image2d_depth_t image);
15202int __ovld __cnfn get_image_height(read_only image2d_array_depth_t image);
15203#endif //cl_khr_depth_images
15204#if defined(cl_khr_gl_msaa_sharing)
15205int __ovld __cnfn get_image_height(read_only image2d_msaa_t image);
15206int __ovld __cnfn get_image_height(read_only image2d_msaa_depth_t image);
15207int __ovld __cnfn get_image_height(read_only image2d_array_msaa_t image);
15208int __ovld __cnfn get_image_height(read_only image2d_array_msaa_depth_t image);
15209#endif //cl_khr_gl_msaa_sharing
15210
15211int __ovld __cnfn get_image_height(write_only image2d_t image);
15212#ifdef cl_khr_3d_image_writes
15213int __ovld __cnfn get_image_height(write_only image3d_t image);
15214#endif
15215int __ovld __cnfn get_image_height(write_only image2d_array_t image);
15216#ifdef cl_khr_depth_images
15217int __ovld __cnfn get_image_height(write_only image2d_depth_t image);
15218int __ovld __cnfn get_image_height(write_only image2d_array_depth_t image);
15219#endif //cl_khr_depth_images
15220#if defined(cl_khr_gl_msaa_sharing)
15221int __ovld __cnfn get_image_height(write_only image2d_msaa_t image);
15222int __ovld __cnfn get_image_height(write_only image2d_msaa_depth_t image);
15223int __ovld __cnfn get_image_height(write_only image2d_array_msaa_t image);
15224int __ovld __cnfn get_image_height(write_only image2d_array_msaa_depth_t image);
15225#endif //cl_khr_gl_msaa_sharing
15226
15227#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15228int __ovld __cnfn get_image_height(read_write image2d_t image);
15229int __ovld __cnfn get_image_height(read_write image3d_t image);
15230int __ovld __cnfn get_image_height(read_write image2d_array_t image);
15231#ifdef cl_khr_depth_images
15232int __ovld __cnfn get_image_height(read_write image2d_depth_t image);
15233int __ovld __cnfn get_image_height(read_write image2d_array_depth_t image);
15234#endif //cl_khr_depth_images
15235#if defined(cl_khr_gl_msaa_sharing)
15236int __ovld __cnfn get_image_height(read_write image2d_msaa_t image);
15237int __ovld __cnfn get_image_height(read_write image2d_msaa_depth_t image);
15238int __ovld __cnfn get_image_height(read_write image2d_array_msaa_t image);
15239int __ovld __cnfn get_image_height(read_write image2d_array_msaa_depth_t image);
15240#endif //cl_khr_gl_msaa_sharing
15241#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15242
15243/**
15244 * Return the image depth in pixels.
15245 */
15246int __ovld __cnfn get_image_depth(read_only image3d_t image);
15247
15248#ifdef cl_khr_3d_image_writes
15249int __ovld __cnfn get_image_depth(write_only image3d_t image);
15250#endif
15251
15252#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15253int __ovld __cnfn get_image_depth(read_write image3d_t image);
15254#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15255
15256// OpenCL Extension v2.0 s9.18 - Mipmaps
15257#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15258#ifdef cl_khr_mipmap_image
15259/**
15260 * Return the image miplevels.
15261 */
15262
15263int __ovld get_image_num_mip_levels(read_only image1d_t image);
15264int __ovld get_image_num_mip_levels(read_only image2d_t image);
15265int __ovld get_image_num_mip_levels(read_only image3d_t image);
15266
15267int __ovld get_image_num_mip_levels(write_only image1d_t image);
15268int __ovld get_image_num_mip_levels(write_only image2d_t image);
15269#ifdef cl_khr_3d_image_writes
15270int __ovld get_image_num_mip_levels(write_only image3d_t image);
15271#endif
15272
15273int __ovld get_image_num_mip_levels(read_write image1d_t image);
15274int __ovld get_image_num_mip_levels(read_write image2d_t image);
15275int __ovld get_image_num_mip_levels(read_write image3d_t image);
15276
15277int __ovld get_image_num_mip_levels(read_only image1d_array_t image);
15278int __ovld get_image_num_mip_levels(read_only image2d_array_t image);
15279int __ovld get_image_num_mip_levels(read_only image2d_array_depth_t image);
15280int __ovld get_image_num_mip_levels(read_only image2d_depth_t image);
15281
15282int __ovld get_image_num_mip_levels(write_only image1d_array_t image);
15283int __ovld get_image_num_mip_levels(write_only image2d_array_t image);
15284int __ovld get_image_num_mip_levels(write_only image2d_array_depth_t image);
15285int __ovld get_image_num_mip_levels(write_only image2d_depth_t image);
15286
15287int __ovld get_image_num_mip_levels(read_write image1d_array_t image);
15288int __ovld get_image_num_mip_levels(read_write image2d_array_t image);
15289int __ovld get_image_num_mip_levels(read_write image2d_array_depth_t image);
15290int __ovld get_image_num_mip_levels(read_write image2d_depth_t image);
15291
15292#endif //cl_khr_mipmap_image
15293#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15294
15295/**
15296 * Return the channel data type. Valid values are:
15297 * CLK_SNORM_INT8
15298 * CLK_SNORM_INT16
15299 * CLK_UNORM_INT8
15300 * CLK_UNORM_INT16
15301 * CLK_UNORM_SHORT_565
15302 * CLK_UNORM_SHORT_555
15303 * CLK_UNORM_SHORT_101010
15304 * CLK_SIGNED_INT8
15305 * CLK_SIGNED_INT16
15306 * CLK_SIGNED_INT32
15307 * CLK_UNSIGNED_INT8
15308 * CLK_UNSIGNED_INT16
15309 * CLK_UNSIGNED_INT32
15310 * CLK_HALF_FLOAT
15311 * CLK_FLOAT
15312 */
15313
15314//
15315// Channel Datatype.
15316//
15317#define CLK_SNORM_INT8        0x10D0
15318#define CLK_SNORM_INT16       0x10D1
15319#define CLK_UNORM_INT8        0x10D2
15320#define CLK_UNORM_INT16       0x10D3
15321#define CLK_UNORM_SHORT_565   0x10D4
15322#define CLK_UNORM_SHORT_555   0x10D5
15323#define CLK_UNORM_INT_101010  0x10D6
15324#define CLK_SIGNED_INT8       0x10D7
15325#define CLK_SIGNED_INT16      0x10D8
15326#define CLK_SIGNED_INT32      0x10D9
15327#define CLK_UNSIGNED_INT8     0x10DA
15328#define CLK_UNSIGNED_INT16    0x10DB
15329#define CLK_UNSIGNED_INT32    0x10DC
15330#define CLK_HALF_FLOAT        0x10DD
15331#define CLK_FLOAT             0x10DE
15332#define CLK_UNORM_INT24       0x10DF
15333
15334int __ovld __cnfn get_image_channel_data_type(read_only image1d_t image);
15335int __ovld __cnfn get_image_channel_data_type(read_only image1d_buffer_t image);
15336int __ovld __cnfn get_image_channel_data_type(read_only image2d_t image);
15337int __ovld __cnfn get_image_channel_data_type(read_only image3d_t image);
15338int __ovld __cnfn get_image_channel_data_type(read_only image1d_array_t image);
15339int __ovld __cnfn get_image_channel_data_type(read_only image2d_array_t image);
15340#ifdef cl_khr_depth_images
15341int __ovld __cnfn get_image_channel_data_type(read_only image2d_depth_t image);
15342int __ovld __cnfn get_image_channel_data_type(read_only image2d_array_depth_t image);
15343#endif //cl_khr_depth_images
15344#if defined(cl_khr_gl_msaa_sharing)
15345int __ovld __cnfn get_image_channel_data_type(read_only image2d_msaa_t image);
15346int __ovld __cnfn get_image_channel_data_type(read_only image2d_msaa_depth_t image);
15347int __ovld __cnfn get_image_channel_data_type(read_only image2d_array_msaa_t image);
15348int __ovld __cnfn get_image_channel_data_type(read_only image2d_array_msaa_depth_t image);
15349#endif //cl_khr_gl_msaa_sharing
15350
15351int __ovld __cnfn get_image_channel_data_type(write_only image1d_t image);
15352int __ovld __cnfn get_image_channel_data_type(write_only image1d_buffer_t image);
15353int __ovld __cnfn get_image_channel_data_type(write_only image2d_t image);
15354#ifdef cl_khr_3d_image_writes
15355int __ovld __cnfn get_image_channel_data_type(write_only image3d_t image);
15356#endif
15357int __ovld __cnfn get_image_channel_data_type(write_only image1d_array_t image);
15358int __ovld __cnfn get_image_channel_data_type(write_only image2d_array_t image);
15359#ifdef cl_khr_depth_images
15360int __ovld __cnfn get_image_channel_data_type(write_only image2d_depth_t image);
15361int __ovld __cnfn get_image_channel_data_type(write_only image2d_array_depth_t image);
15362#endif //cl_khr_depth_images
15363#if defined(cl_khr_gl_msaa_sharing)
15364int __ovld __cnfn get_image_channel_data_type(write_only image2d_msaa_t image);
15365int __ovld __cnfn get_image_channel_data_type(write_only image2d_msaa_depth_t image);
15366int __ovld __cnfn get_image_channel_data_type(write_only image2d_array_msaa_t image);
15367int __ovld __cnfn get_image_channel_data_type(write_only image2d_array_msaa_depth_t image);
15368#endif //cl_khr_gl_msaa_sharing
15369
15370#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15371int __ovld __cnfn get_image_channel_data_type(read_write image1d_t image);
15372int __ovld __cnfn get_image_channel_data_type(read_write image1d_buffer_t image);
15373int __ovld __cnfn get_image_channel_data_type(read_write image2d_t image);
15374int __ovld __cnfn get_image_channel_data_type(read_write image3d_t image);
15375int __ovld __cnfn get_image_channel_data_type(read_write image1d_array_t image);
15376int __ovld __cnfn get_image_channel_data_type(read_write image2d_array_t image);
15377#ifdef cl_khr_depth_images
15378int __ovld __cnfn get_image_channel_data_type(read_write image2d_depth_t image);
15379int __ovld __cnfn get_image_channel_data_type(read_write image2d_array_depth_t image);
15380#endif //cl_khr_depth_images
15381#if defined(cl_khr_gl_msaa_sharing)
15382int __ovld __cnfn get_image_channel_data_type(read_write image2d_msaa_t image);
15383int __ovld __cnfn get_image_channel_data_type(read_write image2d_msaa_depth_t image);
15384int __ovld __cnfn get_image_channel_data_type(read_write image2d_array_msaa_t image);
15385int __ovld __cnfn get_image_channel_data_type(read_write image2d_array_msaa_depth_t image);
15386#endif //cl_khr_gl_msaa_sharing
15387#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15388
15389/**
15390 * Return the image channel order. Valid values are:
15391 * CLK_A
15392 * CLK_R
15393 * CLK_Rx
15394 * CLK_RG
15395 * CLK_RGx
15396 * CLK_RA
15397 * CLK_RGB
15398 * CLK_RGBx
15399 * CLK_RGBA
15400 * CLK_ARGB
15401 * CLK_BGRA
15402 * CLK_INTENSITY
15403 * CLK_LUMINANCE
15404 */
15405// Channel order, numbering must be aligned with cl_channel_order in cl.h
15406//
15407#define CLK_R         0x10B0
15408#define CLK_A         0x10B1
15409#define CLK_RG        0x10B2
15410#define CLK_RA        0x10B3
15411#define CLK_RGB       0x10B4
15412#define CLK_RGBA      0x10B5
15413#define CLK_BGRA      0x10B6
15414#define CLK_ARGB      0x10B7
15415#define CLK_INTENSITY 0x10B8
15416#define CLK_LUMINANCE 0x10B9
15417#define CLK_Rx                0x10BA
15418#define CLK_RGx               0x10BB
15419#define CLK_RGBx              0x10BC
15420#define CLK_DEPTH             0x10BD
15421#define CLK_DEPTH_STENCIL     0x10BE
15422#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15423#define CLK_sRGB              0x10BF
15424#define CLK_sRGBA             0x10C1
15425#define CLK_sRGBx             0x10C0
15426#define CLK_sBGRA             0x10C2
15427#define CLK_ABGR              0x10C3
15428#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15429
15430int __ovld __cnfn get_image_channel_order(read_only image1d_t image);
15431int __ovld __cnfn get_image_channel_order(read_only image1d_buffer_t image);
15432int __ovld __cnfn get_image_channel_order(read_only image2d_t image);
15433int __ovld __cnfn get_image_channel_order(read_only image3d_t image);
15434int __ovld __cnfn get_image_channel_order(read_only image1d_array_t image);
15435int __ovld __cnfn get_image_channel_order(read_only image2d_array_t image);
15436#ifdef cl_khr_depth_images
15437int __ovld __cnfn get_image_channel_order(read_only image2d_depth_t image);
15438int __ovld __cnfn get_image_channel_order(read_only image2d_array_depth_t image);
15439#endif //cl_khr_depth_images
15440#if defined(cl_khr_gl_msaa_sharing)
15441int __ovld __cnfn get_image_channel_order(read_only image2d_msaa_t image);
15442int __ovld __cnfn get_image_channel_order(read_only image2d_msaa_depth_t image);
15443int __ovld __cnfn get_image_channel_order(read_only image2d_array_msaa_t image);
15444int __ovld __cnfn get_image_channel_order(read_only image2d_array_msaa_depth_t image);
15445#endif //cl_khr_gl_msaa_sharing
15446
15447int __ovld __cnfn get_image_channel_order(write_only image1d_t image);
15448int __ovld __cnfn get_image_channel_order(write_only image1d_buffer_t image);
15449int __ovld __cnfn get_image_channel_order(write_only image2d_t image);
15450#ifdef cl_khr_3d_image_writes
15451int __ovld __cnfn get_image_channel_order(write_only image3d_t image);
15452#endif
15453int __ovld __cnfn get_image_channel_order(write_only image1d_array_t image);
15454int __ovld __cnfn get_image_channel_order(write_only image2d_array_t image);
15455#ifdef cl_khr_depth_images
15456int __ovld __cnfn get_image_channel_order(write_only image2d_depth_t image);
15457int __ovld __cnfn get_image_channel_order(write_only image2d_array_depth_t image);
15458#endif //cl_khr_depth_images
15459#if defined(cl_khr_gl_msaa_sharing)
15460int __ovld __cnfn get_image_channel_order(write_only image2d_msaa_t image);
15461int __ovld __cnfn get_image_channel_order(write_only image2d_msaa_depth_t image);
15462int __ovld __cnfn get_image_channel_order(write_only image2d_array_msaa_t image);
15463int __ovld __cnfn get_image_channel_order(write_only image2d_array_msaa_depth_t image);
15464#endif //cl_khr_gl_msaa_sharing
15465
15466#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15467int __ovld __cnfn get_image_channel_order(read_write image1d_t image);
15468int __ovld __cnfn get_image_channel_order(read_write image1d_buffer_t image);
15469int __ovld __cnfn get_image_channel_order(read_write image2d_t image);
15470int __ovld __cnfn get_image_channel_order(read_write image3d_t image);
15471int __ovld __cnfn get_image_channel_order(read_write image1d_array_t image);
15472int __ovld __cnfn get_image_channel_order(read_write image2d_array_t image);
15473#ifdef cl_khr_depth_images
15474int __ovld __cnfn get_image_channel_order(read_write image2d_depth_t image);
15475int __ovld __cnfn get_image_channel_order(read_write image2d_array_depth_t image);
15476#endif //cl_khr_depth_images
15477#if defined(cl_khr_gl_msaa_sharing)
15478int __ovld __cnfn get_image_channel_order(read_write image2d_msaa_t image);
15479int __ovld __cnfn get_image_channel_order(read_write image2d_msaa_depth_t image);
15480int __ovld __cnfn get_image_channel_order(read_write image2d_array_msaa_t image);
15481int __ovld __cnfn get_image_channel_order(read_write image2d_array_msaa_depth_t image);
15482#endif //cl_khr_gl_msaa_sharing
15483#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15484
15485/**
15486 * Return the 2D image width and height as an int2
15487 * type. The width is returned in the x component, and
15488 * the height in the y component.
15489 */
15490int2 __ovld __cnfn get_image_dim(read_only image2d_t image);
15491int2 __ovld __cnfn get_image_dim(read_only image2d_array_t image);
15492#ifdef cl_khr_depth_images
15493int2 __ovld __cnfn get_image_dim(read_only image2d_array_depth_t image);
15494int2 __ovld __cnfn get_image_dim(read_only image2d_depth_t image);
15495#endif //cl_khr_depth_images
15496#if defined(cl_khr_gl_msaa_sharing)
15497int2 __ovld __cnfn get_image_dim(read_only image2d_msaa_t image);
15498int2 __ovld __cnfn get_image_dim(read_only image2d_msaa_depth_t image);
15499int2 __ovld __cnfn get_image_dim(read_only image2d_array_msaa_t image);
15500int2 __ovld __cnfn get_image_dim(read_only image2d_array_msaa_depth_t image);
15501#endif //cl_khr_gl_msaa_sharing
15502
15503int2 __ovld __cnfn get_image_dim(write_only image2d_t image);
15504int2 __ovld __cnfn get_image_dim(write_only image2d_array_t image);
15505#ifdef cl_khr_depth_images
15506int2 __ovld __cnfn get_image_dim(write_only image2d_array_depth_t image);
15507int2 __ovld __cnfn get_image_dim(write_only image2d_depth_t image);
15508#endif //cl_khr_depth_images
15509#if defined(cl_khr_gl_msaa_sharing)
15510int2 __ovld __cnfn get_image_dim(write_only image2d_msaa_t image);
15511int2 __ovld __cnfn get_image_dim(write_only image2d_msaa_depth_t image);
15512int2 __ovld __cnfn get_image_dim(write_only image2d_array_msaa_t image);
15513int2 __ovld __cnfn get_image_dim(write_only image2d_array_msaa_depth_t image);
15514#endif //cl_khr_gl_msaa_sharing
15515
15516#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15517int2 __ovld __cnfn get_image_dim(read_write image2d_t image);
15518int2 __ovld __cnfn get_image_dim(read_write image2d_array_t image);
15519#ifdef cl_khr_depth_images
15520int2 __ovld __cnfn get_image_dim(read_write image2d_array_depth_t image);
15521int2 __ovld __cnfn get_image_dim(read_write image2d_depth_t image);
15522#endif //cl_khr_depth_images
15523#if defined(cl_khr_gl_msaa_sharing)
15524int2 __ovld __cnfn get_image_dim(read_write image2d_msaa_t image);
15525int2 __ovld __cnfn get_image_dim(read_write image2d_msaa_depth_t image);
15526int2 __ovld __cnfn get_image_dim(read_write image2d_array_msaa_t image);
15527int2 __ovld __cnfn get_image_dim(read_write image2d_array_msaa_depth_t image);
15528#endif //cl_khr_gl_msaa_sharing
15529#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15530
15531/**
15532 * Return the 3D image width, height, and depth as an
15533 * int4 type. The width is returned in the x
15534 * component, height in the y component, depth in the z
15535 * component and the w component is 0.
15536 */
15537int4 __ovld __cnfn get_image_dim(read_only image3d_t image);
15538#ifdef cl_khr_3d_image_writes
15539int4 __ovld __cnfn get_image_dim(write_only image3d_t image);
15540#endif
15541#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15542int4 __ovld __cnfn get_image_dim(read_write image3d_t image);
15543#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15544
15545/**
15546 * Return the image array size.
15547 */
15548
15549size_t __ovld __cnfn get_image_array_size(read_only image1d_array_t image_array);
15550size_t __ovld __cnfn get_image_array_size(read_only image2d_array_t image_array);
15551#ifdef cl_khr_depth_images
15552size_t __ovld __cnfn get_image_array_size(read_only image2d_array_depth_t image_array);
15553#endif //cl_khr_depth_images
15554#if defined(cl_khr_gl_msaa_sharing)
15555size_t __ovld __cnfn get_image_array_size(read_only image2d_array_msaa_t image_array);
15556size_t __ovld __cnfn get_image_array_size(read_only image2d_array_msaa_depth_t image_array);
15557#endif //cl_khr_gl_msaa_sharing
15558
15559size_t __ovld __cnfn get_image_array_size(write_only image1d_array_t image_array);
15560size_t __ovld __cnfn get_image_array_size(write_only image2d_array_t image_array);
15561#ifdef cl_khr_depth_images
15562size_t __ovld __cnfn get_image_array_size(write_only image2d_array_depth_t image_array);
15563#endif //cl_khr_depth_images
15564#if defined(cl_khr_gl_msaa_sharing)
15565size_t __ovld __cnfn get_image_array_size(write_only image2d_array_msaa_t image_array);
15566size_t __ovld __cnfn get_image_array_size(write_only image2d_array_msaa_depth_t image_array);
15567#endif //cl_khr_gl_msaa_sharing
15568
15569#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15570size_t __ovld __cnfn get_image_array_size(read_write image1d_array_t image_array);
15571size_t __ovld __cnfn get_image_array_size(read_write image2d_array_t image_array);
15572#ifdef cl_khr_depth_images
15573size_t __ovld __cnfn get_image_array_size(read_write image2d_array_depth_t image_array);
15574#endif //cl_khr_depth_images
15575#if defined(cl_khr_gl_msaa_sharing)
15576size_t __ovld __cnfn get_image_array_size(read_write image2d_array_msaa_t image_array);
15577size_t __ovld __cnfn get_image_array_size(read_write image2d_array_msaa_depth_t image_array);
15578#endif //cl_khr_gl_msaa_sharing
15579#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15580
15581/**
15582* Return the number of samples associated with image
15583*/
15584#if defined(cl_khr_gl_msaa_sharing)
15585int __ovld get_image_num_samples(read_only image2d_msaa_t image);
15586int __ovld get_image_num_samples(read_only image2d_msaa_depth_t image);
15587int __ovld get_image_num_samples(read_only image2d_array_msaa_depth_t image);
15588int __ovld get_image_num_samples(read_only image2d_array_msaa_t image);
15589int __ovld get_image_num_samples(read_only image2d_array_msaa_depth_t image);
15590
15591int __ovld get_image_num_samples(write_only image2d_msaa_t image);
15592int __ovld get_image_num_samples(write_only image2d_msaa_depth_t image);
15593int __ovld get_image_num_samples(write_only image2d_array_msaa_depth_t image);
15594int __ovld get_image_num_samples(write_only image2d_array_msaa_t image);
15595int __ovld get_image_num_samples(write_only image2d_array_msaa_depth_t image);
15596
15597#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15598int __ovld get_image_num_samples(read_write image2d_msaa_t image);
15599int __ovld get_image_num_samples(read_write image2d_msaa_depth_t image);
15600int __ovld get_image_num_samples(read_write image2d_array_msaa_depth_t image);
15601int __ovld get_image_num_samples(read_write image2d_array_msaa_t image);
15602int __ovld get_image_num_samples(read_write image2d_array_msaa_depth_t image);
15603#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15604#endif
15605
15606// OpenCL v2.0 s6.13.15 - Work-group Functions
15607
15608#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15609int __ovld __conv work_group_all(int predicate);
15610int __ovld __conv work_group_any(int predicate);
15611
15612#ifdef cl_khr_fp16
15613half __ovld __conv work_group_broadcast(half a, size_t local_id);
15614half __ovld __conv work_group_broadcast(half a, size_t x, size_t y);
15615half __ovld __conv work_group_broadcast(half a, size_t x, size_t y, size_t z);
15616#endif
15617int __ovld __conv work_group_broadcast(int a, size_t local_id);
15618int __ovld __conv work_group_broadcast(int a, size_t x, size_t y);
15619int __ovld __conv work_group_broadcast(int a, size_t x, size_t y, size_t z);
15620uint __ovld __conv work_group_broadcast(uint a, size_t local_id);
15621uint __ovld __conv work_group_broadcast(uint a, size_t x, size_t y);
15622uint __ovld __conv work_group_broadcast(uint a, size_t x, size_t y, size_t z);
15623long __ovld __conv work_group_broadcast(long a, size_t local_id);
15624long __ovld __conv work_group_broadcast(long a, size_t x, size_t y);
15625long __ovld __conv work_group_broadcast(long a, size_t x, size_t y, size_t z);
15626ulong __ovld __conv work_group_broadcast(ulong a, size_t local_id);
15627ulong __ovld __conv work_group_broadcast(ulong a, size_t x, size_t y);
15628ulong __ovld __conv work_group_broadcast(ulong a, size_t x, size_t y, size_t z);
15629float __ovld __conv work_group_broadcast(float a, size_t local_id);
15630float __ovld __conv work_group_broadcast(float a, size_t x, size_t y);
15631float __ovld __conv work_group_broadcast(float a, size_t x, size_t y, size_t z);
15632#ifdef cl_khr_fp64
15633double __ovld __conv work_group_broadcast(double a, size_t local_id);
15634double __ovld __conv work_group_broadcast(double a, size_t x, size_t y);
15635double __ovld __conv work_group_broadcast(double a, size_t x, size_t y, size_t z);
15636#endif //cl_khr_fp64
15637
15638#ifdef cl_khr_fp16
15639half __ovld __conv work_group_reduce_add(half x);
15640half __ovld __conv work_group_reduce_min(half x);
15641half __ovld __conv work_group_reduce_max(half x);
15642half __ovld __conv work_group_scan_exclusive_add(half x);
15643half __ovld __conv work_group_scan_exclusive_min(half x);
15644half __ovld __conv work_group_scan_exclusive_max(half x);
15645half __ovld __conv work_group_scan_inclusive_add(half x);
15646half __ovld __conv work_group_scan_inclusive_min(half x);
15647half __ovld __conv work_group_scan_inclusive_max(half x);
15648#endif
15649int __ovld __conv work_group_reduce_add(int x);
15650int __ovld __conv work_group_reduce_min(int x);
15651int __ovld __conv work_group_reduce_max(int x);
15652int __ovld __conv work_group_scan_exclusive_add(int x);
15653int __ovld __conv work_group_scan_exclusive_min(int x);
15654int __ovld __conv work_group_scan_exclusive_max(int x);
15655int __ovld __conv work_group_scan_inclusive_add(int x);
15656int __ovld __conv work_group_scan_inclusive_min(int x);
15657int __ovld __conv work_group_scan_inclusive_max(int x);
15658uint __ovld __conv work_group_reduce_add(uint x);
15659uint __ovld __conv work_group_reduce_min(uint x);
15660uint __ovld __conv work_group_reduce_max(uint x);
15661uint __ovld __conv work_group_scan_exclusive_add(uint x);
15662uint __ovld __conv work_group_scan_exclusive_min(uint x);
15663uint __ovld __conv work_group_scan_exclusive_max(uint x);
15664uint __ovld __conv work_group_scan_inclusive_add(uint x);
15665uint __ovld __conv work_group_scan_inclusive_min(uint x);
15666uint __ovld __conv work_group_scan_inclusive_max(uint x);
15667long __ovld __conv work_group_reduce_add(long x);
15668long __ovld __conv work_group_reduce_min(long x);
15669long __ovld __conv work_group_reduce_max(long x);
15670long __ovld __conv work_group_scan_exclusive_add(long x);
15671long __ovld __conv work_group_scan_exclusive_min(long x);
15672long __ovld __conv work_group_scan_exclusive_max(long x);
15673long __ovld __conv work_group_scan_inclusive_add(long x);
15674long __ovld __conv work_group_scan_inclusive_min(long x);
15675long __ovld __conv work_group_scan_inclusive_max(long x);
15676ulong __ovld __conv work_group_reduce_add(ulong x);
15677ulong __ovld __conv work_group_reduce_min(ulong x);
15678ulong __ovld __conv work_group_reduce_max(ulong x);
15679ulong __ovld __conv work_group_scan_exclusive_add(ulong x);
15680ulong __ovld __conv work_group_scan_exclusive_min(ulong x);
15681ulong __ovld __conv work_group_scan_exclusive_max(ulong x);
15682ulong __ovld __conv work_group_scan_inclusive_add(ulong x);
15683ulong __ovld __conv work_group_scan_inclusive_min(ulong x);
15684ulong __ovld __conv work_group_scan_inclusive_max(ulong x);
15685float __ovld __conv work_group_reduce_add(float x);
15686float __ovld __conv work_group_reduce_min(float x);
15687float __ovld __conv work_group_reduce_max(float x);
15688float __ovld __conv work_group_scan_exclusive_add(float x);
15689float __ovld __conv work_group_scan_exclusive_min(float x);
15690float __ovld __conv work_group_scan_exclusive_max(float x);
15691float __ovld __conv work_group_scan_inclusive_add(float x);
15692float __ovld __conv work_group_scan_inclusive_min(float x);
15693float __ovld __conv work_group_scan_inclusive_max(float x);
15694#ifdef cl_khr_fp64
15695double __ovld __conv work_group_reduce_add(double x);
15696double __ovld __conv work_group_reduce_min(double x);
15697double __ovld __conv work_group_reduce_max(double x);
15698double __ovld __conv work_group_scan_exclusive_add(double x);
15699double __ovld __conv work_group_scan_exclusive_min(double x);
15700double __ovld __conv work_group_scan_exclusive_max(double x);
15701double __ovld __conv work_group_scan_inclusive_add(double x);
15702double __ovld __conv work_group_scan_inclusive_min(double x);
15703double __ovld __conv work_group_scan_inclusive_max(double x);
15704#endif //cl_khr_fp64
15705
15706#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15707
15708// OpenCL v2.0 s6.13.16 - Pipe Functions
15709#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15710#define PIPE_RESERVE_ID_VALID_BIT (1U << 30)
15711#define CLK_NULL_RESERVE_ID (__builtin_astype(((void*)(__SIZE_MAX__)), reserve_id_t))
15712bool __ovld is_valid_reserve_id(reserve_id_t reserve_id);
15713#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15714
15715
15716// OpenCL v2.0 s6.13.17 - Enqueue Kernels
15717#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15718
15719#define CL_COMPLETE                                 0x0
15720#define CL_RUNNING                                  0x1
15721#define CL_SUBMITTED                                0x2
15722#define CL_QUEUED                                   0x3
15723
15724#define CLK_SUCCESS                                 0
15725#define CLK_ENQUEUE_FAILURE                         -101
15726#define CLK_INVALID_QUEUE                           -102
15727#define CLK_INVALID_NDRANGE                         -160
15728#define CLK_INVALID_EVENT_WAIT_LIST                 -57
15729#define CLK_DEVICE_QUEUE_FULL                       -161
15730#define CLK_INVALID_ARG_SIZE                        -51
15731#define CLK_EVENT_ALLOCATION_FAILURE                -100
15732#define CLK_OUT_OF_RESOURCES                        -5
15733
15734#define CLK_NULL_QUEUE                              0
15735#define CLK_NULL_EVENT (__builtin_astype(((void*)(__SIZE_MAX__)), clk_event_t))
15736
15737// execution model related definitions
15738#define CLK_ENQUEUE_FLAGS_NO_WAIT                   0x0
15739#define CLK_ENQUEUE_FLAGS_WAIT_KERNEL               0x1
15740#define CLK_ENQUEUE_FLAGS_WAIT_WORK_GROUP           0x2
15741
15742typedef int kernel_enqueue_flags_t;
15743typedef int clk_profiling_info;
15744
15745// Profiling info name (see capture_event_profiling_info)
15746#define CLK_PROFILING_COMMAND_EXEC_TIME 0x1
15747
15748#define MAX_WORK_DIM        3
15749
15750typedef struct {
15751    unsigned int workDimension;
15752    size_t globalWorkOffset[MAX_WORK_DIM];
15753    size_t globalWorkSize[MAX_WORK_DIM];
15754    size_t localWorkSize[MAX_WORK_DIM];
15755} ndrange_t;
15756
15757ndrange_t __ovld ndrange_1D(size_t);
15758ndrange_t __ovld ndrange_1D(size_t, size_t);
15759ndrange_t __ovld ndrange_1D(size_t, size_t, size_t);
15760
15761ndrange_t __ovld ndrange_2D(const size_t[2]);
15762ndrange_t __ovld ndrange_2D(const size_t[2], const size_t[2]);
15763ndrange_t __ovld ndrange_2D(const size_t[2], const size_t[2], const size_t[2]);
15764
15765ndrange_t __ovld ndrange_3D(const size_t[3]);
15766ndrange_t __ovld ndrange_3D(const size_t[3], const size_t[3]);
15767ndrange_t __ovld ndrange_3D(const size_t[3], const size_t[3], const size_t[3]);
15768
15769int __ovld enqueue_marker(queue_t, uint, const __private clk_event_t*, __private clk_event_t*);
15770
15771void __ovld retain_event(clk_event_t);
15772
15773void __ovld release_event(clk_event_t);
15774
15775clk_event_t __ovld create_user_event(void);
15776
15777void __ovld set_user_event_status(clk_event_t e, int state);
15778
15779bool __ovld is_valid_event (clk_event_t event);
15780
15781void __ovld capture_event_profiling_info(clk_event_t, clk_profiling_info, __global void* value);
15782
15783queue_t __ovld get_default_queue(void);
15784#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15785
15786// OpenCL Extension v2.0 s9.17 - Sub-groups
15787
15788#if defined(cl_intel_subgroups) || defined(cl_khr_subgroups)
15789// Shared Sub Group Functions
15790uint    __ovld get_sub_group_size(void);
15791uint    __ovld get_max_sub_group_size(void);
15792uint    __ovld get_num_sub_groups(void);
15793#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15794uint    __ovld get_enqueued_num_sub_groups(void);
15795#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15796uint    __ovld get_sub_group_id(void);
15797uint    __ovld get_sub_group_local_id(void);
15798
15799void    __ovld __conv sub_group_barrier(cl_mem_fence_flags flags);
15800#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15801void    __ovld __conv sub_group_barrier(cl_mem_fence_flags flags, memory_scope scope);
15802#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15803
15804int     __ovld __conv sub_group_all(int predicate);
15805int     __ovld __conv sub_group_any(int predicate);
15806
15807int     __ovld __conv sub_group_broadcast(int   x, uint sub_group_local_id);
15808uint    __ovld __conv sub_group_broadcast(uint  x, uint sub_group_local_id);
15809long    __ovld __conv sub_group_broadcast(long  x, uint sub_group_local_id);
15810ulong   __ovld __conv sub_group_broadcast(ulong x, uint sub_group_local_id);
15811float   __ovld __conv sub_group_broadcast(float x, uint sub_group_local_id);
15812
15813int     __ovld __conv sub_group_reduce_add(int   x);
15814uint    __ovld __conv sub_group_reduce_add(uint  x);
15815long    __ovld __conv sub_group_reduce_add(long  x);
15816ulong   __ovld __conv sub_group_reduce_add(ulong x);
15817float   __ovld __conv sub_group_reduce_add(float x);
15818int     __ovld __conv sub_group_reduce_min(int   x);
15819uint    __ovld __conv sub_group_reduce_min(uint  x);
15820long    __ovld __conv sub_group_reduce_min(long  x);
15821ulong   __ovld __conv sub_group_reduce_min(ulong x);
15822float   __ovld __conv sub_group_reduce_min(float x);
15823int     __ovld __conv sub_group_reduce_max(int   x);
15824uint    __ovld __conv sub_group_reduce_max(uint  x);
15825long    __ovld __conv sub_group_reduce_max(long  x);
15826ulong   __ovld __conv sub_group_reduce_max(ulong x);
15827float   __ovld __conv sub_group_reduce_max(float x);
15828
15829int     __ovld __conv sub_group_scan_exclusive_add(int   x);
15830uint    __ovld __conv sub_group_scan_exclusive_add(uint  x);
15831long    __ovld __conv sub_group_scan_exclusive_add(long  x);
15832ulong   __ovld __conv sub_group_scan_exclusive_add(ulong x);
15833float   __ovld __conv sub_group_scan_exclusive_add(float x);
15834int     __ovld __conv sub_group_scan_exclusive_min(int   x);
15835uint    __ovld __conv sub_group_scan_exclusive_min(uint  x);
15836long    __ovld __conv sub_group_scan_exclusive_min(long  x);
15837ulong   __ovld __conv sub_group_scan_exclusive_min(ulong x);
15838float   __ovld __conv sub_group_scan_exclusive_min(float x);
15839int     __ovld __conv sub_group_scan_exclusive_max(int   x);
15840uint    __ovld __conv sub_group_scan_exclusive_max(uint  x);
15841long    __ovld __conv sub_group_scan_exclusive_max(long  x);
15842ulong   __ovld __conv sub_group_scan_exclusive_max(ulong x);
15843float   __ovld __conv sub_group_scan_exclusive_max(float x);
15844
15845int     __ovld __conv sub_group_scan_inclusive_add(int   x);
15846uint    __ovld __conv sub_group_scan_inclusive_add(uint  x);
15847long    __ovld __conv sub_group_scan_inclusive_add(long  x);
15848ulong   __ovld __conv sub_group_scan_inclusive_add(ulong x);
15849float   __ovld __conv sub_group_scan_inclusive_add(float x);
15850int     __ovld __conv sub_group_scan_inclusive_min(int   x);
15851uint    __ovld __conv sub_group_scan_inclusive_min(uint  x);
15852long    __ovld __conv sub_group_scan_inclusive_min(long  x);
15853ulong   __ovld __conv sub_group_scan_inclusive_min(ulong x);
15854float   __ovld __conv sub_group_scan_inclusive_min(float x);
15855int     __ovld __conv sub_group_scan_inclusive_max(int   x);
15856uint    __ovld __conv sub_group_scan_inclusive_max(uint  x);
15857long    __ovld __conv sub_group_scan_inclusive_max(long  x);
15858ulong   __ovld __conv sub_group_scan_inclusive_max(ulong x);
15859float   __ovld __conv sub_group_scan_inclusive_max(float x);
15860
15861#ifdef cl_khr_fp16
15862half    __ovld __conv sub_group_broadcast(half x, uint sub_group_local_id);
15863half    __ovld __conv sub_group_reduce_add(half x);
15864half    __ovld __conv sub_group_reduce_min(half x);
15865half    __ovld __conv sub_group_reduce_max(half x);
15866half    __ovld __conv sub_group_scan_exclusive_add(half x);
15867half    __ovld __conv sub_group_scan_exclusive_min(half x);
15868half    __ovld __conv sub_group_scan_exclusive_max(half x);
15869half    __ovld __conv sub_group_scan_inclusive_add(half x);
15870half    __ovld __conv sub_group_scan_inclusive_min(half x);
15871half    __ovld __conv sub_group_scan_inclusive_max(half x);
15872#endif //cl_khr_fp16
15873
15874#ifdef cl_khr_fp64
15875double  __ovld __conv sub_group_broadcast(double x, uint sub_group_local_id);
15876double  __ovld __conv sub_group_reduce_add(double x);
15877double  __ovld __conv sub_group_reduce_min(double x);
15878double  __ovld __conv sub_group_reduce_max(double x);
15879double  __ovld __conv sub_group_scan_exclusive_add(double x);
15880double  __ovld __conv sub_group_scan_exclusive_min(double x);
15881double  __ovld __conv sub_group_scan_exclusive_max(double x);
15882double  __ovld __conv sub_group_scan_inclusive_add(double x);
15883double  __ovld __conv sub_group_scan_inclusive_min(double x);
15884double  __ovld __conv sub_group_scan_inclusive_max(double x);
15885#endif //cl_khr_fp64
15886
15887#endif //cl_khr_subgroups cl_intel_subgroups
15888
15889#if defined(cl_intel_subgroups)
15890// Intel-Specific Sub Group Functions
15891float   __ovld __conv intel_sub_group_shuffle( float  x, uint c );
15892float2  __ovld __conv intel_sub_group_shuffle( float2 x, uint c );
15893float3  __ovld __conv intel_sub_group_shuffle( float3 x, uint c );
15894float4  __ovld __conv intel_sub_group_shuffle( float4 x, uint c );
15895float8  __ovld __conv intel_sub_group_shuffle( float8 x, uint c );
15896float16 __ovld __conv intel_sub_group_shuffle( float16 x, uint c );
15897
15898int     __ovld __conv intel_sub_group_shuffle( int  x, uint c );
15899int2    __ovld __conv intel_sub_group_shuffle( int2 x, uint c );
15900int3    __ovld __conv intel_sub_group_shuffle( int3 x, uint c );
15901int4    __ovld __conv intel_sub_group_shuffle( int4 x, uint c );
15902int8    __ovld __conv intel_sub_group_shuffle( int8 x, uint c );
15903int16   __ovld __conv intel_sub_group_shuffle( int16 x, uint c );
15904
15905uint    __ovld __conv intel_sub_group_shuffle( uint  x, uint c );
15906uint2   __ovld __conv intel_sub_group_shuffle( uint2 x, uint c );
15907uint3   __ovld __conv intel_sub_group_shuffle( uint3 x, uint c );
15908uint4   __ovld __conv intel_sub_group_shuffle( uint4 x, uint c );
15909uint8   __ovld __conv intel_sub_group_shuffle( uint8 x, uint c );
15910uint16  __ovld __conv intel_sub_group_shuffle( uint16 x, uint c );
15911
15912long    __ovld __conv intel_sub_group_shuffle( long x, uint c );
15913ulong   __ovld __conv intel_sub_group_shuffle( ulong x, uint c );
15914
15915float   __ovld __conv intel_sub_group_shuffle_down( float  cur, float  next, uint c );
15916float2  __ovld __conv intel_sub_group_shuffle_down( float2 cur, float2 next, uint c );
15917float3  __ovld __conv intel_sub_group_shuffle_down( float3 cur, float3 next, uint c );
15918float4  __ovld __conv intel_sub_group_shuffle_down( float4 cur, float4 next, uint c );
15919float8  __ovld __conv intel_sub_group_shuffle_down( float8 cur, float8 next, uint c );
15920float16 __ovld __conv intel_sub_group_shuffle_down( float16 cur, float16 next, uint c );
15921
15922int     __ovld __conv intel_sub_group_shuffle_down( int  cur, int  next, uint c );
15923int2    __ovld __conv intel_sub_group_shuffle_down( int2 cur, int2 next, uint c );
15924int3    __ovld __conv intel_sub_group_shuffle_down( int3 cur, int3 next, uint c );
15925int4    __ovld __conv intel_sub_group_shuffle_down( int4 cur, int4 next, uint c );
15926int8    __ovld __conv intel_sub_group_shuffle_down( int8 cur, int8 next, uint c );
15927int16   __ovld __conv intel_sub_group_shuffle_down( int16 cur, int16 next, uint c );
15928
15929uint    __ovld __conv intel_sub_group_shuffle_down( uint  cur, uint  next, uint c );
15930uint2   __ovld __conv intel_sub_group_shuffle_down( uint2 cur, uint2 next, uint c );
15931uint3   __ovld __conv intel_sub_group_shuffle_down( uint3 cur, uint3 next, uint c );
15932uint4   __ovld __conv intel_sub_group_shuffle_down( uint4 cur, uint4 next, uint c );
15933uint8   __ovld __conv intel_sub_group_shuffle_down( uint8 cur, uint8 next, uint c );
15934uint16  __ovld __conv intel_sub_group_shuffle_down( uint16 cur, uint16 next, uint c );
15935
15936long    __ovld __conv intel_sub_group_shuffle_down( long prev, long cur, uint c );
15937ulong   __ovld __conv intel_sub_group_shuffle_down( ulong prev, ulong cur, uint c );
15938
15939float   __ovld __conv intel_sub_group_shuffle_up( float  prev, float  cur, uint c );
15940float2  __ovld __conv intel_sub_group_shuffle_up( float2 prev, float2 cur, uint c );
15941float3  __ovld __conv intel_sub_group_shuffle_up( float3 prev, float3 cur, uint c );
15942float4  __ovld __conv intel_sub_group_shuffle_up( float4 prev, float4 cur, uint c );
15943float8  __ovld __conv intel_sub_group_shuffle_up( float8 prev, float8 cur, uint c );
15944float16 __ovld __conv intel_sub_group_shuffle_up( float16 prev, float16 cur, uint c );
15945
15946int     __ovld __conv intel_sub_group_shuffle_up( int  prev, int  cur, uint c );
15947int2    __ovld __conv intel_sub_group_shuffle_up( int2 prev, int2 cur, uint c );
15948int3    __ovld __conv intel_sub_group_shuffle_up( int3 prev, int3 cur, uint c );
15949int4    __ovld __conv intel_sub_group_shuffle_up( int4 prev, int4 cur, uint c );
15950int8    __ovld __conv intel_sub_group_shuffle_up( int8 prev, int8 cur, uint c );
15951int16   __ovld __conv intel_sub_group_shuffle_up( int16 prev, int16 cur, uint c );
15952
15953uint    __ovld __conv intel_sub_group_shuffle_up( uint  prev, uint  cur, uint c );
15954uint2   __ovld __conv intel_sub_group_shuffle_up( uint2 prev, uint2 cur, uint c );
15955uint3   __ovld __conv intel_sub_group_shuffle_up( uint3 prev, uint3 cur, uint c );
15956uint4   __ovld __conv intel_sub_group_shuffle_up( uint4 prev, uint4 cur, uint c );
15957uint8   __ovld __conv intel_sub_group_shuffle_up( uint8 prev, uint8 cur, uint c );
15958uint16  __ovld __conv intel_sub_group_shuffle_up( uint16 prev, uint16 cur, uint c );
15959
15960long    __ovld __conv intel_sub_group_shuffle_up( long prev, long cur, uint c );
15961ulong   __ovld __conv intel_sub_group_shuffle_up( ulong prev, ulong cur, uint c );
15962
15963float   __ovld __conv intel_sub_group_shuffle_xor( float  x, uint c );
15964float2  __ovld __conv intel_sub_group_shuffle_xor( float2 x, uint c );
15965float3  __ovld __conv intel_sub_group_shuffle_xor( float3 x, uint c );
15966float4  __ovld __conv intel_sub_group_shuffle_xor( float4 x, uint c );
15967float8  __ovld __conv intel_sub_group_shuffle_xor( float8 x, uint c );
15968float16 __ovld __conv intel_sub_group_shuffle_xor( float16 x, uint c );
15969
15970int     __ovld __conv intel_sub_group_shuffle_xor( int  x, uint c );
15971int2    __ovld __conv intel_sub_group_shuffle_xor( int2 x, uint c );
15972int3    __ovld __conv intel_sub_group_shuffle_xor( int3 x, uint c );
15973int4    __ovld __conv intel_sub_group_shuffle_xor( int4 x, uint c );
15974int8    __ovld __conv intel_sub_group_shuffle_xor( int8 x, uint c );
15975int16   __ovld __conv intel_sub_group_shuffle_xor( int16 x, uint c );
15976
15977uint    __ovld __conv intel_sub_group_shuffle_xor( uint  x, uint c );
15978uint2   __ovld __conv intel_sub_group_shuffle_xor( uint2 x, uint c );
15979uint3   __ovld __conv intel_sub_group_shuffle_xor( uint3 x, uint c );
15980uint4   __ovld __conv intel_sub_group_shuffle_xor( uint4 x, uint c );
15981uint8   __ovld __conv intel_sub_group_shuffle_xor( uint8 x, uint c );
15982uint16  __ovld __conv intel_sub_group_shuffle_xor( uint16 x, uint c );
15983
15984long    __ovld __conv intel_sub_group_shuffle_xor( long x, uint c );
15985ulong   __ovld __conv intel_sub_group_shuffle_xor( ulong x, uint c );
15986
15987uint    __ovld __conv intel_sub_group_block_read( read_only image2d_t image, int2 coord );
15988uint2   __ovld __conv intel_sub_group_block_read2( read_only image2d_t image, int2 coord );
15989uint4   __ovld __conv intel_sub_group_block_read4( read_only image2d_t image, int2 coord );
15990uint8   __ovld __conv intel_sub_group_block_read8( read_only image2d_t image, int2 coord );
15991
15992#if (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
15993uint    __ovld __conv intel_sub_group_block_read(read_write image2d_t image, int2 coord);
15994uint2   __ovld __conv intel_sub_group_block_read2(read_write image2d_t image, int2 coord);
15995uint4   __ovld __conv intel_sub_group_block_read4(read_write image2d_t image, int2 coord);
15996uint8   __ovld __conv intel_sub_group_block_read8(read_write image2d_t image, int2 coord);
15997#endif // (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
15998
15999uint    __ovld __conv intel_sub_group_block_read( const __global uint* p );
16000uint2   __ovld __conv intel_sub_group_block_read2( const __global uint* p );
16001uint4   __ovld __conv intel_sub_group_block_read4( const __global uint* p );
16002uint8   __ovld __conv intel_sub_group_block_read8( const __global uint* p );
16003
16004void    __ovld __conv intel_sub_group_block_write(write_only image2d_t image, int2 coord, uint data);
16005void    __ovld __conv intel_sub_group_block_write2(write_only image2d_t image, int2 coord, uint2 data);
16006void    __ovld __conv intel_sub_group_block_write4(write_only image2d_t image, int2 coord, uint4 data);
16007void    __ovld __conv intel_sub_group_block_write8(write_only image2d_t image, int2 coord, uint8 data);
16008
16009#if (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
16010void    __ovld __conv intel_sub_group_block_write(read_write image2d_t image, int2 coord, uint data);
16011void    __ovld __conv intel_sub_group_block_write2(read_write image2d_t image, int2 coord, uint2 data);
16012void    __ovld __conv intel_sub_group_block_write4(read_write image2d_t image, int2 coord, uint4 data);
16013void    __ovld __conv intel_sub_group_block_write8(read_write image2d_t image, int2 coord, uint8 data);
16014#endif // (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
16015
16016void    __ovld __conv intel_sub_group_block_write( __global uint* p, uint data );
16017void    __ovld __conv intel_sub_group_block_write2( __global uint* p, uint2 data );
16018void    __ovld __conv intel_sub_group_block_write4( __global uint* p, uint4 data );
16019void    __ovld __conv intel_sub_group_block_write8( __global uint* p, uint8 data );
16020
16021#ifdef cl_khr_fp16
16022half    __ovld __conv intel_sub_group_shuffle( half x, uint c );
16023half    __ovld __conv intel_sub_group_shuffle_down( half prev, half cur, uint c );
16024half    __ovld __conv intel_sub_group_shuffle_up( half prev, half cur, uint c );
16025half    __ovld __conv intel_sub_group_shuffle_xor( half x, uint c );
16026#endif
16027
16028#if defined(cl_khr_fp64)
16029double  __ovld __conv intel_sub_group_shuffle( double x, uint c );
16030double  __ovld __conv intel_sub_group_shuffle_down( double prev, double cur, uint c );
16031double  __ovld __conv intel_sub_group_shuffle_up( double prev, double cur, uint c );
16032double  __ovld __conv intel_sub_group_shuffle_xor( double x, uint c );
16033#endif
16034
16035#endif //cl_intel_subgroups
16036
16037#if defined(cl_intel_subgroups_short)
16038short       __ovld __conv intel_sub_group_broadcast( short  x, uint sub_group_local_id );
16039short2      __ovld __conv intel_sub_group_broadcast( short2 x, uint sub_group_local_id );
16040short3      __ovld __conv intel_sub_group_broadcast( short3 x, uint sub_group_local_id );
16041short4      __ovld __conv intel_sub_group_broadcast( short4 x, uint sub_group_local_id );
16042short8      __ovld __conv intel_sub_group_broadcast( short8 x, uint sub_group_local_id );
16043
16044ushort      __ovld __conv intel_sub_group_broadcast( ushort  x, uint sub_group_local_id );
16045ushort2     __ovld __conv intel_sub_group_broadcast( ushort2 x, uint sub_group_local_id );
16046ushort3     __ovld __conv intel_sub_group_broadcast( ushort3 x, uint sub_group_local_id );
16047ushort4     __ovld __conv intel_sub_group_broadcast( ushort4 x, uint sub_group_local_id );
16048ushort8     __ovld __conv intel_sub_group_broadcast( ushort8 x, uint sub_group_local_id );
16049
16050short       __ovld __conv intel_sub_group_shuffle( short   x, uint c );
16051short2      __ovld __conv intel_sub_group_shuffle( short2  x, uint c );
16052short3      __ovld __conv intel_sub_group_shuffle( short3  x, uint c );
16053short4      __ovld __conv intel_sub_group_shuffle( short4  x, uint c );
16054short8      __ovld __conv intel_sub_group_shuffle( short8  x, uint c );
16055short16     __ovld __conv intel_sub_group_shuffle( short16 x, uint c);
16056
16057ushort      __ovld __conv intel_sub_group_shuffle( ushort   x, uint c );
16058ushort2     __ovld __conv intel_sub_group_shuffle( ushort2  x, uint c );
16059ushort3     __ovld __conv intel_sub_group_shuffle( ushort3  x, uint c );
16060ushort4     __ovld __conv intel_sub_group_shuffle( ushort4  x, uint c );
16061ushort8     __ovld __conv intel_sub_group_shuffle( ushort8  x, uint c );
16062ushort16    __ovld __conv intel_sub_group_shuffle( ushort16 x, uint c );
16063
16064short       __ovld __conv intel_sub_group_shuffle_down( short   cur, short   next, uint c );
16065short2      __ovld __conv intel_sub_group_shuffle_down( short2  cur, short2  next, uint c );
16066short3      __ovld __conv intel_sub_group_shuffle_down( short3  cur, short3  next, uint c );
16067short4      __ovld __conv intel_sub_group_shuffle_down( short4  cur, short4  next, uint c );
16068short8      __ovld __conv intel_sub_group_shuffle_down( short8  cur, short8  next, uint c );
16069short16     __ovld __conv intel_sub_group_shuffle_down( short16 cur, short16 next, uint c );
16070
16071ushort      __ovld __conv intel_sub_group_shuffle_down( ushort   cur, ushort   next, uint c );
16072ushort2     __ovld __conv intel_sub_group_shuffle_down( ushort2  cur, ushort2  next, uint c );
16073ushort3     __ovld __conv intel_sub_group_shuffle_down( ushort3  cur, ushort3  next, uint c );
16074ushort4     __ovld __conv intel_sub_group_shuffle_down( ushort4  cur, ushort4  next, uint c );
16075ushort8     __ovld __conv intel_sub_group_shuffle_down( ushort8  cur, ushort8  next, uint c );
16076ushort16    __ovld __conv intel_sub_group_shuffle_down( ushort16 cur, ushort16 next, uint c );
16077
16078short       __ovld __conv intel_sub_group_shuffle_up( short   cur, short   next, uint c );
16079short2      __ovld __conv intel_sub_group_shuffle_up( short2  cur, short2  next, uint c );
16080short3      __ovld __conv intel_sub_group_shuffle_up( short3  cur, short3  next, uint c );
16081short4      __ovld __conv intel_sub_group_shuffle_up( short4  cur, short4  next, uint c );
16082short8      __ovld __conv intel_sub_group_shuffle_up( short8  cur, short8  next, uint c );
16083short16     __ovld __conv intel_sub_group_shuffle_up( short16 cur, short16 next, uint c );
16084
16085ushort      __ovld __conv intel_sub_group_shuffle_up( ushort   cur, ushort   next, uint c );
16086ushort2     __ovld __conv intel_sub_group_shuffle_up( ushort2  cur, ushort2  next, uint c );
16087ushort3     __ovld __conv intel_sub_group_shuffle_up( ushort3  cur, ushort3  next, uint c );
16088ushort4     __ovld __conv intel_sub_group_shuffle_up( ushort4  cur, ushort4  next, uint c );
16089ushort8     __ovld __conv intel_sub_group_shuffle_up( ushort8  cur, ushort8  next, uint c );
16090ushort16    __ovld __conv intel_sub_group_shuffle_up( ushort16 cur, ushort16 next, uint c );
16091
16092short       __ovld __conv intel_sub_group_shuffle_xor( short   x, uint c );
16093short2      __ovld __conv intel_sub_group_shuffle_xor( short2  x, uint c );
16094short3      __ovld __conv intel_sub_group_shuffle_xor( short3  x, uint c );
16095short4      __ovld __conv intel_sub_group_shuffle_xor( short4  x, uint c );
16096short8      __ovld __conv intel_sub_group_shuffle_xor( short8  x, uint c );
16097short16     __ovld __conv intel_sub_group_shuffle_xor( short16 x, uint c );
16098
16099ushort      __ovld __conv intel_sub_group_shuffle_xor( ushort   x, uint c );
16100ushort2     __ovld __conv intel_sub_group_shuffle_xor( ushort2  x, uint c );
16101ushort3     __ovld __conv intel_sub_group_shuffle_xor( ushort3  x, uint c );
16102ushort4     __ovld __conv intel_sub_group_shuffle_xor( ushort4  x, uint c );
16103ushort8     __ovld __conv intel_sub_group_shuffle_xor( ushort8  x, uint c );
16104ushort16    __ovld __conv intel_sub_group_shuffle_xor( ushort16 x, uint c );
16105
16106short       __ovld __conv intel_sub_group_reduce_add( short   x );
16107ushort      __ovld __conv intel_sub_group_reduce_add( ushort  x );
16108short       __ovld __conv intel_sub_group_reduce_min( short   x );
16109ushort      __ovld __conv intel_sub_group_reduce_min( ushort  x );
16110short       __ovld __conv intel_sub_group_reduce_max( short   x );
16111ushort      __ovld __conv intel_sub_group_reduce_max( ushort  x );
16112
16113short       __ovld __conv intel_sub_group_scan_exclusive_add( short   x );
16114ushort      __ovld __conv intel_sub_group_scan_exclusive_add( ushort  x );
16115short       __ovld __conv intel_sub_group_scan_exclusive_min( short   x );
16116ushort      __ovld __conv intel_sub_group_scan_exclusive_min( ushort  x );
16117short       __ovld __conv intel_sub_group_scan_exclusive_max( short   x );
16118ushort      __ovld __conv intel_sub_group_scan_exclusive_max( ushort  x );
16119
16120short       __ovld __conv intel_sub_group_scan_inclusive_add( short   x );
16121ushort      __ovld __conv intel_sub_group_scan_inclusive_add( ushort  x );
16122short       __ovld __conv intel_sub_group_scan_inclusive_min( short   x );
16123ushort      __ovld __conv intel_sub_group_scan_inclusive_min( ushort  x );
16124short       __ovld __conv intel_sub_group_scan_inclusive_max( short   x );
16125ushort      __ovld __conv intel_sub_group_scan_inclusive_max( ushort  x );
16126
16127uint       __ovld __conv intel_sub_group_block_read_ui( read_only image2d_t image, int2 byte_coord );
16128uint2      __ovld __conv intel_sub_group_block_read_ui2( read_only image2d_t image, int2 byte_coord );
16129uint4      __ovld __conv intel_sub_group_block_read_ui4( read_only image2d_t image, int2 byte_coord );
16130uint8      __ovld __conv intel_sub_group_block_read_ui8( read_only image2d_t image, int2 byte_coord );
16131
16132#if (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
16133uint       __ovld __conv intel_sub_group_block_read_ui( read_write image2d_t image, int2 byte_coord );
16134uint2      __ovld __conv intel_sub_group_block_read_ui2( read_write image2d_t image, int2 byte_coord );
16135uint4      __ovld __conv intel_sub_group_block_read_ui4( read_write image2d_t image, int2 byte_coord );
16136uint8      __ovld __conv intel_sub_group_block_read_ui8( read_write image2d_t image, int2 byte_coord );
16137#endif // (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
16138
16139uint       __ovld __conv intel_sub_group_block_read_ui( const __global uint* p );
16140uint2      __ovld __conv intel_sub_group_block_read_ui2( const __global uint* p );
16141uint4      __ovld __conv intel_sub_group_block_read_ui4( const __global uint* p );
16142uint8      __ovld __conv intel_sub_group_block_read_ui8( const __global uint* p );
16143
16144void       __ovld __conv intel_sub_group_block_write_ui( read_only image2d_t image, int2 byte_coord, uint data );
16145void       __ovld __conv intel_sub_group_block_write_ui2( read_only image2d_t image, int2 byte_coord, uint2 data );
16146void       __ovld __conv intel_sub_group_block_write_ui4( read_only image2d_t image, int2 byte_coord, uint4 data );
16147void       __ovld __conv intel_sub_group_block_write_ui8( read_only image2d_t image, int2 byte_coord, uint8 data );
16148
16149#if (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
16150void       __ovld __conv intel_sub_group_block_write_ui( read_write image2d_t image, int2 byte_coord, uint data );
16151void       __ovld __conv intel_sub_group_block_write_ui2( read_write image2d_t image, int2 byte_coord, uint2 data );
16152void       __ovld __conv intel_sub_group_block_write_ui4( read_write image2d_t image, int2 byte_coord, uint4 data );
16153void       __ovld __conv intel_sub_group_block_write_ui8( read_write image2d_t image, int2 byte_coord, uint8 data );
16154#endif // (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
16155
16156void       __ovld __conv intel_sub_group_block_write_ui( __global uint* p, uint data );
16157void       __ovld __conv intel_sub_group_block_write_ui2( __global uint* p, uint2 data );
16158void       __ovld __conv intel_sub_group_block_write_ui4( __global uint* p, uint4 data );
16159void       __ovld __conv intel_sub_group_block_write_ui8( __global uint* p, uint8 data );
16160
16161ushort      __ovld __conv intel_sub_group_block_read_us( read_only image2d_t image, int2 coord );
16162ushort2     __ovld __conv intel_sub_group_block_read_us2( read_only image2d_t image, int2 coord );
16163ushort4     __ovld __conv intel_sub_group_block_read_us4( read_only image2d_t image, int2 coord );
16164ushort8     __ovld __conv intel_sub_group_block_read_us8( read_only image2d_t image, int2 coord );
16165
16166#if (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
16167ushort      __ovld __conv intel_sub_group_block_read_us(read_write image2d_t image, int2 coord);
16168ushort2     __ovld __conv intel_sub_group_block_read_us2(read_write image2d_t image, int2 coord);
16169ushort4     __ovld __conv intel_sub_group_block_read_us4(read_write image2d_t image, int2 coord);
16170ushort8     __ovld __conv intel_sub_group_block_read_us8(read_write image2d_t image, int2 coord);
16171#endif // (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
16172
16173ushort      __ovld __conv intel_sub_group_block_read_us(  const __global ushort* p );
16174ushort2     __ovld __conv intel_sub_group_block_read_us2( const __global ushort* p );
16175ushort4     __ovld __conv intel_sub_group_block_read_us4( const __global ushort* p );
16176ushort8     __ovld __conv intel_sub_group_block_read_us8( const __global ushort* p );
16177
16178void        __ovld __conv intel_sub_group_block_write_us(write_only image2d_t image, int2 coord, ushort  data);
16179void        __ovld __conv intel_sub_group_block_write_us2(write_only image2d_t image, int2 coord, ushort2 data);
16180void        __ovld __conv intel_sub_group_block_write_us4(write_only image2d_t image, int2 coord, ushort4 data);
16181void        __ovld __conv intel_sub_group_block_write_us8(write_only image2d_t image, int2 coord, ushort8 data);
16182
16183#if (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
16184void        __ovld __conv intel_sub_group_block_write_us(read_write image2d_t image, int2 coord, ushort  data);
16185void        __ovld __conv intel_sub_group_block_write_us2(read_write image2d_t image, int2 coord, ushort2 data);
16186void        __ovld __conv intel_sub_group_block_write_us4(read_write image2d_t image, int2 coord, ushort4 data);
16187void        __ovld __conv intel_sub_group_block_write_us8(read_write image2d_t image, int2 coord, ushort8 data);
16188#endif // (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
16189
16190void        __ovld __conv intel_sub_group_block_write_us(  __global ushort* p, ushort  data );
16191void        __ovld __conv intel_sub_group_block_write_us2( __global ushort* p, ushort2 data );
16192void        __ovld __conv intel_sub_group_block_write_us4( __global ushort* p, ushort4 data );
16193void        __ovld __conv intel_sub_group_block_write_us8( __global ushort* p, ushort8 data );
16194#endif // cl_intel_subgroups_short
16195
16196#ifdef cl_amd_media_ops
16197uint __ovld amd_bitalign(uint a, uint b, uint c);
16198uint2 __ovld amd_bitalign(uint2 a, uint2 b, uint2 c);
16199uint3 __ovld amd_bitalign(uint3 a, uint3 b, uint3 c);
16200uint4 __ovld amd_bitalign(uint4 a, uint4 b, uint4 c);
16201uint8 __ovld amd_bitalign(uint8 a, uint8 b, uint8 c);
16202uint16 __ovld amd_bitalign(uint16 a, uint16 b, uint16 c);
16203
16204uint __ovld amd_bytealign(uint a, uint b, uint c);
16205uint2 __ovld amd_bytealign(uint2 a, uint2 b, uint2 c);
16206uint3 __ovld amd_bytealign(uint3 a, uint3 b, uint3 c);
16207uint4 __ovld amd_bytealign(uint4 a, uint4 b, uint4 c);
16208uint8 __ovld amd_bytealign(uint8 a, uint8 b, uint8 c);
16209uint16 __ovld amd_bytealign(uint16 a, uint16 b, uint16 c);
16210
16211uint __ovld amd_lerp(uint a, uint b, uint c);
16212uint2 __ovld amd_lerp(uint2 a, uint2 b, uint2 c);
16213uint3 __ovld amd_lerp(uint3 a, uint3 b, uint3 c);
16214uint4 __ovld amd_lerp(uint4 a, uint4 b, uint4 c);
16215uint8 __ovld amd_lerp(uint8 a, uint8 b, uint8 c);
16216uint16 __ovld amd_lerp(uint16 a, uint16 b, uint16 c);
16217
16218uint __ovld amd_pack(float4 v);
16219
16220uint __ovld amd_sad4(uint4 x, uint4 y, uint z);
16221
16222uint __ovld amd_sadhi(uint a, uint b, uint c);
16223uint2 __ovld amd_sadhi(uint2 a, uint2 b, uint2 c);
16224uint3 __ovld amd_sadhi(uint3 a, uint3 b, uint3 c);
16225uint4 __ovld amd_sadhi(uint4 a, uint4 b, uint4 c);
16226uint8 __ovld amd_sadhi(uint8 a, uint8 b, uint8 c);
16227uint16 __ovld amd_sadhi(uint16 a, uint16 b, uint16 c);
16228
16229uint __ovld amd_sad(uint a, uint b, uint c);
16230uint2 __ovld amd_sad(uint2 a, uint2 b, uint2 c);
16231uint3 __ovld amd_sad(uint3 a, uint3 b, uint3 c);
16232uint4 __ovld amd_sad(uint4 a, uint4 b, uint4 c);
16233uint8 __ovld amd_sad(uint8 a, uint8 b, uint8 c);
16234uint16 __ovld amd_sad(uint16 a, uint16 b, uint16 c);
16235
16236float __ovld amd_unpack0(uint a);
16237float2 __ovld amd_unpack0(uint2 a);
16238float3 __ovld amd_unpack0(uint3 a);
16239float4 __ovld amd_unpack0(uint4 a);
16240float8 __ovld amd_unpack0(uint8 a);
16241float16 __ovld amd_unpack0(uint16 a);
16242
16243float __ovld amd_unpack1(uint a);
16244float2 __ovld amd_unpack1(uint2 a);
16245float3 __ovld amd_unpack1(uint3 a);
16246float4 __ovld amd_unpack1(uint4 a);
16247float8 __ovld amd_unpack1(uint8 a);
16248float16 __ovld amd_unpack1(uint16 a);
16249
16250float __ovld amd_unpack2(uint a);
16251float2 __ovld amd_unpack2(uint2 a);
16252float3 __ovld amd_unpack2(uint3 a);
16253float4 __ovld amd_unpack2(uint4 a);
16254float8 __ovld amd_unpack2(uint8 a);
16255float16 __ovld amd_unpack2(uint16 a);
16256
16257float __ovld amd_unpack3(uint a);
16258float2 __ovld amd_unpack3(uint2 a);
16259float3 __ovld amd_unpack3(uint3 a);
16260float4 __ovld amd_unpack3(uint4 a);
16261float8 __ovld amd_unpack3(uint8 a);
16262float16 __ovld amd_unpack3(uint16 a);
16263#endif // cl_amd_media_ops
16264
16265#ifdef cl_amd_media_ops2
16266int __ovld amd_bfe(int src0, uint src1, uint src2);
16267int2 __ovld amd_bfe(int2 src0, uint2 src1, uint2 src2);
16268int3 __ovld amd_bfe(int3 src0, uint3 src1, uint3 src2);
16269int4 __ovld amd_bfe(int4 src0, uint4 src1, uint4 src2);
16270int8 __ovld amd_bfe(int8 src0, uint8 src1, uint8 src2);
16271int16 __ovld amd_bfe(int16 src0, uint16 src1, uint16 src2);
16272
16273uint __ovld amd_bfe(uint src0, uint src1, uint src2);
16274uint2 __ovld amd_bfe(uint2 src0, uint2 src1, uint2 src2);
16275uint3 __ovld amd_bfe(uint3 src0, uint3 src1, uint3 src2);
16276uint4 __ovld amd_bfe(uint4 src0, uint4 src1, uint4 src2);
16277uint8 __ovld amd_bfe(uint8 src0, uint8 src1, uint8 src2);
16278uint16 __ovld amd_bfe(uint16 src0, uint16 src1, uint16 src2);
16279
16280uint __ovld amd_bfm(uint src0, uint src1);
16281uint2 __ovld amd_bfm(uint2 src0, uint2 src1);
16282uint3 __ovld amd_bfm(uint3 src0, uint3 src1);
16283uint4 __ovld amd_bfm(uint4 src0, uint4 src1);
16284uint8 __ovld amd_bfm(uint8 src0, uint8 src1);
16285uint16 __ovld amd_bfm(uint16 src0, uint16 src1);
16286
16287float __ovld amd_max3(float src0, float src1, float src2);
16288float2 __ovld amd_max3(float2 src0, float2 src1, float2 src2);
16289float3 __ovld amd_max3(float3 src0, float3 src1, float3 src2);
16290float4 __ovld amd_max3(float4 src0, float4 src1, float4 src2);
16291float8 __ovld amd_max3(float8 src0, float8 src1, float8 src2);
16292float16 __ovld amd_max3(float16 src0, float16 src1, float16 src2);
16293
16294int __ovld amd_max3(int src0, int src1, int src2);
16295int2 __ovld amd_max3(int2 src0, int2 src1, int2 src2);
16296int3 __ovld amd_max3(int3 src0, int3 src1, int3 src2);
16297int4 __ovld amd_max3(int4 src0, int4 src1, int4 src2);
16298int8 __ovld amd_max3(int8 src0, int8 src1, int8 src2);
16299int16 __ovld amd_max3(int16 src0, int16 src1, int16 src2);
16300
16301uint __ovld amd_max3(uint src0, uint src1, uint src2);
16302uint2 __ovld amd_max3(uint2 src0, uint2 src1, uint2 src2);
16303uint3 __ovld amd_max3(uint3 src0, uint3 src1, uint3 src2);
16304uint4 __ovld amd_max3(uint4 src0, uint4 src1, uint4 src2);
16305uint8 __ovld amd_max3(uint8 src0, uint8 src1, uint8 src2);
16306uint16 __ovld amd_max3(uint16 src0, uint16 src1, uint16 src2);
16307
16308float __ovld amd_median3(float src0, float src1, float src2);
16309float2 __ovld amd_median3(float2 src0, float2 src1, float2 src2);
16310float3 __ovld amd_median3(float3 src0, float3 src1, float3 src2);
16311float4 __ovld amd_median3(float4 src0, float4 src1, float4 src2);
16312float8 __ovld amd_median3(float8 src0, float8 src1, float8 src2);
16313float16 __ovld amd_median3(float16 src0, float16 src1, float16 src2);
16314
16315int __ovld amd_median3(int src0, int src1, int src2);
16316int2 __ovld amd_median3(int2 src0, int2 src1, int2 src2);
16317int3 __ovld amd_median3(int3 src0, int3 src1, int3 src2);
16318int4 __ovld amd_median3(int4 src0, int4 src1, int4 src2);
16319int8 __ovld amd_median3(int8 src0, int8 src1, int8 src2);
16320int16 __ovld amd_median3(int16 src0, int16 src1, int16 src2);
16321
16322uint __ovld amd_median3(uint src0, uint src1, uint src2);
16323uint2 __ovld amd_median3(uint2 src0, uint2 src1, uint2 src2);
16324uint3 __ovld amd_median3(uint3 src0, uint3 src1, uint3 src2);
16325uint4 __ovld amd_median3(uint4 src0, uint4 src1, uint4 src2);
16326uint8 __ovld amd_median3(uint8 src0, uint8 src1, uint8 src2);
16327uint16 __ovld amd_median3(uint16 src0, uint16 src1, uint16 src2);
16328
16329float __ovld amd_min3(float src0, float src1, float src);
16330float2 __ovld amd_min3(float2 src0, float2 src1, float2 src);
16331float3 __ovld amd_min3(float3 src0, float3 src1, float3 src);
16332float4 __ovld amd_min3(float4 src0, float4 src1, float4 src);
16333float8 __ovld amd_min3(float8 src0, float8 src1, float8 src);
16334float16 __ovld amd_min3(float16 src0, float16 src1, float16 src);
16335
16336int __ovld amd_min3(int src0, int src1, int src2);
16337int2 __ovld amd_min3(int2 src0, int2 src1, int2 src2);
16338int3 __ovld amd_min3(int3 src0, int3 src1, int3 src2);
16339int4 __ovld amd_min3(int4 src0, int4 src1, int4 src2);
16340int8 __ovld amd_min3(int8 src0, int8 src1, int8 src2);
16341int16 __ovld amd_min3(int16 src0, int16 src1, int16 src2);
16342
16343uint __ovld amd_min3(uint src0, uint src1, uint src2);
16344uint2 __ovld amd_min3(uint2 src0, uint2 src1, uint2 src2);
16345uint3 __ovld amd_min3(uint3 src0, uint3 src1, uint3 src2);
16346uint4 __ovld amd_min3(uint4 src0, uint4 src1, uint4 src2);
16347uint8 __ovld amd_min3(uint8 src0, uint8 src1, uint8 src2);
16348uint16 __ovld amd_min3(uint16 src0, uint16 src1, uint16 src2);
16349
16350ulong __ovld amd_mqsad(ulong src0, uint src1, ulong src2);
16351ulong2 __ovld amd_mqsad(ulong2 src0, uint2 src1, ulong2 src2);
16352ulong3 __ovld amd_mqsad(ulong3 src0, uint3 src1, ulong3 src2);
16353ulong4 __ovld amd_mqsad(ulong4 src0, uint4 src1, ulong4 src2);
16354ulong8 __ovld amd_mqsad(ulong8 src0, uint8 src1, ulong8 src2);
16355ulong16 __ovld amd_mqsad(ulong16 src0, uint16 src1, ulong16 src2);
16356
16357ulong __ovld amd_qsad(ulong src0, uint src1, ulong src2);
16358ulong2 __ovld amd_qsad(ulong2 src0, uint2 src1, ulong2 src2);
16359ulong3 __ovld amd_qsad(ulong3 src0, uint3 src1, ulong3 src2);
16360ulong4 __ovld amd_qsad(ulong4 src0, uint4 src1, ulong4 src2);
16361ulong8 __ovld amd_qsad(ulong8 src0, uint8 src1, ulong8 src2);
16362ulong16 __ovld amd_qsad(ulong16 src0, uint16 src1, ulong16 src2);
16363
16364uint __ovld amd_msad(uint src0, uint src1, uint src2);
16365uint2 __ovld amd_msad(uint2 src0, uint2 src1, uint2 src2);
16366uint3 __ovld amd_msad(uint3 src0, uint3 src1, uint3 src2);
16367uint4 __ovld amd_msad(uint4 src0, uint4 src1, uint4 src2);
16368uint8 __ovld amd_msad(uint8 src0, uint8 src1, uint8 src2);
16369uint16 __ovld amd_msad(uint16 src0, uint16 src1, uint16 src2);
16370
16371uint __ovld amd_sadd(uint src0, uint src1, uint src2);
16372uint2 __ovld amd_sadd(uint2 src0, uint2 src1, uint2 src2);
16373uint3 __ovld amd_sadd(uint3 src0, uint3 src1, uint3 src2);
16374uint4 __ovld amd_sadd(uint4 src0, uint4 src1, uint4 src2);
16375uint8 __ovld amd_sadd(uint8 src0, uint8 src1, uint8 src2);
16376uint16 __ovld amd_sadd(uint16 src0, uint16 src1, uint16 src2);
16377
16378uint __ovld amd_sadw(uint src0, uint src1, uint src2);
16379uint2 __ovld amd_sadw(uint2 src0, uint2 src1, uint2 src2);
16380uint3 __ovld amd_sadw(uint3 src0, uint3 src1, uint3 src2);
16381uint4 __ovld amd_sadw(uint4 src0, uint4 src1, uint4 src2);
16382uint8 __ovld amd_sadw(uint8 src0, uint8 src1, uint8 src2);
16383uint16 __ovld amd_sadw(uint16 src0, uint16 src1, uint16 src2);
16384#endif // cl_amd_media_ops2
16385
16386// Disable any extensions we may have enabled previously.
16387#pragma OPENCL EXTENSION all : disable
16388
16389#undef __cnfn
16390#undef __ovld
16391#endif //_OPENCL_H_
16392