Clang Project

clang_source_code/lib/Headers/opencl-c.h
1//===--- opencl-c.h - OpenCL C language builtin function header -----------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef _OPENCL_H_
10#define _OPENCL_H_
11
12#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
13#ifndef cl_khr_depth_images
14#define cl_khr_depth_images
15#endif //cl_khr_depth_images
16#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
17
18#if __OPENCL_C_VERSION__ < CL_VERSION_2_0
19#ifdef cl_khr_3d_image_writes
20#pragma OPENCL EXTENSION cl_khr_3d_image_writes : enable
21#endif //cl_khr_3d_image_writes
22#endif //__OPENCL_C_VERSION__ < CL_VERSION_2_0
23
24#if __OPENCL_C_VERSION__ >= CL_VERSION_1_2
25#ifndef cl_intel_planar_yuv
26#define cl_intel_planar_yuv
27#endif // cl_intel_planar_yuv
28#pragma OPENCL EXTENSION cl_intel_planar_yuv : begin
29#pragma OPENCL EXTENSION cl_intel_planar_yuv : end
30#endif // __OPENCL_C_VERSION__ >= CL_VERSION_1_2
31
32#define __ovld __attribute__((overloadable))
33#define __conv __attribute__((convergent))
34
35// Optimizations
36#define __purefn __attribute__((pure))
37#define __cnfn __attribute__((const))
38
39// built-in scalar data types:
40
41/**
42 * An unsigned 8-bit integer.
43 */
44typedef unsigned char uchar;
45
46/**
47 * An unsigned 16-bit integer.
48 */
49typedef unsigned short ushort;
50
51/**
52 * An unsigned 32-bit integer.
53 */
54typedef unsigned int uint;
55
56/**
57 * An unsigned 64-bit integer.
58 */
59typedef unsigned long ulong;
60
61/**
62 * The unsigned integer type of the result of the sizeof operator. This
63 * is a 32-bit unsigned integer if CL_DEVICE_ADDRESS_BITS
64 * defined in table 4.3 is 32-bits and is a 64-bit unsigned integer if
65 * CL_DEVICE_ADDRESS_BITS is 64-bits.
66 */
67typedef __SIZE_TYPE__ size_t;
68
69/**
70 * A signed integer type that is the result of subtracting two pointers.
71 * This is a 32-bit signed integer if CL_DEVICE_ADDRESS_BITS
72 * defined in table 4.3 is 32-bits and is a 64-bit signed integer if
73 * CL_DEVICE_ADDRESS_BITS is 64-bits.
74 */
75typedef __PTRDIFF_TYPE__ ptrdiff_t;
76
77/**
78* A signed 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 __INTPTR_TYPE__ intptr_t;
83
84/**
85* An unsigned integer type with the property that any valid pointer to
86* void can be converted to this type, then converted back to pointer
87* to void, and the result will compare equal to the original pointer.
88*/
89typedef __UINTPTR_TYPE__ uintptr_t;
90
91// built-in vector data types:
92typedef char char2 __attribute__((ext_vector_type(2)));
93typedef char char3 __attribute__((ext_vector_type(3)));
94typedef char char4 __attribute__((ext_vector_type(4)));
95typedef char char8 __attribute__((ext_vector_type(8)));
96typedef char char16 __attribute__((ext_vector_type(16)));
97typedef uchar uchar2 __attribute__((ext_vector_type(2)));
98typedef uchar uchar3 __attribute__((ext_vector_type(3)));
99typedef uchar uchar4 __attribute__((ext_vector_type(4)));
100typedef uchar uchar8 __attribute__((ext_vector_type(8)));
101typedef uchar uchar16 __attribute__((ext_vector_type(16)));
102typedef short short2 __attribute__((ext_vector_type(2)));
103typedef short short3 __attribute__((ext_vector_type(3)));
104typedef short short4 __attribute__((ext_vector_type(4)));
105typedef short short8 __attribute__((ext_vector_type(8)));
106typedef short short16 __attribute__((ext_vector_type(16)));
107typedef ushort ushort2 __attribute__((ext_vector_type(2)));
108typedef ushort ushort3 __attribute__((ext_vector_type(3)));
109typedef ushort ushort4 __attribute__((ext_vector_type(4)));
110typedef ushort ushort8 __attribute__((ext_vector_type(8)));
111typedef ushort ushort16 __attribute__((ext_vector_type(16)));
112typedef int int2 __attribute__((ext_vector_type(2)));
113typedef int int3 __attribute__((ext_vector_type(3)));
114typedef int int4 __attribute__((ext_vector_type(4)));
115typedef int int8 __attribute__((ext_vector_type(8)));
116typedef int int16 __attribute__((ext_vector_type(16)));
117typedef uint uint2 __attribute__((ext_vector_type(2)));
118typedef uint uint3 __attribute__((ext_vector_type(3)));
119typedef uint uint4 __attribute__((ext_vector_type(4)));
120typedef uint uint8 __attribute__((ext_vector_type(8)));
121typedef uint uint16 __attribute__((ext_vector_type(16)));
122typedef long long2 __attribute__((ext_vector_type(2)));
123typedef long long3 __attribute__((ext_vector_type(3)));
124typedef long long4 __attribute__((ext_vector_type(4)));
125typedef long long8 __attribute__((ext_vector_type(8)));
126typedef long long16 __attribute__((ext_vector_type(16)));
127typedef ulong ulong2 __attribute__((ext_vector_type(2)));
128typedef ulong ulong3 __attribute__((ext_vector_type(3)));
129typedef ulong ulong4 __attribute__((ext_vector_type(4)));
130typedef ulong ulong8 __attribute__((ext_vector_type(8)));
131typedef ulong ulong16 __attribute__((ext_vector_type(16)));
132typedef float float2 __attribute__((ext_vector_type(2)));
133typedef float float3 __attribute__((ext_vector_type(3)));
134typedef float float4 __attribute__((ext_vector_type(4)));
135typedef float float8 __attribute__((ext_vector_type(8)));
136typedef float float16 __attribute__((ext_vector_type(16)));
137#ifdef cl_khr_fp16
138#pragma OPENCL EXTENSION cl_khr_fp16 : enable
139typedef half half2 __attribute__((ext_vector_type(2)));
140typedef half half3 __attribute__((ext_vector_type(3)));
141typedef half half4 __attribute__((ext_vector_type(4)));
142typedef half half8 __attribute__((ext_vector_type(8)));
143typedef half half16 __attribute__((ext_vector_type(16)));
144#endif
145#ifdef cl_khr_fp64
146#if __OPENCL_C_VERSION__ < CL_VERSION_1_2
147#pragma OPENCL EXTENSION cl_khr_fp64 : enable
148#endif
149typedef double double2 __attribute__((ext_vector_type(2)));
150typedef double double3 __attribute__((ext_vector_type(3)));
151typedef double double4 __attribute__((ext_vector_type(4)));
152typedef double double8 __attribute__((ext_vector_type(8)));
153typedef double double16 __attribute__((ext_vector_type(16)));
154#endif
155
156#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
157#define NULL ((void*)0)
158#endif
159
160/**
161 * Value of maximum non-infinite single-precision floating-point
162 * number.
163 */
164#define MAXFLOAT 0x1.fffffep127f
165
166/**
167 * A positive float constant expression. HUGE_VALF evaluates
168 * to +infinity. Used as an error value returned by the built-in
169 * math functions.
170 */
171#define HUGE_VALF (__builtin_huge_valf())
172
173/**
174 * A positive double constant expression. HUGE_VAL evaluates
175 * to +infinity. Used as an error value returned by the built-in
176 * math functions.
177 */
178#define HUGE_VAL (__builtin_huge_val())
179
180/**
181 * A constant expression of type float representing positive or
182 * unsigned infinity.
183 */
184#define INFINITY (__builtin_inff())
185
186/**
187 * A constant expression of type float representing a quiet NaN.
188 */
189#define NAN as_float(INT_MAX)
190
191#define FP_ILOGB0    INT_MIN
192#define FP_ILOGBNAN    INT_MAX
193
194#define FLT_DIG 6
195#define FLT_MANT_DIG 24
196#define FLT_MAX_10_EXP +38
197#define FLT_MAX_EXP +128
198#define FLT_MIN_10_EXP -37
199#define FLT_MIN_EXP -125
200#define FLT_RADIX 2
201#define FLT_MAX 0x1.fffffep127f
202#define FLT_MIN 0x1.0p-126f
203#define FLT_EPSILON 0x1.0p-23f
204
205#define M_E_F         2.71828182845904523536028747135266250f
206#define M_LOG2E_F     1.44269504088896340735992468100189214f
207#define M_LOG10E_F    0.434294481903251827651128918916605082f
208#define M_LN2_F       0.693147180559945309417232121458176568f
209#define M_LN10_F      2.30258509299404568401799145468436421f
210#define M_PI_F        3.14159265358979323846264338327950288f
211#define M_PI_2_F      1.57079632679489661923132169163975144f
212#define M_PI_4_F      0.785398163397448309615660845819875721f
213#define M_1_PI_F      0.318309886183790671537767526745028724f
214#define M_2_PI_F      0.636619772367581343075535053490057448f
215#define M_2_SQRTPI_F  1.12837916709551257389615890312154517f
216#define M_SQRT2_F     1.41421356237309504880168872420969808f
217#define M_SQRT1_2_F   0.707106781186547524400844362104849039f
218
219#define DBL_DIG 15
220#define DBL_MANT_DIG 53
221#define DBL_MAX_10_EXP +308
222#define DBL_MAX_EXP +1024
223#define DBL_MIN_10_EXP -307
224#define DBL_MIN_EXP -1021
225#define DBL_RADIX 2
226#define DBL_MAX 0x1.fffffffffffffp1023
227#define DBL_MIN 0x1.0p-1022
228#define DBL_EPSILON 0x1.0p-52
229
230#define M_E           0x1.5bf0a8b145769p+1
231#define M_LOG2E       0x1.71547652b82fep+0
232#define M_LOG10E      0x1.bcb7b1526e50ep-2
233#define M_LN2         0x1.62e42fefa39efp-1
234#define M_LN10        0x1.26bb1bbb55516p+1
235#define M_PI          0x1.921fb54442d18p+1
236#define M_PI_2        0x1.921fb54442d18p+0
237#define M_PI_4        0x1.921fb54442d18p-1
238#define M_1_PI        0x1.45f306dc9c883p-2
239#define M_2_PI        0x1.45f306dc9c883p-1
240#define M_2_SQRTPI    0x1.20dd750429b6dp+0
241#define M_SQRT2       0x1.6a09e667f3bcdp+0
242#define M_SQRT1_2     0x1.6a09e667f3bcdp-1
243
244#ifdef cl_khr_fp16
245
246#define HALF_DIG 3
247#define HALF_MANT_DIG 11
248#define HALF_MAX_10_EXP +4
249#define HALF_MAX_EXP +16
250#define HALF_MIN_10_EXP -4
251#define HALF_MIN_EXP -13
252#define HALF_RADIX 2
253#define HALF_MAX ((0x1.ffcp15h))
254#define HALF_MIN ((0x1.0p-14h))
255#define HALF_EPSILON ((0x1.0p-10h))
256
257#define M_E_H         2.71828182845904523536028747135266250h
258#define M_LOG2E_H     1.44269504088896340735992468100189214h
259#define M_LOG10E_H    0.434294481903251827651128918916605082h
260#define M_LN2_H       0.693147180559945309417232121458176568h
261#define M_LN10_H      2.30258509299404568401799145468436421h
262#define M_PI_H        3.14159265358979323846264338327950288h
263#define M_PI_2_H      1.57079632679489661923132169163975144h
264#define M_PI_4_H      0.785398163397448309615660845819875721h
265#define M_1_PI_H      0.318309886183790671537767526745028724h
266#define M_2_PI_H      0.636619772367581343075535053490057448h
267#define M_2_SQRTPI_H  1.12837916709551257389615890312154517h
268#define M_SQRT2_H     1.41421356237309504880168872420969808h
269#define M_SQRT1_2_H   0.707106781186547524400844362104849039h
270
271#endif //cl_khr_fp16
272
273#define CHAR_BIT    8
274#define SCHAR_MAX  127
275#define SCHAR_MIN  (-128)
276#define UCHAR_MAX  255
277#define CHAR_MAX  SCHAR_MAX
278#define CHAR_MIN  SCHAR_MIN
279#define USHRT_MAX  65535
280#define SHRT_MAX  32767
281#define SHRT_MIN  (-32768)
282#define UINT_MAX  0xffffffff
283#define INT_MAX    2147483647
284#define INT_MIN    (-2147483647-1)
285#define ULONG_MAX  0xffffffffffffffffUL
286#define LONG_MAX  0x7fffffffffffffffL
287#define LONG_MIN  (-0x7fffffffffffffffL-1)
288
289// OpenCL v1.1/1.2/2.0 s6.2.3 - Explicit conversions
290
291char __ovld __cnfn convert_char_rte(char);
292char __ovld __cnfn convert_char_sat_rte(char);
293char __ovld __cnfn convert_char_rtz(char);
294char __ovld __cnfn convert_char_sat_rtz(char);
295char __ovld __cnfn convert_char_rtp(char);
296char __ovld __cnfn convert_char_sat_rtp(char);
297char __ovld __cnfn convert_char_rtn(char);
298char __ovld __cnfn convert_char_sat_rtn(char);
299char __ovld __cnfn convert_char(char);
300char __ovld __cnfn convert_char_sat(char);
301char __ovld __cnfn convert_char_rte(uchar);
302char __ovld __cnfn convert_char_sat_rte(uchar);
303char __ovld __cnfn convert_char_rtz(uchar);
304char __ovld __cnfn convert_char_sat_rtz(uchar);
305char __ovld __cnfn convert_char_rtp(uchar);
306char __ovld __cnfn convert_char_sat_rtp(uchar);
307char __ovld __cnfn convert_char_rtn(uchar);
308char __ovld __cnfn convert_char_sat_rtn(uchar);
309char __ovld __cnfn convert_char(uchar);
310char __ovld __cnfn convert_char_sat(uchar);
311char __ovld __cnfn convert_char_rte(short);
312char __ovld __cnfn convert_char_sat_rte(short);
313char __ovld __cnfn convert_char_rtz(short);
314char __ovld __cnfn convert_char_sat_rtz(short);
315char __ovld __cnfn convert_char_rtp(short);
316char __ovld __cnfn convert_char_sat_rtp(short);
317char __ovld __cnfn convert_char_rtn(short);
318char __ovld __cnfn convert_char_sat_rtn(short);
319char __ovld __cnfn convert_char(short);
320char __ovld __cnfn convert_char_sat(short);
321char __ovld __cnfn convert_char_rte(ushort);
322char __ovld __cnfn convert_char_sat_rte(ushort);
323char __ovld __cnfn convert_char_rtz(ushort);
324char __ovld __cnfn convert_char_sat_rtz(ushort);
325char __ovld __cnfn convert_char_rtp(ushort);
326char __ovld __cnfn convert_char_sat_rtp(ushort);
327char __ovld __cnfn convert_char_rtn(ushort);
328char __ovld __cnfn convert_char_sat_rtn(ushort);
329char __ovld __cnfn convert_char(ushort);
330char __ovld __cnfn convert_char_sat(ushort);
331char __ovld __cnfn convert_char_rte(int);
332char __ovld __cnfn convert_char_sat_rte(int);
333char __ovld __cnfn convert_char_rtz(int);
334char __ovld __cnfn convert_char_sat_rtz(int);
335char __ovld __cnfn convert_char_rtp(int);
336char __ovld __cnfn convert_char_sat_rtp(int);
337char __ovld __cnfn convert_char_rtn(int);
338char __ovld __cnfn convert_char_sat_rtn(int);
339char __ovld __cnfn convert_char(int);
340char __ovld __cnfn convert_char_sat(int);
341char __ovld __cnfn convert_char_rte(uint);
342char __ovld __cnfn convert_char_sat_rte(uint);
343char __ovld __cnfn convert_char_rtz(uint);
344char __ovld __cnfn convert_char_sat_rtz(uint);
345char __ovld __cnfn convert_char_rtp(uint);
346char __ovld __cnfn convert_char_sat_rtp(uint);
347char __ovld __cnfn convert_char_rtn(uint);
348char __ovld __cnfn convert_char_sat_rtn(uint);
349char __ovld __cnfn convert_char(uint);
350char __ovld __cnfn convert_char_sat(uint);
351char __ovld __cnfn convert_char_rte(long);
352char __ovld __cnfn convert_char_sat_rte(long);
353char __ovld __cnfn convert_char_rtz(long);
354char __ovld __cnfn convert_char_sat_rtz(long);
355char __ovld __cnfn convert_char_rtp(long);
356char __ovld __cnfn convert_char_sat_rtp(long);
357char __ovld __cnfn convert_char_rtn(long);
358char __ovld __cnfn convert_char_sat_rtn(long);
359char __ovld __cnfn convert_char(long);
360char __ovld __cnfn convert_char_sat(long);
361char __ovld __cnfn convert_char_rte(ulong);
362char __ovld __cnfn convert_char_sat_rte(ulong);
363char __ovld __cnfn convert_char_rtz(ulong);
364char __ovld __cnfn convert_char_sat_rtz(ulong);
365char __ovld __cnfn convert_char_rtp(ulong);
366char __ovld __cnfn convert_char_sat_rtp(ulong);
367char __ovld __cnfn convert_char_rtn(ulong);
368char __ovld __cnfn convert_char_sat_rtn(ulong);
369char __ovld __cnfn convert_char(ulong);
370char __ovld __cnfn convert_char_sat(ulong);
371char __ovld __cnfn convert_char_rte(float);
372char __ovld __cnfn convert_char_sat_rte(float);
373char __ovld __cnfn convert_char_rtz(float);
374char __ovld __cnfn convert_char_sat_rtz(float);
375char __ovld __cnfn convert_char_rtp(float);
376char __ovld __cnfn convert_char_sat_rtp(float);
377char __ovld __cnfn convert_char_rtn(float);
378char __ovld __cnfn convert_char_sat_rtn(float);
379char __ovld __cnfn convert_char(float);
380char __ovld __cnfn convert_char_sat(float);
381uchar __ovld __cnfn convert_uchar_rte(char);
382uchar __ovld __cnfn convert_uchar_sat_rte(char);
383uchar __ovld __cnfn convert_uchar_rtz(char);
384uchar __ovld __cnfn convert_uchar_sat_rtz(char);
385uchar __ovld __cnfn convert_uchar_rtp(char);
386uchar __ovld __cnfn convert_uchar_sat_rtp(char);
387uchar __ovld __cnfn convert_uchar_rtn(char);
388uchar __ovld __cnfn convert_uchar_sat_rtn(char);
389uchar __ovld __cnfn convert_uchar(char);
390uchar __ovld __cnfn convert_uchar_sat(char);
391uchar __ovld __cnfn convert_uchar_rte(uchar);
392uchar __ovld __cnfn convert_uchar_sat_rte(uchar);
393uchar __ovld __cnfn convert_uchar_rtz(uchar);
394uchar __ovld __cnfn convert_uchar_sat_rtz(uchar);
395uchar __ovld __cnfn convert_uchar_rtp(uchar);
396uchar __ovld __cnfn convert_uchar_sat_rtp(uchar);
397uchar __ovld __cnfn convert_uchar_rtn(uchar);
398uchar __ovld __cnfn convert_uchar_sat_rtn(uchar);
399uchar __ovld __cnfn convert_uchar(uchar);
400uchar __ovld __cnfn convert_uchar_sat(uchar);
401uchar __ovld __cnfn convert_uchar_rte(short);
402uchar __ovld __cnfn convert_uchar_sat_rte(short);
403uchar __ovld __cnfn convert_uchar_rtz(short);
404uchar __ovld __cnfn convert_uchar_sat_rtz(short);
405uchar __ovld __cnfn convert_uchar_rtp(short);
406uchar __ovld __cnfn convert_uchar_sat_rtp(short);
407uchar __ovld __cnfn convert_uchar_rtn(short);
408uchar __ovld __cnfn convert_uchar_sat_rtn(short);
409uchar __ovld __cnfn convert_uchar(short);
410uchar __ovld __cnfn convert_uchar_sat(short);
411uchar __ovld __cnfn convert_uchar_rte(ushort);
412uchar __ovld __cnfn convert_uchar_sat_rte(ushort);
413uchar __ovld __cnfn convert_uchar_rtz(ushort);
414uchar __ovld __cnfn convert_uchar_sat_rtz(ushort);
415uchar __ovld __cnfn convert_uchar_rtp(ushort);
416uchar __ovld __cnfn convert_uchar_sat_rtp(ushort);
417uchar __ovld __cnfn convert_uchar_rtn(ushort);
418uchar __ovld __cnfn convert_uchar_sat_rtn(ushort);
419uchar __ovld __cnfn convert_uchar(ushort);
420uchar __ovld __cnfn convert_uchar_sat(ushort);
421uchar __ovld __cnfn convert_uchar_rte(int);
422uchar __ovld __cnfn convert_uchar_sat_rte(int);
423uchar __ovld __cnfn convert_uchar_rtz(int);
424uchar __ovld __cnfn convert_uchar_sat_rtz(int);
425uchar __ovld __cnfn convert_uchar_rtp(int);
426uchar __ovld __cnfn convert_uchar_sat_rtp(int);
427uchar __ovld __cnfn convert_uchar_rtn(int);
428uchar __ovld __cnfn convert_uchar_sat_rtn(int);
429uchar __ovld __cnfn convert_uchar(int);
430uchar __ovld __cnfn convert_uchar_sat(int);
431uchar __ovld __cnfn convert_uchar_rte(uint);
432uchar __ovld __cnfn convert_uchar_sat_rte(uint);
433uchar __ovld __cnfn convert_uchar_rtz(uint);
434uchar __ovld __cnfn convert_uchar_sat_rtz(uint);
435uchar __ovld __cnfn convert_uchar_rtp(uint);
436uchar __ovld __cnfn convert_uchar_sat_rtp(uint);
437uchar __ovld __cnfn convert_uchar_rtn(uint);
438uchar __ovld __cnfn convert_uchar_sat_rtn(uint);
439uchar __ovld __cnfn convert_uchar(uint);
440uchar __ovld __cnfn convert_uchar_sat(uint);
441uchar __ovld __cnfn convert_uchar_rte(long);
442uchar __ovld __cnfn convert_uchar_sat_rte(long);
443uchar __ovld __cnfn convert_uchar_rtz(long);
444uchar __ovld __cnfn convert_uchar_sat_rtz(long);
445uchar __ovld __cnfn convert_uchar_rtp(long);
446uchar __ovld __cnfn convert_uchar_sat_rtp(long);
447uchar __ovld __cnfn convert_uchar_rtn(long);
448uchar __ovld __cnfn convert_uchar_sat_rtn(long);
449uchar __ovld __cnfn convert_uchar(long);
450uchar __ovld __cnfn convert_uchar_sat(long);
451uchar __ovld __cnfn convert_uchar_rte(ulong);
452uchar __ovld __cnfn convert_uchar_sat_rte(ulong);
453uchar __ovld __cnfn convert_uchar_rtz(ulong);
454uchar __ovld __cnfn convert_uchar_sat_rtz(ulong);
455uchar __ovld __cnfn convert_uchar_rtp(ulong);
456uchar __ovld __cnfn convert_uchar_sat_rtp(ulong);
457uchar __ovld __cnfn convert_uchar_rtn(ulong);
458uchar __ovld __cnfn convert_uchar_sat_rtn(ulong);
459uchar __ovld __cnfn convert_uchar(ulong);
460uchar __ovld __cnfn convert_uchar_sat(ulong);
461uchar __ovld __cnfn convert_uchar_rte(float);
462uchar __ovld __cnfn convert_uchar_sat_rte(float);
463uchar __ovld __cnfn convert_uchar_rtz(float);
464uchar __ovld __cnfn convert_uchar_sat_rtz(float);
465uchar __ovld __cnfn convert_uchar_rtp(float);
466uchar __ovld __cnfn convert_uchar_sat_rtp(float);
467uchar __ovld __cnfn convert_uchar_rtn(float);
468uchar __ovld __cnfn convert_uchar_sat_rtn(float);
469uchar __ovld __cnfn convert_uchar(float);
470uchar __ovld __cnfn convert_uchar_sat(float);
471
472short __ovld __cnfn convert_short_rte(char);
473short __ovld __cnfn convert_short_sat_rte(char);
474short __ovld __cnfn convert_short_rtz(char);
475short __ovld __cnfn convert_short_sat_rtz(char);
476short __ovld __cnfn convert_short_rtp(char);
477short __ovld __cnfn convert_short_sat_rtp(char);
478short __ovld __cnfn convert_short_rtn(char);
479short __ovld __cnfn convert_short_sat_rtn(char);
480short __ovld __cnfn convert_short(char);
481short __ovld __cnfn convert_short_sat(char);
482short __ovld __cnfn convert_short_rte(uchar);
483short __ovld __cnfn convert_short_sat_rte(uchar);
484short __ovld __cnfn convert_short_rtz(uchar);
485short __ovld __cnfn convert_short_sat_rtz(uchar);
486short __ovld __cnfn convert_short_rtp(uchar);
487short __ovld __cnfn convert_short_sat_rtp(uchar);
488short __ovld __cnfn convert_short_rtn(uchar);
489short __ovld __cnfn convert_short_sat_rtn(uchar);
490short __ovld __cnfn convert_short(uchar);
491short __ovld __cnfn convert_short_sat(uchar);
492short __ovld __cnfn convert_short_rte(short);
493short __ovld __cnfn convert_short_sat_rte(short);
494short __ovld __cnfn convert_short_rtz(short);
495short __ovld __cnfn convert_short_sat_rtz(short);
496short __ovld __cnfn convert_short_rtp(short);
497short __ovld __cnfn convert_short_sat_rtp(short);
498short __ovld __cnfn convert_short_rtn(short);
499short __ovld __cnfn convert_short_sat_rtn(short);
500short __ovld __cnfn convert_short(short);
501short __ovld __cnfn convert_short_sat(short);
502short __ovld __cnfn convert_short_rte(ushort);
503short __ovld __cnfn convert_short_sat_rte(ushort);
504short __ovld __cnfn convert_short_rtz(ushort);
505short __ovld __cnfn convert_short_sat_rtz(ushort);
506short __ovld __cnfn convert_short_rtp(ushort);
507short __ovld __cnfn convert_short_sat_rtp(ushort);
508short __ovld __cnfn convert_short_rtn(ushort);
509short __ovld __cnfn convert_short_sat_rtn(ushort);
510short __ovld __cnfn convert_short(ushort);
511short __ovld __cnfn convert_short_sat(ushort);
512short __ovld __cnfn convert_short_rte(int);
513short __ovld __cnfn convert_short_sat_rte(int);
514short __ovld __cnfn convert_short_rtz(int);
515short __ovld __cnfn convert_short_sat_rtz(int);
516short __ovld __cnfn convert_short_rtp(int);
517short __ovld __cnfn convert_short_sat_rtp(int);
518short __ovld __cnfn convert_short_rtn(int);
519short __ovld __cnfn convert_short_sat_rtn(int);
520short __ovld __cnfn convert_short(int);
521short __ovld __cnfn convert_short_sat(int);
522short __ovld __cnfn convert_short_rte(uint);
523short __ovld __cnfn convert_short_sat_rte(uint);
524short __ovld __cnfn convert_short_rtz(uint);
525short __ovld __cnfn convert_short_sat_rtz(uint);
526short __ovld __cnfn convert_short_rtp(uint);
527short __ovld __cnfn convert_short_sat_rtp(uint);
528short __ovld __cnfn convert_short_rtn(uint);
529short __ovld __cnfn convert_short_sat_rtn(uint);
530short __ovld __cnfn convert_short(uint);
531short __ovld __cnfn convert_short_sat(uint);
532short __ovld __cnfn convert_short_rte(long);
533short __ovld __cnfn convert_short_sat_rte(long);
534short __ovld __cnfn convert_short_rtz(long);
535short __ovld __cnfn convert_short_sat_rtz(long);
536short __ovld __cnfn convert_short_rtp(long);
537short __ovld __cnfn convert_short_sat_rtp(long);
538short __ovld __cnfn convert_short_rtn(long);
539short __ovld __cnfn convert_short_sat_rtn(long);
540short __ovld __cnfn convert_short(long);
541short __ovld __cnfn convert_short_sat(long);
542short __ovld __cnfn convert_short_rte(ulong);
543short __ovld __cnfn convert_short_sat_rte(ulong);
544short __ovld __cnfn convert_short_rtz(ulong);
545short __ovld __cnfn convert_short_sat_rtz(ulong);
546short __ovld __cnfn convert_short_rtp(ulong);
547short __ovld __cnfn convert_short_sat_rtp(ulong);
548short __ovld __cnfn convert_short_rtn(ulong);
549short __ovld __cnfn convert_short_sat_rtn(ulong);
550short __ovld __cnfn convert_short(ulong);
551short __ovld __cnfn convert_short_sat(ulong);
552short __ovld __cnfn convert_short_rte(float);
553short __ovld __cnfn convert_short_sat_rte(float);
554short __ovld __cnfn convert_short_rtz(float);
555short __ovld __cnfn convert_short_sat_rtz(float);
556short __ovld __cnfn convert_short_rtp(float);
557short __ovld __cnfn convert_short_sat_rtp(float);
558short __ovld __cnfn convert_short_rtn(float);
559short __ovld __cnfn convert_short_sat_rtn(float);
560short __ovld __cnfn convert_short(float);
561short __ovld __cnfn convert_short_sat(float);
562ushort __ovld __cnfn convert_ushort_rte(char);
563ushort __ovld __cnfn convert_ushort_sat_rte(char);
564ushort __ovld __cnfn convert_ushort_rtz(char);
565ushort __ovld __cnfn convert_ushort_sat_rtz(char);
566ushort __ovld __cnfn convert_ushort_rtp(char);
567ushort __ovld __cnfn convert_ushort_sat_rtp(char);
568ushort __ovld __cnfn convert_ushort_rtn(char);
569ushort __ovld __cnfn convert_ushort_sat_rtn(char);
570ushort __ovld __cnfn convert_ushort(char);
571ushort __ovld __cnfn convert_ushort_sat(char);
572ushort __ovld __cnfn convert_ushort_rte(uchar);
573ushort __ovld __cnfn convert_ushort_sat_rte(uchar);
574ushort __ovld __cnfn convert_ushort_rtz(uchar);
575ushort __ovld __cnfn convert_ushort_sat_rtz(uchar);
576ushort __ovld __cnfn convert_ushort_rtp(uchar);
577ushort __ovld __cnfn convert_ushort_sat_rtp(uchar);
578ushort __ovld __cnfn convert_ushort_rtn(uchar);
579ushort __ovld __cnfn convert_ushort_sat_rtn(uchar);
580ushort __ovld __cnfn convert_ushort(uchar);
581ushort __ovld __cnfn convert_ushort_sat(uchar);
582ushort __ovld __cnfn convert_ushort_rte(short);
583ushort __ovld __cnfn convert_ushort_sat_rte(short);
584ushort __ovld __cnfn convert_ushort_rtz(short);
585ushort __ovld __cnfn convert_ushort_sat_rtz(short);
586ushort __ovld __cnfn convert_ushort_rtp(short);
587ushort __ovld __cnfn convert_ushort_sat_rtp(short);
588ushort __ovld __cnfn convert_ushort_rtn(short);
589ushort __ovld __cnfn convert_ushort_sat_rtn(short);
590ushort __ovld __cnfn convert_ushort(short);
591ushort __ovld __cnfn convert_ushort_sat(short);
592ushort __ovld __cnfn convert_ushort_rte(ushort);
593ushort __ovld __cnfn convert_ushort_sat_rte(ushort);
594ushort __ovld __cnfn convert_ushort_rtz(ushort);
595ushort __ovld __cnfn convert_ushort_sat_rtz(ushort);
596ushort __ovld __cnfn convert_ushort_rtp(ushort);
597ushort __ovld __cnfn convert_ushort_sat_rtp(ushort);
598ushort __ovld __cnfn convert_ushort_rtn(ushort);
599ushort __ovld __cnfn convert_ushort_sat_rtn(ushort);
600ushort __ovld __cnfn convert_ushort(ushort);
601ushort __ovld __cnfn convert_ushort_sat(ushort);
602ushort __ovld __cnfn convert_ushort_rte(int);
603ushort __ovld __cnfn convert_ushort_sat_rte(int);
604ushort __ovld __cnfn convert_ushort_rtz(int);
605ushort __ovld __cnfn convert_ushort_sat_rtz(int);
606ushort __ovld __cnfn convert_ushort_rtp(int);
607ushort __ovld __cnfn convert_ushort_sat_rtp(int);
608ushort __ovld __cnfn convert_ushort_rtn(int);
609ushort __ovld __cnfn convert_ushort_sat_rtn(int);
610ushort __ovld __cnfn convert_ushort(int);
611ushort __ovld __cnfn convert_ushort_sat(int);
612ushort __ovld __cnfn convert_ushort_rte(uint);
613ushort __ovld __cnfn convert_ushort_sat_rte(uint);
614ushort __ovld __cnfn convert_ushort_rtz(uint);
615ushort __ovld __cnfn convert_ushort_sat_rtz(uint);
616ushort __ovld __cnfn convert_ushort_rtp(uint);
617ushort __ovld __cnfn convert_ushort_sat_rtp(uint);
618ushort __ovld __cnfn convert_ushort_rtn(uint);
619ushort __ovld __cnfn convert_ushort_sat_rtn(uint);
620ushort __ovld __cnfn convert_ushort(uint);
621ushort __ovld __cnfn convert_ushort_sat(uint);
622ushort __ovld __cnfn convert_ushort_rte(long);
623ushort __ovld __cnfn convert_ushort_sat_rte(long);
624ushort __ovld __cnfn convert_ushort_rtz(long);
625ushort __ovld __cnfn convert_ushort_sat_rtz(long);
626ushort __ovld __cnfn convert_ushort_rtp(long);
627ushort __ovld __cnfn convert_ushort_sat_rtp(long);
628ushort __ovld __cnfn convert_ushort_rtn(long);
629ushort __ovld __cnfn convert_ushort_sat_rtn(long);
630ushort __ovld __cnfn convert_ushort(long);
631ushort __ovld __cnfn convert_ushort_sat(long);
632ushort __ovld __cnfn convert_ushort_rte(ulong);
633ushort __ovld __cnfn convert_ushort_sat_rte(ulong);
634ushort __ovld __cnfn convert_ushort_rtz(ulong);
635ushort __ovld __cnfn convert_ushort_sat_rtz(ulong);
636ushort __ovld __cnfn convert_ushort_rtp(ulong);
637ushort __ovld __cnfn convert_ushort_sat_rtp(ulong);
638ushort __ovld __cnfn convert_ushort_rtn(ulong);
639ushort __ovld __cnfn convert_ushort_sat_rtn(ulong);
640ushort __ovld __cnfn convert_ushort(ulong);
641ushort __ovld __cnfn convert_ushort_sat(ulong);
642ushort __ovld __cnfn convert_ushort_rte(float);
643ushort __ovld __cnfn convert_ushort_sat_rte(float);
644ushort __ovld __cnfn convert_ushort_rtz(float);
645ushort __ovld __cnfn convert_ushort_sat_rtz(float);
646ushort __ovld __cnfn convert_ushort_rtp(float);
647ushort __ovld __cnfn convert_ushort_sat_rtp(float);
648ushort __ovld __cnfn convert_ushort_rtn(float);
649ushort __ovld __cnfn convert_ushort_sat_rtn(float);
650ushort __ovld __cnfn convert_ushort(float);
651ushort __ovld __cnfn convert_ushort_sat(float);
652int __ovld __cnfn convert_int_rte(char);
653int __ovld __cnfn convert_int_sat_rte(char);
654int __ovld __cnfn convert_int_rtz(char);
655int __ovld __cnfn convert_int_sat_rtz(char);
656int __ovld __cnfn convert_int_rtp(char);
657int __ovld __cnfn convert_int_sat_rtp(char);
658int __ovld __cnfn convert_int_rtn(char);
659int __ovld __cnfn convert_int_sat_rtn(char);
660int __ovld __cnfn convert_int(char);
661int __ovld __cnfn convert_int_sat(char);
662int __ovld __cnfn convert_int_rte(uchar);
663int __ovld __cnfn convert_int_sat_rte(uchar);
664int __ovld __cnfn convert_int_rtz(uchar);
665int __ovld __cnfn convert_int_sat_rtz(uchar);
666int __ovld __cnfn convert_int_rtp(uchar);
667int __ovld __cnfn convert_int_sat_rtp(uchar);
668int __ovld __cnfn convert_int_rtn(uchar);
669int __ovld __cnfn convert_int_sat_rtn(uchar);
670int __ovld __cnfn convert_int(uchar);
671int __ovld __cnfn convert_int_sat(uchar);
672int __ovld __cnfn convert_int_rte(short);
673int __ovld __cnfn convert_int_sat_rte(short);
674int __ovld __cnfn convert_int_rtz(short);
675int __ovld __cnfn convert_int_sat_rtz(short);
676int __ovld __cnfn convert_int_rtp(short);
677int __ovld __cnfn convert_int_sat_rtp(short);
678int __ovld __cnfn convert_int_rtn(short);
679int __ovld __cnfn convert_int_sat_rtn(short);
680int __ovld __cnfn convert_int(short);
681int __ovld __cnfn convert_int_sat(short);
682int __ovld __cnfn convert_int_rte(ushort);
683int __ovld __cnfn convert_int_sat_rte(ushort);
684int __ovld __cnfn convert_int_rtz(ushort);
685int __ovld __cnfn convert_int_sat_rtz(ushort);
686int __ovld __cnfn convert_int_rtp(ushort);
687int __ovld __cnfn convert_int_sat_rtp(ushort);
688int __ovld __cnfn convert_int_rtn(ushort);
689int __ovld __cnfn convert_int_sat_rtn(ushort);
690int __ovld __cnfn convert_int(ushort);
691int __ovld __cnfn convert_int_sat(ushort);
692int __ovld __cnfn convert_int_rte(int);
693int __ovld __cnfn convert_int_sat_rte(int);
694int __ovld __cnfn convert_int_rtz(int);
695int __ovld __cnfn convert_int_sat_rtz(int);
696int __ovld __cnfn convert_int_rtp(int);
697int __ovld __cnfn convert_int_sat_rtp(int);
698int __ovld __cnfn convert_int_rtn(int);
699int __ovld __cnfn convert_int_sat_rtn(int);
700int __ovld __cnfn convert_int(int);
701int __ovld __cnfn convert_int_sat(int);
702int __ovld __cnfn convert_int_rte(uint);
703int __ovld __cnfn convert_int_sat_rte(uint);
704int __ovld __cnfn convert_int_rtz(uint);
705int __ovld __cnfn convert_int_sat_rtz(uint);
706int __ovld __cnfn convert_int_rtp(uint);
707int __ovld __cnfn convert_int_sat_rtp(uint);
708int __ovld __cnfn convert_int_rtn(uint);
709int __ovld __cnfn convert_int_sat_rtn(uint);
710int __ovld __cnfn convert_int(uint);
711int __ovld __cnfn convert_int_sat(uint);
712int __ovld __cnfn convert_int_rte(long);
713int __ovld __cnfn convert_int_sat_rte(long);
714int __ovld __cnfn convert_int_rtz(long);
715int __ovld __cnfn convert_int_sat_rtz(long);
716int __ovld __cnfn convert_int_rtp(long);
717int __ovld __cnfn convert_int_sat_rtp(long);
718int __ovld __cnfn convert_int_rtn(long);
719int __ovld __cnfn convert_int_sat_rtn(long);
720int __ovld __cnfn convert_int(long);
721int __ovld __cnfn convert_int_sat(long);
722int __ovld __cnfn convert_int_rte(ulong);
723int __ovld __cnfn convert_int_sat_rte(ulong);
724int __ovld __cnfn convert_int_rtz(ulong);
725int __ovld __cnfn convert_int_sat_rtz(ulong);
726int __ovld __cnfn convert_int_rtp(ulong);
727int __ovld __cnfn convert_int_sat_rtp(ulong);
728int __ovld __cnfn convert_int_rtn(ulong);
729int __ovld __cnfn convert_int_sat_rtn(ulong);
730int __ovld __cnfn convert_int(ulong);
731int __ovld __cnfn convert_int_sat(ulong);
732int __ovld __cnfn convert_int_rte(float);
733int __ovld __cnfn convert_int_sat_rte(float);
734int __ovld __cnfn convert_int_rtz(float);
735int __ovld __cnfn convert_int_sat_rtz(float);
736int __ovld __cnfn convert_int_rtp(float);
737int __ovld __cnfn convert_int_sat_rtp(float);
738int __ovld __cnfn convert_int_rtn(float);
739int __ovld __cnfn convert_int_sat_rtn(float);
740int __ovld __cnfn convert_int(float);
741int __ovld __cnfn convert_int_sat(float);
742uint __ovld __cnfn convert_uint_rte(char);
743uint __ovld __cnfn convert_uint_sat_rte(char);
744uint __ovld __cnfn convert_uint_rtz(char);
745uint __ovld __cnfn convert_uint_sat_rtz(char);
746uint __ovld __cnfn convert_uint_rtp(char);
747uint __ovld __cnfn convert_uint_sat_rtp(char);
748uint __ovld __cnfn convert_uint_rtn(char);
749uint __ovld __cnfn convert_uint_sat_rtn(char);
750uint __ovld __cnfn convert_uint(char);
751uint __ovld __cnfn convert_uint_sat(char);
752uint __ovld __cnfn convert_uint_rte(uchar);
753uint __ovld __cnfn convert_uint_sat_rte(uchar);
754uint __ovld __cnfn convert_uint_rtz(uchar);
755uint __ovld __cnfn convert_uint_sat_rtz(uchar);
756uint __ovld __cnfn convert_uint_rtp(uchar);
757uint __ovld __cnfn convert_uint_sat_rtp(uchar);
758uint __ovld __cnfn convert_uint_rtn(uchar);
759uint __ovld __cnfn convert_uint_sat_rtn(uchar);
760uint __ovld __cnfn convert_uint(uchar);
761uint __ovld __cnfn convert_uint_sat(uchar);
762uint __ovld __cnfn convert_uint_rte(short);
763uint __ovld __cnfn convert_uint_sat_rte(short);
764uint __ovld __cnfn convert_uint_rtz(short);
765uint __ovld __cnfn convert_uint_sat_rtz(short);
766uint __ovld __cnfn convert_uint_rtp(short);
767uint __ovld __cnfn convert_uint_sat_rtp(short);
768uint __ovld __cnfn convert_uint_rtn(short);
769uint __ovld __cnfn convert_uint_sat_rtn(short);
770uint __ovld __cnfn convert_uint(short);
771uint __ovld __cnfn convert_uint_sat(short);
772uint __ovld __cnfn convert_uint_rte(ushort);
773uint __ovld __cnfn convert_uint_sat_rte(ushort);
774uint __ovld __cnfn convert_uint_rtz(ushort);
775uint __ovld __cnfn convert_uint_sat_rtz(ushort);
776uint __ovld __cnfn convert_uint_rtp(ushort);
777uint __ovld __cnfn convert_uint_sat_rtp(ushort);
778uint __ovld __cnfn convert_uint_rtn(ushort);
779uint __ovld __cnfn convert_uint_sat_rtn(ushort);
780uint __ovld __cnfn convert_uint(ushort);
781uint __ovld __cnfn convert_uint_sat(ushort);
782uint __ovld __cnfn convert_uint_rte(int);
783uint __ovld __cnfn convert_uint_sat_rte(int);
784uint __ovld __cnfn convert_uint_rtz(int);
785uint __ovld __cnfn convert_uint_sat_rtz(int);
786uint __ovld __cnfn convert_uint_rtp(int);
787uint __ovld __cnfn convert_uint_sat_rtp(int);
788uint __ovld __cnfn convert_uint_rtn(int);
789uint __ovld __cnfn convert_uint_sat_rtn(int);
790uint __ovld __cnfn convert_uint(int);
791uint __ovld __cnfn convert_uint_sat(int);
792uint __ovld __cnfn convert_uint_rte(uint);
793uint __ovld __cnfn convert_uint_sat_rte(uint);
794uint __ovld __cnfn convert_uint_rtz(uint);
795uint __ovld __cnfn convert_uint_sat_rtz(uint);
796uint __ovld __cnfn convert_uint_rtp(uint);
797uint __ovld __cnfn convert_uint_sat_rtp(uint);
798uint __ovld __cnfn convert_uint_rtn(uint);
799uint __ovld __cnfn convert_uint_sat_rtn(uint);
800uint __ovld __cnfn convert_uint(uint);
801uint __ovld __cnfn convert_uint_sat(uint);
802uint __ovld __cnfn convert_uint_rte(long);
803uint __ovld __cnfn convert_uint_sat_rte(long);
804uint __ovld __cnfn convert_uint_rtz(long);
805uint __ovld __cnfn convert_uint_sat_rtz(long);
806uint __ovld __cnfn convert_uint_rtp(long);
807uint __ovld __cnfn convert_uint_sat_rtp(long);
808uint __ovld __cnfn convert_uint_rtn(long);
809uint __ovld __cnfn convert_uint_sat_rtn(long);
810uint __ovld __cnfn convert_uint(long);
811uint __ovld __cnfn convert_uint_sat(long);
812uint __ovld __cnfn convert_uint_rte(ulong);
813uint __ovld __cnfn convert_uint_sat_rte(ulong);
814uint __ovld __cnfn convert_uint_rtz(ulong);
815uint __ovld __cnfn convert_uint_sat_rtz(ulong);
816uint __ovld __cnfn convert_uint_rtp(ulong);
817uint __ovld __cnfn convert_uint_sat_rtp(ulong);
818uint __ovld __cnfn convert_uint_rtn(ulong);
819uint __ovld __cnfn convert_uint_sat_rtn(ulong);
820uint __ovld __cnfn convert_uint(ulong);
821uint __ovld __cnfn convert_uint_sat(ulong);
822uint __ovld __cnfn convert_uint_rte(float);
823uint __ovld __cnfn convert_uint_sat_rte(float);
824uint __ovld __cnfn convert_uint_rtz(float);
825uint __ovld __cnfn convert_uint_sat_rtz(float);
826uint __ovld __cnfn convert_uint_rtp(float);
827uint __ovld __cnfn convert_uint_sat_rtp(float);
828uint __ovld __cnfn convert_uint_rtn(float);
829uint __ovld __cnfn convert_uint_sat_rtn(float);
830uint __ovld __cnfn convert_uint(float);
831uint __ovld __cnfn convert_uint_sat(float);
832long __ovld __cnfn convert_long_rte(char);
833long __ovld __cnfn convert_long_sat_rte(char);
834long __ovld __cnfn convert_long_rtz(char);
835long __ovld __cnfn convert_long_sat_rtz(char);
836long __ovld __cnfn convert_long_rtp(char);
837long __ovld __cnfn convert_long_sat_rtp(char);
838long __ovld __cnfn convert_long_rtn(char);
839long __ovld __cnfn convert_long_sat_rtn(char);
840long __ovld __cnfn convert_long(char);
841long __ovld __cnfn convert_long_sat(char);
842long __ovld __cnfn convert_long_rte(uchar);
843long __ovld __cnfn convert_long_sat_rte(uchar);
844long __ovld __cnfn convert_long_rtz(uchar);
845long __ovld __cnfn convert_long_sat_rtz(uchar);
846long __ovld __cnfn convert_long_rtp(uchar);
847long __ovld __cnfn convert_long_sat_rtp(uchar);
848long __ovld __cnfn convert_long_rtn(uchar);
849long __ovld __cnfn convert_long_sat_rtn(uchar);
850long __ovld __cnfn convert_long(uchar);
851long __ovld __cnfn convert_long_sat(uchar);
852long __ovld __cnfn convert_long_rte(short);
853long __ovld __cnfn convert_long_sat_rte(short);
854long __ovld __cnfn convert_long_rtz(short);
855long __ovld __cnfn convert_long_sat_rtz(short);
856long __ovld __cnfn convert_long_rtp(short);
857long __ovld __cnfn convert_long_sat_rtp(short);
858long __ovld __cnfn convert_long_rtn(short);
859long __ovld __cnfn convert_long_sat_rtn(short);
860long __ovld __cnfn convert_long(short);
861long __ovld __cnfn convert_long_sat(short);
862long __ovld __cnfn convert_long_rte(ushort);
863long __ovld __cnfn convert_long_sat_rte(ushort);
864long __ovld __cnfn convert_long_rtz(ushort);
865long __ovld __cnfn convert_long_sat_rtz(ushort);
866long __ovld __cnfn convert_long_rtp(ushort);
867long __ovld __cnfn convert_long_sat_rtp(ushort);
868long __ovld __cnfn convert_long_rtn(ushort);
869long __ovld __cnfn convert_long_sat_rtn(ushort);
870long __ovld __cnfn convert_long(ushort);
871long __ovld __cnfn convert_long_sat(ushort);
872long __ovld __cnfn convert_long_rte(int);
873long __ovld __cnfn convert_long_sat_rte(int);
874long __ovld __cnfn convert_long_rtz(int);
875long __ovld __cnfn convert_long_sat_rtz(int);
876long __ovld __cnfn convert_long_rtp(int);
877long __ovld __cnfn convert_long_sat_rtp(int);
878long __ovld __cnfn convert_long_rtn(int);
879long __ovld __cnfn convert_long_sat_rtn(int);
880long __ovld __cnfn convert_long(int);
881long __ovld __cnfn convert_long_sat(int);
882long __ovld __cnfn convert_long_rte(uint);
883long __ovld __cnfn convert_long_sat_rte(uint);
884long __ovld __cnfn convert_long_rtz(uint);
885long __ovld __cnfn convert_long_sat_rtz(uint);
886long __ovld __cnfn convert_long_rtp(uint);
887long __ovld __cnfn convert_long_sat_rtp(uint);
888long __ovld __cnfn convert_long_rtn(uint);
889long __ovld __cnfn convert_long_sat_rtn(uint);
890long __ovld __cnfn convert_long(uint);
891long __ovld __cnfn convert_long_sat(uint);
892long __ovld __cnfn convert_long_rte(long);
893long __ovld __cnfn convert_long_sat_rte(long);
894long __ovld __cnfn convert_long_rtz(long);
895long __ovld __cnfn convert_long_sat_rtz(long);
896long __ovld __cnfn convert_long_rtp(long);
897long __ovld __cnfn convert_long_sat_rtp(long);
898long __ovld __cnfn convert_long_rtn(long);
899long __ovld __cnfn convert_long_sat_rtn(long);
900long __ovld __cnfn convert_long(long);
901long __ovld __cnfn convert_long_sat(long);
902long __ovld __cnfn convert_long_rte(ulong);
903long __ovld __cnfn convert_long_sat_rte(ulong);
904long __ovld __cnfn convert_long_rtz(ulong);
905long __ovld __cnfn convert_long_sat_rtz(ulong);
906long __ovld __cnfn convert_long_rtp(ulong);
907long __ovld __cnfn convert_long_sat_rtp(ulong);
908long __ovld __cnfn convert_long_rtn(ulong);
909long __ovld __cnfn convert_long_sat_rtn(ulong);
910long __ovld __cnfn convert_long(ulong);
911long __ovld __cnfn convert_long_sat(ulong);
912long __ovld __cnfn convert_long_rte(float);
913long __ovld __cnfn convert_long_sat_rte(float);
914long __ovld __cnfn convert_long_rtz(float);
915long __ovld __cnfn convert_long_sat_rtz(float);
916long __ovld __cnfn convert_long_rtp(float);
917long __ovld __cnfn convert_long_sat_rtp(float);
918long __ovld __cnfn convert_long_rtn(float);
919long __ovld __cnfn convert_long_sat_rtn(float);
920long __ovld __cnfn convert_long(float);
921long __ovld __cnfn convert_long_sat(float);
922ulong __ovld __cnfn convert_ulong_rte(char);
923ulong __ovld __cnfn convert_ulong_sat_rte(char);
924ulong __ovld __cnfn convert_ulong_rtz(char);
925ulong __ovld __cnfn convert_ulong_sat_rtz(char);
926ulong __ovld __cnfn convert_ulong_rtp(char);
927ulong __ovld __cnfn convert_ulong_sat_rtp(char);
928ulong __ovld __cnfn convert_ulong_rtn(char);
929ulong __ovld __cnfn convert_ulong_sat_rtn(char);
930ulong __ovld __cnfn convert_ulong(char);
931ulong __ovld __cnfn convert_ulong_sat(char);
932ulong __ovld __cnfn convert_ulong_rte(uchar);
933ulong __ovld __cnfn convert_ulong_sat_rte(uchar);
934ulong __ovld __cnfn convert_ulong_rtz(uchar);
935ulong __ovld __cnfn convert_ulong_sat_rtz(uchar);
936ulong __ovld __cnfn convert_ulong_rtp(uchar);
937ulong __ovld __cnfn convert_ulong_sat_rtp(uchar);
938ulong __ovld __cnfn convert_ulong_rtn(uchar);
939ulong __ovld __cnfn convert_ulong_sat_rtn(uchar);
940ulong __ovld __cnfn convert_ulong(uchar);
941ulong __ovld __cnfn convert_ulong_sat(uchar);
942ulong __ovld __cnfn convert_ulong_rte(short);
943ulong __ovld __cnfn convert_ulong_sat_rte(short);
944ulong __ovld __cnfn convert_ulong_rtz(short);
945ulong __ovld __cnfn convert_ulong_sat_rtz(short);
946ulong __ovld __cnfn convert_ulong_rtp(short);
947ulong __ovld __cnfn convert_ulong_sat_rtp(short);
948ulong __ovld __cnfn convert_ulong_rtn(short);
949ulong __ovld __cnfn convert_ulong_sat_rtn(short);
950ulong __ovld __cnfn convert_ulong(short);
951ulong __ovld __cnfn convert_ulong_sat(short);
952ulong __ovld __cnfn convert_ulong_rte(ushort);
953ulong __ovld __cnfn convert_ulong_sat_rte(ushort);
954ulong __ovld __cnfn convert_ulong_rtz(ushort);
955ulong __ovld __cnfn convert_ulong_sat_rtz(ushort);
956ulong __ovld __cnfn convert_ulong_rtp(ushort);
957ulong __ovld __cnfn convert_ulong_sat_rtp(ushort);
958ulong __ovld __cnfn convert_ulong_rtn(ushort);
959ulong __ovld __cnfn convert_ulong_sat_rtn(ushort);
960ulong __ovld __cnfn convert_ulong(ushort);
961ulong __ovld __cnfn convert_ulong_sat(ushort);
962ulong __ovld __cnfn convert_ulong_rte(int);
963ulong __ovld __cnfn convert_ulong_sat_rte(int);
964ulong __ovld __cnfn convert_ulong_rtz(int);
965ulong __ovld __cnfn convert_ulong_sat_rtz(int);
966ulong __ovld __cnfn convert_ulong_rtp(int);
967ulong __ovld __cnfn convert_ulong_sat_rtp(int);
968ulong __ovld __cnfn convert_ulong_rtn(int);
969ulong __ovld __cnfn convert_ulong_sat_rtn(int);
970ulong __ovld __cnfn convert_ulong(int);
971ulong __ovld __cnfn convert_ulong_sat(int);
972ulong __ovld __cnfn convert_ulong_rte(uint);
973ulong __ovld __cnfn convert_ulong_sat_rte(uint);
974ulong __ovld __cnfn convert_ulong_rtz(uint);
975ulong __ovld __cnfn convert_ulong_sat_rtz(uint);
976ulong __ovld __cnfn convert_ulong_rtp(uint);
977ulong __ovld __cnfn convert_ulong_sat_rtp(uint);
978ulong __ovld __cnfn convert_ulong_rtn(uint);
979ulong __ovld __cnfn convert_ulong_sat_rtn(uint);
980ulong __ovld __cnfn convert_ulong(uint);
981ulong __ovld __cnfn convert_ulong_sat(uint);
982ulong __ovld __cnfn convert_ulong_rte(long);
983ulong __ovld __cnfn convert_ulong_sat_rte(long);
984ulong __ovld __cnfn convert_ulong_rtz(long);
985ulong __ovld __cnfn convert_ulong_sat_rtz(long);
986ulong __ovld __cnfn convert_ulong_rtp(long);
987ulong __ovld __cnfn convert_ulong_sat_rtp(long);
988ulong __ovld __cnfn convert_ulong_rtn(long);
989ulong __ovld __cnfn convert_ulong_sat_rtn(long);
990ulong __ovld __cnfn convert_ulong(long);
991ulong __ovld __cnfn convert_ulong_sat(long);
992ulong __ovld __cnfn convert_ulong_rte(ulong);
993ulong __ovld __cnfn convert_ulong_sat_rte(ulong);
994ulong __ovld __cnfn convert_ulong_rtz(ulong);
995ulong __ovld __cnfn convert_ulong_sat_rtz(ulong);
996ulong __ovld __cnfn convert_ulong_rtp(ulong);
997ulong __ovld __cnfn convert_ulong_sat_rtp(ulong);
998ulong __ovld __cnfn convert_ulong_rtn(ulong);
999ulong __ovld __cnfn convert_ulong_sat_rtn(ulong);
1000ulong __ovld __cnfn convert_ulong(ulong);
1001ulong __ovld __cnfn convert_ulong_sat(ulong);
1002ulong __ovld __cnfn convert_ulong_rte(float);
1003ulong __ovld __cnfn convert_ulong_sat_rte(float);
1004ulong __ovld __cnfn convert_ulong_rtz(float);
1005ulong __ovld __cnfn convert_ulong_sat_rtz(float);
1006ulong __ovld __cnfn convert_ulong_rtp(float);
1007ulong __ovld __cnfn convert_ulong_sat_rtp(float);
1008ulong __ovld __cnfn convert_ulong_rtn(float);
1009ulong __ovld __cnfn convert_ulong_sat_rtn(float);
1010ulong __ovld __cnfn convert_ulong(float);
1011ulong __ovld __cnfn convert_ulong_sat(float);
1012float __ovld __cnfn convert_float_rte(char);
1013float __ovld __cnfn convert_float_rtz(char);
1014float __ovld __cnfn convert_float_rtp(char);
1015float __ovld __cnfn convert_float_rtn(char);
1016float __ovld __cnfn convert_float(char);
1017float __ovld __cnfn convert_float_rte(uchar);
1018float __ovld __cnfn convert_float_rtz(uchar);
1019float __ovld __cnfn convert_float_rtp(uchar);
1020float __ovld __cnfn convert_float_rtn(uchar);
1021float __ovld __cnfn convert_float(uchar);
1022float __ovld __cnfn convert_float_rte(short);
1023float __ovld __cnfn convert_float_rtz(short);
1024float __ovld __cnfn convert_float_rtp(short);
1025float __ovld __cnfn convert_float_rtn(short);
1026float __ovld __cnfn convert_float(short);
1027float __ovld __cnfn convert_float_rte(ushort);
1028float __ovld __cnfn convert_float_rtz(ushort);
1029float __ovld __cnfn convert_float_rtp(ushort);
1030float __ovld __cnfn convert_float_rtn(ushort);
1031float __ovld __cnfn convert_float(ushort);
1032float __ovld __cnfn convert_float_rte(int);
1033float __ovld __cnfn convert_float_rtz(int);
1034float __ovld __cnfn convert_float_rtp(int);
1035float __ovld __cnfn convert_float_rtn(int);
1036float __ovld __cnfn convert_float(int);
1037float __ovld __cnfn convert_float_rte(uint);
1038float __ovld __cnfn convert_float_rtz(uint);
1039float __ovld __cnfn convert_float_rtp(uint);
1040float __ovld __cnfn convert_float_rtn(uint);
1041float __ovld __cnfn convert_float(uint);
1042float __ovld __cnfn convert_float_rte(long);
1043float __ovld __cnfn convert_float_rtz(long);
1044float __ovld __cnfn convert_float_rtp(long);
1045float __ovld __cnfn convert_float_rtn(long);
1046float __ovld __cnfn convert_float(long);
1047float __ovld __cnfn convert_float_rte(ulong);
1048float __ovld __cnfn convert_float_rtz(ulong);
1049float __ovld __cnfn convert_float_rtp(ulong);
1050float __ovld __cnfn convert_float_rtn(ulong);
1051float __ovld __cnfn convert_float(ulong);
1052float __ovld __cnfn convert_float_rte(float);
1053float __ovld __cnfn convert_float_rtz(float);
1054float __ovld __cnfn convert_float_rtp(float);
1055float __ovld __cnfn convert_float_rtn(float);
1056float __ovld __cnfn convert_float(float);
1057char2 __ovld __cnfn convert_char2_rte(char2);
1058char2 __ovld __cnfn convert_char2_sat_rte(char2);
1059char2 __ovld __cnfn convert_char2_rtz(char2);
1060char2 __ovld __cnfn convert_char2_sat_rtz(char2);
1061char2 __ovld __cnfn convert_char2_rtp(char2);
1062char2 __ovld __cnfn convert_char2_sat_rtp(char2);
1063char2 __ovld __cnfn convert_char2_rtn(char2);
1064char2 __ovld __cnfn convert_char2_sat_rtn(char2);
1065char2 __ovld __cnfn convert_char2(char2);
1066char2 __ovld __cnfn convert_char2_sat(char2);
1067char2 __ovld __cnfn convert_char2_rte(uchar2);
1068char2 __ovld __cnfn convert_char2_sat_rte(uchar2);
1069char2 __ovld __cnfn convert_char2_rtz(uchar2);
1070char2 __ovld __cnfn convert_char2_sat_rtz(uchar2);
1071char2 __ovld __cnfn convert_char2_rtp(uchar2);
1072char2 __ovld __cnfn convert_char2_sat_rtp(uchar2);
1073char2 __ovld __cnfn convert_char2_rtn(uchar2);
1074char2 __ovld __cnfn convert_char2_sat_rtn(uchar2);
1075char2 __ovld __cnfn convert_char2(uchar2);
1076char2 __ovld __cnfn convert_char2_sat(uchar2);
1077char2 __ovld __cnfn convert_char2_rte(short2);
1078char2 __ovld __cnfn convert_char2_sat_rte(short2);
1079char2 __ovld __cnfn convert_char2_rtz(short2);
1080char2 __ovld __cnfn convert_char2_sat_rtz(short2);
1081char2 __ovld __cnfn convert_char2_rtp(short2);
1082char2 __ovld __cnfn convert_char2_sat_rtp(short2);
1083char2 __ovld __cnfn convert_char2_rtn(short2);
1084char2 __ovld __cnfn convert_char2_sat_rtn(short2);
1085char2 __ovld __cnfn convert_char2(short2);
1086char2 __ovld __cnfn convert_char2_sat(short2);
1087char2 __ovld __cnfn convert_char2_rte(ushort2);
1088char2 __ovld __cnfn convert_char2_sat_rte(ushort2);
1089char2 __ovld __cnfn convert_char2_rtz(ushort2);
1090char2 __ovld __cnfn convert_char2_sat_rtz(ushort2);
1091char2 __ovld __cnfn convert_char2_rtp(ushort2);
1092char2 __ovld __cnfn convert_char2_sat_rtp(ushort2);
1093char2 __ovld __cnfn convert_char2_rtn(ushort2);
1094char2 __ovld __cnfn convert_char2_sat_rtn(ushort2);
1095char2 __ovld __cnfn convert_char2(ushort2);
1096char2 __ovld __cnfn convert_char2_sat(ushort2);
1097char2 __ovld __cnfn convert_char2_rte(int2);
1098char2 __ovld __cnfn convert_char2_sat_rte(int2);
1099char2 __ovld __cnfn convert_char2_rtz(int2);
1100char2 __ovld __cnfn convert_char2_sat_rtz(int2);
1101char2 __ovld __cnfn convert_char2_rtp(int2);
1102char2 __ovld __cnfn convert_char2_sat_rtp(int2);
1103char2 __ovld __cnfn convert_char2_rtn(int2);
1104char2 __ovld __cnfn convert_char2_sat_rtn(int2);
1105char2 __ovld __cnfn convert_char2(int2);
1106char2 __ovld __cnfn convert_char2_sat(int2);
1107char2 __ovld __cnfn convert_char2_rte(uint2);
1108char2 __ovld __cnfn convert_char2_sat_rte(uint2);
1109char2 __ovld __cnfn convert_char2_rtz(uint2);
1110char2 __ovld __cnfn convert_char2_sat_rtz(uint2);
1111char2 __ovld __cnfn convert_char2_rtp(uint2);
1112char2 __ovld __cnfn convert_char2_sat_rtp(uint2);
1113char2 __ovld __cnfn convert_char2_rtn(uint2);
1114char2 __ovld __cnfn convert_char2_sat_rtn(uint2);
1115char2 __ovld __cnfn convert_char2(uint2);
1116char2 __ovld __cnfn convert_char2_sat(uint2);
1117char2 __ovld __cnfn convert_char2_rte(long2);
1118char2 __ovld __cnfn convert_char2_sat_rte(long2);
1119char2 __ovld __cnfn convert_char2_rtz(long2);
1120char2 __ovld __cnfn convert_char2_sat_rtz(long2);
1121char2 __ovld __cnfn convert_char2_rtp(long2);
1122char2 __ovld __cnfn convert_char2_sat_rtp(long2);
1123char2 __ovld __cnfn convert_char2_rtn(long2);
1124char2 __ovld __cnfn convert_char2_sat_rtn(long2);
1125char2 __ovld __cnfn convert_char2(long2);
1126char2 __ovld __cnfn convert_char2_sat(long2);
1127char2 __ovld __cnfn convert_char2_rte(ulong2);
1128char2 __ovld __cnfn convert_char2_sat_rte(ulong2);
1129char2 __ovld __cnfn convert_char2_rtz(ulong2);
1130char2 __ovld __cnfn convert_char2_sat_rtz(ulong2);
1131char2 __ovld __cnfn convert_char2_rtp(ulong2);
1132char2 __ovld __cnfn convert_char2_sat_rtp(ulong2);
1133char2 __ovld __cnfn convert_char2_rtn(ulong2);
1134char2 __ovld __cnfn convert_char2_sat_rtn(ulong2);
1135char2 __ovld __cnfn convert_char2(ulong2);
1136char2 __ovld __cnfn convert_char2_sat(ulong2);
1137char2 __ovld __cnfn convert_char2_rte(float2);
1138char2 __ovld __cnfn convert_char2_sat_rte(float2);
1139char2 __ovld __cnfn convert_char2_rtz(float2);
1140char2 __ovld __cnfn convert_char2_sat_rtz(float2);
1141char2 __ovld __cnfn convert_char2_rtp(float2);
1142char2 __ovld __cnfn convert_char2_sat_rtp(float2);
1143char2 __ovld __cnfn convert_char2_rtn(float2);
1144char2 __ovld __cnfn convert_char2_sat_rtn(float2);
1145char2 __ovld __cnfn convert_char2(float2);
1146char2 __ovld __cnfn convert_char2_sat(float2);
1147uchar2 __ovld __cnfn convert_uchar2_rte(char2);
1148uchar2 __ovld __cnfn convert_uchar2_sat_rte(char2);
1149uchar2 __ovld __cnfn convert_uchar2_rtz(char2);
1150uchar2 __ovld __cnfn convert_uchar2_sat_rtz(char2);
1151uchar2 __ovld __cnfn convert_uchar2_rtp(char2);
1152uchar2 __ovld __cnfn convert_uchar2_sat_rtp(char2);
1153uchar2 __ovld __cnfn convert_uchar2_rtn(char2);
1154uchar2 __ovld __cnfn convert_uchar2_sat_rtn(char2);
1155uchar2 __ovld __cnfn convert_uchar2(char2);
1156uchar2 __ovld __cnfn convert_uchar2_sat(char2);
1157uchar2 __ovld __cnfn convert_uchar2_rte(uchar2);
1158uchar2 __ovld __cnfn convert_uchar2_sat_rte(uchar2);
1159uchar2 __ovld __cnfn convert_uchar2_rtz(uchar2);
1160uchar2 __ovld __cnfn convert_uchar2_sat_rtz(uchar2);
1161uchar2 __ovld __cnfn convert_uchar2_rtp(uchar2);
1162uchar2 __ovld __cnfn convert_uchar2_sat_rtp(uchar2);
1163uchar2 __ovld __cnfn convert_uchar2_rtn(uchar2);
1164uchar2 __ovld __cnfn convert_uchar2_sat_rtn(uchar2);
1165uchar2 __ovld __cnfn convert_uchar2(uchar2);
1166uchar2 __ovld __cnfn convert_uchar2_sat(uchar2);
1167uchar2 __ovld __cnfn convert_uchar2_rte(short2);
1168uchar2 __ovld __cnfn convert_uchar2_sat_rte(short2);
1169uchar2 __ovld __cnfn convert_uchar2_rtz(short2);
1170uchar2 __ovld __cnfn convert_uchar2_sat_rtz(short2);
1171uchar2 __ovld __cnfn convert_uchar2_rtp(short2);
1172uchar2 __ovld __cnfn convert_uchar2_sat_rtp(short2);
1173uchar2 __ovld __cnfn convert_uchar2_rtn(short2);
1174uchar2 __ovld __cnfn convert_uchar2_sat_rtn(short2);
1175uchar2 __ovld __cnfn convert_uchar2(short2);
1176uchar2 __ovld __cnfn convert_uchar2_sat(short2);
1177uchar2 __ovld __cnfn convert_uchar2_rte(ushort2);
1178uchar2 __ovld __cnfn convert_uchar2_sat_rte(ushort2);
1179uchar2 __ovld __cnfn convert_uchar2_rtz(ushort2);
1180uchar2 __ovld __cnfn convert_uchar2_sat_rtz(ushort2);
1181uchar2 __ovld __cnfn convert_uchar2_rtp(ushort2);
1182uchar2 __ovld __cnfn convert_uchar2_sat_rtp(ushort2);
1183uchar2 __ovld __cnfn convert_uchar2_rtn(ushort2);
1184uchar2 __ovld __cnfn convert_uchar2_sat_rtn(ushort2);
1185uchar2 __ovld __cnfn convert_uchar2(ushort2);
1186uchar2 __ovld __cnfn convert_uchar2_sat(ushort2);
1187uchar2 __ovld __cnfn convert_uchar2_rte(int2);
1188uchar2 __ovld __cnfn convert_uchar2_sat_rte(int2);
1189uchar2 __ovld __cnfn convert_uchar2_rtz(int2);
1190uchar2 __ovld __cnfn convert_uchar2_sat_rtz(int2);
1191uchar2 __ovld __cnfn convert_uchar2_rtp(int2);
1192uchar2 __ovld __cnfn convert_uchar2_sat_rtp(int2);
1193uchar2 __ovld __cnfn convert_uchar2_rtn(int2);
1194uchar2 __ovld __cnfn convert_uchar2_sat_rtn(int2);
1195uchar2 __ovld __cnfn convert_uchar2(int2);
1196uchar2 __ovld __cnfn convert_uchar2_sat(int2);
1197uchar2 __ovld __cnfn convert_uchar2_rte(uint2);
1198uchar2 __ovld __cnfn convert_uchar2_sat_rte(uint2);
1199uchar2 __ovld __cnfn convert_uchar2_rtz(uint2);
1200uchar2 __ovld __cnfn convert_uchar2_sat_rtz(uint2);
1201uchar2 __ovld __cnfn convert_uchar2_rtp(uint2);
1202uchar2 __ovld __cnfn convert_uchar2_sat_rtp(uint2);
1203uchar2 __ovld __cnfn convert_uchar2_rtn(uint2);
1204uchar2 __ovld __cnfn convert_uchar2_sat_rtn(uint2);
1205uchar2 __ovld __cnfn convert_uchar2(uint2);
1206uchar2 __ovld __cnfn convert_uchar2_sat(uint2);
1207uchar2 __ovld __cnfn convert_uchar2_rte(long2);
1208uchar2 __ovld __cnfn convert_uchar2_sat_rte(long2);
1209uchar2 __ovld __cnfn convert_uchar2_rtz(long2);
1210uchar2 __ovld __cnfn convert_uchar2_sat_rtz(long2);
1211uchar2 __ovld __cnfn convert_uchar2_rtp(long2);
1212uchar2 __ovld __cnfn convert_uchar2_sat_rtp(long2);
1213uchar2 __ovld __cnfn convert_uchar2_rtn(long2);
1214uchar2 __ovld __cnfn convert_uchar2_sat_rtn(long2);
1215uchar2 __ovld __cnfn convert_uchar2(long2);
1216uchar2 __ovld __cnfn convert_uchar2_sat(long2);
1217uchar2 __ovld __cnfn convert_uchar2_rte(ulong2);
1218uchar2 __ovld __cnfn convert_uchar2_sat_rte(ulong2);
1219uchar2 __ovld __cnfn convert_uchar2_rtz(ulong2);
1220uchar2 __ovld __cnfn convert_uchar2_sat_rtz(ulong2);
1221uchar2 __ovld __cnfn convert_uchar2_rtp(ulong2);
1222uchar2 __ovld __cnfn convert_uchar2_sat_rtp(ulong2);
1223uchar2 __ovld __cnfn convert_uchar2_rtn(ulong2);
1224uchar2 __ovld __cnfn convert_uchar2_sat_rtn(ulong2);
1225uchar2 __ovld __cnfn convert_uchar2(ulong2);
1226uchar2 __ovld __cnfn convert_uchar2_sat(ulong2);
1227uchar2 __ovld __cnfn convert_uchar2_rte(float2);
1228uchar2 __ovld __cnfn convert_uchar2_sat_rte(float2);
1229uchar2 __ovld __cnfn convert_uchar2_rtz(float2);
1230uchar2 __ovld __cnfn convert_uchar2_sat_rtz(float2);
1231uchar2 __ovld __cnfn convert_uchar2_rtp(float2);
1232uchar2 __ovld __cnfn convert_uchar2_sat_rtp(float2);
1233uchar2 __ovld __cnfn convert_uchar2_rtn(float2);
1234uchar2 __ovld __cnfn convert_uchar2_sat_rtn(float2);
1235uchar2 __ovld __cnfn convert_uchar2(float2);
1236uchar2 __ovld __cnfn convert_uchar2_sat(float2);
1237short2 __ovld __cnfn convert_short2_rte(char2);
1238short2 __ovld __cnfn convert_short2_sat_rte(char2);
1239short2 __ovld __cnfn convert_short2_rtz(char2);
1240short2 __ovld __cnfn convert_short2_sat_rtz(char2);
1241short2 __ovld __cnfn convert_short2_rtp(char2);
1242short2 __ovld __cnfn convert_short2_sat_rtp(char2);
1243short2 __ovld __cnfn convert_short2_rtn(char2);
1244short2 __ovld __cnfn convert_short2_sat_rtn(char2);
1245short2 __ovld __cnfn convert_short2(char2);
1246short2 __ovld __cnfn convert_short2_sat(char2);
1247short2 __ovld __cnfn convert_short2_rte(uchar2);
1248short2 __ovld __cnfn convert_short2_sat_rte(uchar2);
1249short2 __ovld __cnfn convert_short2_rtz(uchar2);
1250short2 __ovld __cnfn convert_short2_sat_rtz(uchar2);
1251short2 __ovld __cnfn convert_short2_rtp(uchar2);
1252short2 __ovld __cnfn convert_short2_sat_rtp(uchar2);
1253short2 __ovld __cnfn convert_short2_rtn(uchar2);
1254short2 __ovld __cnfn convert_short2_sat_rtn(uchar2);
1255short2 __ovld __cnfn convert_short2(uchar2);
1256short2 __ovld __cnfn convert_short2_sat(uchar2);
1257short2 __ovld __cnfn convert_short2_rte(short2);
1258short2 __ovld __cnfn convert_short2_sat_rte(short2);
1259short2 __ovld __cnfn convert_short2_rtz(short2);
1260short2 __ovld __cnfn convert_short2_sat_rtz(short2);
1261short2 __ovld __cnfn convert_short2_rtp(short2);
1262short2 __ovld __cnfn convert_short2_sat_rtp(short2);
1263short2 __ovld __cnfn convert_short2_rtn(short2);
1264short2 __ovld __cnfn convert_short2_sat_rtn(short2);
1265short2 __ovld __cnfn convert_short2(short2);
1266short2 __ovld __cnfn convert_short2_sat(short2);
1267short2 __ovld __cnfn convert_short2_rte(ushort2);
1268short2 __ovld __cnfn convert_short2_sat_rte(ushort2);
1269short2 __ovld __cnfn convert_short2_rtz(ushort2);
1270short2 __ovld __cnfn convert_short2_sat_rtz(ushort2);
1271short2 __ovld __cnfn convert_short2_rtp(ushort2);
1272short2 __ovld __cnfn convert_short2_sat_rtp(ushort2);
1273short2 __ovld __cnfn convert_short2_rtn(ushort2);
1274short2 __ovld __cnfn convert_short2_sat_rtn(ushort2);
1275short2 __ovld __cnfn convert_short2(ushort2);
1276short2 __ovld __cnfn convert_short2_sat(ushort2);
1277short2 __ovld __cnfn convert_short2_rte(int2);
1278short2 __ovld __cnfn convert_short2_sat_rte(int2);
1279short2 __ovld __cnfn convert_short2_rtz(int2);
1280short2 __ovld __cnfn convert_short2_sat_rtz(int2);
1281short2 __ovld __cnfn convert_short2_rtp(int2);
1282short2 __ovld __cnfn convert_short2_sat_rtp(int2);
1283short2 __ovld __cnfn convert_short2_rtn(int2);
1284short2 __ovld __cnfn convert_short2_sat_rtn(int2);
1285short2 __ovld __cnfn convert_short2(int2);
1286short2 __ovld __cnfn convert_short2_sat(int2);
1287short2 __ovld __cnfn convert_short2_rte(uint2);
1288short2 __ovld __cnfn convert_short2_sat_rte(uint2);
1289short2 __ovld __cnfn convert_short2_rtz(uint2);
1290short2 __ovld __cnfn convert_short2_sat_rtz(uint2);
1291short2 __ovld __cnfn convert_short2_rtp(uint2);
1292short2 __ovld __cnfn convert_short2_sat_rtp(uint2);
1293short2 __ovld __cnfn convert_short2_rtn(uint2);
1294short2 __ovld __cnfn convert_short2_sat_rtn(uint2);
1295short2 __ovld __cnfn convert_short2(uint2);
1296short2 __ovld __cnfn convert_short2_sat(uint2);
1297short2 __ovld __cnfn convert_short2_rte(long2);
1298short2 __ovld __cnfn convert_short2_sat_rte(long2);
1299short2 __ovld __cnfn convert_short2_rtz(long2);
1300short2 __ovld __cnfn convert_short2_sat_rtz(long2);
1301short2 __ovld __cnfn convert_short2_rtp(long2);
1302short2 __ovld __cnfn convert_short2_sat_rtp(long2);
1303short2 __ovld __cnfn convert_short2_rtn(long2);
1304short2 __ovld __cnfn convert_short2_sat_rtn(long2);
1305short2 __ovld __cnfn convert_short2(long2);
1306short2 __ovld __cnfn convert_short2_sat(long2);
1307short2 __ovld __cnfn convert_short2_rte(ulong2);
1308short2 __ovld __cnfn convert_short2_sat_rte(ulong2);
1309short2 __ovld __cnfn convert_short2_rtz(ulong2);
1310short2 __ovld __cnfn convert_short2_sat_rtz(ulong2);
1311short2 __ovld __cnfn convert_short2_rtp(ulong2);
1312short2 __ovld __cnfn convert_short2_sat_rtp(ulong2);
1313short2 __ovld __cnfn convert_short2_rtn(ulong2);
1314short2 __ovld __cnfn convert_short2_sat_rtn(ulong2);
1315short2 __ovld __cnfn convert_short2(ulong2);
1316short2 __ovld __cnfn convert_short2_sat(ulong2);
1317short2 __ovld __cnfn convert_short2_rte(float2);
1318short2 __ovld __cnfn convert_short2_sat_rte(float2);
1319short2 __ovld __cnfn convert_short2_rtz(float2);
1320short2 __ovld __cnfn convert_short2_sat_rtz(float2);
1321short2 __ovld __cnfn convert_short2_rtp(float2);
1322short2 __ovld __cnfn convert_short2_sat_rtp(float2);
1323short2 __ovld __cnfn convert_short2_rtn(float2);
1324short2 __ovld __cnfn convert_short2_sat_rtn(float2);
1325short2 __ovld __cnfn convert_short2(float2);
1326short2 __ovld __cnfn convert_short2_sat(float2);
1327ushort2 __ovld __cnfn convert_ushort2_rte(char2);
1328ushort2 __ovld __cnfn convert_ushort2_sat_rte(char2);
1329ushort2 __ovld __cnfn convert_ushort2_rtz(char2);
1330ushort2 __ovld __cnfn convert_ushort2_sat_rtz(char2);
1331ushort2 __ovld __cnfn convert_ushort2_rtp(char2);
1332ushort2 __ovld __cnfn convert_ushort2_sat_rtp(char2);
1333ushort2 __ovld __cnfn convert_ushort2_rtn(char2);
1334ushort2 __ovld __cnfn convert_ushort2_sat_rtn(char2);
1335ushort2 __ovld __cnfn convert_ushort2(char2);
1336ushort2 __ovld __cnfn convert_ushort2_sat(char2);
1337ushort2 __ovld __cnfn convert_ushort2_rte(uchar2);
1338ushort2 __ovld __cnfn convert_ushort2_sat_rte(uchar2);
1339ushort2 __ovld __cnfn convert_ushort2_rtz(uchar2);
1340ushort2 __ovld __cnfn convert_ushort2_sat_rtz(uchar2);
1341ushort2 __ovld __cnfn convert_ushort2_rtp(uchar2);
1342ushort2 __ovld __cnfn convert_ushort2_sat_rtp(uchar2);
1343ushort2 __ovld __cnfn convert_ushort2_rtn(uchar2);
1344ushort2 __ovld __cnfn convert_ushort2_sat_rtn(uchar2);
1345ushort2 __ovld __cnfn convert_ushort2(uchar2);
1346ushort2 __ovld __cnfn convert_ushort2_sat(uchar2);
1347ushort2 __ovld __cnfn convert_ushort2_rte(short2);
1348ushort2 __ovld __cnfn convert_ushort2_sat_rte(short2);
1349ushort2 __ovld __cnfn convert_ushort2_rtz(short2);
1350ushort2 __ovld __cnfn convert_ushort2_sat_rtz(short2);
1351ushort2 __ovld __cnfn convert_ushort2_rtp(short2);
1352ushort2 __ovld __cnfn convert_ushort2_sat_rtp(short2);
1353ushort2 __ovld __cnfn convert_ushort2_rtn(short2);
1354ushort2 __ovld __cnfn convert_ushort2_sat_rtn(short2);
1355ushort2 __ovld __cnfn convert_ushort2(short2);
1356ushort2 __ovld __cnfn convert_ushort2_sat(short2);
1357ushort2 __ovld __cnfn convert_ushort2_rte(ushort2);
1358ushort2 __ovld __cnfn convert_ushort2_sat_rte(ushort2);
1359ushort2 __ovld __cnfn convert_ushort2_rtz(ushort2);
1360ushort2 __ovld __cnfn convert_ushort2_sat_rtz(ushort2);
1361ushort2 __ovld __cnfn convert_ushort2_rtp(ushort2);
1362ushort2 __ovld __cnfn convert_ushort2_sat_rtp(ushort2);
1363ushort2 __ovld __cnfn convert_ushort2_rtn(ushort2);
1364ushort2 __ovld __cnfn convert_ushort2_sat_rtn(ushort2);
1365ushort2 __ovld __cnfn convert_ushort2(ushort2);
1366ushort2 __ovld __cnfn convert_ushort2_sat(ushort2);
1367ushort2 __ovld __cnfn convert_ushort2_rte(int2);
1368ushort2 __ovld __cnfn convert_ushort2_sat_rte(int2);
1369ushort2 __ovld __cnfn convert_ushort2_rtz(int2);
1370ushort2 __ovld __cnfn convert_ushort2_sat_rtz(int2);
1371ushort2 __ovld __cnfn convert_ushort2_rtp(int2);
1372ushort2 __ovld __cnfn convert_ushort2_sat_rtp(int2);
1373ushort2 __ovld __cnfn convert_ushort2_rtn(int2);
1374ushort2 __ovld __cnfn convert_ushort2_sat_rtn(int2);
1375ushort2 __ovld __cnfn convert_ushort2(int2);
1376ushort2 __ovld __cnfn convert_ushort2_sat(int2);
1377ushort2 __ovld __cnfn convert_ushort2_rte(uint2);
1378ushort2 __ovld __cnfn convert_ushort2_sat_rte(uint2);
1379ushort2 __ovld __cnfn convert_ushort2_rtz(uint2);
1380ushort2 __ovld __cnfn convert_ushort2_sat_rtz(uint2);
1381ushort2 __ovld __cnfn convert_ushort2_rtp(uint2);
1382ushort2 __ovld __cnfn convert_ushort2_sat_rtp(uint2);
1383ushort2 __ovld __cnfn convert_ushort2_rtn(uint2);
1384ushort2 __ovld __cnfn convert_ushort2_sat_rtn(uint2);
1385ushort2 __ovld __cnfn convert_ushort2(uint2);
1386ushort2 __ovld __cnfn convert_ushort2_sat(uint2);
1387ushort2 __ovld __cnfn convert_ushort2_rte(long2);
1388ushort2 __ovld __cnfn convert_ushort2_sat_rte(long2);
1389ushort2 __ovld __cnfn convert_ushort2_rtz(long2);
1390ushort2 __ovld __cnfn convert_ushort2_sat_rtz(long2);
1391ushort2 __ovld __cnfn convert_ushort2_rtp(long2);
1392ushort2 __ovld __cnfn convert_ushort2_sat_rtp(long2);
1393ushort2 __ovld __cnfn convert_ushort2_rtn(long2);
1394ushort2 __ovld __cnfn convert_ushort2_sat_rtn(long2);
1395ushort2 __ovld __cnfn convert_ushort2(long2);
1396ushort2 __ovld __cnfn convert_ushort2_sat(long2);
1397ushort2 __ovld __cnfn convert_ushort2_rte(ulong2);
1398ushort2 __ovld __cnfn convert_ushort2_sat_rte(ulong2);
1399ushort2 __ovld __cnfn convert_ushort2_rtz(ulong2);
1400ushort2 __ovld __cnfn convert_ushort2_sat_rtz(ulong2);
1401ushort2 __ovld __cnfn convert_ushort2_rtp(ulong2);
1402ushort2 __ovld __cnfn convert_ushort2_sat_rtp(ulong2);
1403ushort2 __ovld __cnfn convert_ushort2_rtn(ulong2);
1404ushort2 __ovld __cnfn convert_ushort2_sat_rtn(ulong2);
1405ushort2 __ovld __cnfn convert_ushort2(ulong2);
1406ushort2 __ovld __cnfn convert_ushort2_sat(ulong2);
1407ushort2 __ovld __cnfn convert_ushort2_rte(float2);
1408ushort2 __ovld __cnfn convert_ushort2_sat_rte(float2);
1409ushort2 __ovld __cnfn convert_ushort2_rtz(float2);
1410ushort2 __ovld __cnfn convert_ushort2_sat_rtz(float2);
1411ushort2 __ovld __cnfn convert_ushort2_rtp(float2);
1412ushort2 __ovld __cnfn convert_ushort2_sat_rtp(float2);
1413ushort2 __ovld __cnfn convert_ushort2_rtn(float2);
1414ushort2 __ovld __cnfn convert_ushort2_sat_rtn(float2);
1415ushort2 __ovld __cnfn convert_ushort2(float2);
1416ushort2 __ovld __cnfn convert_ushort2_sat(float2);
1417int2 __ovld __cnfn convert_int2_rte(char2);
1418int2 __ovld __cnfn convert_int2_sat_rte(char2);
1419int2 __ovld __cnfn convert_int2_rtz(char2);
1420int2 __ovld __cnfn convert_int2_sat_rtz(char2);
1421int2 __ovld __cnfn convert_int2_rtp(char2);
1422int2 __ovld __cnfn convert_int2_sat_rtp(char2);
1423int2 __ovld __cnfn convert_int2_rtn(char2);
1424int2 __ovld __cnfn convert_int2_sat_rtn(char2);
1425int2 __ovld __cnfn convert_int2(char2);
1426int2 __ovld __cnfn convert_int2_sat(char2);
1427int2 __ovld __cnfn convert_int2_rte(uchar2);
1428int2 __ovld __cnfn convert_int2_sat_rte(uchar2);
1429int2 __ovld __cnfn convert_int2_rtz(uchar2);
1430int2 __ovld __cnfn convert_int2_sat_rtz(uchar2);
1431int2 __ovld __cnfn convert_int2_rtp(uchar2);
1432int2 __ovld __cnfn convert_int2_sat_rtp(uchar2);
1433int2 __ovld __cnfn convert_int2_rtn(uchar2);
1434int2 __ovld __cnfn convert_int2_sat_rtn(uchar2);
1435int2 __ovld __cnfn convert_int2(uchar2);
1436int2 __ovld __cnfn convert_int2_sat(uchar2);
1437int2 __ovld __cnfn convert_int2_rte(short2);
1438int2 __ovld __cnfn convert_int2_sat_rte(short2);
1439int2 __ovld __cnfn convert_int2_rtz(short2);
1440int2 __ovld __cnfn convert_int2_sat_rtz(short2);
1441int2 __ovld __cnfn convert_int2_rtp(short2);
1442int2 __ovld __cnfn convert_int2_sat_rtp(short2);
1443int2 __ovld __cnfn convert_int2_rtn(short2);
1444int2 __ovld __cnfn convert_int2_sat_rtn(short2);
1445int2 __ovld __cnfn convert_int2(short2);
1446int2 __ovld __cnfn convert_int2_sat(short2);
1447int2 __ovld __cnfn convert_int2_rte(ushort2);
1448int2 __ovld __cnfn convert_int2_sat_rte(ushort2);
1449int2 __ovld __cnfn convert_int2_rtz(ushort2);
1450int2 __ovld __cnfn convert_int2_sat_rtz(ushort2);
1451int2 __ovld __cnfn convert_int2_rtp(ushort2);
1452int2 __ovld __cnfn convert_int2_sat_rtp(ushort2);
1453int2 __ovld __cnfn convert_int2_rtn(ushort2);
1454int2 __ovld __cnfn convert_int2_sat_rtn(ushort2);
1455int2 __ovld __cnfn convert_int2(ushort2);
1456int2 __ovld __cnfn convert_int2_sat(ushort2);
1457int2 __ovld __cnfn convert_int2_rte(int2);
1458int2 __ovld __cnfn convert_int2_sat_rte(int2);
1459int2 __ovld __cnfn convert_int2_rtz(int2);
1460int2 __ovld __cnfn convert_int2_sat_rtz(int2);
1461int2 __ovld __cnfn convert_int2_rtp(int2);
1462int2 __ovld __cnfn convert_int2_sat_rtp(int2);
1463int2 __ovld __cnfn convert_int2_rtn(int2);
1464int2 __ovld __cnfn convert_int2_sat_rtn(int2);
1465int2 __ovld __cnfn convert_int2(int2);
1466int2 __ovld __cnfn convert_int2_sat(int2);
1467int2 __ovld __cnfn convert_int2_rte(uint2);
1468int2 __ovld __cnfn convert_int2_sat_rte(uint2);
1469int2 __ovld __cnfn convert_int2_rtz(uint2);
1470int2 __ovld __cnfn convert_int2_sat_rtz(uint2);
1471int2 __ovld __cnfn convert_int2_rtp(uint2);
1472int2 __ovld __cnfn convert_int2_sat_rtp(uint2);
1473int2 __ovld __cnfn convert_int2_rtn(uint2);
1474int2 __ovld __cnfn convert_int2_sat_rtn(uint2);
1475int2 __ovld __cnfn convert_int2(uint2);
1476int2 __ovld __cnfn convert_int2_sat(uint2);
1477int2 __ovld __cnfn convert_int2_rte(long2);
1478int2 __ovld __cnfn convert_int2_sat_rte(long2);
1479int2 __ovld __cnfn convert_int2_rtz(long2);
1480int2 __ovld __cnfn convert_int2_sat_rtz(long2);
1481int2 __ovld __cnfn convert_int2_rtp(long2);
1482int2 __ovld __cnfn convert_int2_sat_rtp(long2);
1483int2 __ovld __cnfn convert_int2_rtn(long2);
1484int2 __ovld __cnfn convert_int2_sat_rtn(long2);
1485int2 __ovld __cnfn convert_int2(long2);
1486int2 __ovld __cnfn convert_int2_sat(long2);
1487int2 __ovld __cnfn convert_int2_rte(ulong2);
1488int2 __ovld __cnfn convert_int2_sat_rte(ulong2);
1489int2 __ovld __cnfn convert_int2_rtz(ulong2);
1490int2 __ovld __cnfn convert_int2_sat_rtz(ulong2);
1491int2 __ovld __cnfn convert_int2_rtp(ulong2);
1492int2 __ovld __cnfn convert_int2_sat_rtp(ulong2);
1493int2 __ovld __cnfn convert_int2_rtn(ulong2);
1494int2 __ovld __cnfn convert_int2_sat_rtn(ulong2);
1495int2 __ovld __cnfn convert_int2(ulong2);
1496int2 __ovld __cnfn convert_int2_sat(ulong2);
1497int2 __ovld __cnfn convert_int2_rte(float2);
1498int2 __ovld __cnfn convert_int2_sat_rte(float2);
1499int2 __ovld __cnfn convert_int2_rtz(float2);
1500int2 __ovld __cnfn convert_int2_sat_rtz(float2);
1501int2 __ovld __cnfn convert_int2_rtp(float2);
1502int2 __ovld __cnfn convert_int2_sat_rtp(float2);
1503int2 __ovld __cnfn convert_int2_rtn(float2);
1504int2 __ovld __cnfn convert_int2_sat_rtn(float2);
1505int2 __ovld __cnfn convert_int2(float2);
1506int2 __ovld __cnfn convert_int2_sat(float2);
1507uint2 __ovld __cnfn convert_uint2_rte(char2);
1508uint2 __ovld __cnfn convert_uint2_sat_rte(char2);
1509uint2 __ovld __cnfn convert_uint2_rtz(char2);
1510uint2 __ovld __cnfn convert_uint2_sat_rtz(char2);
1511uint2 __ovld __cnfn convert_uint2_rtp(char2);
1512uint2 __ovld __cnfn convert_uint2_sat_rtp(char2);
1513uint2 __ovld __cnfn convert_uint2_rtn(char2);
1514uint2 __ovld __cnfn convert_uint2_sat_rtn(char2);
1515uint2 __ovld __cnfn convert_uint2(char2);
1516uint2 __ovld __cnfn convert_uint2_sat(char2);
1517uint2 __ovld __cnfn convert_uint2_rte(uchar2);
1518uint2 __ovld __cnfn convert_uint2_sat_rte(uchar2);
1519uint2 __ovld __cnfn convert_uint2_rtz(uchar2);
1520uint2 __ovld __cnfn convert_uint2_sat_rtz(uchar2);
1521uint2 __ovld __cnfn convert_uint2_rtp(uchar2);
1522uint2 __ovld __cnfn convert_uint2_sat_rtp(uchar2);
1523uint2 __ovld __cnfn convert_uint2_rtn(uchar2);
1524uint2 __ovld __cnfn convert_uint2_sat_rtn(uchar2);
1525uint2 __ovld __cnfn convert_uint2(uchar2);
1526uint2 __ovld __cnfn convert_uint2_sat(uchar2);
1527uint2 __ovld __cnfn convert_uint2_rte(short2);
1528uint2 __ovld __cnfn convert_uint2_sat_rte(short2);
1529uint2 __ovld __cnfn convert_uint2_rtz(short2);
1530uint2 __ovld __cnfn convert_uint2_sat_rtz(short2);
1531uint2 __ovld __cnfn convert_uint2_rtp(short2);
1532uint2 __ovld __cnfn convert_uint2_sat_rtp(short2);
1533uint2 __ovld __cnfn convert_uint2_rtn(short2);
1534uint2 __ovld __cnfn convert_uint2_sat_rtn(short2);
1535uint2 __ovld __cnfn convert_uint2(short2);
1536uint2 __ovld __cnfn convert_uint2_sat(short2);
1537uint2 __ovld __cnfn convert_uint2_rte(ushort2);
1538uint2 __ovld __cnfn convert_uint2_sat_rte(ushort2);
1539uint2 __ovld __cnfn convert_uint2_rtz(ushort2);
1540uint2 __ovld __cnfn convert_uint2_sat_rtz(ushort2);
1541uint2 __ovld __cnfn convert_uint2_rtp(ushort2);
1542uint2 __ovld __cnfn convert_uint2_sat_rtp(ushort2);
1543uint2 __ovld __cnfn convert_uint2_rtn(ushort2);
1544uint2 __ovld __cnfn convert_uint2_sat_rtn(ushort2);
1545uint2 __ovld __cnfn convert_uint2(ushort2);
1546uint2 __ovld __cnfn convert_uint2_sat(ushort2);
1547uint2 __ovld __cnfn convert_uint2_rte(int2);
1548uint2 __ovld __cnfn convert_uint2_sat_rte(int2);
1549uint2 __ovld __cnfn convert_uint2_rtz(int2);
1550uint2 __ovld __cnfn convert_uint2_sat_rtz(int2);
1551uint2 __ovld __cnfn convert_uint2_rtp(int2);
1552uint2 __ovld __cnfn convert_uint2_sat_rtp(int2);
1553uint2 __ovld __cnfn convert_uint2_rtn(int2);
1554uint2 __ovld __cnfn convert_uint2_sat_rtn(int2);
1555uint2 __ovld __cnfn convert_uint2(int2);
1556uint2 __ovld __cnfn convert_uint2_sat(int2);
1557uint2 __ovld __cnfn convert_uint2_rte(uint2);
1558uint2 __ovld __cnfn convert_uint2_sat_rte(uint2);
1559uint2 __ovld __cnfn convert_uint2_rtz(uint2);
1560uint2 __ovld __cnfn convert_uint2_sat_rtz(uint2);
1561uint2 __ovld __cnfn convert_uint2_rtp(uint2);
1562uint2 __ovld __cnfn convert_uint2_sat_rtp(uint2);
1563uint2 __ovld __cnfn convert_uint2_rtn(uint2);
1564uint2 __ovld __cnfn convert_uint2_sat_rtn(uint2);
1565uint2 __ovld __cnfn convert_uint2(uint2);
1566uint2 __ovld __cnfn convert_uint2_sat(uint2);
1567uint2 __ovld __cnfn convert_uint2_rte(long2);
1568uint2 __ovld __cnfn convert_uint2_sat_rte(long2);
1569uint2 __ovld __cnfn convert_uint2_rtz(long2);
1570uint2 __ovld __cnfn convert_uint2_sat_rtz(long2);
1571uint2 __ovld __cnfn convert_uint2_rtp(long2);
1572uint2 __ovld __cnfn convert_uint2_sat_rtp(long2);
1573uint2 __ovld __cnfn convert_uint2_rtn(long2);
1574uint2 __ovld __cnfn convert_uint2_sat_rtn(long2);
1575uint2 __ovld __cnfn convert_uint2(long2);
1576uint2 __ovld __cnfn convert_uint2_sat(long2);
1577uint2 __ovld __cnfn convert_uint2_rte(ulong2);
1578uint2 __ovld __cnfn convert_uint2_sat_rte(ulong2);
1579uint2 __ovld __cnfn convert_uint2_rtz(ulong2);
1580uint2 __ovld __cnfn convert_uint2_sat_rtz(ulong2);
1581uint2 __ovld __cnfn convert_uint2_rtp(ulong2);
1582uint2 __ovld __cnfn convert_uint2_sat_rtp(ulong2);
1583uint2 __ovld __cnfn convert_uint2_rtn(ulong2);
1584uint2 __ovld __cnfn convert_uint2_sat_rtn(ulong2);
1585uint2 __ovld __cnfn convert_uint2(ulong2);
1586uint2 __ovld __cnfn convert_uint2_sat(ulong2);
1587uint2 __ovld __cnfn convert_uint2_rte(float2);
1588uint2 __ovld __cnfn convert_uint2_sat_rte(float2);
1589uint2 __ovld __cnfn convert_uint2_rtz(float2);
1590uint2 __ovld __cnfn convert_uint2_sat_rtz(float2);
1591uint2 __ovld __cnfn convert_uint2_rtp(float2);
1592uint2 __ovld __cnfn convert_uint2_sat_rtp(float2);
1593uint2 __ovld __cnfn convert_uint2_rtn(float2);
1594uint2 __ovld __cnfn convert_uint2_sat_rtn(float2);
1595uint2 __ovld __cnfn convert_uint2(float2);
1596uint2 __ovld __cnfn convert_uint2_sat(float2);
1597long2 __ovld __cnfn convert_long2_rte(char2);
1598long2 __ovld __cnfn convert_long2_sat_rte(char2);
1599long2 __ovld __cnfn convert_long2_rtz(char2);
1600long2 __ovld __cnfn convert_long2_sat_rtz(char2);
1601long2 __ovld __cnfn convert_long2_rtp(char2);
1602long2 __ovld __cnfn convert_long2_sat_rtp(char2);
1603long2 __ovld __cnfn convert_long2_rtn(char2);
1604long2 __ovld __cnfn convert_long2_sat_rtn(char2);
1605long2 __ovld __cnfn convert_long2(char2);
1606long2 __ovld __cnfn convert_long2_sat(char2);
1607long2 __ovld __cnfn convert_long2_rte(uchar2);
1608long2 __ovld __cnfn convert_long2_sat_rte(uchar2);
1609long2 __ovld __cnfn convert_long2_rtz(uchar2);
1610long2 __ovld __cnfn convert_long2_sat_rtz(uchar2);
1611long2 __ovld __cnfn convert_long2_rtp(uchar2);
1612long2 __ovld __cnfn convert_long2_sat_rtp(uchar2);
1613long2 __ovld __cnfn convert_long2_rtn(uchar2);
1614long2 __ovld __cnfn convert_long2_sat_rtn(uchar2);
1615long2 __ovld __cnfn convert_long2(uchar2);
1616long2 __ovld __cnfn convert_long2_sat(uchar2);
1617long2 __ovld __cnfn convert_long2_rte(short2);
1618long2 __ovld __cnfn convert_long2_sat_rte(short2);
1619long2 __ovld __cnfn convert_long2_rtz(short2);
1620long2 __ovld __cnfn convert_long2_sat_rtz(short2);
1621long2 __ovld __cnfn convert_long2_rtp(short2);
1622long2 __ovld __cnfn convert_long2_sat_rtp(short2);
1623long2 __ovld __cnfn convert_long2_rtn(short2);
1624long2 __ovld __cnfn convert_long2_sat_rtn(short2);
1625long2 __ovld __cnfn convert_long2(short2);
1626long2 __ovld __cnfn convert_long2_sat(short2);
1627long2 __ovld __cnfn convert_long2_rte(ushort2);
1628long2 __ovld __cnfn convert_long2_sat_rte(ushort2);
1629long2 __ovld __cnfn convert_long2_rtz(ushort2);
1630long2 __ovld __cnfn convert_long2_sat_rtz(ushort2);
1631long2 __ovld __cnfn convert_long2_rtp(ushort2);
1632long2 __ovld __cnfn convert_long2_sat_rtp(ushort2);
1633long2 __ovld __cnfn convert_long2_rtn(ushort2);
1634long2 __ovld __cnfn convert_long2_sat_rtn(ushort2);
1635long2 __ovld __cnfn convert_long2(ushort2);
1636long2 __ovld __cnfn convert_long2_sat(ushort2);
1637long2 __ovld __cnfn convert_long2_rte(int2);
1638long2 __ovld __cnfn convert_long2_sat_rte(int2);
1639long2 __ovld __cnfn convert_long2_rtz(int2);
1640long2 __ovld __cnfn convert_long2_sat_rtz(int2);
1641long2 __ovld __cnfn convert_long2_rtp(int2);
1642long2 __ovld __cnfn convert_long2_sat_rtp(int2);
1643long2 __ovld __cnfn convert_long2_rtn(int2);
1644long2 __ovld __cnfn convert_long2_sat_rtn(int2);
1645long2 __ovld __cnfn convert_long2(int2);
1646long2 __ovld __cnfn convert_long2_sat(int2);
1647long2 __ovld __cnfn convert_long2_rte(uint2);
1648long2 __ovld __cnfn convert_long2_sat_rte(uint2);
1649long2 __ovld __cnfn convert_long2_rtz(uint2);
1650long2 __ovld __cnfn convert_long2_sat_rtz(uint2);
1651long2 __ovld __cnfn convert_long2_rtp(uint2);
1652long2 __ovld __cnfn convert_long2_sat_rtp(uint2);
1653long2 __ovld __cnfn convert_long2_rtn(uint2);
1654long2 __ovld __cnfn convert_long2_sat_rtn(uint2);
1655long2 __ovld __cnfn convert_long2(uint2);
1656long2 __ovld __cnfn convert_long2_sat(uint2);
1657long2 __ovld __cnfn convert_long2_rte(long2);
1658long2 __ovld __cnfn convert_long2_sat_rte(long2);
1659long2 __ovld __cnfn convert_long2_rtz(long2);
1660long2 __ovld __cnfn convert_long2_sat_rtz(long2);
1661long2 __ovld __cnfn convert_long2_rtp(long2);
1662long2 __ovld __cnfn convert_long2_sat_rtp(long2);
1663long2 __ovld __cnfn convert_long2_rtn(long2);
1664long2 __ovld __cnfn convert_long2_sat_rtn(long2);
1665long2 __ovld __cnfn convert_long2(long2);
1666long2 __ovld __cnfn convert_long2_sat(long2);
1667long2 __ovld __cnfn convert_long2_rte(ulong2);
1668long2 __ovld __cnfn convert_long2_sat_rte(ulong2);
1669long2 __ovld __cnfn convert_long2_rtz(ulong2);
1670long2 __ovld __cnfn convert_long2_sat_rtz(ulong2);
1671long2 __ovld __cnfn convert_long2_rtp(ulong2);
1672long2 __ovld __cnfn convert_long2_sat_rtp(ulong2);
1673long2 __ovld __cnfn convert_long2_rtn(ulong2);
1674long2 __ovld __cnfn convert_long2_sat_rtn(ulong2);
1675long2 __ovld __cnfn convert_long2(ulong2);
1676long2 __ovld __cnfn convert_long2_sat(ulong2);
1677long2 __ovld __cnfn convert_long2_rte(float2);
1678long2 __ovld __cnfn convert_long2_sat_rte(float2);
1679long2 __ovld __cnfn convert_long2_rtz(float2);
1680long2 __ovld __cnfn convert_long2_sat_rtz(float2);
1681long2 __ovld __cnfn convert_long2_rtp(float2);
1682long2 __ovld __cnfn convert_long2_sat_rtp(float2);
1683long2 __ovld __cnfn convert_long2_rtn(float2);
1684long2 __ovld __cnfn convert_long2_sat_rtn(float2);
1685long2 __ovld __cnfn convert_long2(float2);
1686long2 __ovld __cnfn convert_long2_sat(float2);
1687ulong2 __ovld __cnfn convert_ulong2_rte(char2);
1688ulong2 __ovld __cnfn convert_ulong2_sat_rte(char2);
1689ulong2 __ovld __cnfn convert_ulong2_rtz(char2);
1690ulong2 __ovld __cnfn convert_ulong2_sat_rtz(char2);
1691ulong2 __ovld __cnfn convert_ulong2_rtp(char2);
1692ulong2 __ovld __cnfn convert_ulong2_sat_rtp(char2);
1693ulong2 __ovld __cnfn convert_ulong2_rtn(char2);
1694ulong2 __ovld __cnfn convert_ulong2_sat_rtn(char2);
1695ulong2 __ovld __cnfn convert_ulong2(char2);
1696ulong2 __ovld __cnfn convert_ulong2_sat(char2);
1697ulong2 __ovld __cnfn convert_ulong2_rte(uchar2);
1698ulong2 __ovld __cnfn convert_ulong2_sat_rte(uchar2);
1699ulong2 __ovld __cnfn convert_ulong2_rtz(uchar2);
1700ulong2 __ovld __cnfn convert_ulong2_sat_rtz(uchar2);
1701ulong2 __ovld __cnfn convert_ulong2_rtp(uchar2);
1702ulong2 __ovld __cnfn convert_ulong2_sat_rtp(uchar2);
1703ulong2 __ovld __cnfn convert_ulong2_rtn(uchar2);
1704ulong2 __ovld __cnfn convert_ulong2_sat_rtn(uchar2);
1705ulong2 __ovld __cnfn convert_ulong2(uchar2);
1706ulong2 __ovld __cnfn convert_ulong2_sat(uchar2);
1707ulong2 __ovld __cnfn convert_ulong2_rte(short2);
1708ulong2 __ovld __cnfn convert_ulong2_sat_rte(short2);
1709ulong2 __ovld __cnfn convert_ulong2_rtz(short2);
1710ulong2 __ovld __cnfn convert_ulong2_sat_rtz(short2);
1711ulong2 __ovld __cnfn convert_ulong2_rtp(short2);
1712ulong2 __ovld __cnfn convert_ulong2_sat_rtp(short2);
1713ulong2 __ovld __cnfn convert_ulong2_rtn(short2);
1714ulong2 __ovld __cnfn convert_ulong2_sat_rtn(short2);
1715ulong2 __ovld __cnfn convert_ulong2(short2);
1716ulong2 __ovld __cnfn convert_ulong2_sat(short2);
1717ulong2 __ovld __cnfn convert_ulong2_rte(ushort2);
1718ulong2 __ovld __cnfn convert_ulong2_sat_rte(ushort2);
1719ulong2 __ovld __cnfn convert_ulong2_rtz(ushort2);
1720ulong2 __ovld __cnfn convert_ulong2_sat_rtz(ushort2);
1721ulong2 __ovld __cnfn convert_ulong2_rtp(ushort2);
1722ulong2 __ovld __cnfn convert_ulong2_sat_rtp(ushort2);
1723ulong2 __ovld __cnfn convert_ulong2_rtn(ushort2);
1724ulong2 __ovld __cnfn convert_ulong2_sat_rtn(ushort2);
1725ulong2 __ovld __cnfn convert_ulong2(ushort2);
1726ulong2 __ovld __cnfn convert_ulong2_sat(ushort2);
1727ulong2 __ovld __cnfn convert_ulong2_rte(int2);
1728ulong2 __ovld __cnfn convert_ulong2_sat_rte(int2);
1729ulong2 __ovld __cnfn convert_ulong2_rtz(int2);
1730ulong2 __ovld __cnfn convert_ulong2_sat_rtz(int2);
1731ulong2 __ovld __cnfn convert_ulong2_rtp(int2);
1732ulong2 __ovld __cnfn convert_ulong2_sat_rtp(int2);
1733ulong2 __ovld __cnfn convert_ulong2_rtn(int2);
1734ulong2 __ovld __cnfn convert_ulong2_sat_rtn(int2);
1735ulong2 __ovld __cnfn convert_ulong2(int2);
1736ulong2 __ovld __cnfn convert_ulong2_sat(int2);
1737ulong2 __ovld __cnfn convert_ulong2_rte(uint2);
1738ulong2 __ovld __cnfn convert_ulong2_sat_rte(uint2);
1739ulong2 __ovld __cnfn convert_ulong2_rtz(uint2);
1740ulong2 __ovld __cnfn convert_ulong2_sat_rtz(uint2);
1741ulong2 __ovld __cnfn convert_ulong2_rtp(uint2);
1742ulong2 __ovld __cnfn convert_ulong2_sat_rtp(uint2);
1743ulong2 __ovld __cnfn convert_ulong2_rtn(uint2);
1744ulong2 __ovld __cnfn convert_ulong2_sat_rtn(uint2);
1745ulong2 __ovld __cnfn convert_ulong2(uint2);
1746ulong2 __ovld __cnfn convert_ulong2_sat(uint2);
1747ulong2 __ovld __cnfn convert_ulong2_rte(long2);
1748ulong2 __ovld __cnfn convert_ulong2_sat_rte(long2);
1749ulong2 __ovld __cnfn convert_ulong2_rtz(long2);
1750ulong2 __ovld __cnfn convert_ulong2_sat_rtz(long2);
1751ulong2 __ovld __cnfn convert_ulong2_rtp(long2);
1752ulong2 __ovld __cnfn convert_ulong2_sat_rtp(long2);
1753ulong2 __ovld __cnfn convert_ulong2_rtn(long2);
1754ulong2 __ovld __cnfn convert_ulong2_sat_rtn(long2);
1755ulong2 __ovld __cnfn convert_ulong2(long2);
1756ulong2 __ovld __cnfn convert_ulong2_sat(long2);
1757ulong2 __ovld __cnfn convert_ulong2_rte(ulong2);
1758ulong2 __ovld __cnfn convert_ulong2_sat_rte(ulong2);
1759ulong2 __ovld __cnfn convert_ulong2_rtz(ulong2);
1760ulong2 __ovld __cnfn convert_ulong2_sat_rtz(ulong2);
1761ulong2 __ovld __cnfn convert_ulong2_rtp(ulong2);
1762ulong2 __ovld __cnfn convert_ulong2_sat_rtp(ulong2);
1763ulong2 __ovld __cnfn convert_ulong2_rtn(ulong2);
1764ulong2 __ovld __cnfn convert_ulong2_sat_rtn(ulong2);
1765ulong2 __ovld __cnfn convert_ulong2(ulong2);
1766ulong2 __ovld __cnfn convert_ulong2_sat(ulong2);
1767ulong2 __ovld __cnfn convert_ulong2_rte(float2);
1768ulong2 __ovld __cnfn convert_ulong2_sat_rte(float2);
1769ulong2 __ovld __cnfn convert_ulong2_rtz(float2);
1770ulong2 __ovld __cnfn convert_ulong2_sat_rtz(float2);
1771ulong2 __ovld __cnfn convert_ulong2_rtp(float2);
1772ulong2 __ovld __cnfn convert_ulong2_sat_rtp(float2);
1773ulong2 __ovld __cnfn convert_ulong2_rtn(float2);
1774ulong2 __ovld __cnfn convert_ulong2_sat_rtn(float2);
1775ulong2 __ovld __cnfn convert_ulong2(float2);
1776ulong2 __ovld __cnfn convert_ulong2_sat(float2);
1777float2 __ovld __cnfn convert_float2_rte(char2);
1778float2 __ovld __cnfn convert_float2_rtz(char2);
1779float2 __ovld __cnfn convert_float2_rtp(char2);
1780float2 __ovld __cnfn convert_float2_rtn(char2);
1781float2 __ovld __cnfn convert_float2(char2);
1782float2 __ovld __cnfn convert_float2_rte(uchar2);
1783float2 __ovld __cnfn convert_float2_rtz(uchar2);
1784float2 __ovld __cnfn convert_float2_rtp(uchar2);
1785float2 __ovld __cnfn convert_float2_rtn(uchar2);
1786float2 __ovld __cnfn convert_float2(uchar2);
1787float2 __ovld __cnfn convert_float2_rte(short2);
1788float2 __ovld __cnfn convert_float2_rtz(short2);
1789float2 __ovld __cnfn convert_float2_rtp(short2);
1790float2 __ovld __cnfn convert_float2_rtn(short2);
1791float2 __ovld __cnfn convert_float2(short2);
1792float2 __ovld __cnfn convert_float2_rte(ushort2);
1793float2 __ovld __cnfn convert_float2_rtz(ushort2);
1794float2 __ovld __cnfn convert_float2_rtp(ushort2);
1795float2 __ovld __cnfn convert_float2_rtn(ushort2);
1796float2 __ovld __cnfn convert_float2(ushort2);
1797float2 __ovld __cnfn convert_float2_rte(int2);
1798float2 __ovld __cnfn convert_float2_rtz(int2);
1799float2 __ovld __cnfn convert_float2_rtp(int2);
1800float2 __ovld __cnfn convert_float2_rtn(int2);
1801float2 __ovld __cnfn convert_float2(int2);
1802float2 __ovld __cnfn convert_float2_rte(uint2);
1803float2 __ovld __cnfn convert_float2_rtz(uint2);
1804float2 __ovld __cnfn convert_float2_rtp(uint2);
1805float2 __ovld __cnfn convert_float2_rtn(uint2);
1806float2 __ovld __cnfn convert_float2(uint2);
1807float2 __ovld __cnfn convert_float2_rte(long2);
1808float2 __ovld __cnfn convert_float2_rtz(long2);
1809float2 __ovld __cnfn convert_float2_rtp(long2);
1810float2 __ovld __cnfn convert_float2_rtn(long2);
1811float2 __ovld __cnfn convert_float2(long2);
1812float2 __ovld __cnfn convert_float2_rte(ulong2);
1813float2 __ovld __cnfn convert_float2_rtz(ulong2);
1814float2 __ovld __cnfn convert_float2_rtp(ulong2);
1815float2 __ovld __cnfn convert_float2_rtn(ulong2);
1816float2 __ovld __cnfn convert_float2(ulong2);
1817float2 __ovld __cnfn convert_float2_rte(float2);
1818float2 __ovld __cnfn convert_float2_rtz(float2);
1819float2 __ovld __cnfn convert_float2_rtp(float2);
1820float2 __ovld __cnfn convert_float2_rtn(float2);
1821float2 __ovld __cnfn convert_float2(float2);
1822char3 __ovld __cnfn convert_char3_rte(char3);
1823char3 __ovld __cnfn convert_char3_sat_rte(char3);
1824char3 __ovld __cnfn convert_char3_rtz(char3);
1825char3 __ovld __cnfn convert_char3_sat_rtz(char3);
1826char3 __ovld __cnfn convert_char3_rtp(char3);
1827char3 __ovld __cnfn convert_char3_sat_rtp(char3);
1828char3 __ovld __cnfn convert_char3_rtn(char3);
1829char3 __ovld __cnfn convert_char3_sat_rtn(char3);
1830char3 __ovld __cnfn convert_char3(char3);
1831char3 __ovld __cnfn convert_char3_sat(char3);
1832char3 __ovld __cnfn convert_char3_rte(uchar3);
1833char3 __ovld __cnfn convert_char3_sat_rte(uchar3);
1834char3 __ovld __cnfn convert_char3_rtz(uchar3);
1835char3 __ovld __cnfn convert_char3_sat_rtz(uchar3);
1836char3 __ovld __cnfn convert_char3_rtp(uchar3);
1837char3 __ovld __cnfn convert_char3_sat_rtp(uchar3);
1838char3 __ovld __cnfn convert_char3_rtn(uchar3);
1839char3 __ovld __cnfn convert_char3_sat_rtn(uchar3);
1840char3 __ovld __cnfn convert_char3(uchar3);
1841char3 __ovld __cnfn convert_char3_sat(uchar3);
1842char3 __ovld __cnfn convert_char3_rte(short3);
1843char3 __ovld __cnfn convert_char3_sat_rte(short3);
1844char3 __ovld __cnfn convert_char3_rtz(short3);
1845char3 __ovld __cnfn convert_char3_sat_rtz(short3);
1846char3 __ovld __cnfn convert_char3_rtp(short3);
1847char3 __ovld __cnfn convert_char3_sat_rtp(short3);
1848char3 __ovld __cnfn convert_char3_rtn(short3);
1849char3 __ovld __cnfn convert_char3_sat_rtn(short3);
1850char3 __ovld __cnfn convert_char3(short3);
1851char3 __ovld __cnfn convert_char3_sat(short3);
1852char3 __ovld __cnfn convert_char3_rte(ushort3);
1853char3 __ovld __cnfn convert_char3_sat_rte(ushort3);
1854char3 __ovld __cnfn convert_char3_rtz(ushort3);
1855char3 __ovld __cnfn convert_char3_sat_rtz(ushort3);
1856char3 __ovld __cnfn convert_char3_rtp(ushort3);
1857char3 __ovld __cnfn convert_char3_sat_rtp(ushort3);
1858char3 __ovld __cnfn convert_char3_rtn(ushort3);
1859char3 __ovld __cnfn convert_char3_sat_rtn(ushort3);
1860char3 __ovld __cnfn convert_char3(ushort3);
1861char3 __ovld __cnfn convert_char3_sat(ushort3);
1862char3 __ovld __cnfn convert_char3_rte(int3);
1863char3 __ovld __cnfn convert_char3_sat_rte(int3);
1864char3 __ovld __cnfn convert_char3_rtz(int3);
1865char3 __ovld __cnfn convert_char3_sat_rtz(int3);
1866char3 __ovld __cnfn convert_char3_rtp(int3);
1867char3 __ovld __cnfn convert_char3_sat_rtp(int3);
1868char3 __ovld __cnfn convert_char3_rtn(int3);
1869char3 __ovld __cnfn convert_char3_sat_rtn(int3);
1870char3 __ovld __cnfn convert_char3(int3);
1871char3 __ovld __cnfn convert_char3_sat(int3);
1872char3 __ovld __cnfn convert_char3_rte(uint3);
1873char3 __ovld __cnfn convert_char3_sat_rte(uint3);
1874char3 __ovld __cnfn convert_char3_rtz(uint3);
1875char3 __ovld __cnfn convert_char3_sat_rtz(uint3);
1876char3 __ovld __cnfn convert_char3_rtp(uint3);
1877char3 __ovld __cnfn convert_char3_sat_rtp(uint3);
1878char3 __ovld __cnfn convert_char3_rtn(uint3);
1879char3 __ovld __cnfn convert_char3_sat_rtn(uint3);
1880char3 __ovld __cnfn convert_char3(uint3);
1881char3 __ovld __cnfn convert_char3_sat(uint3);
1882char3 __ovld __cnfn convert_char3_rte(long3);
1883char3 __ovld __cnfn convert_char3_sat_rte(long3);
1884char3 __ovld __cnfn convert_char3_rtz(long3);
1885char3 __ovld __cnfn convert_char3_sat_rtz(long3);
1886char3 __ovld __cnfn convert_char3_rtp(long3);
1887char3 __ovld __cnfn convert_char3_sat_rtp(long3);
1888char3 __ovld __cnfn convert_char3_rtn(long3);
1889char3 __ovld __cnfn convert_char3_sat_rtn(long3);
1890char3 __ovld __cnfn convert_char3(long3);
1891char3 __ovld __cnfn convert_char3_sat(long3);
1892char3 __ovld __cnfn convert_char3_rte(ulong3);
1893char3 __ovld __cnfn convert_char3_sat_rte(ulong3);
1894char3 __ovld __cnfn convert_char3_rtz(ulong3);
1895char3 __ovld __cnfn convert_char3_sat_rtz(ulong3);
1896char3 __ovld __cnfn convert_char3_rtp(ulong3);
1897char3 __ovld __cnfn convert_char3_sat_rtp(ulong3);
1898char3 __ovld __cnfn convert_char3_rtn(ulong3);
1899char3 __ovld __cnfn convert_char3_sat_rtn(ulong3);
1900char3 __ovld __cnfn convert_char3(ulong3);
1901char3 __ovld __cnfn convert_char3_sat(ulong3);
1902char3 __ovld __cnfn convert_char3_rte(float3);
1903char3 __ovld __cnfn convert_char3_sat_rte(float3);
1904char3 __ovld __cnfn convert_char3_rtz(float3);
1905char3 __ovld __cnfn convert_char3_sat_rtz(float3);
1906char3 __ovld __cnfn convert_char3_rtp(float3);
1907char3 __ovld __cnfn convert_char3_sat_rtp(float3);
1908char3 __ovld __cnfn convert_char3_rtn(float3);
1909char3 __ovld __cnfn convert_char3_sat_rtn(float3);
1910char3 __ovld __cnfn convert_char3(float3);
1911char3 __ovld __cnfn convert_char3_sat(float3);
1912uchar3 __ovld __cnfn convert_uchar3_rte(char3);
1913uchar3 __ovld __cnfn convert_uchar3_sat_rte(char3);
1914uchar3 __ovld __cnfn convert_uchar3_rtz(char3);
1915uchar3 __ovld __cnfn convert_uchar3_sat_rtz(char3);
1916uchar3 __ovld __cnfn convert_uchar3_rtp(char3);
1917uchar3 __ovld __cnfn convert_uchar3_sat_rtp(char3);
1918uchar3 __ovld __cnfn convert_uchar3_rtn(char3);
1919uchar3 __ovld __cnfn convert_uchar3_sat_rtn(char3);
1920uchar3 __ovld __cnfn convert_uchar3(char3);
1921uchar3 __ovld __cnfn convert_uchar3_sat(char3);
1922uchar3 __ovld __cnfn convert_uchar3_rte(uchar3);
1923uchar3 __ovld __cnfn convert_uchar3_sat_rte(uchar3);
1924uchar3 __ovld __cnfn convert_uchar3_rtz(uchar3);
1925uchar3 __ovld __cnfn convert_uchar3_sat_rtz(uchar3);
1926uchar3 __ovld __cnfn convert_uchar3_rtp(uchar3);
1927uchar3 __ovld __cnfn convert_uchar3_sat_rtp(uchar3);
1928uchar3 __ovld __cnfn convert_uchar3_rtn(uchar3);
1929uchar3 __ovld __cnfn convert_uchar3_sat_rtn(uchar3);
1930uchar3 __ovld __cnfn convert_uchar3(uchar3);
1931uchar3 __ovld __cnfn convert_uchar3_sat(uchar3);
1932uchar3 __ovld __cnfn convert_uchar3_rte(short3);
1933uchar3 __ovld __cnfn convert_uchar3_sat_rte(short3);
1934uchar3 __ovld __cnfn convert_uchar3_rtz(short3);
1935uchar3 __ovld __cnfn convert_uchar3_sat_rtz(short3);
1936uchar3 __ovld __cnfn convert_uchar3_rtp(short3);
1937uchar3 __ovld __cnfn convert_uchar3_sat_rtp(short3);
1938uchar3 __ovld __cnfn convert_uchar3_rtn(short3);
1939uchar3 __ovld __cnfn convert_uchar3_sat_rtn(short3);
1940uchar3 __ovld __cnfn convert_uchar3(short3);
1941uchar3 __ovld __cnfn convert_uchar3_sat(short3);
1942uchar3 __ovld __cnfn convert_uchar3_rte(ushort3);
1943uchar3 __ovld __cnfn convert_uchar3_sat_rte(ushort3);
1944uchar3 __ovld __cnfn convert_uchar3_rtz(ushort3);
1945uchar3 __ovld __cnfn convert_uchar3_sat_rtz(ushort3);
1946uchar3 __ovld __cnfn convert_uchar3_rtp(ushort3);
1947uchar3 __ovld __cnfn convert_uchar3_sat_rtp(ushort3);
1948uchar3 __ovld __cnfn convert_uchar3_rtn(ushort3);
1949uchar3 __ovld __cnfn convert_uchar3_sat_rtn(ushort3);
1950uchar3 __ovld __cnfn convert_uchar3(ushort3);
1951uchar3 __ovld __cnfn convert_uchar3_sat(ushort3);
1952uchar3 __ovld __cnfn convert_uchar3_rte(int3);
1953uchar3 __ovld __cnfn convert_uchar3_sat_rte(int3);
1954uchar3 __ovld __cnfn convert_uchar3_rtz(int3);
1955uchar3 __ovld __cnfn convert_uchar3_sat_rtz(int3);
1956uchar3 __ovld __cnfn convert_uchar3_rtp(int3);
1957uchar3 __ovld __cnfn convert_uchar3_sat_rtp(int3);
1958uchar3 __ovld __cnfn convert_uchar3_rtn(int3);
1959uchar3 __ovld __cnfn convert_uchar3_sat_rtn(int3);
1960uchar3 __ovld __cnfn convert_uchar3(int3);
1961uchar3 __ovld __cnfn convert_uchar3_sat(int3);
1962uchar3 __ovld __cnfn convert_uchar3_rte(uint3);
1963uchar3 __ovld __cnfn convert_uchar3_sat_rte(uint3);
1964uchar3 __ovld __cnfn convert_uchar3_rtz(uint3);
1965uchar3 __ovld __cnfn convert_uchar3_sat_rtz(uint3);
1966uchar3 __ovld __cnfn convert_uchar3_rtp(uint3);
1967uchar3 __ovld __cnfn convert_uchar3_sat_rtp(uint3);
1968uchar3 __ovld __cnfn convert_uchar3_rtn(uint3);
1969uchar3 __ovld __cnfn convert_uchar3_sat_rtn(uint3);
1970uchar3 __ovld __cnfn convert_uchar3(uint3);
1971uchar3 __ovld __cnfn convert_uchar3_sat(uint3);
1972uchar3 __ovld __cnfn convert_uchar3_rte(long3);
1973uchar3 __ovld __cnfn convert_uchar3_sat_rte(long3);
1974uchar3 __ovld __cnfn convert_uchar3_rtz(long3);
1975uchar3 __ovld __cnfn convert_uchar3_sat_rtz(long3);
1976uchar3 __ovld __cnfn convert_uchar3_rtp(long3);
1977uchar3 __ovld __cnfn convert_uchar3_sat_rtp(long3);
1978uchar3 __ovld __cnfn convert_uchar3_rtn(long3);
1979uchar3 __ovld __cnfn convert_uchar3_sat_rtn(long3);
1980uchar3 __ovld __cnfn convert_uchar3(long3);
1981uchar3 __ovld __cnfn convert_uchar3_sat(long3);
1982uchar3 __ovld __cnfn convert_uchar3_rte(ulong3);
1983uchar3 __ovld __cnfn convert_uchar3_sat_rte(ulong3);
1984uchar3 __ovld __cnfn convert_uchar3_rtz(ulong3);
1985uchar3 __ovld __cnfn convert_uchar3_sat_rtz(ulong3);
1986uchar3 __ovld __cnfn convert_uchar3_rtp(ulong3);
1987uchar3 __ovld __cnfn convert_uchar3_sat_rtp(ulong3);
1988uchar3 __ovld __cnfn convert_uchar3_rtn(ulong3);
1989uchar3 __ovld __cnfn convert_uchar3_sat_rtn(ulong3);
1990uchar3 __ovld __cnfn convert_uchar3(ulong3);
1991uchar3 __ovld __cnfn convert_uchar3_sat(ulong3);
1992uchar3 __ovld __cnfn convert_uchar3_rte(float3);
1993uchar3 __ovld __cnfn convert_uchar3_sat_rte(float3);
1994uchar3 __ovld __cnfn convert_uchar3_rtz(float3);
1995uchar3 __ovld __cnfn convert_uchar3_sat_rtz(float3);
1996uchar3 __ovld __cnfn convert_uchar3_rtp(float3);
1997uchar3 __ovld __cnfn convert_uchar3_sat_rtp(float3);
1998uchar3 __ovld __cnfn convert_uchar3_rtn(float3);
1999uchar3 __ovld __cnfn convert_uchar3_sat_rtn(float3);
2000uchar3 __ovld __cnfn convert_uchar3(float3);
2001uchar3 __ovld __cnfn convert_uchar3_sat(float3);
2002short3 __ovld __cnfn convert_short3_rte(char3);
2003short3 __ovld __cnfn convert_short3_sat_rte(char3);
2004short3 __ovld __cnfn convert_short3_rtz(char3);
2005short3 __ovld __cnfn convert_short3_sat_rtz(char3);
2006short3 __ovld __cnfn convert_short3_rtp(char3);
2007short3 __ovld __cnfn convert_short3_sat_rtp(char3);
2008short3 __ovld __cnfn convert_short3_rtn(char3);
2009short3 __ovld __cnfn convert_short3_sat_rtn(char3);
2010short3 __ovld __cnfn convert_short3(char3);
2011short3 __ovld __cnfn convert_short3_sat(char3);
2012short3 __ovld __cnfn convert_short3_rte(uchar3);
2013short3 __ovld __cnfn convert_short3_sat_rte(uchar3);
2014short3 __ovld __cnfn convert_short3_rtz(uchar3);
2015short3 __ovld __cnfn convert_short3_sat_rtz(uchar3);
2016short3 __ovld __cnfn convert_short3_rtp(uchar3);
2017short3 __ovld __cnfn convert_short3_sat_rtp(uchar3);
2018short3 __ovld __cnfn convert_short3_rtn(uchar3);
2019short3 __ovld __cnfn convert_short3_sat_rtn(uchar3);
2020short3 __ovld __cnfn convert_short3(uchar3);
2021short3 __ovld __cnfn convert_short3_sat(uchar3);
2022short3 __ovld __cnfn convert_short3_rte(short3);
2023short3 __ovld __cnfn convert_short3_sat_rte(short3);
2024short3 __ovld __cnfn convert_short3_rtz(short3);
2025short3 __ovld __cnfn convert_short3_sat_rtz(short3);
2026short3 __ovld __cnfn convert_short3_rtp(short3);
2027short3 __ovld __cnfn convert_short3_sat_rtp(short3);
2028short3 __ovld __cnfn convert_short3_rtn(short3);
2029short3 __ovld __cnfn convert_short3_sat_rtn(short3);
2030short3 __ovld __cnfn convert_short3(short3);
2031short3 __ovld __cnfn convert_short3_sat(short3);
2032short3 __ovld __cnfn convert_short3_rte(ushort3);
2033short3 __ovld __cnfn convert_short3_sat_rte(ushort3);
2034short3 __ovld __cnfn convert_short3_rtz(ushort3);
2035short3 __ovld __cnfn convert_short3_sat_rtz(ushort3);
2036short3 __ovld __cnfn convert_short3_rtp(ushort3);
2037short3 __ovld __cnfn convert_short3_sat_rtp(ushort3);
2038short3 __ovld __cnfn convert_short3_rtn(ushort3);
2039short3 __ovld __cnfn convert_short3_sat_rtn(ushort3);
2040short3 __ovld __cnfn convert_short3(ushort3);
2041short3 __ovld __cnfn convert_short3_sat(ushort3);
2042short3 __ovld __cnfn convert_short3_rte(int3);
2043short3 __ovld __cnfn convert_short3_sat_rte(int3);
2044short3 __ovld __cnfn convert_short3_rtz(int3);
2045short3 __ovld __cnfn convert_short3_sat_rtz(int3);
2046short3 __ovld __cnfn convert_short3_rtp(int3);
2047short3 __ovld __cnfn convert_short3_sat_rtp(int3);
2048short3 __ovld __cnfn convert_short3_rtn(int3);
2049short3 __ovld __cnfn convert_short3_sat_rtn(int3);
2050short3 __ovld __cnfn convert_short3(int3);
2051short3 __ovld __cnfn convert_short3_sat(int3);
2052short3 __ovld __cnfn convert_short3_rte(uint3);
2053short3 __ovld __cnfn convert_short3_sat_rte(uint3);
2054short3 __ovld __cnfn convert_short3_rtz(uint3);
2055short3 __ovld __cnfn convert_short3_sat_rtz(uint3);
2056short3 __ovld __cnfn convert_short3_rtp(uint3);
2057short3 __ovld __cnfn convert_short3_sat_rtp(uint3);
2058short3 __ovld __cnfn convert_short3_rtn(uint3);
2059short3 __ovld __cnfn convert_short3_sat_rtn(uint3);
2060short3 __ovld __cnfn convert_short3(uint3);
2061short3 __ovld __cnfn convert_short3_sat(uint3);
2062short3 __ovld __cnfn convert_short3_rte(long3);
2063short3 __ovld __cnfn convert_short3_sat_rte(long3);
2064short3 __ovld __cnfn convert_short3_rtz(long3);
2065short3 __ovld __cnfn convert_short3_sat_rtz(long3);
2066short3 __ovld __cnfn convert_short3_rtp(long3);
2067short3 __ovld __cnfn convert_short3_sat_rtp(long3);
2068short3 __ovld __cnfn convert_short3_rtn(long3);
2069short3 __ovld __cnfn convert_short3_sat_rtn(long3);
2070short3 __ovld __cnfn convert_short3(long3);
2071short3 __ovld __cnfn convert_short3_sat(long3);
2072short3 __ovld __cnfn convert_short3_rte(ulong3);
2073short3 __ovld __cnfn convert_short3_sat_rte(ulong3);
2074short3 __ovld __cnfn convert_short3_rtz(ulong3);
2075short3 __ovld __cnfn convert_short3_sat_rtz(ulong3);
2076short3 __ovld __cnfn convert_short3_rtp(ulong3);
2077short3 __ovld __cnfn convert_short3_sat_rtp(ulong3);
2078short3 __ovld __cnfn convert_short3_rtn(ulong3);
2079short3 __ovld __cnfn convert_short3_sat_rtn(ulong3);
2080short3 __ovld __cnfn convert_short3(ulong3);
2081short3 __ovld __cnfn convert_short3_sat(ulong3);
2082short3 __ovld __cnfn convert_short3_rte(float3);
2083short3 __ovld __cnfn convert_short3_sat_rte(float3);
2084short3 __ovld __cnfn convert_short3_rtz(float3);
2085short3 __ovld __cnfn convert_short3_sat_rtz(float3);
2086short3 __ovld __cnfn convert_short3_rtp(float3);
2087short3 __ovld __cnfn convert_short3_sat_rtp(float3);
2088short3 __ovld __cnfn convert_short3_rtn(float3);
2089short3 __ovld __cnfn convert_short3_sat_rtn(float3);
2090short3 __ovld __cnfn convert_short3(float3);
2091short3 __ovld __cnfn convert_short3_sat(float3);
2092ushort3 __ovld __cnfn convert_ushort3_rte(char3);
2093ushort3 __ovld __cnfn convert_ushort3_sat_rte(char3);
2094ushort3 __ovld __cnfn convert_ushort3_rtz(char3);
2095ushort3 __ovld __cnfn convert_ushort3_sat_rtz(char3);
2096ushort3 __ovld __cnfn convert_ushort3_rtp(char3);
2097ushort3 __ovld __cnfn convert_ushort3_sat_rtp(char3);
2098ushort3 __ovld __cnfn convert_ushort3_rtn(char3);
2099ushort3 __ovld __cnfn convert_ushort3_sat_rtn(char3);
2100ushort3 __ovld __cnfn convert_ushort3(char3);
2101ushort3 __ovld __cnfn convert_ushort3_sat(char3);
2102ushort3 __ovld __cnfn convert_ushort3_rte(uchar3);
2103ushort3 __ovld __cnfn convert_ushort3_sat_rte(uchar3);
2104ushort3 __ovld __cnfn convert_ushort3_rtz(uchar3);
2105ushort3 __ovld __cnfn convert_ushort3_sat_rtz(uchar3);
2106ushort3 __ovld __cnfn convert_ushort3_rtp(uchar3);
2107ushort3 __ovld __cnfn convert_ushort3_sat_rtp(uchar3);
2108ushort3 __ovld __cnfn convert_ushort3_rtn(uchar3);
2109ushort3 __ovld __cnfn convert_ushort3_sat_rtn(uchar3);
2110ushort3 __ovld __cnfn convert_ushort3(uchar3);
2111ushort3 __ovld __cnfn convert_ushort3_sat(uchar3);
2112ushort3 __ovld __cnfn convert_ushort3_rte(short3);
2113ushort3 __ovld __cnfn convert_ushort3_sat_rte(short3);
2114ushort3 __ovld __cnfn convert_ushort3_rtz(short3);
2115ushort3 __ovld __cnfn convert_ushort3_sat_rtz(short3);
2116ushort3 __ovld __cnfn convert_ushort3_rtp(short3);
2117ushort3 __ovld __cnfn convert_ushort3_sat_rtp(short3);
2118ushort3 __ovld __cnfn convert_ushort3_rtn(short3);
2119ushort3 __ovld __cnfn convert_ushort3_sat_rtn(short3);
2120ushort3 __ovld __cnfn convert_ushort3(short3);
2121ushort3 __ovld __cnfn convert_ushort3_sat(short3);
2122ushort3 __ovld __cnfn convert_ushort3_rte(ushort3);
2123ushort3 __ovld __cnfn convert_ushort3_sat_rte(ushort3);
2124ushort3 __ovld __cnfn convert_ushort3_rtz(ushort3);
2125ushort3 __ovld __cnfn convert_ushort3_sat_rtz(ushort3);
2126ushort3 __ovld __cnfn convert_ushort3_rtp(ushort3);
2127ushort3 __ovld __cnfn convert_ushort3_sat_rtp(ushort3);
2128ushort3 __ovld __cnfn convert_ushort3_rtn(ushort3);
2129ushort3 __ovld __cnfn convert_ushort3_sat_rtn(ushort3);
2130ushort3 __ovld __cnfn convert_ushort3(ushort3);
2131ushort3 __ovld __cnfn convert_ushort3_sat(ushort3);
2132ushort3 __ovld __cnfn convert_ushort3_rte(int3);
2133ushort3 __ovld __cnfn convert_ushort3_sat_rte(int3);
2134ushort3 __ovld __cnfn convert_ushort3_rtz(int3);
2135ushort3 __ovld __cnfn convert_ushort3_sat_rtz(int3);
2136ushort3 __ovld __cnfn convert_ushort3_rtp(int3);
2137ushort3 __ovld __cnfn convert_ushort3_sat_rtp(int3);
2138ushort3 __ovld __cnfn convert_ushort3_rtn(int3);
2139ushort3 __ovld __cnfn convert_ushort3_sat_rtn(int3);
2140ushort3 __ovld __cnfn convert_ushort3(int3);
2141ushort3 __ovld __cnfn convert_ushort3_sat(int3);
2142ushort3 __ovld __cnfn convert_ushort3_rte(uint3);
2143ushort3 __ovld __cnfn convert_ushort3_sat_rte(uint3);
2144ushort3 __ovld __cnfn convert_ushort3_rtz(uint3);
2145ushort3 __ovld __cnfn convert_ushort3_sat_rtz(uint3);
2146ushort3 __ovld __cnfn convert_ushort3_rtp(uint3);
2147ushort3 __ovld __cnfn convert_ushort3_sat_rtp(uint3);
2148ushort3 __ovld __cnfn convert_ushort3_rtn(uint3);
2149ushort3 __ovld __cnfn convert_ushort3_sat_rtn(uint3);
2150ushort3 __ovld __cnfn convert_ushort3(uint3);
2151ushort3 __ovld __cnfn convert_ushort3_sat(uint3);
2152ushort3 __ovld __cnfn convert_ushort3_rte(long3);
2153ushort3 __ovld __cnfn convert_ushort3_sat_rte(long3);
2154ushort3 __ovld __cnfn convert_ushort3_rtz(long3);
2155ushort3 __ovld __cnfn convert_ushort3_sat_rtz(long3);
2156ushort3 __ovld __cnfn convert_ushort3_rtp(long3);
2157ushort3 __ovld __cnfn convert_ushort3_sat_rtp(long3);
2158ushort3 __ovld __cnfn convert_ushort3_rtn(long3);
2159ushort3 __ovld __cnfn convert_ushort3_sat_rtn(long3);
2160ushort3 __ovld __cnfn convert_ushort3(long3);
2161ushort3 __ovld __cnfn convert_ushort3_sat(long3);
2162ushort3 __ovld __cnfn convert_ushort3_rte(ulong3);
2163ushort3 __ovld __cnfn convert_ushort3_sat_rte(ulong3);
2164ushort3 __ovld __cnfn convert_ushort3_rtz(ulong3);
2165ushort3 __ovld __cnfn convert_ushort3_sat_rtz(ulong3);
2166ushort3 __ovld __cnfn convert_ushort3_rtp(ulong3);
2167ushort3 __ovld __cnfn convert_ushort3_sat_rtp(ulong3);
2168ushort3 __ovld __cnfn convert_ushort3_rtn(ulong3);
2169ushort3 __ovld __cnfn convert_ushort3_sat_rtn(ulong3);
2170ushort3 __ovld __cnfn convert_ushort3(ulong3);
2171ushort3 __ovld __cnfn convert_ushort3_sat(ulong3);
2172ushort3 __ovld __cnfn convert_ushort3_rte(float3);
2173ushort3 __ovld __cnfn convert_ushort3_sat_rte(float3);
2174ushort3 __ovld __cnfn convert_ushort3_rtz(float3);
2175ushort3 __ovld __cnfn convert_ushort3_sat_rtz(float3);
2176ushort3 __ovld __cnfn convert_ushort3_rtp(float3);
2177ushort3 __ovld __cnfn convert_ushort3_sat_rtp(float3);
2178ushort3 __ovld __cnfn convert_ushort3_rtn(float3);
2179ushort3 __ovld __cnfn convert_ushort3_sat_rtn(float3);
2180ushort3 __ovld __cnfn convert_ushort3(float3);
2181ushort3 __ovld __cnfn convert_ushort3_sat(float3);
2182int3 __ovld __cnfn convert_int3_rte(char3);
2183int3 __ovld __cnfn convert_int3_sat_rte(char3);
2184int3 __ovld __cnfn convert_int3_rtz(char3);
2185int3 __ovld __cnfn convert_int3_sat_rtz(char3);
2186int3 __ovld __cnfn convert_int3_rtp(char3);
2187int3 __ovld __cnfn convert_int3_sat_rtp(char3);
2188int3 __ovld __cnfn convert_int3_rtn(char3);
2189int3 __ovld __cnfn convert_int3_sat_rtn(char3);
2190int3 __ovld __cnfn convert_int3(char3);
2191int3 __ovld __cnfn convert_int3_sat(char3);
2192int3 __ovld __cnfn convert_int3_rte(uchar3);
2193int3 __ovld __cnfn convert_int3_sat_rte(uchar3);
2194int3 __ovld __cnfn convert_int3_rtz(uchar3);
2195int3 __ovld __cnfn convert_int3_sat_rtz(uchar3);
2196int3 __ovld __cnfn convert_int3_rtp(uchar3);
2197int3 __ovld __cnfn convert_int3_sat_rtp(uchar3);
2198int3 __ovld __cnfn convert_int3_rtn(uchar3);
2199int3 __ovld __cnfn convert_int3_sat_rtn(uchar3);
2200int3 __ovld __cnfn convert_int3(uchar3);
2201int3 __ovld __cnfn convert_int3_sat(uchar3);
2202int3 __ovld __cnfn convert_int3_rte(short3);
2203int3 __ovld __cnfn convert_int3_sat_rte(short3);
2204int3 __ovld __cnfn convert_int3_rtz(short3);
2205int3 __ovld __cnfn convert_int3_sat_rtz(short3);
2206int3 __ovld __cnfn convert_int3_rtp(short3);
2207int3 __ovld __cnfn convert_int3_sat_rtp(short3);
2208int3 __ovld __cnfn convert_int3_rtn(short3);
2209int3 __ovld __cnfn convert_int3_sat_rtn(short3);
2210int3 __ovld __cnfn convert_int3(short3);
2211int3 __ovld __cnfn convert_int3_sat(short3);
2212int3 __ovld __cnfn convert_int3_rte(ushort3);
2213int3 __ovld __cnfn convert_int3_sat_rte(ushort3);
2214int3 __ovld __cnfn convert_int3_rtz(ushort3);
2215int3 __ovld __cnfn convert_int3_sat_rtz(ushort3);
2216int3 __ovld __cnfn convert_int3_rtp(ushort3);
2217int3 __ovld __cnfn convert_int3_sat_rtp(ushort3);
2218int3 __ovld __cnfn convert_int3_rtn(ushort3);
2219int3 __ovld __cnfn convert_int3_sat_rtn(ushort3);
2220int3 __ovld __cnfn convert_int3(ushort3);
2221int3 __ovld __cnfn convert_int3_sat(ushort3);
2222int3 __ovld __cnfn convert_int3_rte(int3);
2223int3 __ovld __cnfn convert_int3_sat_rte(int3);
2224int3 __ovld __cnfn convert_int3_rtz(int3);
2225int3 __ovld __cnfn convert_int3_sat_rtz(int3);
2226int3 __ovld __cnfn convert_int3_rtp(int3);
2227int3 __ovld __cnfn convert_int3_sat_rtp(int3);
2228int3 __ovld __cnfn convert_int3_rtn(int3);
2229int3 __ovld __cnfn convert_int3_sat_rtn(int3);
2230int3 __ovld __cnfn convert_int3(int3);
2231int3 __ovld __cnfn convert_int3_sat(int3);
2232int3 __ovld __cnfn convert_int3_rte(uint3);
2233int3 __ovld __cnfn convert_int3_sat_rte(uint3);
2234int3 __ovld __cnfn convert_int3_rtz(uint3);
2235int3 __ovld __cnfn convert_int3_sat_rtz(uint3);
2236int3 __ovld __cnfn convert_int3_rtp(uint3);
2237int3 __ovld __cnfn convert_int3_sat_rtp(uint3);
2238int3 __ovld __cnfn convert_int3_rtn(uint3);
2239int3 __ovld __cnfn convert_int3_sat_rtn(uint3);
2240int3 __ovld __cnfn convert_int3(uint3);
2241int3 __ovld __cnfn convert_int3_sat(uint3);
2242int3 __ovld __cnfn convert_int3_rte(long3);
2243int3 __ovld __cnfn convert_int3_sat_rte(long3);
2244int3 __ovld __cnfn convert_int3_rtz(long3);
2245int3 __ovld __cnfn convert_int3_sat_rtz(long3);
2246int3 __ovld __cnfn convert_int3_rtp(long3);
2247int3 __ovld __cnfn convert_int3_sat_rtp(long3);
2248int3 __ovld __cnfn convert_int3_rtn(long3);
2249int3 __ovld __cnfn convert_int3_sat_rtn(long3);
2250int3 __ovld __cnfn convert_int3(long3);
2251int3 __ovld __cnfn convert_int3_sat(long3);
2252int3 __ovld __cnfn convert_int3_rte(ulong3);
2253int3 __ovld __cnfn convert_int3_sat_rte(ulong3);
2254int3 __ovld __cnfn convert_int3_rtz(ulong3);
2255int3 __ovld __cnfn convert_int3_sat_rtz(ulong3);
2256int3 __ovld __cnfn convert_int3_rtp(ulong3);
2257int3 __ovld __cnfn convert_int3_sat_rtp(ulong3);
2258int3 __ovld __cnfn convert_int3_rtn(ulong3);
2259int3 __ovld __cnfn convert_int3_sat_rtn(ulong3);
2260int3 __ovld __cnfn convert_int3(ulong3);
2261int3 __ovld __cnfn convert_int3_sat(ulong3);
2262int3 __ovld __cnfn convert_int3_rte(float3);
2263int3 __ovld __cnfn convert_int3_sat_rte(float3);
2264int3 __ovld __cnfn convert_int3_rtz(float3);
2265int3 __ovld __cnfn convert_int3_sat_rtz(float3);
2266int3 __ovld __cnfn convert_int3_rtp(float3);
2267int3 __ovld __cnfn convert_int3_sat_rtp(float3);
2268int3 __ovld __cnfn convert_int3_rtn(float3);
2269int3 __ovld __cnfn convert_int3_sat_rtn(float3);
2270int3 __ovld __cnfn convert_int3(float3);
2271int3 __ovld __cnfn convert_int3_sat(float3);
2272uint3 __ovld __cnfn convert_uint3_rte(char3);
2273uint3 __ovld __cnfn convert_uint3_sat_rte(char3);
2274uint3 __ovld __cnfn convert_uint3_rtz(char3);
2275uint3 __ovld __cnfn convert_uint3_sat_rtz(char3);
2276uint3 __ovld __cnfn convert_uint3_rtp(char3);
2277uint3 __ovld __cnfn convert_uint3_sat_rtp(char3);
2278uint3 __ovld __cnfn convert_uint3_rtn(char3);
2279uint3 __ovld __cnfn convert_uint3_sat_rtn(char3);
2280uint3 __ovld __cnfn convert_uint3(char3);
2281uint3 __ovld __cnfn convert_uint3_sat(char3);
2282uint3 __ovld __cnfn convert_uint3_rte(uchar3);
2283uint3 __ovld __cnfn convert_uint3_sat_rte(uchar3);
2284uint3 __ovld __cnfn convert_uint3_rtz(uchar3);
2285uint3 __ovld __cnfn convert_uint3_sat_rtz(uchar3);
2286uint3 __ovld __cnfn convert_uint3_rtp(uchar3);
2287uint3 __ovld __cnfn convert_uint3_sat_rtp(uchar3);
2288uint3 __ovld __cnfn convert_uint3_rtn(uchar3);
2289uint3 __ovld __cnfn convert_uint3_sat_rtn(uchar3);
2290uint3 __ovld __cnfn convert_uint3(uchar3);
2291uint3 __ovld __cnfn convert_uint3_sat(uchar3);
2292uint3 __ovld __cnfn convert_uint3_rte(short3);
2293uint3 __ovld __cnfn convert_uint3_sat_rte(short3);
2294uint3 __ovld __cnfn convert_uint3_rtz(short3);
2295uint3 __ovld __cnfn convert_uint3_sat_rtz(short3);
2296uint3 __ovld __cnfn convert_uint3_rtp(short3);
2297uint3 __ovld __cnfn convert_uint3_sat_rtp(short3);
2298uint3 __ovld __cnfn convert_uint3_rtn(short3);
2299uint3 __ovld __cnfn convert_uint3_sat_rtn(short3);
2300uint3 __ovld __cnfn convert_uint3(short3);
2301uint3 __ovld __cnfn convert_uint3_sat(short3);
2302uint3 __ovld __cnfn convert_uint3_rte(ushort3);
2303uint3 __ovld __cnfn convert_uint3_sat_rte(ushort3);
2304uint3 __ovld __cnfn convert_uint3_rtz(ushort3);
2305uint3 __ovld __cnfn convert_uint3_sat_rtz(ushort3);
2306uint3 __ovld __cnfn convert_uint3_rtp(ushort3);
2307uint3 __ovld __cnfn convert_uint3_sat_rtp(ushort3);
2308uint3 __ovld __cnfn convert_uint3_rtn(ushort3);
2309uint3 __ovld __cnfn convert_uint3_sat_rtn(ushort3);
2310uint3 __ovld __cnfn convert_uint3(ushort3);
2311uint3 __ovld __cnfn convert_uint3_sat(ushort3);
2312uint3 __ovld __cnfn convert_uint3_rte(int3);
2313uint3 __ovld __cnfn convert_uint3_sat_rte(int3);
2314uint3 __ovld __cnfn convert_uint3_rtz(int3);
2315uint3 __ovld __cnfn convert_uint3_sat_rtz(int3);
2316uint3 __ovld __cnfn convert_uint3_rtp(int3);
2317uint3 __ovld __cnfn convert_uint3_sat_rtp(int3);
2318uint3 __ovld __cnfn convert_uint3_rtn(int3);
2319uint3 __ovld __cnfn convert_uint3_sat_rtn(int3);
2320uint3 __ovld __cnfn convert_uint3(int3);
2321uint3 __ovld __cnfn convert_uint3_sat(int3);
2322uint3 __ovld __cnfn convert_uint3_rte(uint3);
2323uint3 __ovld __cnfn convert_uint3_sat_rte(uint3);
2324uint3 __ovld __cnfn convert_uint3_rtz(uint3);
2325uint3 __ovld __cnfn convert_uint3_sat_rtz(uint3);
2326uint3 __ovld __cnfn convert_uint3_rtp(uint3);
2327uint3 __ovld __cnfn convert_uint3_sat_rtp(uint3);
2328uint3 __ovld __cnfn convert_uint3_rtn(uint3);
2329uint3 __ovld __cnfn convert_uint3_sat_rtn(uint3);
2330uint3 __ovld __cnfn convert_uint3(uint3);
2331uint3 __ovld __cnfn convert_uint3_sat(uint3);
2332uint3 __ovld __cnfn convert_uint3_rte(long3);
2333uint3 __ovld __cnfn convert_uint3_sat_rte(long3);
2334uint3 __ovld __cnfn convert_uint3_rtz(long3);
2335uint3 __ovld __cnfn convert_uint3_sat_rtz(long3);
2336uint3 __ovld __cnfn convert_uint3_rtp(long3);
2337uint3 __ovld __cnfn convert_uint3_sat_rtp(long3);
2338uint3 __ovld __cnfn convert_uint3_rtn(long3);
2339uint3 __ovld __cnfn convert_uint3_sat_rtn(long3);
2340uint3 __ovld __cnfn convert_uint3(long3);
2341uint3 __ovld __cnfn convert_uint3_sat(long3);
2342uint3 __ovld __cnfn convert_uint3_rte(ulong3);
2343uint3 __ovld __cnfn convert_uint3_sat_rte(ulong3);
2344uint3 __ovld __cnfn convert_uint3_rtz(ulong3);
2345uint3 __ovld __cnfn convert_uint3_sat_rtz(ulong3);
2346uint3 __ovld __cnfn convert_uint3_rtp(ulong3);
2347uint3 __ovld __cnfn convert_uint3_sat_rtp(ulong3);
2348uint3 __ovld __cnfn convert_uint3_rtn(ulong3);
2349uint3 __ovld __cnfn convert_uint3_sat_rtn(ulong3);
2350uint3 __ovld __cnfn convert_uint3(ulong3);
2351uint3 __ovld __cnfn convert_uint3_sat(ulong3);
2352uint3 __ovld __cnfn convert_uint3_rte(float3);
2353uint3 __ovld __cnfn convert_uint3_sat_rte(float3);
2354uint3 __ovld __cnfn convert_uint3_rtz(float3);
2355uint3 __ovld __cnfn convert_uint3_sat_rtz(float3);
2356uint3 __ovld __cnfn convert_uint3_rtp(float3);
2357uint3 __ovld __cnfn convert_uint3_sat_rtp(float3);
2358uint3 __ovld __cnfn convert_uint3_rtn(float3);
2359uint3 __ovld __cnfn convert_uint3_sat_rtn(float3);
2360uint3 __ovld __cnfn convert_uint3(float3);
2361uint3 __ovld __cnfn convert_uint3_sat(float3);
2362long3 __ovld __cnfn convert_long3_rte(char3);
2363long3 __ovld __cnfn convert_long3_sat_rte(char3);
2364long3 __ovld __cnfn convert_long3_rtz(char3);
2365long3 __ovld __cnfn convert_long3_sat_rtz(char3);
2366long3 __ovld __cnfn convert_long3_rtp(char3);
2367long3 __ovld __cnfn convert_long3_sat_rtp(char3);
2368long3 __ovld __cnfn convert_long3_rtn(char3);
2369long3 __ovld __cnfn convert_long3_sat_rtn(char3);
2370long3 __ovld __cnfn convert_long3(char3);
2371long3 __ovld __cnfn convert_long3_sat(char3);
2372long3 __ovld __cnfn convert_long3_rte(uchar3);
2373long3 __ovld __cnfn convert_long3_sat_rte(uchar3);
2374long3 __ovld __cnfn convert_long3_rtz(uchar3);
2375long3 __ovld __cnfn convert_long3_sat_rtz(uchar3);
2376long3 __ovld __cnfn convert_long3_rtp(uchar3);
2377long3 __ovld __cnfn convert_long3_sat_rtp(uchar3);
2378long3 __ovld __cnfn convert_long3_rtn(uchar3);
2379long3 __ovld __cnfn convert_long3_sat_rtn(uchar3);
2380long3 __ovld __cnfn convert_long3(uchar3);
2381long3 __ovld __cnfn convert_long3_sat(uchar3);
2382long3 __ovld __cnfn convert_long3_rte(short3);
2383long3 __ovld __cnfn convert_long3_sat_rte(short3);
2384long3 __ovld __cnfn convert_long3_rtz(short3);
2385long3 __ovld __cnfn convert_long3_sat_rtz(short3);
2386long3 __ovld __cnfn convert_long3_rtp(short3);
2387long3 __ovld __cnfn convert_long3_sat_rtp(short3);
2388long3 __ovld __cnfn convert_long3_rtn(short3);
2389long3 __ovld __cnfn convert_long3_sat_rtn(short3);
2390long3 __ovld __cnfn convert_long3(short3);
2391long3 __ovld __cnfn convert_long3_sat(short3);
2392long3 __ovld __cnfn convert_long3_rte(ushort3);
2393long3 __ovld __cnfn convert_long3_sat_rte(ushort3);
2394long3 __ovld __cnfn convert_long3_rtz(ushort3);
2395long3 __ovld __cnfn convert_long3_sat_rtz(ushort3);
2396long3 __ovld __cnfn convert_long3_rtp(ushort3);
2397long3 __ovld __cnfn convert_long3_sat_rtp(ushort3);
2398long3 __ovld __cnfn convert_long3_rtn(ushort3);
2399long3 __ovld __cnfn convert_long3_sat_rtn(ushort3);
2400long3 __ovld __cnfn convert_long3(ushort3);
2401long3 __ovld __cnfn convert_long3_sat(ushort3);
2402long3 __ovld __cnfn convert_long3_rte(int3);
2403long3 __ovld __cnfn convert_long3_sat_rte(int3);
2404long3 __ovld __cnfn convert_long3_rtz(int3);
2405long3 __ovld __cnfn convert_long3_sat_rtz(int3);
2406long3 __ovld __cnfn convert_long3_rtp(int3);
2407long3 __ovld __cnfn convert_long3_sat_rtp(int3);
2408long3 __ovld __cnfn convert_long3_rtn(int3);
2409long3 __ovld __cnfn convert_long3_sat_rtn(int3);
2410long3 __ovld __cnfn convert_long3(int3);
2411long3 __ovld __cnfn convert_long3_sat(int3);
2412long3 __ovld __cnfn convert_long3_rte(uint3);
2413long3 __ovld __cnfn convert_long3_sat_rte(uint3);
2414long3 __ovld __cnfn convert_long3_rtz(uint3);
2415long3 __ovld __cnfn convert_long3_sat_rtz(uint3);
2416long3 __ovld __cnfn convert_long3_rtp(uint3);
2417long3 __ovld __cnfn convert_long3_sat_rtp(uint3);
2418long3 __ovld __cnfn convert_long3_rtn(uint3);
2419long3 __ovld __cnfn convert_long3_sat_rtn(uint3);
2420long3 __ovld __cnfn convert_long3(uint3);
2421long3 __ovld __cnfn convert_long3_sat(uint3);
2422long3 __ovld __cnfn convert_long3_rte(long3);
2423long3 __ovld __cnfn convert_long3_sat_rte(long3);
2424long3 __ovld __cnfn convert_long3_rtz(long3);
2425long3 __ovld __cnfn convert_long3_sat_rtz(long3);
2426long3 __ovld __cnfn convert_long3_rtp(long3);
2427long3 __ovld __cnfn convert_long3_sat_rtp(long3);
2428long3 __ovld __cnfn convert_long3_rtn(long3);
2429long3 __ovld __cnfn convert_long3_sat_rtn(long3);
2430long3 __ovld __cnfn convert_long3(long3);
2431long3 __ovld __cnfn convert_long3_sat(long3);
2432long3 __ovld __cnfn convert_long3_rte(ulong3);
2433long3 __ovld __cnfn convert_long3_sat_rte(ulong3);
2434long3 __ovld __cnfn convert_long3_rtz(ulong3);
2435long3 __ovld __cnfn convert_long3_sat_rtz(ulong3);
2436long3 __ovld __cnfn convert_long3_rtp(ulong3);
2437long3 __ovld __cnfn convert_long3_sat_rtp(ulong3);
2438long3 __ovld __cnfn convert_long3_rtn(ulong3);
2439long3 __ovld __cnfn convert_long3_sat_rtn(ulong3);
2440long3 __ovld __cnfn convert_long3(ulong3);
2441long3 __ovld __cnfn convert_long3_sat(ulong3);
2442long3 __ovld __cnfn convert_long3_rte(float3);
2443long3 __ovld __cnfn convert_long3_sat_rte(float3);
2444long3 __ovld __cnfn convert_long3_rtz(float3);
2445long3 __ovld __cnfn convert_long3_sat_rtz(float3);
2446long3 __ovld __cnfn convert_long3_rtp(float3);
2447long3 __ovld __cnfn convert_long3_sat_rtp(float3);
2448long3 __ovld __cnfn convert_long3_rtn(float3);
2449long3 __ovld __cnfn convert_long3_sat_rtn(float3);
2450long3 __ovld __cnfn convert_long3(float3);
2451long3 __ovld __cnfn convert_long3_sat(float3);
2452ulong3 __ovld __cnfn convert_ulong3_rte(char3);
2453ulong3 __ovld __cnfn convert_ulong3_sat_rte(char3);
2454ulong3 __ovld __cnfn convert_ulong3_rtz(char3);
2455ulong3 __ovld __cnfn convert_ulong3_sat_rtz(char3);
2456ulong3 __ovld __cnfn convert_ulong3_rtp(char3);
2457ulong3 __ovld __cnfn convert_ulong3_sat_rtp(char3);
2458ulong3 __ovld __cnfn convert_ulong3_rtn(char3);
2459ulong3 __ovld __cnfn convert_ulong3_sat_rtn(char3);
2460ulong3 __ovld __cnfn convert_ulong3(char3);
2461ulong3 __ovld __cnfn convert_ulong3_sat(char3);
2462ulong3 __ovld __cnfn convert_ulong3_rte(uchar3);
2463ulong3 __ovld __cnfn convert_ulong3_sat_rte(uchar3);
2464ulong3 __ovld __cnfn convert_ulong3_rtz(uchar3);
2465ulong3 __ovld __cnfn convert_ulong3_sat_rtz(uchar3);
2466ulong3 __ovld __cnfn convert_ulong3_rtp(uchar3);
2467ulong3 __ovld __cnfn convert_ulong3_sat_rtp(uchar3);
2468ulong3 __ovld __cnfn convert_ulong3_rtn(uchar3);
2469ulong3 __ovld __cnfn convert_ulong3_sat_rtn(uchar3);
2470ulong3 __ovld __cnfn convert_ulong3(uchar3);
2471ulong3 __ovld __cnfn convert_ulong3_sat(uchar3);
2472ulong3 __ovld __cnfn convert_ulong3_rte(short3);
2473ulong3 __ovld __cnfn convert_ulong3_sat_rte(short3);
2474ulong3 __ovld __cnfn convert_ulong3_rtz(short3);
2475ulong3 __ovld __cnfn convert_ulong3_sat_rtz(short3);
2476ulong3 __ovld __cnfn convert_ulong3_rtp(short3);
2477ulong3 __ovld __cnfn convert_ulong3_sat_rtp(short3);
2478ulong3 __ovld __cnfn convert_ulong3_rtn(short3);
2479ulong3 __ovld __cnfn convert_ulong3_sat_rtn(short3);
2480ulong3 __ovld __cnfn convert_ulong3(short3);
2481ulong3 __ovld __cnfn convert_ulong3_sat(short3);
2482ulong3 __ovld __cnfn convert_ulong3_rte(ushort3);
2483ulong3 __ovld __cnfn convert_ulong3_sat_rte(ushort3);
2484ulong3 __ovld __cnfn convert_ulong3_rtz(ushort3);
2485ulong3 __ovld __cnfn convert_ulong3_sat_rtz(ushort3);
2486ulong3 __ovld __cnfn convert_ulong3_rtp(ushort3);
2487ulong3 __ovld __cnfn convert_ulong3_sat_rtp(ushort3);
2488ulong3 __ovld __cnfn convert_ulong3_rtn(ushort3);
2489ulong3 __ovld __cnfn convert_ulong3_sat_rtn(ushort3);
2490ulong3 __ovld __cnfn convert_ulong3(ushort3);
2491ulong3 __ovld __cnfn convert_ulong3_sat(ushort3);
2492ulong3 __ovld __cnfn convert_ulong3_rte(int3);
2493ulong3 __ovld __cnfn convert_ulong3_sat_rte(int3);
2494ulong3 __ovld __cnfn convert_ulong3_rtz(int3);
2495ulong3 __ovld __cnfn convert_ulong3_sat_rtz(int3);
2496ulong3 __ovld __cnfn convert_ulong3_rtp(int3);
2497ulong3 __ovld __cnfn convert_ulong3_sat_rtp(int3);
2498ulong3 __ovld __cnfn convert_ulong3_rtn(int3);
2499ulong3 __ovld __cnfn convert_ulong3_sat_rtn(int3);
2500ulong3 __ovld __cnfn convert_ulong3(int3);
2501ulong3 __ovld __cnfn convert_ulong3_sat(int3);
2502ulong3 __ovld __cnfn convert_ulong3_rte(uint3);
2503ulong3 __ovld __cnfn convert_ulong3_sat_rte(uint3);
2504ulong3 __ovld __cnfn convert_ulong3_rtz(uint3);
2505ulong3 __ovld __cnfn convert_ulong3_sat_rtz(uint3);
2506ulong3 __ovld __cnfn convert_ulong3_rtp(uint3);
2507ulong3 __ovld __cnfn convert_ulong3_sat_rtp(uint3);
2508ulong3 __ovld __cnfn convert_ulong3_rtn(uint3);
2509ulong3 __ovld __cnfn convert_ulong3_sat_rtn(uint3);
2510ulong3 __ovld __cnfn convert_ulong3(uint3);
2511ulong3 __ovld __cnfn convert_ulong3_sat(uint3);
2512ulong3 __ovld __cnfn convert_ulong3_rte(long3);
2513ulong3 __ovld __cnfn convert_ulong3_sat_rte(long3);
2514ulong3 __ovld __cnfn convert_ulong3_rtz(long3);
2515ulong3 __ovld __cnfn convert_ulong3_sat_rtz(long3);
2516ulong3 __ovld __cnfn convert_ulong3_rtp(long3);
2517ulong3 __ovld __cnfn convert_ulong3_sat_rtp(long3);
2518ulong3 __ovld __cnfn convert_ulong3_rtn(long3);
2519ulong3 __ovld __cnfn convert_ulong3_sat_rtn(long3);
2520ulong3 __ovld __cnfn convert_ulong3(long3);
2521ulong3 __ovld __cnfn convert_ulong3_sat(long3);
2522ulong3 __ovld __cnfn convert_ulong3_rte(ulong3);
2523ulong3 __ovld __cnfn convert_ulong3_sat_rte(ulong3);
2524ulong3 __ovld __cnfn convert_ulong3_rtz(ulong3);
2525ulong3 __ovld __cnfn convert_ulong3_sat_rtz(ulong3);
2526ulong3 __ovld __cnfn convert_ulong3_rtp(ulong3);
2527ulong3 __ovld __cnfn convert_ulong3_sat_rtp(ulong3);
2528ulong3 __ovld __cnfn convert_ulong3_rtn(ulong3);
2529ulong3 __ovld __cnfn convert_ulong3_sat_rtn(ulong3);
2530ulong3 __ovld __cnfn convert_ulong3(ulong3);
2531ulong3 __ovld __cnfn convert_ulong3_sat(ulong3);
2532ulong3 __ovld __cnfn convert_ulong3_rte(float3);
2533ulong3 __ovld __cnfn convert_ulong3_sat_rte(float3);
2534ulong3 __ovld __cnfn convert_ulong3_rtz(float3);
2535ulong3 __ovld __cnfn convert_ulong3_sat_rtz(float3);
2536ulong3 __ovld __cnfn convert_ulong3_rtp(float3);
2537ulong3 __ovld __cnfn convert_ulong3_sat_rtp(float3);
2538ulong3 __ovld __cnfn convert_ulong3_rtn(float3);
2539ulong3 __ovld __cnfn convert_ulong3_sat_rtn(float3);
2540ulong3 __ovld __cnfn convert_ulong3(float3);
2541ulong3 __ovld __cnfn convert_ulong3_sat(float3);
2542float3 __ovld __cnfn convert_float3_rte(char3);
2543float3 __ovld __cnfn convert_float3_rtz(char3);
2544float3 __ovld __cnfn convert_float3_rtp(char3);
2545float3 __ovld __cnfn convert_float3_rtn(char3);
2546float3 __ovld __cnfn convert_float3(char3);
2547float3 __ovld __cnfn convert_float3_rte(uchar3);
2548float3 __ovld __cnfn convert_float3_rtz(uchar3);
2549float3 __ovld __cnfn convert_float3_rtp(uchar3);
2550float3 __ovld __cnfn convert_float3_rtn(uchar3);
2551float3 __ovld __cnfn convert_float3(uchar3);
2552float3 __ovld __cnfn convert_float3_rte(short3);
2553float3 __ovld __cnfn convert_float3_rtz(short3);
2554float3 __ovld __cnfn convert_float3_rtp(short3);
2555float3 __ovld __cnfn convert_float3_rtn(short3);
2556float3 __ovld __cnfn convert_float3(short3);
2557float3 __ovld __cnfn convert_float3_rte(ushort3);
2558float3 __ovld __cnfn convert_float3_rtz(ushort3);
2559float3 __ovld __cnfn convert_float3_rtp(ushort3);
2560float3 __ovld __cnfn convert_float3_rtn(ushort3);
2561float3 __ovld __cnfn convert_float3(ushort3);
2562float3 __ovld __cnfn convert_float3_rte(int3);
2563float3 __ovld __cnfn convert_float3_rtz(int3);
2564float3 __ovld __cnfn convert_float3_rtp(int3);
2565float3 __ovld __cnfn convert_float3_rtn(int3);
2566float3 __ovld __cnfn convert_float3(int3);
2567float3 __ovld __cnfn convert_float3_rte(uint3);
2568float3 __ovld __cnfn convert_float3_rtz(uint3);
2569float3 __ovld __cnfn convert_float3_rtp(uint3);
2570float3 __ovld __cnfn convert_float3_rtn(uint3);
2571float3 __ovld __cnfn convert_float3(uint3);
2572float3 __ovld __cnfn convert_float3_rte(long3);
2573float3 __ovld __cnfn convert_float3_rtz(long3);
2574float3 __ovld __cnfn convert_float3_rtp(long3);
2575float3 __ovld __cnfn convert_float3_rtn(long3);
2576float3 __ovld __cnfn convert_float3(long3);
2577float3 __ovld __cnfn convert_float3_rte(ulong3);
2578float3 __ovld __cnfn convert_float3_rtz(ulong3);
2579float3 __ovld __cnfn convert_float3_rtp(ulong3);
2580float3 __ovld __cnfn convert_float3_rtn(ulong3);
2581float3 __ovld __cnfn convert_float3(ulong3);
2582float3 __ovld __cnfn convert_float3_rte(float3);
2583float3 __ovld __cnfn convert_float3_rtz(float3);
2584float3 __ovld __cnfn convert_float3_rtp(float3);
2585float3 __ovld __cnfn convert_float3_rtn(float3);
2586float3 __ovld __cnfn convert_float3(float3);
2587char4 __ovld __cnfn convert_char4_rte(char4);
2588char4 __ovld __cnfn convert_char4_sat_rte(char4);
2589char4 __ovld __cnfn convert_char4_rtz(char4);
2590char4 __ovld __cnfn convert_char4_sat_rtz(char4);
2591char4 __ovld __cnfn convert_char4_rtp(char4);
2592char4 __ovld __cnfn convert_char4_sat_rtp(char4);
2593char4 __ovld __cnfn convert_char4_rtn(char4);
2594char4 __ovld __cnfn convert_char4_sat_rtn(char4);
2595char4 __ovld __cnfn convert_char4(char4);
2596char4 __ovld __cnfn convert_char4_sat(char4);
2597char4 __ovld __cnfn convert_char4_rte(uchar4);
2598char4 __ovld __cnfn convert_char4_sat_rte(uchar4);
2599char4 __ovld __cnfn convert_char4_rtz(uchar4);
2600char4 __ovld __cnfn convert_char4_sat_rtz(uchar4);
2601char4 __ovld __cnfn convert_char4_rtp(uchar4);
2602char4 __ovld __cnfn convert_char4_sat_rtp(uchar4);
2603char4 __ovld __cnfn convert_char4_rtn(uchar4);
2604char4 __ovld __cnfn convert_char4_sat_rtn(uchar4);
2605char4 __ovld __cnfn convert_char4(uchar4);
2606char4 __ovld __cnfn convert_char4_sat(uchar4);
2607char4 __ovld __cnfn convert_char4_rte(short4);
2608char4 __ovld __cnfn convert_char4_sat_rte(short4);
2609char4 __ovld __cnfn convert_char4_rtz(short4);
2610char4 __ovld __cnfn convert_char4_sat_rtz(short4);
2611char4 __ovld __cnfn convert_char4_rtp(short4);
2612char4 __ovld __cnfn convert_char4_sat_rtp(short4);
2613char4 __ovld __cnfn convert_char4_rtn(short4);
2614char4 __ovld __cnfn convert_char4_sat_rtn(short4);
2615char4 __ovld __cnfn convert_char4(short4);
2616char4 __ovld __cnfn convert_char4_sat(short4);
2617char4 __ovld __cnfn convert_char4_rte(ushort4);
2618char4 __ovld __cnfn convert_char4_sat_rte(ushort4);
2619char4 __ovld __cnfn convert_char4_rtz(ushort4);
2620char4 __ovld __cnfn convert_char4_sat_rtz(ushort4);
2621char4 __ovld __cnfn convert_char4_rtp(ushort4);
2622char4 __ovld __cnfn convert_char4_sat_rtp(ushort4);
2623char4 __ovld __cnfn convert_char4_rtn(ushort4);
2624char4 __ovld __cnfn convert_char4_sat_rtn(ushort4);
2625char4 __ovld __cnfn convert_char4(ushort4);
2626char4 __ovld __cnfn convert_char4_sat(ushort4);
2627char4 __ovld __cnfn convert_char4_rte(int4);
2628char4 __ovld __cnfn convert_char4_sat_rte(int4);
2629char4 __ovld __cnfn convert_char4_rtz(int4);
2630char4 __ovld __cnfn convert_char4_sat_rtz(int4);
2631char4 __ovld __cnfn convert_char4_rtp(int4);
2632char4 __ovld __cnfn convert_char4_sat_rtp(int4);
2633char4 __ovld __cnfn convert_char4_rtn(int4);
2634char4 __ovld __cnfn convert_char4_sat_rtn(int4);
2635char4 __ovld __cnfn convert_char4(int4);
2636char4 __ovld __cnfn convert_char4_sat(int4);
2637char4 __ovld __cnfn convert_char4_rte(uint4);
2638char4 __ovld __cnfn convert_char4_sat_rte(uint4);
2639char4 __ovld __cnfn convert_char4_rtz(uint4);
2640char4 __ovld __cnfn convert_char4_sat_rtz(uint4);
2641char4 __ovld __cnfn convert_char4_rtp(uint4);
2642char4 __ovld __cnfn convert_char4_sat_rtp(uint4);
2643char4 __ovld __cnfn convert_char4_rtn(uint4);
2644char4 __ovld __cnfn convert_char4_sat_rtn(uint4);
2645char4 __ovld __cnfn convert_char4(uint4);
2646char4 __ovld __cnfn convert_char4_sat(uint4);
2647char4 __ovld __cnfn convert_char4_rte(long4);
2648char4 __ovld __cnfn convert_char4_sat_rte(long4);
2649char4 __ovld __cnfn convert_char4_rtz(long4);
2650char4 __ovld __cnfn convert_char4_sat_rtz(long4);
2651char4 __ovld __cnfn convert_char4_rtp(long4);
2652char4 __ovld __cnfn convert_char4_sat_rtp(long4);
2653char4 __ovld __cnfn convert_char4_rtn(long4);
2654char4 __ovld __cnfn convert_char4_sat_rtn(long4);
2655char4 __ovld __cnfn convert_char4(long4);
2656char4 __ovld __cnfn convert_char4_sat(long4);
2657char4 __ovld __cnfn convert_char4_rte(ulong4);
2658char4 __ovld __cnfn convert_char4_sat_rte(ulong4);
2659char4 __ovld __cnfn convert_char4_rtz(ulong4);
2660char4 __ovld __cnfn convert_char4_sat_rtz(ulong4);
2661char4 __ovld __cnfn convert_char4_rtp(ulong4);
2662char4 __ovld __cnfn convert_char4_sat_rtp(ulong4);
2663char4 __ovld __cnfn convert_char4_rtn(ulong4);
2664char4 __ovld __cnfn convert_char4_sat_rtn(ulong4);
2665char4 __ovld __cnfn convert_char4(ulong4);
2666char4 __ovld __cnfn convert_char4_sat(ulong4);
2667char4 __ovld __cnfn convert_char4_rte(float4);
2668char4 __ovld __cnfn convert_char4_sat_rte(float4);
2669char4 __ovld __cnfn convert_char4_rtz(float4);
2670char4 __ovld __cnfn convert_char4_sat_rtz(float4);
2671char4 __ovld __cnfn convert_char4_rtp(float4);
2672char4 __ovld __cnfn convert_char4_sat_rtp(float4);
2673char4 __ovld __cnfn convert_char4_rtn(float4);
2674char4 __ovld __cnfn convert_char4_sat_rtn(float4);
2675char4 __ovld __cnfn convert_char4(float4);
2676char4 __ovld __cnfn convert_char4_sat(float4);
2677uchar4 __ovld __cnfn convert_uchar4_rte(char4);
2678uchar4 __ovld __cnfn convert_uchar4_sat_rte(char4);
2679uchar4 __ovld __cnfn convert_uchar4_rtz(char4);
2680uchar4 __ovld __cnfn convert_uchar4_sat_rtz(char4);
2681uchar4 __ovld __cnfn convert_uchar4_rtp(char4);
2682uchar4 __ovld __cnfn convert_uchar4_sat_rtp(char4);
2683uchar4 __ovld __cnfn convert_uchar4_rtn(char4);
2684uchar4 __ovld __cnfn convert_uchar4_sat_rtn(char4);
2685uchar4 __ovld __cnfn convert_uchar4(char4);
2686uchar4 __ovld __cnfn convert_uchar4_sat(char4);
2687uchar4 __ovld __cnfn convert_uchar4_rte(uchar4);
2688uchar4 __ovld __cnfn convert_uchar4_sat_rte(uchar4);
2689uchar4 __ovld __cnfn convert_uchar4_rtz(uchar4);
2690uchar4 __ovld __cnfn convert_uchar4_sat_rtz(uchar4);
2691uchar4 __ovld __cnfn convert_uchar4_rtp(uchar4);
2692uchar4 __ovld __cnfn convert_uchar4_sat_rtp(uchar4);
2693uchar4 __ovld __cnfn convert_uchar4_rtn(uchar4);
2694uchar4 __ovld __cnfn convert_uchar4_sat_rtn(uchar4);
2695uchar4 __ovld __cnfn convert_uchar4(uchar4);
2696uchar4 __ovld __cnfn convert_uchar4_sat(uchar4);
2697uchar4 __ovld __cnfn convert_uchar4_rte(short4);
2698uchar4 __ovld __cnfn convert_uchar4_sat_rte(short4);
2699uchar4 __ovld __cnfn convert_uchar4_rtz(short4);
2700uchar4 __ovld __cnfn convert_uchar4_sat_rtz(short4);
2701uchar4 __ovld __cnfn convert_uchar4_rtp(short4);
2702uchar4 __ovld __cnfn convert_uchar4_sat_rtp(short4);
2703uchar4 __ovld __cnfn convert_uchar4_rtn(short4);
2704uchar4 __ovld __cnfn convert_uchar4_sat_rtn(short4);
2705uchar4 __ovld __cnfn convert_uchar4(short4);
2706uchar4 __ovld __cnfn convert_uchar4_sat(short4);
2707uchar4 __ovld __cnfn convert_uchar4_rte(ushort4);
2708uchar4 __ovld __cnfn convert_uchar4_sat_rte(ushort4);
2709uchar4 __ovld __cnfn convert_uchar4_rtz(ushort4);
2710uchar4 __ovld __cnfn convert_uchar4_sat_rtz(ushort4);
2711uchar4 __ovld __cnfn convert_uchar4_rtp(ushort4);
2712uchar4 __ovld __cnfn convert_uchar4_sat_rtp(ushort4);
2713uchar4 __ovld __cnfn convert_uchar4_rtn(ushort4);
2714uchar4 __ovld __cnfn convert_uchar4_sat_rtn(ushort4);
2715uchar4 __ovld __cnfn convert_uchar4(ushort4);
2716uchar4 __ovld __cnfn convert_uchar4_sat(ushort4);
2717uchar4 __ovld __cnfn convert_uchar4_rte(int4);
2718uchar4 __ovld __cnfn convert_uchar4_sat_rte(int4);
2719uchar4 __ovld __cnfn convert_uchar4_rtz(int4);
2720uchar4 __ovld __cnfn convert_uchar4_sat_rtz(int4);
2721uchar4 __ovld __cnfn convert_uchar4_rtp(int4);
2722uchar4 __ovld __cnfn convert_uchar4_sat_rtp(int4);
2723uchar4 __ovld __cnfn convert_uchar4_rtn(int4);
2724uchar4 __ovld __cnfn convert_uchar4_sat_rtn(int4);
2725uchar4 __ovld __cnfn convert_uchar4(int4);
2726uchar4 __ovld __cnfn convert_uchar4_sat(int4);
2727uchar4 __ovld __cnfn convert_uchar4_rte(uint4);
2728uchar4 __ovld __cnfn convert_uchar4_sat_rte(uint4);
2729uchar4 __ovld __cnfn convert_uchar4_rtz(uint4);
2730uchar4 __ovld __cnfn convert_uchar4_sat_rtz(uint4);
2731uchar4 __ovld __cnfn convert_uchar4_rtp(uint4);
2732uchar4 __ovld __cnfn convert_uchar4_sat_rtp(uint4);
2733uchar4 __ovld __cnfn convert_uchar4_rtn(uint4);
2734uchar4 __ovld __cnfn convert_uchar4_sat_rtn(uint4);
2735uchar4 __ovld __cnfn convert_uchar4(uint4);
2736uchar4 __ovld __cnfn convert_uchar4_sat(uint4);
2737uchar4 __ovld __cnfn convert_uchar4_rte(long4);
2738uchar4 __ovld __cnfn convert_uchar4_sat_rte(long4);
2739uchar4 __ovld __cnfn convert_uchar4_rtz(long4);
2740uchar4 __ovld __cnfn convert_uchar4_sat_rtz(long4);
2741uchar4 __ovld __cnfn convert_uchar4_rtp(long4);
2742uchar4 __ovld __cnfn convert_uchar4_sat_rtp(long4);
2743uchar4 __ovld __cnfn convert_uchar4_rtn(long4);
2744uchar4 __ovld __cnfn convert_uchar4_sat_rtn(long4);
2745uchar4 __ovld __cnfn convert_uchar4(long4);
2746uchar4 __ovld __cnfn convert_uchar4_sat(long4);
2747uchar4 __ovld __cnfn convert_uchar4_rte(ulong4);
2748uchar4 __ovld __cnfn convert_uchar4_sat_rte(ulong4);
2749uchar4 __ovld __cnfn convert_uchar4_rtz(ulong4);
2750uchar4 __ovld __cnfn convert_uchar4_sat_rtz(ulong4);
2751uchar4 __ovld __cnfn convert_uchar4_rtp(ulong4);
2752uchar4 __ovld __cnfn convert_uchar4_sat_rtp(ulong4);
2753uchar4 __ovld __cnfn convert_uchar4_rtn(ulong4);
2754uchar4 __ovld __cnfn convert_uchar4_sat_rtn(ulong4);
2755uchar4 __ovld __cnfn convert_uchar4(ulong4);
2756uchar4 __ovld __cnfn convert_uchar4_sat(ulong4);
2757uchar4 __ovld __cnfn convert_uchar4_rte(float4);
2758uchar4 __ovld __cnfn convert_uchar4_sat_rte(float4);
2759uchar4 __ovld __cnfn convert_uchar4_rtz(float4);
2760uchar4 __ovld __cnfn convert_uchar4_sat_rtz(float4);
2761uchar4 __ovld __cnfn convert_uchar4_rtp(float4);
2762uchar4 __ovld __cnfn convert_uchar4_sat_rtp(float4);
2763uchar4 __ovld __cnfn convert_uchar4_rtn(float4);
2764uchar4 __ovld __cnfn convert_uchar4_sat_rtn(float4);
2765uchar4 __ovld __cnfn convert_uchar4(float4);
2766uchar4 __ovld __cnfn convert_uchar4_sat(float4);
2767short4 __ovld __cnfn convert_short4_rte(char4);
2768short4 __ovld __cnfn convert_short4_sat_rte(char4);
2769short4 __ovld __cnfn convert_short4_rtz(char4);
2770short4 __ovld __cnfn convert_short4_sat_rtz(char4);
2771short4 __ovld __cnfn convert_short4_rtp(char4);
2772short4 __ovld __cnfn convert_short4_sat_rtp(char4);
2773short4 __ovld __cnfn convert_short4_rtn(char4);
2774short4 __ovld __cnfn convert_short4_sat_rtn(char4);
2775short4 __ovld __cnfn convert_short4(char4);
2776short4 __ovld __cnfn convert_short4_sat(char4);
2777short4 __ovld __cnfn convert_short4_rte(uchar4);
2778short4 __ovld __cnfn convert_short4_sat_rte(uchar4);
2779short4 __ovld __cnfn convert_short4_rtz(uchar4);
2780short4 __ovld __cnfn convert_short4_sat_rtz(uchar4);
2781short4 __ovld __cnfn convert_short4_rtp(uchar4);
2782short4 __ovld __cnfn convert_short4_sat_rtp(uchar4);
2783short4 __ovld __cnfn convert_short4_rtn(uchar4);
2784short4 __ovld __cnfn convert_short4_sat_rtn(uchar4);
2785short4 __ovld __cnfn convert_short4(uchar4);
2786short4 __ovld __cnfn convert_short4_sat(uchar4);
2787short4 __ovld __cnfn convert_short4_rte(short4);
2788short4 __ovld __cnfn convert_short4_sat_rte(short4);
2789short4 __ovld __cnfn convert_short4_rtz(short4);
2790short4 __ovld __cnfn convert_short4_sat_rtz(short4);
2791short4 __ovld __cnfn convert_short4_rtp(short4);
2792short4 __ovld __cnfn convert_short4_sat_rtp(short4);
2793short4 __ovld __cnfn convert_short4_rtn(short4);
2794short4 __ovld __cnfn convert_short4_sat_rtn(short4);
2795short4 __ovld __cnfn convert_short4(short4);
2796short4 __ovld __cnfn convert_short4_sat(short4);
2797short4 __ovld __cnfn convert_short4_rte(ushort4);
2798short4 __ovld __cnfn convert_short4_sat_rte(ushort4);
2799short4 __ovld __cnfn convert_short4_rtz(ushort4);
2800short4 __ovld __cnfn convert_short4_sat_rtz(ushort4);
2801short4 __ovld __cnfn convert_short4_rtp(ushort4);
2802short4 __ovld __cnfn convert_short4_sat_rtp(ushort4);
2803short4 __ovld __cnfn convert_short4_rtn(ushort4);
2804short4 __ovld __cnfn convert_short4_sat_rtn(ushort4);
2805short4 __ovld __cnfn convert_short4(ushort4);
2806short4 __ovld __cnfn convert_short4_sat(ushort4);
2807short4 __ovld __cnfn convert_short4_rte(int4);
2808short4 __ovld __cnfn convert_short4_sat_rte(int4);
2809short4 __ovld __cnfn convert_short4_rtz(int4);
2810short4 __ovld __cnfn convert_short4_sat_rtz(int4);
2811short4 __ovld __cnfn convert_short4_rtp(int4);
2812short4 __ovld __cnfn convert_short4_sat_rtp(int4);
2813short4 __ovld __cnfn convert_short4_rtn(int4);
2814short4 __ovld __cnfn convert_short4_sat_rtn(int4);
2815short4 __ovld __cnfn convert_short4(int4);
2816short4 __ovld __cnfn convert_short4_sat(int4);
2817short4 __ovld __cnfn convert_short4_rte(uint4);
2818short4 __ovld __cnfn convert_short4_sat_rte(uint4);
2819short4 __ovld __cnfn convert_short4_rtz(uint4);
2820short4 __ovld __cnfn convert_short4_sat_rtz(uint4);
2821short4 __ovld __cnfn convert_short4_rtp(uint4);
2822short4 __ovld __cnfn convert_short4_sat_rtp(uint4);
2823short4 __ovld __cnfn convert_short4_rtn(uint4);
2824short4 __ovld __cnfn convert_short4_sat_rtn(uint4);
2825short4 __ovld __cnfn convert_short4(uint4);
2826short4 __ovld __cnfn convert_short4_sat(uint4);
2827short4 __ovld __cnfn convert_short4_rte(long4);
2828short4 __ovld __cnfn convert_short4_sat_rte(long4);
2829short4 __ovld __cnfn convert_short4_rtz(long4);
2830short4 __ovld __cnfn convert_short4_sat_rtz(long4);
2831short4 __ovld __cnfn convert_short4_rtp(long4);
2832short4 __ovld __cnfn convert_short4_sat_rtp(long4);
2833short4 __ovld __cnfn convert_short4_rtn(long4);
2834short4 __ovld __cnfn convert_short4_sat_rtn(long4);
2835short4 __ovld __cnfn convert_short4(long4);
2836short4 __ovld __cnfn convert_short4_sat(long4);
2837short4 __ovld __cnfn convert_short4_rte(ulong4);
2838short4 __ovld __cnfn convert_short4_sat_rte(ulong4);
2839short4 __ovld __cnfn convert_short4_rtz(ulong4);
2840short4 __ovld __cnfn convert_short4_sat_rtz(ulong4);
2841short4 __ovld __cnfn convert_short4_rtp(ulong4);
2842short4 __ovld __cnfn convert_short4_sat_rtp(ulong4);
2843short4 __ovld __cnfn convert_short4_rtn(ulong4);
2844short4 __ovld __cnfn convert_short4_sat_rtn(ulong4);
2845short4 __ovld __cnfn convert_short4(ulong4);
2846short4 __ovld __cnfn convert_short4_sat(ulong4);
2847short4 __ovld __cnfn convert_short4_rte(float4);
2848short4 __ovld __cnfn convert_short4_sat_rte(float4);
2849short4 __ovld __cnfn convert_short4_rtz(float4);
2850short4 __ovld __cnfn convert_short4_sat_rtz(float4);
2851short4 __ovld __cnfn convert_short4_rtp(float4);
2852short4 __ovld __cnfn convert_short4_sat_rtp(float4);
2853short4 __ovld __cnfn convert_short4_rtn(float4);
2854short4 __ovld __cnfn convert_short4_sat_rtn(float4);
2855short4 __ovld __cnfn convert_short4(float4);
2856short4 __ovld __cnfn convert_short4_sat(float4);
2857ushort4 __ovld __cnfn convert_ushort4_rte(char4);
2858ushort4 __ovld __cnfn convert_ushort4_sat_rte(char4);
2859ushort4 __ovld __cnfn convert_ushort4_rtz(char4);
2860ushort4 __ovld __cnfn convert_ushort4_sat_rtz(char4);
2861ushort4 __ovld __cnfn convert_ushort4_rtp(char4);
2862ushort4 __ovld __cnfn convert_ushort4_sat_rtp(char4);
2863ushort4 __ovld __cnfn convert_ushort4_rtn(char4);
2864ushort4 __ovld __cnfn convert_ushort4_sat_rtn(char4);
2865ushort4 __ovld __cnfn convert_ushort4(char4);
2866ushort4 __ovld __cnfn convert_ushort4_sat(char4);
2867ushort4 __ovld __cnfn convert_ushort4_rte(uchar4);
2868ushort4 __ovld __cnfn convert_ushort4_sat_rte(uchar4);
2869ushort4 __ovld __cnfn convert_ushort4_rtz(uchar4);
2870ushort4 __ovld __cnfn convert_ushort4_sat_rtz(uchar4);
2871ushort4 __ovld __cnfn convert_ushort4_rtp(uchar4);
2872ushort4 __ovld __cnfn convert_ushort4_sat_rtp(uchar4);
2873ushort4 __ovld __cnfn convert_ushort4_rtn(uchar4);
2874ushort4 __ovld __cnfn convert_ushort4_sat_rtn(uchar4);
2875ushort4 __ovld __cnfn convert_ushort4(uchar4);
2876ushort4 __ovld __cnfn convert_ushort4_sat(uchar4);
2877ushort4 __ovld __cnfn convert_ushort4_rte(short4);
2878ushort4 __ovld __cnfn convert_ushort4_sat_rte(short4);
2879ushort4 __ovld __cnfn convert_ushort4_rtz(short4);
2880ushort4 __ovld __cnfn convert_ushort4_sat_rtz(short4);
2881ushort4 __ovld __cnfn convert_ushort4_rtp(short4);
2882ushort4 __ovld __cnfn convert_ushort4_sat_rtp(short4);
2883ushort4 __ovld __cnfn convert_ushort4_rtn(short4);
2884ushort4 __ovld __cnfn convert_ushort4_sat_rtn(short4);
2885ushort4 __ovld __cnfn convert_ushort4(short4);
2886ushort4 __ovld __cnfn convert_ushort4_sat(short4);
2887ushort4 __ovld __cnfn convert_ushort4_rte(ushort4);
2888ushort4 __ovld __cnfn convert_ushort4_sat_rte(ushort4);
2889ushort4 __ovld __cnfn convert_ushort4_rtz(ushort4);
2890ushort4 __ovld __cnfn convert_ushort4_sat_rtz(ushort4);
2891ushort4 __ovld __cnfn convert_ushort4_rtp(ushort4);
2892ushort4 __ovld __cnfn convert_ushort4_sat_rtp(ushort4);
2893ushort4 __ovld __cnfn convert_ushort4_rtn(ushort4);
2894ushort4 __ovld __cnfn convert_ushort4_sat_rtn(ushort4);
2895ushort4 __ovld __cnfn convert_ushort4(ushort4);
2896ushort4 __ovld __cnfn convert_ushort4_sat(ushort4);
2897ushort4 __ovld __cnfn convert_ushort4_rte(int4);
2898ushort4 __ovld __cnfn convert_ushort4_sat_rte(int4);
2899ushort4 __ovld __cnfn convert_ushort4_rtz(int4);
2900ushort4 __ovld __cnfn convert_ushort4_sat_rtz(int4);
2901ushort4 __ovld __cnfn convert_ushort4_rtp(int4);
2902ushort4 __ovld __cnfn convert_ushort4_sat_rtp(int4);
2903ushort4 __ovld __cnfn convert_ushort4_rtn(int4);
2904ushort4 __ovld __cnfn convert_ushort4_sat_rtn(int4);
2905ushort4 __ovld __cnfn convert_ushort4(int4);
2906ushort4 __ovld __cnfn convert_ushort4_sat(int4);
2907ushort4 __ovld __cnfn convert_ushort4_rte(uint4);
2908ushort4 __ovld __cnfn convert_ushort4_sat_rte(uint4);
2909ushort4 __ovld __cnfn convert_ushort4_rtz(uint4);
2910ushort4 __ovld __cnfn convert_ushort4_sat_rtz(uint4);
2911ushort4 __ovld __cnfn convert_ushort4_rtp(uint4);
2912ushort4 __ovld __cnfn convert_ushort4_sat_rtp(uint4);
2913ushort4 __ovld __cnfn convert_ushort4_rtn(uint4);
2914ushort4 __ovld __cnfn convert_ushort4_sat_rtn(uint4);
2915ushort4 __ovld __cnfn convert_ushort4(uint4);
2916ushort4 __ovld __cnfn convert_ushort4_sat(uint4);
2917ushort4 __ovld __cnfn convert_ushort4_rte(long4);
2918ushort4 __ovld __cnfn convert_ushort4_sat_rte(long4);
2919ushort4 __ovld __cnfn convert_ushort4_rtz(long4);
2920ushort4 __ovld __cnfn convert_ushort4_sat_rtz(long4);
2921ushort4 __ovld __cnfn convert_ushort4_rtp(long4);
2922ushort4 __ovld __cnfn convert_ushort4_sat_rtp(long4);
2923ushort4 __ovld __cnfn convert_ushort4_rtn(long4);
2924ushort4 __ovld __cnfn convert_ushort4_sat_rtn(long4);
2925ushort4 __ovld __cnfn convert_ushort4(long4);
2926ushort4 __ovld __cnfn convert_ushort4_sat(long4);
2927ushort4 __ovld __cnfn convert_ushort4_rte(ulong4);
2928ushort4 __ovld __cnfn convert_ushort4_sat_rte(ulong4);
2929ushort4 __ovld __cnfn convert_ushort4_rtz(ulong4);
2930ushort4 __ovld __cnfn convert_ushort4_sat_rtz(ulong4);
2931ushort4 __ovld __cnfn convert_ushort4_rtp(ulong4);
2932ushort4 __ovld __cnfn convert_ushort4_sat_rtp(ulong4);
2933ushort4 __ovld __cnfn convert_ushort4_rtn(ulong4);
2934ushort4 __ovld __cnfn convert_ushort4_sat_rtn(ulong4);
2935ushort4 __ovld __cnfn convert_ushort4(ulong4);
2936ushort4 __ovld __cnfn convert_ushort4_sat(ulong4);
2937ushort4 __ovld __cnfn convert_ushort4_rte(float4);
2938ushort4 __ovld __cnfn convert_ushort4_sat_rte(float4);
2939ushort4 __ovld __cnfn convert_ushort4_rtz(float4);
2940ushort4 __ovld __cnfn convert_ushort4_sat_rtz(float4);
2941ushort4 __ovld __cnfn convert_ushort4_rtp(float4);
2942ushort4 __ovld __cnfn convert_ushort4_sat_rtp(float4);
2943ushort4 __ovld __cnfn convert_ushort4_rtn(float4);
2944ushort4 __ovld __cnfn convert_ushort4_sat_rtn(float4);
2945ushort4 __ovld __cnfn convert_ushort4(float4);
2946ushort4 __ovld __cnfn convert_ushort4_sat(float4);
2947int4 __ovld __cnfn convert_int4_rte(char4);
2948int4 __ovld __cnfn convert_int4_sat_rte(char4);
2949int4 __ovld __cnfn convert_int4_rtz(char4);
2950int4 __ovld __cnfn convert_int4_sat_rtz(char4);
2951int4 __ovld __cnfn convert_int4_rtp(char4);
2952int4 __ovld __cnfn convert_int4_sat_rtp(char4);
2953int4 __ovld __cnfn convert_int4_rtn(char4);
2954int4 __ovld __cnfn convert_int4_sat_rtn(char4);
2955int4 __ovld __cnfn convert_int4(char4);
2956int4 __ovld __cnfn convert_int4_sat(char4);
2957int4 __ovld __cnfn convert_int4_rte(uchar4);
2958int4 __ovld __cnfn convert_int4_sat_rte(uchar4);
2959int4 __ovld __cnfn convert_int4_rtz(uchar4);
2960int4 __ovld __cnfn convert_int4_sat_rtz(uchar4);
2961int4 __ovld __cnfn convert_int4_rtp(uchar4);
2962int4 __ovld __cnfn convert_int4_sat_rtp(uchar4);
2963int4 __ovld __cnfn convert_int4_rtn(uchar4);
2964int4 __ovld __cnfn convert_int4_sat_rtn(uchar4);
2965int4 __ovld __cnfn convert_int4(uchar4);
2966int4 __ovld __cnfn convert_int4_sat(uchar4);
2967int4 __ovld __cnfn convert_int4_rte(short4);
2968int4 __ovld __cnfn convert_int4_sat_rte(short4);
2969int4 __ovld __cnfn convert_int4_rtz(short4);
2970int4 __ovld __cnfn convert_int4_sat_rtz(short4);
2971int4 __ovld __cnfn convert_int4_rtp(short4);
2972int4 __ovld __cnfn convert_int4_sat_rtp(short4);
2973int4 __ovld __cnfn convert_int4_rtn(short4);
2974int4 __ovld __cnfn convert_int4_sat_rtn(short4);
2975int4 __ovld __cnfn convert_int4(short4);
2976int4 __ovld __cnfn convert_int4_sat(short4);
2977int4 __ovld __cnfn convert_int4_rte(ushort4);
2978int4 __ovld __cnfn convert_int4_sat_rte(ushort4);
2979int4 __ovld __cnfn convert_int4_rtz(ushort4);
2980int4 __ovld __cnfn convert_int4_sat_rtz(ushort4);
2981int4 __ovld __cnfn convert_int4_rtp(ushort4);
2982int4 __ovld __cnfn convert_int4_sat_rtp(ushort4);
2983int4 __ovld __cnfn convert_int4_rtn(ushort4);
2984int4 __ovld __cnfn convert_int4_sat_rtn(ushort4);
2985int4 __ovld __cnfn convert_int4(ushort4);
2986int4 __ovld __cnfn convert_int4_sat(ushort4);
2987int4 __ovld __cnfn convert_int4_rte(int4);
2988int4 __ovld __cnfn convert_int4_sat_rte(int4);
2989int4 __ovld __cnfn convert_int4_rtz(int4);
2990int4 __ovld __cnfn convert_int4_sat_rtz(int4);
2991int4 __ovld __cnfn convert_int4_rtp(int4);
2992int4 __ovld __cnfn convert_int4_sat_rtp(int4);
2993int4 __ovld __cnfn convert_int4_rtn(int4);
2994int4 __ovld __cnfn convert_int4_sat_rtn(int4);
2995int4 __ovld __cnfn convert_int4(int4);
2996int4 __ovld __cnfn convert_int4_sat(int4);
2997int4 __ovld __cnfn convert_int4_rte(uint4);
2998int4 __ovld __cnfn convert_int4_sat_rte(uint4);
2999int4 __ovld __cnfn convert_int4_rtz(uint4);
3000int4 __ovld __cnfn convert_int4_sat_rtz(uint4);
3001int4 __ovld __cnfn convert_int4_rtp(uint4);
3002int4 __ovld __cnfn convert_int4_sat_rtp(uint4);
3003int4 __ovld __cnfn convert_int4_rtn(uint4);
3004int4 __ovld __cnfn convert_int4_sat_rtn(uint4);
3005int4 __ovld __cnfn convert_int4(uint4);
3006int4 __ovld __cnfn convert_int4_sat(uint4);
3007int4 __ovld __cnfn convert_int4_rte(long4);
3008int4 __ovld __cnfn convert_int4_sat_rte(long4);
3009int4 __ovld __cnfn convert_int4_rtz(long4);
3010int4 __ovld __cnfn convert_int4_sat_rtz(long4);
3011int4 __ovld __cnfn convert_int4_rtp(long4);
3012int4 __ovld __cnfn convert_int4_sat_rtp(long4);
3013int4 __ovld __cnfn convert_int4_rtn(long4);
3014int4 __ovld __cnfn convert_int4_sat_rtn(long4);
3015int4 __ovld __cnfn convert_int4(long4);
3016int4 __ovld __cnfn convert_int4_sat(long4);
3017int4 __ovld __cnfn convert_int4_rte(ulong4);
3018int4 __ovld __cnfn convert_int4_sat_rte(ulong4);
3019int4 __ovld __cnfn convert_int4_rtz(ulong4);
3020int4 __ovld __cnfn convert_int4_sat_rtz(ulong4);
3021int4 __ovld __cnfn convert_int4_rtp(ulong4);
3022int4 __ovld __cnfn convert_int4_sat_rtp(ulong4);
3023int4 __ovld __cnfn convert_int4_rtn(ulong4);
3024int4 __ovld __cnfn convert_int4_sat_rtn(ulong4);
3025int4 __ovld __cnfn convert_int4(ulong4);
3026int4 __ovld __cnfn convert_int4_sat(ulong4);
3027int4 __ovld __cnfn convert_int4_rte(float4);
3028int4 __ovld __cnfn convert_int4_sat_rte(float4);
3029int4 __ovld __cnfn convert_int4_rtz(float4);
3030int4 __ovld __cnfn convert_int4_sat_rtz(float4);
3031int4 __ovld __cnfn convert_int4_rtp(float4);
3032int4 __ovld __cnfn convert_int4_sat_rtp(float4);
3033int4 __ovld __cnfn convert_int4_rtn(float4);
3034int4 __ovld __cnfn convert_int4_sat_rtn(float4);
3035int4 __ovld __cnfn convert_int4(float4);
3036int4 __ovld __cnfn convert_int4_sat(float4);
3037uint4 __ovld __cnfn convert_uint4_rte(char4);
3038uint4 __ovld __cnfn convert_uint4_sat_rte(char4);
3039uint4 __ovld __cnfn convert_uint4_rtz(char4);
3040uint4 __ovld __cnfn convert_uint4_sat_rtz(char4);
3041uint4 __ovld __cnfn convert_uint4_rtp(char4);
3042uint4 __ovld __cnfn convert_uint4_sat_rtp(char4);
3043uint4 __ovld __cnfn convert_uint4_rtn(char4);
3044uint4 __ovld __cnfn convert_uint4_sat_rtn(char4);
3045uint4 __ovld __cnfn convert_uint4(char4);
3046uint4 __ovld __cnfn convert_uint4_sat(char4);
3047uint4 __ovld __cnfn convert_uint4_rte(uchar4);
3048uint4 __ovld __cnfn convert_uint4_sat_rte(uchar4);
3049uint4 __ovld __cnfn convert_uint4_rtz(uchar4);
3050uint4 __ovld __cnfn convert_uint4_sat_rtz(uchar4);
3051uint4 __ovld __cnfn convert_uint4_rtp(uchar4);
3052uint4 __ovld __cnfn convert_uint4_sat_rtp(uchar4);
3053uint4 __ovld __cnfn convert_uint4_rtn(uchar4);
3054uint4 __ovld __cnfn convert_uint4_sat_rtn(uchar4);
3055uint4 __ovld __cnfn convert_uint4(uchar4);
3056uint4 __ovld __cnfn convert_uint4_sat(uchar4);
3057uint4 __ovld __cnfn convert_uint4_rte(short4);
3058uint4 __ovld __cnfn convert_uint4_sat_rte(short4);
3059uint4 __ovld __cnfn convert_uint4_rtz(short4);
3060uint4 __ovld __cnfn convert_uint4_sat_rtz(short4);
3061uint4 __ovld __cnfn convert_uint4_rtp(short4);
3062uint4 __ovld __cnfn convert_uint4_sat_rtp(short4);
3063uint4 __ovld __cnfn convert_uint4_rtn(short4);
3064uint4 __ovld __cnfn convert_uint4_sat_rtn(short4);
3065uint4 __ovld __cnfn convert_uint4(short4);
3066uint4 __ovld __cnfn convert_uint4_sat(short4);
3067uint4 __ovld __cnfn convert_uint4_rte(ushort4);
3068uint4 __ovld __cnfn convert_uint4_sat_rte(ushort4);
3069uint4 __ovld __cnfn convert_uint4_rtz(ushort4);
3070uint4 __ovld __cnfn convert_uint4_sat_rtz(ushort4);
3071uint4 __ovld __cnfn convert_uint4_rtp(ushort4);
3072uint4 __ovld __cnfn convert_uint4_sat_rtp(ushort4);
3073uint4 __ovld __cnfn convert_uint4_rtn(ushort4);
3074uint4 __ovld __cnfn convert_uint4_sat_rtn(ushort4);
3075uint4 __ovld __cnfn convert_uint4(ushort4);
3076uint4 __ovld __cnfn convert_uint4_sat(ushort4);
3077uint4 __ovld __cnfn convert_uint4_rte(int4);
3078uint4 __ovld __cnfn convert_uint4_sat_rte(int4);
3079uint4 __ovld __cnfn convert_uint4_rtz(int4);
3080uint4 __ovld __cnfn convert_uint4_sat_rtz(int4);
3081uint4 __ovld __cnfn convert_uint4_rtp(int4);
3082uint4 __ovld __cnfn convert_uint4_sat_rtp(int4);
3083uint4 __ovld __cnfn convert_uint4_rtn(int4);
3084uint4 __ovld __cnfn convert_uint4_sat_rtn(int4);
3085uint4 __ovld __cnfn convert_uint4(int4);
3086uint4 __ovld __cnfn convert_uint4_sat(int4);
3087uint4 __ovld __cnfn convert_uint4_rte(uint4);
3088uint4 __ovld __cnfn convert_uint4_sat_rte(uint4);
3089uint4 __ovld __cnfn convert_uint4_rtz(uint4);
3090uint4 __ovld __cnfn convert_uint4_sat_rtz(uint4);
3091uint4 __ovld __cnfn convert_uint4_rtp(uint4);
3092uint4 __ovld __cnfn convert_uint4_sat_rtp(uint4);
3093uint4 __ovld __cnfn convert_uint4_rtn(uint4);
3094uint4 __ovld __cnfn convert_uint4_sat_rtn(uint4);
3095uint4 __ovld __cnfn convert_uint4(uint4);
3096uint4 __ovld __cnfn convert_uint4_sat(uint4);
3097uint4 __ovld __cnfn convert_uint4_rte(long4);
3098uint4 __ovld __cnfn convert_uint4_sat_rte(long4);
3099uint4 __ovld __cnfn convert_uint4_rtz(long4);
3100uint4 __ovld __cnfn convert_uint4_sat_rtz(long4);
3101uint4 __ovld __cnfn convert_uint4_rtp(long4);
3102uint4 __ovld __cnfn convert_uint4_sat_rtp(long4);
3103uint4 __ovld __cnfn convert_uint4_rtn(long4);
3104uint4 __ovld __cnfn convert_uint4_sat_rtn(long4);
3105uint4 __ovld __cnfn convert_uint4(long4);
3106uint4 __ovld __cnfn convert_uint4_sat(long4);
3107uint4 __ovld __cnfn convert_uint4_rte(ulong4);
3108uint4 __ovld __cnfn convert_uint4_sat_rte(ulong4);
3109uint4 __ovld __cnfn convert_uint4_rtz(ulong4);
3110uint4 __ovld __cnfn convert_uint4_sat_rtz(ulong4);
3111uint4 __ovld __cnfn convert_uint4_rtp(ulong4);
3112uint4 __ovld __cnfn convert_uint4_sat_rtp(ulong4);
3113uint4 __ovld __cnfn convert_uint4_rtn(ulong4);
3114uint4 __ovld __cnfn convert_uint4_sat_rtn(ulong4);
3115uint4 __ovld __cnfn convert_uint4(ulong4);
3116uint4 __ovld __cnfn convert_uint4_sat(ulong4);
3117uint4 __ovld __cnfn convert_uint4_rte(float4);
3118uint4 __ovld __cnfn convert_uint4_sat_rte(float4);
3119uint4 __ovld __cnfn convert_uint4_rtz(float4);
3120uint4 __ovld __cnfn convert_uint4_sat_rtz(float4);
3121uint4 __ovld __cnfn convert_uint4_rtp(float4);
3122uint4 __ovld __cnfn convert_uint4_sat_rtp(float4);
3123uint4 __ovld __cnfn convert_uint4_rtn(float4);
3124uint4 __ovld __cnfn convert_uint4_sat_rtn(float4);
3125uint4 __ovld __cnfn convert_uint4(float4);
3126uint4 __ovld __cnfn convert_uint4_sat(float4);
3127long4 __ovld __cnfn convert_long4_rte(char4);
3128long4 __ovld __cnfn convert_long4_sat_rte(char4);
3129long4 __ovld __cnfn convert_long4_rtz(char4);
3130long4 __ovld __cnfn convert_long4_sat_rtz(char4);
3131long4 __ovld __cnfn convert_long4_rtp(char4);
3132long4 __ovld __cnfn convert_long4_sat_rtp(char4);
3133long4 __ovld __cnfn convert_long4_rtn(char4);
3134long4 __ovld __cnfn convert_long4_sat_rtn(char4);
3135long4 __ovld __cnfn convert_long4(char4);
3136long4 __ovld __cnfn convert_long4_sat(char4);
3137long4 __ovld __cnfn convert_long4_rte(uchar4);
3138long4 __ovld __cnfn convert_long4_sat_rte(uchar4);
3139long4 __ovld __cnfn convert_long4_rtz(uchar4);
3140long4 __ovld __cnfn convert_long4_sat_rtz(uchar4);
3141long4 __ovld __cnfn convert_long4_rtp(uchar4);
3142long4 __ovld __cnfn convert_long4_sat_rtp(uchar4);
3143long4 __ovld __cnfn convert_long4_rtn(uchar4);
3144long4 __ovld __cnfn convert_long4_sat_rtn(uchar4);
3145long4 __ovld __cnfn convert_long4(uchar4);
3146long4 __ovld __cnfn convert_long4_sat(uchar4);
3147long4 __ovld __cnfn convert_long4_rte(short4);
3148long4 __ovld __cnfn convert_long4_sat_rte(short4);
3149long4 __ovld __cnfn convert_long4_rtz(short4);
3150long4 __ovld __cnfn convert_long4_sat_rtz(short4);
3151long4 __ovld __cnfn convert_long4_rtp(short4);
3152long4 __ovld __cnfn convert_long4_sat_rtp(short4);
3153long4 __ovld __cnfn convert_long4_rtn(short4);
3154long4 __ovld __cnfn convert_long4_sat_rtn(short4);
3155long4 __ovld __cnfn convert_long4(short4);
3156long4 __ovld __cnfn convert_long4_sat(short4);
3157long4 __ovld __cnfn convert_long4_rte(ushort4);
3158long4 __ovld __cnfn convert_long4_sat_rte(ushort4);
3159long4 __ovld __cnfn convert_long4_rtz(ushort4);
3160long4 __ovld __cnfn convert_long4_sat_rtz(ushort4);
3161long4 __ovld __cnfn convert_long4_rtp(ushort4);
3162long4 __ovld __cnfn convert_long4_sat_rtp(ushort4);
3163long4 __ovld __cnfn convert_long4_rtn(ushort4);
3164long4 __ovld __cnfn convert_long4_sat_rtn(ushort4);
3165long4 __ovld __cnfn convert_long4(ushort4);
3166long4 __ovld __cnfn convert_long4_sat(ushort4);
3167long4 __ovld __cnfn convert_long4_rte(int4);
3168long4 __ovld __cnfn convert_long4_sat_rte(int4);
3169long4 __ovld __cnfn convert_long4_rtz(int4);
3170long4 __ovld __cnfn convert_long4_sat_rtz(int4);
3171long4 __ovld __cnfn convert_long4_rtp(int4);
3172long4 __ovld __cnfn convert_long4_sat_rtp(int4);
3173long4 __ovld __cnfn convert_long4_rtn(int4);
3174long4 __ovld __cnfn convert_long4_sat_rtn(int4);
3175long4 __ovld __cnfn convert_long4(int4);
3176long4 __ovld __cnfn convert_long4_sat(int4);
3177long4 __ovld __cnfn convert_long4_rte(uint4);
3178long4 __ovld __cnfn convert_long4_sat_rte(uint4);
3179long4 __ovld __cnfn convert_long4_rtz(uint4);
3180long4 __ovld __cnfn convert_long4_sat_rtz(uint4);
3181long4 __ovld __cnfn convert_long4_rtp(uint4);
3182long4 __ovld __cnfn convert_long4_sat_rtp(uint4);
3183long4 __ovld __cnfn convert_long4_rtn(uint4);
3184long4 __ovld __cnfn convert_long4_sat_rtn(uint4);
3185long4 __ovld __cnfn convert_long4(uint4);
3186long4 __ovld __cnfn convert_long4_sat(uint4);
3187long4 __ovld __cnfn convert_long4_rte(long4);
3188long4 __ovld __cnfn convert_long4_sat_rte(long4);
3189long4 __ovld __cnfn convert_long4_rtz(long4);
3190long4 __ovld __cnfn convert_long4_sat_rtz(long4);
3191long4 __ovld __cnfn convert_long4_rtp(long4);
3192long4 __ovld __cnfn convert_long4_sat_rtp(long4);
3193long4 __ovld __cnfn convert_long4_rtn(long4);
3194long4 __ovld __cnfn convert_long4_sat_rtn(long4);
3195long4 __ovld __cnfn convert_long4(long4);
3196long4 __ovld __cnfn convert_long4_sat(long4);
3197long4 __ovld __cnfn convert_long4_rte(ulong4);
3198long4 __ovld __cnfn convert_long4_sat_rte(ulong4);
3199long4 __ovld __cnfn convert_long4_rtz(ulong4);
3200long4 __ovld __cnfn convert_long4_sat_rtz(ulong4);
3201long4 __ovld __cnfn convert_long4_rtp(ulong4);
3202long4 __ovld __cnfn convert_long4_sat_rtp(ulong4);
3203long4 __ovld __cnfn convert_long4_rtn(ulong4);
3204long4 __ovld __cnfn convert_long4_sat_rtn(ulong4);
3205long4 __ovld __cnfn convert_long4(ulong4);
3206long4 __ovld __cnfn convert_long4_sat(ulong4);
3207long4 __ovld __cnfn convert_long4_rte(float4);
3208long4 __ovld __cnfn convert_long4_sat_rte(float4);
3209long4 __ovld __cnfn convert_long4_rtz(float4);
3210long4 __ovld __cnfn convert_long4_sat_rtz(float4);
3211long4 __ovld __cnfn convert_long4_rtp(float4);
3212long4 __ovld __cnfn convert_long4_sat_rtp(float4);
3213long4 __ovld __cnfn convert_long4_rtn(float4);
3214long4 __ovld __cnfn convert_long4_sat_rtn(float4);
3215long4 __ovld __cnfn convert_long4(float4);
3216long4 __ovld __cnfn convert_long4_sat(float4);
3217ulong4 __ovld __cnfn convert_ulong4_rte(char4);
3218ulong4 __ovld __cnfn convert_ulong4_sat_rte(char4);
3219ulong4 __ovld __cnfn convert_ulong4_rtz(char4);
3220ulong4 __ovld __cnfn convert_ulong4_sat_rtz(char4);
3221ulong4 __ovld __cnfn convert_ulong4_rtp(char4);
3222ulong4 __ovld __cnfn convert_ulong4_sat_rtp(char4);
3223ulong4 __ovld __cnfn convert_ulong4_rtn(char4);
3224ulong4 __ovld __cnfn convert_ulong4_sat_rtn(char4);
3225ulong4 __ovld __cnfn convert_ulong4(char4);
3226ulong4 __ovld __cnfn convert_ulong4_sat(char4);
3227ulong4 __ovld __cnfn convert_ulong4_rte(uchar4);
3228ulong4 __ovld __cnfn convert_ulong4_sat_rte(uchar4);
3229ulong4 __ovld __cnfn convert_ulong4_rtz(uchar4);
3230ulong4 __ovld __cnfn convert_ulong4_sat_rtz(uchar4);
3231ulong4 __ovld __cnfn convert_ulong4_rtp(uchar4);
3232ulong4 __ovld __cnfn convert_ulong4_sat_rtp(uchar4);
3233ulong4 __ovld __cnfn convert_ulong4_rtn(uchar4);
3234ulong4 __ovld __cnfn convert_ulong4_sat_rtn(uchar4);
3235ulong4 __ovld __cnfn convert_ulong4(uchar4);
3236ulong4 __ovld __cnfn convert_ulong4_sat(uchar4);
3237ulong4 __ovld __cnfn convert_ulong4_rte(short4);
3238ulong4 __ovld __cnfn convert_ulong4_sat_rte(short4);
3239ulong4 __ovld __cnfn convert_ulong4_rtz(short4);
3240ulong4 __ovld __cnfn convert_ulong4_sat_rtz(short4);
3241ulong4 __ovld __cnfn convert_ulong4_rtp(short4);
3242ulong4 __ovld __cnfn convert_ulong4_sat_rtp(short4);
3243ulong4 __ovld __cnfn convert_ulong4_rtn(short4);
3244ulong4 __ovld __cnfn convert_ulong4_sat_rtn(short4);
3245ulong4 __ovld __cnfn convert_ulong4(short4);
3246ulong4 __ovld __cnfn convert_ulong4_sat(short4);
3247ulong4 __ovld __cnfn convert_ulong4_rte(ushort4);
3248ulong4 __ovld __cnfn convert_ulong4_sat_rte(ushort4);
3249ulong4 __ovld __cnfn convert_ulong4_rtz(ushort4);
3250ulong4 __ovld __cnfn convert_ulong4_sat_rtz(ushort4);
3251ulong4 __ovld __cnfn convert_ulong4_rtp(ushort4);
3252ulong4 __ovld __cnfn convert_ulong4_sat_rtp(ushort4);
3253ulong4 __ovld __cnfn convert_ulong4_rtn(ushort4);
3254ulong4 __ovld __cnfn convert_ulong4_sat_rtn(ushort4);
3255ulong4 __ovld __cnfn convert_ulong4(ushort4);
3256ulong4 __ovld __cnfn convert_ulong4_sat(ushort4);
3257ulong4 __ovld __cnfn convert_ulong4_rte(int4);
3258ulong4 __ovld __cnfn convert_ulong4_sat_rte(int4);
3259ulong4 __ovld __cnfn convert_ulong4_rtz(int4);
3260ulong4 __ovld __cnfn convert_ulong4_sat_rtz(int4);
3261ulong4 __ovld __cnfn convert_ulong4_rtp(int4);
3262ulong4 __ovld __cnfn convert_ulong4_sat_rtp(int4);
3263ulong4 __ovld __cnfn convert_ulong4_rtn(int4);
3264ulong4 __ovld __cnfn convert_ulong4_sat_rtn(int4);
3265ulong4 __ovld __cnfn convert_ulong4(int4);
3266ulong4 __ovld __cnfn convert_ulong4_sat(int4);
3267ulong4 __ovld __cnfn convert_ulong4_rte(uint4);
3268ulong4 __ovld __cnfn convert_ulong4_sat_rte(uint4);
3269ulong4 __ovld __cnfn convert_ulong4_rtz(uint4);
3270ulong4 __ovld __cnfn convert_ulong4_sat_rtz(uint4);
3271ulong4 __ovld __cnfn convert_ulong4_rtp(uint4);
3272ulong4 __ovld __cnfn convert_ulong4_sat_rtp(uint4);
3273ulong4 __ovld __cnfn convert_ulong4_rtn(uint4);
3274ulong4 __ovld __cnfn convert_ulong4_sat_rtn(uint4);
3275ulong4 __ovld __cnfn convert_ulong4(uint4);
3276ulong4 __ovld __cnfn convert_ulong4_sat(uint4);
3277ulong4 __ovld __cnfn convert_ulong4_rte(long4);
3278ulong4 __ovld __cnfn convert_ulong4_sat_rte(long4);
3279ulong4 __ovld __cnfn convert_ulong4_rtz(long4);
3280ulong4 __ovld __cnfn convert_ulong4_sat_rtz(long4);
3281ulong4 __ovld __cnfn convert_ulong4_rtp(long4);
3282ulong4 __ovld __cnfn convert_ulong4_sat_rtp(long4);
3283ulong4 __ovld __cnfn convert_ulong4_rtn(long4);
3284ulong4 __ovld __cnfn convert_ulong4_sat_rtn(long4);
3285ulong4 __ovld __cnfn convert_ulong4(long4);
3286ulong4 __ovld __cnfn convert_ulong4_sat(long4);
3287ulong4 __ovld __cnfn convert_ulong4_rte(ulong4);
3288ulong4 __ovld __cnfn convert_ulong4_sat_rte(ulong4);
3289ulong4 __ovld __cnfn convert_ulong4_rtz(ulong4);
3290ulong4 __ovld __cnfn convert_ulong4_sat_rtz(ulong4);
3291ulong4 __ovld __cnfn convert_ulong4_rtp(ulong4);
3292ulong4 __ovld __cnfn convert_ulong4_sat_rtp(ulong4);
3293ulong4 __ovld __cnfn convert_ulong4_rtn(ulong4);
3294ulong4 __ovld __cnfn convert_ulong4_sat_rtn(ulong4);
3295ulong4 __ovld __cnfn convert_ulong4(ulong4);
3296ulong4 __ovld __cnfn convert_ulong4_sat(ulong4);
3297ulong4 __ovld __cnfn convert_ulong4_rte(float4);
3298ulong4 __ovld __cnfn convert_ulong4_sat_rte(float4);
3299ulong4 __ovld __cnfn convert_ulong4_rtz(float4);
3300ulong4 __ovld __cnfn convert_ulong4_sat_rtz(float4);
3301ulong4 __ovld __cnfn convert_ulong4_rtp(float4);
3302ulong4 __ovld __cnfn convert_ulong4_sat_rtp(float4);
3303ulong4 __ovld __cnfn convert_ulong4_rtn(float4);
3304ulong4 __ovld __cnfn convert_ulong4_sat_rtn(float4);
3305ulong4 __ovld __cnfn convert_ulong4(float4);
3306ulong4 __ovld __cnfn convert_ulong4_sat(float4);
3307float4 __ovld __cnfn convert_float4_rte(char4);
3308float4 __ovld __cnfn convert_float4_rtz(char4);
3309float4 __ovld __cnfn convert_float4_rtp(char4);
3310float4 __ovld __cnfn convert_float4_rtn(char4);
3311float4 __ovld __cnfn convert_float4(char4);
3312float4 __ovld __cnfn convert_float4_rte(uchar4);
3313float4 __ovld __cnfn convert_float4_rtz(uchar4);
3314float4 __ovld __cnfn convert_float4_rtp(uchar4);
3315float4 __ovld __cnfn convert_float4_rtn(uchar4);
3316float4 __ovld __cnfn convert_float4(uchar4);
3317float4 __ovld __cnfn convert_float4_rte(short4);
3318float4 __ovld __cnfn convert_float4_rtz(short4);
3319float4 __ovld __cnfn convert_float4_rtp(short4);
3320float4 __ovld __cnfn convert_float4_rtn(short4);
3321float4 __ovld __cnfn convert_float4(short4);
3322float4 __ovld __cnfn convert_float4_rte(ushort4);
3323float4 __ovld __cnfn convert_float4_rtz(ushort4);
3324float4 __ovld __cnfn convert_float4_rtp(ushort4);
3325float4 __ovld __cnfn convert_float4_rtn(ushort4);
3326float4 __ovld __cnfn convert_float4(ushort4);
3327float4 __ovld __cnfn convert_float4_rte(int4);
3328float4 __ovld __cnfn convert_float4_rtz(int4);
3329float4 __ovld __cnfn convert_float4_rtp(int4);
3330float4 __ovld __cnfn convert_float4_rtn(int4);
3331float4 __ovld __cnfn convert_float4(int4);
3332float4 __ovld __cnfn convert_float4_rte(uint4);
3333float4 __ovld __cnfn convert_float4_rtz(uint4);
3334float4 __ovld __cnfn convert_float4_rtp(uint4);
3335float4 __ovld __cnfn convert_float4_rtn(uint4);
3336float4 __ovld __cnfn convert_float4(uint4);
3337float4 __ovld __cnfn convert_float4_rte(long4);
3338float4 __ovld __cnfn convert_float4_rtz(long4);
3339float4 __ovld __cnfn convert_float4_rtp(long4);
3340float4 __ovld __cnfn convert_float4_rtn(long4);
3341float4 __ovld __cnfn convert_float4(long4);
3342float4 __ovld __cnfn convert_float4_rte(ulong4);
3343float4 __ovld __cnfn convert_float4_rtz(ulong4);
3344float4 __ovld __cnfn convert_float4_rtp(ulong4);
3345float4 __ovld __cnfn convert_float4_rtn(ulong4);
3346float4 __ovld __cnfn convert_float4(ulong4);
3347float4 __ovld __cnfn convert_float4_rte(float4);
3348float4 __ovld __cnfn convert_float4_rtz(float4);
3349float4 __ovld __cnfn convert_float4_rtp(float4);
3350float4 __ovld __cnfn convert_float4_rtn(float4);
3351float4 __ovld __cnfn convert_float4(float4);
3352char8 __ovld __cnfn convert_char8_rte(char8);
3353char8 __ovld __cnfn convert_char8_sat_rte(char8);
3354char8 __ovld __cnfn convert_char8_rtz(char8);
3355char8 __ovld __cnfn convert_char8_sat_rtz(char8);
3356char8 __ovld __cnfn convert_char8_rtp(char8);
3357char8 __ovld __cnfn convert_char8_sat_rtp(char8);
3358char8 __ovld __cnfn convert_char8_rtn(char8);
3359char8 __ovld __cnfn convert_char8_sat_rtn(char8);
3360char8 __ovld __cnfn convert_char8(char8);
3361char8 __ovld __cnfn convert_char8_sat(char8);
3362char8 __ovld __cnfn convert_char8_rte(uchar8);
3363char8 __ovld __cnfn convert_char8_sat_rte(uchar8);
3364char8 __ovld __cnfn convert_char8_rtz(uchar8);
3365char8 __ovld __cnfn convert_char8_sat_rtz(uchar8);
3366char8 __ovld __cnfn convert_char8_rtp(uchar8);
3367char8 __ovld __cnfn convert_char8_sat_rtp(uchar8);
3368char8 __ovld __cnfn convert_char8_rtn(uchar8);
3369char8 __ovld __cnfn convert_char8_sat_rtn(uchar8);
3370char8 __ovld __cnfn convert_char8(uchar8);
3371char8 __ovld __cnfn convert_char8_sat(uchar8);
3372char8 __ovld __cnfn convert_char8_rte(short8);
3373char8 __ovld __cnfn convert_char8_sat_rte(short8);
3374char8 __ovld __cnfn convert_char8_rtz(short8);
3375char8 __ovld __cnfn convert_char8_sat_rtz(short8);
3376char8 __ovld __cnfn convert_char8_rtp(short8);
3377char8 __ovld __cnfn convert_char8_sat_rtp(short8);
3378char8 __ovld __cnfn convert_char8_rtn(short8);
3379char8 __ovld __cnfn convert_char8_sat_rtn(short8);
3380char8 __ovld __cnfn convert_char8(short8);
3381char8 __ovld __cnfn convert_char8_sat(short8);
3382char8 __ovld __cnfn convert_char8_rte(ushort8);
3383char8 __ovld __cnfn convert_char8_sat_rte(ushort8);
3384char8 __ovld __cnfn convert_char8_rtz(ushort8);
3385char8 __ovld __cnfn convert_char8_sat_rtz(ushort8);
3386char8 __ovld __cnfn convert_char8_rtp(ushort8);
3387char8 __ovld __cnfn convert_char8_sat_rtp(ushort8);
3388char8 __ovld __cnfn convert_char8_rtn(ushort8);
3389char8 __ovld __cnfn convert_char8_sat_rtn(ushort8);
3390char8 __ovld __cnfn convert_char8(ushort8);
3391char8 __ovld __cnfn convert_char8_sat(ushort8);
3392char8 __ovld __cnfn convert_char8_rte(int8);
3393char8 __ovld __cnfn convert_char8_sat_rte(int8);
3394char8 __ovld __cnfn convert_char8_rtz(int8);
3395char8 __ovld __cnfn convert_char8_sat_rtz(int8);
3396char8 __ovld __cnfn convert_char8_rtp(int8);
3397char8 __ovld __cnfn convert_char8_sat_rtp(int8);
3398char8 __ovld __cnfn convert_char8_rtn(int8);
3399char8 __ovld __cnfn convert_char8_sat_rtn(int8);
3400char8 __ovld __cnfn convert_char8(int8);
3401char8 __ovld __cnfn convert_char8_sat(int8);
3402char8 __ovld __cnfn convert_char8_rte(uint8);
3403char8 __ovld __cnfn convert_char8_sat_rte(uint8);
3404char8 __ovld __cnfn convert_char8_rtz(uint8);
3405char8 __ovld __cnfn convert_char8_sat_rtz(uint8);
3406char8 __ovld __cnfn convert_char8_rtp(uint8);
3407char8 __ovld __cnfn convert_char8_sat_rtp(uint8);
3408char8 __ovld __cnfn convert_char8_rtn(uint8);
3409char8 __ovld __cnfn convert_char8_sat_rtn(uint8);
3410char8 __ovld __cnfn convert_char8(uint8);
3411char8 __ovld __cnfn convert_char8_sat(uint8);
3412char8 __ovld __cnfn convert_char8_rte(long8);
3413char8 __ovld __cnfn convert_char8_sat_rte(long8);
3414char8 __ovld __cnfn convert_char8_rtz(long8);
3415char8 __ovld __cnfn convert_char8_sat_rtz(long8);
3416char8 __ovld __cnfn convert_char8_rtp(long8);
3417char8 __ovld __cnfn convert_char8_sat_rtp(long8);
3418char8 __ovld __cnfn convert_char8_rtn(long8);
3419char8 __ovld __cnfn convert_char8_sat_rtn(long8);
3420char8 __ovld __cnfn convert_char8(long8);
3421char8 __ovld __cnfn convert_char8_sat(long8);
3422char8 __ovld __cnfn convert_char8_rte(ulong8);
3423char8 __ovld __cnfn convert_char8_sat_rte(ulong8);
3424char8 __ovld __cnfn convert_char8_rtz(ulong8);
3425char8 __ovld __cnfn convert_char8_sat_rtz(ulong8);
3426char8 __ovld __cnfn convert_char8_rtp(ulong8);
3427char8 __ovld __cnfn convert_char8_sat_rtp(ulong8);
3428char8 __ovld __cnfn convert_char8_rtn(ulong8);
3429char8 __ovld __cnfn convert_char8_sat_rtn(ulong8);
3430char8 __ovld __cnfn convert_char8(ulong8);
3431char8 __ovld __cnfn convert_char8_sat(ulong8);
3432char8 __ovld __cnfn convert_char8_rte(float8);
3433char8 __ovld __cnfn convert_char8_sat_rte(float8);
3434char8 __ovld __cnfn convert_char8_rtz(float8);
3435char8 __ovld __cnfn convert_char8_sat_rtz(float8);
3436char8 __ovld __cnfn convert_char8_rtp(float8);
3437char8 __ovld __cnfn convert_char8_sat_rtp(float8);
3438char8 __ovld __cnfn convert_char8_rtn(float8);
3439char8 __ovld __cnfn convert_char8_sat_rtn(float8);
3440char8 __ovld __cnfn convert_char8(float8);
3441char8 __ovld __cnfn convert_char8_sat(float8);
3442uchar8 __ovld __cnfn convert_uchar8_rte(char8);
3443uchar8 __ovld __cnfn convert_uchar8_sat_rte(char8);
3444uchar8 __ovld __cnfn convert_uchar8_rtz(char8);
3445uchar8 __ovld __cnfn convert_uchar8_sat_rtz(char8);
3446uchar8 __ovld __cnfn convert_uchar8_rtp(char8);
3447uchar8 __ovld __cnfn convert_uchar8_sat_rtp(char8);
3448uchar8 __ovld __cnfn convert_uchar8_rtn(char8);
3449uchar8 __ovld __cnfn convert_uchar8_sat_rtn(char8);
3450uchar8 __ovld __cnfn convert_uchar8(char8);
3451uchar8 __ovld __cnfn convert_uchar8_sat(char8);
3452uchar8 __ovld __cnfn convert_uchar8_rte(uchar8);
3453uchar8 __ovld __cnfn convert_uchar8_sat_rte(uchar8);
3454uchar8 __ovld __cnfn convert_uchar8_rtz(uchar8);
3455uchar8 __ovld __cnfn convert_uchar8_sat_rtz(uchar8);
3456uchar8 __ovld __cnfn convert_uchar8_rtp(uchar8);
3457uchar8 __ovld __cnfn convert_uchar8_sat_rtp(uchar8);
3458uchar8 __ovld __cnfn convert_uchar8_rtn(uchar8);
3459uchar8 __ovld __cnfn convert_uchar8_sat_rtn(uchar8);
3460uchar8 __ovld __cnfn convert_uchar8(uchar8);
3461uchar8 __ovld __cnfn convert_uchar8_sat(uchar8);
3462uchar8 __ovld __cnfn convert_uchar8_rte(short8);
3463uchar8 __ovld __cnfn convert_uchar8_sat_rte(short8);
3464uchar8 __ovld __cnfn convert_uchar8_rtz(short8);
3465uchar8 __ovld __cnfn convert_uchar8_sat_rtz(short8);
3466uchar8 __ovld __cnfn convert_uchar8_rtp(short8);
3467uchar8 __ovld __cnfn convert_uchar8_sat_rtp(short8);
3468uchar8 __ovld __cnfn convert_uchar8_rtn(short8);
3469uchar8 __ovld __cnfn convert_uchar8_sat_rtn(short8);
3470uchar8 __ovld __cnfn convert_uchar8(short8);
3471uchar8 __ovld __cnfn convert_uchar8_sat(short8);
3472uchar8 __ovld __cnfn convert_uchar8_rte(ushort8);
3473uchar8 __ovld __cnfn convert_uchar8_sat_rte(ushort8);
3474uchar8 __ovld __cnfn convert_uchar8_rtz(ushort8);
3475uchar8 __ovld __cnfn convert_uchar8_sat_rtz(ushort8);
3476uchar8 __ovld __cnfn convert_uchar8_rtp(ushort8);
3477uchar8 __ovld __cnfn convert_uchar8_sat_rtp(ushort8);
3478uchar8 __ovld __cnfn convert_uchar8_rtn(ushort8);
3479uchar8 __ovld __cnfn convert_uchar8_sat_rtn(ushort8);
3480uchar8 __ovld __cnfn convert_uchar8(ushort8);
3481uchar8 __ovld __cnfn convert_uchar8_sat(ushort8);
3482uchar8 __ovld __cnfn convert_uchar8_rte(int8);
3483uchar8 __ovld __cnfn convert_uchar8_sat_rte(int8);
3484uchar8 __ovld __cnfn convert_uchar8_rtz(int8);
3485uchar8 __ovld __cnfn convert_uchar8_sat_rtz(int8);
3486uchar8 __ovld __cnfn convert_uchar8_rtp(int8);
3487uchar8 __ovld __cnfn convert_uchar8_sat_rtp(int8);
3488uchar8 __ovld __cnfn convert_uchar8_rtn(int8);
3489uchar8 __ovld __cnfn convert_uchar8_sat_rtn(int8);
3490uchar8 __ovld __cnfn convert_uchar8(int8);
3491uchar8 __ovld __cnfn convert_uchar8_sat(int8);
3492uchar8 __ovld __cnfn convert_uchar8_rte(uint8);
3493uchar8 __ovld __cnfn convert_uchar8_sat_rte(uint8);
3494uchar8 __ovld __cnfn convert_uchar8_rtz(uint8);
3495uchar8 __ovld __cnfn convert_uchar8_sat_rtz(uint8);
3496uchar8 __ovld __cnfn convert_uchar8_rtp(uint8);
3497uchar8 __ovld __cnfn convert_uchar8_sat_rtp(uint8);
3498uchar8 __ovld __cnfn convert_uchar8_rtn(uint8);
3499uchar8 __ovld __cnfn convert_uchar8_sat_rtn(uint8);
3500uchar8 __ovld __cnfn convert_uchar8(uint8);
3501uchar8 __ovld __cnfn convert_uchar8_sat(uint8);
3502uchar8 __ovld __cnfn convert_uchar8_rte(long8);
3503uchar8 __ovld __cnfn convert_uchar8_sat_rte(long8);
3504uchar8 __ovld __cnfn convert_uchar8_rtz(long8);
3505uchar8 __ovld __cnfn convert_uchar8_sat_rtz(long8);
3506uchar8 __ovld __cnfn convert_uchar8_rtp(long8);
3507uchar8 __ovld __cnfn convert_uchar8_sat_rtp(long8);
3508uchar8 __ovld __cnfn convert_uchar8_rtn(long8);
3509uchar8 __ovld __cnfn convert_uchar8_sat_rtn(long8);
3510uchar8 __ovld __cnfn convert_uchar8(long8);
3511uchar8 __ovld __cnfn convert_uchar8_sat(long8);
3512uchar8 __ovld __cnfn convert_uchar8_rte(ulong8);
3513uchar8 __ovld __cnfn convert_uchar8_sat_rte(ulong8);
3514uchar8 __ovld __cnfn convert_uchar8_rtz(ulong8);
3515uchar8 __ovld __cnfn convert_uchar8_sat_rtz(ulong8);
3516uchar8 __ovld __cnfn convert_uchar8_rtp(ulong8);
3517uchar8 __ovld __cnfn convert_uchar8_sat_rtp(ulong8);
3518uchar8 __ovld __cnfn convert_uchar8_rtn(ulong8);
3519uchar8 __ovld __cnfn convert_uchar8_sat_rtn(ulong8);
3520uchar8 __ovld __cnfn convert_uchar8(ulong8);
3521uchar8 __ovld __cnfn convert_uchar8_sat(ulong8);
3522uchar8 __ovld __cnfn convert_uchar8_rte(float8);
3523uchar8 __ovld __cnfn convert_uchar8_sat_rte(float8);
3524uchar8 __ovld __cnfn convert_uchar8_rtz(float8);
3525uchar8 __ovld __cnfn convert_uchar8_sat_rtz(float8);
3526uchar8 __ovld __cnfn convert_uchar8_rtp(float8);
3527uchar8 __ovld __cnfn convert_uchar8_sat_rtp(float8);
3528uchar8 __ovld __cnfn convert_uchar8_rtn(float8);
3529uchar8 __ovld __cnfn convert_uchar8_sat_rtn(float8);
3530uchar8 __ovld __cnfn convert_uchar8(float8);
3531uchar8 __ovld __cnfn convert_uchar8_sat(float8);
3532short8 __ovld __cnfn convert_short8_rte(char8);
3533short8 __ovld __cnfn convert_short8_sat_rte(char8);
3534short8 __ovld __cnfn convert_short8_rtz(char8);
3535short8 __ovld __cnfn convert_short8_sat_rtz(char8);
3536short8 __ovld __cnfn convert_short8_rtp(char8);
3537short8 __ovld __cnfn convert_short8_sat_rtp(char8);
3538short8 __ovld __cnfn convert_short8_rtn(char8);
3539short8 __ovld __cnfn convert_short8_sat_rtn(char8);
3540short8 __ovld __cnfn convert_short8(char8);
3541short8 __ovld __cnfn convert_short8_sat(char8);
3542short8 __ovld __cnfn convert_short8_rte(uchar8);
3543short8 __ovld __cnfn convert_short8_sat_rte(uchar8);
3544short8 __ovld __cnfn convert_short8_rtz(uchar8);
3545short8 __ovld __cnfn convert_short8_sat_rtz(uchar8);
3546short8 __ovld __cnfn convert_short8_rtp(uchar8);
3547short8 __ovld __cnfn convert_short8_sat_rtp(uchar8);
3548short8 __ovld __cnfn convert_short8_rtn(uchar8);
3549short8 __ovld __cnfn convert_short8_sat_rtn(uchar8);
3550short8 __ovld __cnfn convert_short8(uchar8);
3551short8 __ovld __cnfn convert_short8_sat(uchar8);
3552short8 __ovld __cnfn convert_short8_rte(short8);
3553short8 __ovld __cnfn convert_short8_sat_rte(short8);
3554short8 __ovld __cnfn convert_short8_rtz(short8);
3555short8 __ovld __cnfn convert_short8_sat_rtz(short8);
3556short8 __ovld __cnfn convert_short8_rtp(short8);
3557short8 __ovld __cnfn convert_short8_sat_rtp(short8);
3558short8 __ovld __cnfn convert_short8_rtn(short8);
3559short8 __ovld __cnfn convert_short8_sat_rtn(short8);
3560short8 __ovld __cnfn convert_short8(short8);
3561short8 __ovld __cnfn convert_short8_sat(short8);
3562short8 __ovld __cnfn convert_short8_rte(ushort8);
3563short8 __ovld __cnfn convert_short8_sat_rte(ushort8);
3564short8 __ovld __cnfn convert_short8_rtz(ushort8);
3565short8 __ovld __cnfn convert_short8_sat_rtz(ushort8);
3566short8 __ovld __cnfn convert_short8_rtp(ushort8);
3567short8 __ovld __cnfn convert_short8_sat_rtp(ushort8);
3568short8 __ovld __cnfn convert_short8_rtn(ushort8);
3569short8 __ovld __cnfn convert_short8_sat_rtn(ushort8);
3570short8 __ovld __cnfn convert_short8(ushort8);
3571short8 __ovld __cnfn convert_short8_sat(ushort8);
3572short8 __ovld __cnfn convert_short8_rte(int8);
3573short8 __ovld __cnfn convert_short8_sat_rte(int8);
3574short8 __ovld __cnfn convert_short8_rtz(int8);
3575short8 __ovld __cnfn convert_short8_sat_rtz(int8);
3576short8 __ovld __cnfn convert_short8_rtp(int8);
3577short8 __ovld __cnfn convert_short8_sat_rtp(int8);
3578short8 __ovld __cnfn convert_short8_rtn(int8);
3579short8 __ovld __cnfn convert_short8_sat_rtn(int8);
3580short8 __ovld __cnfn convert_short8(int8);
3581short8 __ovld __cnfn convert_short8_sat(int8);
3582short8 __ovld __cnfn convert_short8_rte(uint8);
3583short8 __ovld __cnfn convert_short8_sat_rte(uint8);
3584short8 __ovld __cnfn convert_short8_rtz(uint8);
3585short8 __ovld __cnfn convert_short8_sat_rtz(uint8);
3586short8 __ovld __cnfn convert_short8_rtp(uint8);
3587short8 __ovld __cnfn convert_short8_sat_rtp(uint8);
3588short8 __ovld __cnfn convert_short8_rtn(uint8);
3589short8 __ovld __cnfn convert_short8_sat_rtn(uint8);
3590short8 __ovld __cnfn convert_short8(uint8);
3591short8 __ovld __cnfn convert_short8_sat(uint8);
3592short8 __ovld __cnfn convert_short8_rte(long8);
3593short8 __ovld __cnfn convert_short8_sat_rte(long8);
3594short8 __ovld __cnfn convert_short8_rtz(long8);
3595short8 __ovld __cnfn convert_short8_sat_rtz(long8);
3596short8 __ovld __cnfn convert_short8_rtp(long8);
3597short8 __ovld __cnfn convert_short8_sat_rtp(long8);
3598short8 __ovld __cnfn convert_short8_rtn(long8);
3599short8 __ovld __cnfn convert_short8_sat_rtn(long8);
3600short8 __ovld __cnfn convert_short8(long8);
3601short8 __ovld __cnfn convert_short8_sat(long8);
3602short8 __ovld __cnfn convert_short8_rte(ulong8);
3603short8 __ovld __cnfn convert_short8_sat_rte(ulong8);
3604short8 __ovld __cnfn convert_short8_rtz(ulong8);
3605short8 __ovld __cnfn convert_short8_sat_rtz(ulong8);
3606short8 __ovld __cnfn convert_short8_rtp(ulong8);
3607short8 __ovld __cnfn convert_short8_sat_rtp(ulong8);
3608short8 __ovld __cnfn convert_short8_rtn(ulong8);
3609short8 __ovld __cnfn convert_short8_sat_rtn(ulong8);
3610short8 __ovld __cnfn convert_short8(ulong8);
3611short8 __ovld __cnfn convert_short8_sat(ulong8);
3612short8 __ovld __cnfn convert_short8_rte(float8);
3613short8 __ovld __cnfn convert_short8_sat_rte(float8);
3614short8 __ovld __cnfn convert_short8_rtz(float8);
3615short8 __ovld __cnfn convert_short8_sat_rtz(float8);
3616short8 __ovld __cnfn convert_short8_rtp(float8);
3617short8 __ovld __cnfn convert_short8_sat_rtp(float8);
3618short8 __ovld __cnfn convert_short8_rtn(float8);
3619short8 __ovld __cnfn convert_short8_sat_rtn(float8);
3620short8 __ovld __cnfn convert_short8(float8);
3621short8 __ovld __cnfn convert_short8_sat(float8);
3622ushort8 __ovld __cnfn convert_ushort8_rte(char8);
3623ushort8 __ovld __cnfn convert_ushort8_sat_rte(char8);
3624ushort8 __ovld __cnfn convert_ushort8_rtz(char8);
3625ushort8 __ovld __cnfn convert_ushort8_sat_rtz(char8);
3626ushort8 __ovld __cnfn convert_ushort8_rtp(char8);
3627ushort8 __ovld __cnfn convert_ushort8_sat_rtp(char8);
3628ushort8 __ovld __cnfn convert_ushort8_rtn(char8);
3629ushort8 __ovld __cnfn convert_ushort8_sat_rtn(char8);
3630ushort8 __ovld __cnfn convert_ushort8(char8);
3631ushort8 __ovld __cnfn convert_ushort8_sat(char8);
3632ushort8 __ovld __cnfn convert_ushort8_rte(uchar8);
3633ushort8 __ovld __cnfn convert_ushort8_sat_rte(uchar8);
3634ushort8 __ovld __cnfn convert_ushort8_rtz(uchar8);
3635ushort8 __ovld __cnfn convert_ushort8_sat_rtz(uchar8);
3636ushort8 __ovld __cnfn convert_ushort8_rtp(uchar8);
3637ushort8 __ovld __cnfn convert_ushort8_sat_rtp(uchar8);
3638ushort8 __ovld __cnfn convert_ushort8_rtn(uchar8);
3639ushort8 __ovld __cnfn convert_ushort8_sat_rtn(uchar8);
3640ushort8 __ovld __cnfn convert_ushort8(uchar8);
3641ushort8 __ovld __cnfn convert_ushort8_sat(uchar8);
3642ushort8 __ovld __cnfn convert_ushort8_rte(short8);
3643ushort8 __ovld __cnfn convert_ushort8_sat_rte(short8);
3644ushort8 __ovld __cnfn convert_ushort8_rtz(short8);
3645ushort8 __ovld __cnfn convert_ushort8_sat_rtz(short8);
3646ushort8 __ovld __cnfn convert_ushort8_rtp(short8);
3647ushort8 __ovld __cnfn convert_ushort8_sat_rtp(short8);
3648ushort8 __ovld __cnfn convert_ushort8_rtn(short8);
3649ushort8 __ovld __cnfn convert_ushort8_sat_rtn(short8);
3650ushort8 __ovld __cnfn convert_ushort8(short8);
3651ushort8 __ovld __cnfn convert_ushort8_sat(short8);
3652ushort8 __ovld __cnfn convert_ushort8_rte(ushort8);
3653ushort8 __ovld __cnfn convert_ushort8_sat_rte(ushort8);
3654ushort8 __ovld __cnfn convert_ushort8_rtz(ushort8);
3655ushort8 __ovld __cnfn convert_ushort8_sat_rtz(ushort8);
3656ushort8 __ovld __cnfn convert_ushort8_rtp(ushort8);
3657ushort8 __ovld __cnfn convert_ushort8_sat_rtp(ushort8);
3658ushort8 __ovld __cnfn convert_ushort8_rtn(ushort8);
3659ushort8 __ovld __cnfn convert_ushort8_sat_rtn(ushort8);
3660ushort8 __ovld __cnfn convert_ushort8(ushort8);
3661ushort8 __ovld __cnfn convert_ushort8_sat(ushort8);
3662ushort8 __ovld __cnfn convert_ushort8_rte(int8);
3663ushort8 __ovld __cnfn convert_ushort8_sat_rte(int8);
3664ushort8 __ovld __cnfn convert_ushort8_rtz(int8);
3665ushort8 __ovld __cnfn convert_ushort8_sat_rtz(int8);
3666ushort8 __ovld __cnfn convert_ushort8_rtp(int8);
3667ushort8 __ovld __cnfn convert_ushort8_sat_rtp(int8);
3668ushort8 __ovld __cnfn convert_ushort8_rtn(int8);
3669ushort8 __ovld __cnfn convert_ushort8_sat_rtn(int8);
3670ushort8 __ovld __cnfn convert_ushort8(int8);
3671ushort8 __ovld __cnfn convert_ushort8_sat(int8);
3672ushort8 __ovld __cnfn convert_ushort8_rte(uint8);
3673ushort8 __ovld __cnfn convert_ushort8_sat_rte(uint8);
3674ushort8 __ovld __cnfn convert_ushort8_rtz(uint8);
3675ushort8 __ovld __cnfn convert_ushort8_sat_rtz(uint8);
3676ushort8 __ovld __cnfn convert_ushort8_rtp(uint8);
3677ushort8 __ovld __cnfn convert_ushort8_sat_rtp(uint8);
3678ushort8 __ovld __cnfn convert_ushort8_rtn(uint8);
3679ushort8 __ovld __cnfn convert_ushort8_sat_rtn(uint8);
3680ushort8 __ovld __cnfn convert_ushort8(uint8);
3681ushort8 __ovld __cnfn convert_ushort8_sat(uint8);
3682ushort8 __ovld __cnfn convert_ushort8_rte(long8);
3683ushort8 __ovld __cnfn convert_ushort8_sat_rte(long8);
3684ushort8 __ovld __cnfn convert_ushort8_rtz(long8);
3685ushort8 __ovld __cnfn convert_ushort8_sat_rtz(long8);
3686ushort8 __ovld __cnfn convert_ushort8_rtp(long8);
3687ushort8 __ovld __cnfn convert_ushort8_sat_rtp(long8);
3688ushort8 __ovld __cnfn convert_ushort8_rtn(long8);
3689ushort8 __ovld __cnfn convert_ushort8_sat_rtn(long8);
3690ushort8 __ovld __cnfn convert_ushort8(long8);
3691ushort8 __ovld __cnfn convert_ushort8_sat(long8);
3692ushort8 __ovld __cnfn convert_ushort8_rte(ulong8);
3693ushort8 __ovld __cnfn convert_ushort8_sat_rte(ulong8);
3694ushort8 __ovld __cnfn convert_ushort8_rtz(ulong8);
3695ushort8 __ovld __cnfn convert_ushort8_sat_rtz(ulong8);
3696ushort8 __ovld __cnfn convert_ushort8_rtp(ulong8);
3697ushort8 __ovld __cnfn convert_ushort8_sat_rtp(ulong8);
3698ushort8 __ovld __cnfn convert_ushort8_rtn(ulong8);
3699ushort8 __ovld __cnfn convert_ushort8_sat_rtn(ulong8);
3700ushort8 __ovld __cnfn convert_ushort8(ulong8);
3701ushort8 __ovld __cnfn convert_ushort8_sat(ulong8);
3702ushort8 __ovld __cnfn convert_ushort8_rte(float8);
3703ushort8 __ovld __cnfn convert_ushort8_sat_rte(float8);
3704ushort8 __ovld __cnfn convert_ushort8_rtz(float8);
3705ushort8 __ovld __cnfn convert_ushort8_sat_rtz(float8);
3706ushort8 __ovld __cnfn convert_ushort8_rtp(float8);
3707ushort8 __ovld __cnfn convert_ushort8_sat_rtp(float8);
3708ushort8 __ovld __cnfn convert_ushort8_rtn(float8);
3709ushort8 __ovld __cnfn convert_ushort8_sat_rtn(float8);
3710ushort8 __ovld __cnfn convert_ushort8(float8);
3711ushort8 __ovld __cnfn convert_ushort8_sat(float8);
3712int8 __ovld __cnfn convert_int8_rte(char8);
3713int8 __ovld __cnfn convert_int8_sat_rte(char8);
3714int8 __ovld __cnfn convert_int8_rtz(char8);
3715int8 __ovld __cnfn convert_int8_sat_rtz(char8);
3716int8 __ovld __cnfn convert_int8_rtp(char8);
3717int8 __ovld __cnfn convert_int8_sat_rtp(char8);
3718int8 __ovld __cnfn convert_int8_rtn(char8);
3719int8 __ovld __cnfn convert_int8_sat_rtn(char8);
3720int8 __ovld __cnfn convert_int8(char8);
3721int8 __ovld __cnfn convert_int8_sat(char8);
3722int8 __ovld __cnfn convert_int8_rte(uchar8);
3723int8 __ovld __cnfn convert_int8_sat_rte(uchar8);
3724int8 __ovld __cnfn convert_int8_rtz(uchar8);
3725int8 __ovld __cnfn convert_int8_sat_rtz(uchar8);
3726int8 __ovld __cnfn convert_int8_rtp(uchar8);
3727int8 __ovld __cnfn convert_int8_sat_rtp(uchar8);
3728int8 __ovld __cnfn convert_int8_rtn(uchar8);
3729int8 __ovld __cnfn convert_int8_sat_rtn(uchar8);
3730int8 __ovld __cnfn convert_int8(uchar8);
3731int8 __ovld __cnfn convert_int8_sat(uchar8);
3732int8 __ovld __cnfn convert_int8_rte(short8);
3733int8 __ovld __cnfn convert_int8_sat_rte(short8);
3734int8 __ovld __cnfn convert_int8_rtz(short8);
3735int8 __ovld __cnfn convert_int8_sat_rtz(short8);
3736int8 __ovld __cnfn convert_int8_rtp(short8);
3737int8 __ovld __cnfn convert_int8_sat_rtp(short8);
3738int8 __ovld __cnfn convert_int8_rtn(short8);
3739int8 __ovld __cnfn convert_int8_sat_rtn(short8);
3740int8 __ovld __cnfn convert_int8(short8);
3741int8 __ovld __cnfn convert_int8_sat(short8);
3742int8 __ovld __cnfn convert_int8_rte(ushort8);
3743int8 __ovld __cnfn convert_int8_sat_rte(ushort8);
3744int8 __ovld __cnfn convert_int8_rtz(ushort8);
3745int8 __ovld __cnfn convert_int8_sat_rtz(ushort8);
3746int8 __ovld __cnfn convert_int8_rtp(ushort8);
3747int8 __ovld __cnfn convert_int8_sat_rtp(ushort8);
3748int8 __ovld __cnfn convert_int8_rtn(ushort8);
3749int8 __ovld __cnfn convert_int8_sat_rtn(ushort8);
3750int8 __ovld __cnfn convert_int8(ushort8);
3751int8 __ovld __cnfn convert_int8_sat(ushort8);
3752int8 __ovld __cnfn convert_int8_rte(int8);
3753int8 __ovld __cnfn convert_int8_sat_rte(int8);
3754int8 __ovld __cnfn convert_int8_rtz(int8);
3755int8 __ovld __cnfn convert_int8_sat_rtz(int8);
3756int8 __ovld __cnfn convert_int8_rtp(int8);
3757int8 __ovld __cnfn convert_int8_sat_rtp(int8);
3758int8 __ovld __cnfn convert_int8_rtn(int8);
3759int8 __ovld __cnfn convert_int8_sat_rtn(int8);
3760int8 __ovld __cnfn convert_int8(int8);
3761int8 __ovld __cnfn convert_int8_sat(int8);
3762int8 __ovld __cnfn convert_int8_rte(uint8);
3763int8 __ovld __cnfn convert_int8_sat_rte(uint8);
3764int8 __ovld __cnfn convert_int8_rtz(uint8);
3765int8 __ovld __cnfn convert_int8_sat_rtz(uint8);
3766int8 __ovld __cnfn convert_int8_rtp(uint8);
3767int8 __ovld __cnfn convert_int8_sat_rtp(uint8);
3768int8 __ovld __cnfn convert_int8_rtn(uint8);
3769int8 __ovld __cnfn convert_int8_sat_rtn(uint8);
3770int8 __ovld __cnfn convert_int8(uint8);
3771int8 __ovld __cnfn convert_int8_sat(uint8);
3772int8 __ovld __cnfn convert_int8_rte(long8);
3773int8 __ovld __cnfn convert_int8_sat_rte(long8);
3774int8 __ovld __cnfn convert_int8_rtz(long8);
3775int8 __ovld __cnfn convert_int8_sat_rtz(long8);
3776int8 __ovld __cnfn convert_int8_rtp(long8);
3777int8 __ovld __cnfn convert_int8_sat_rtp(long8);
3778int8 __ovld __cnfn convert_int8_rtn(long8);
3779int8 __ovld __cnfn convert_int8_sat_rtn(long8);
3780int8 __ovld __cnfn convert_int8(long8);
3781int8 __ovld __cnfn convert_int8_sat(long8);
3782int8 __ovld __cnfn convert_int8_rte(ulong8);
3783int8 __ovld __cnfn convert_int8_sat_rte(ulong8);
3784int8 __ovld __cnfn convert_int8_rtz(ulong8);
3785int8 __ovld __cnfn convert_int8_sat_rtz(ulong8);
3786int8 __ovld __cnfn convert_int8_rtp(ulong8);
3787int8 __ovld __cnfn convert_int8_sat_rtp(ulong8);
3788int8 __ovld __cnfn convert_int8_rtn(ulong8);
3789int8 __ovld __cnfn convert_int8_sat_rtn(ulong8);
3790int8 __ovld __cnfn convert_int8(ulong8);
3791int8 __ovld __cnfn convert_int8_sat(ulong8);
3792int8 __ovld __cnfn convert_int8_rte(float8);
3793int8 __ovld __cnfn convert_int8_sat_rte(float8);
3794int8 __ovld __cnfn convert_int8_rtz(float8);
3795int8 __ovld __cnfn convert_int8_sat_rtz(float8);
3796int8 __ovld __cnfn convert_int8_rtp(float8);
3797int8 __ovld __cnfn convert_int8_sat_rtp(float8);
3798int8 __ovld __cnfn convert_int8_rtn(float8);
3799int8 __ovld __cnfn convert_int8_sat_rtn(float8);
3800int8 __ovld __cnfn convert_int8(float8);
3801int8 __ovld __cnfn convert_int8_sat(float8);
3802uint8 __ovld __cnfn convert_uint8_rte(char8);
3803uint8 __ovld __cnfn convert_uint8_sat_rte(char8);
3804uint8 __ovld __cnfn convert_uint8_rtz(char8);
3805uint8 __ovld __cnfn convert_uint8_sat_rtz(char8);
3806uint8 __ovld __cnfn convert_uint8_rtp(char8);
3807uint8 __ovld __cnfn convert_uint8_sat_rtp(char8);
3808uint8 __ovld __cnfn convert_uint8_rtn(char8);
3809uint8 __ovld __cnfn convert_uint8_sat_rtn(char8);
3810uint8 __ovld __cnfn convert_uint8(char8);
3811uint8 __ovld __cnfn convert_uint8_sat(char8);
3812uint8 __ovld __cnfn convert_uint8_rte(uchar8);
3813uint8 __ovld __cnfn convert_uint8_sat_rte(uchar8);
3814uint8 __ovld __cnfn convert_uint8_rtz(uchar8);
3815uint8 __ovld __cnfn convert_uint8_sat_rtz(uchar8);
3816uint8 __ovld __cnfn convert_uint8_rtp(uchar8);
3817uint8 __ovld __cnfn convert_uint8_sat_rtp(uchar8);
3818uint8 __ovld __cnfn convert_uint8_rtn(uchar8);
3819uint8 __ovld __cnfn convert_uint8_sat_rtn(uchar8);
3820uint8 __ovld __cnfn convert_uint8(uchar8);
3821uint8 __ovld __cnfn convert_uint8_sat(uchar8);
3822uint8 __ovld __cnfn convert_uint8_rte(short8);
3823uint8 __ovld __cnfn convert_uint8_sat_rte(short8);
3824uint8 __ovld __cnfn convert_uint8_rtz(short8);
3825uint8 __ovld __cnfn convert_uint8_sat_rtz(short8);
3826uint8 __ovld __cnfn convert_uint8_rtp(short8);
3827uint8 __ovld __cnfn convert_uint8_sat_rtp(short8);
3828uint8 __ovld __cnfn convert_uint8_rtn(short8);
3829uint8 __ovld __cnfn convert_uint8_sat_rtn(short8);
3830uint8 __ovld __cnfn convert_uint8(short8);
3831uint8 __ovld __cnfn convert_uint8_sat(short8);
3832uint8 __ovld __cnfn convert_uint8_rte(ushort8);
3833uint8 __ovld __cnfn convert_uint8_sat_rte(ushort8);
3834uint8 __ovld __cnfn convert_uint8_rtz(ushort8);
3835uint8 __ovld __cnfn convert_uint8_sat_rtz(ushort8);
3836uint8 __ovld __cnfn convert_uint8_rtp(ushort8);
3837uint8 __ovld __cnfn convert_uint8_sat_rtp(ushort8);
3838uint8 __ovld __cnfn convert_uint8_rtn(ushort8);
3839uint8 __ovld __cnfn convert_uint8_sat_rtn(ushort8);
3840uint8 __ovld __cnfn convert_uint8(ushort8);
3841uint8 __ovld __cnfn convert_uint8_sat(ushort8);
3842uint8 __ovld __cnfn convert_uint8_rte(int8);
3843uint8 __ovld __cnfn convert_uint8_sat_rte(int8);
3844uint8 __ovld __cnfn convert_uint8_rtz(int8);
3845uint8 __ovld __cnfn convert_uint8_sat_rtz(int8);
3846uint8 __ovld __cnfn convert_uint8_rtp(int8);
3847uint8 __ovld __cnfn convert_uint8_sat_rtp(int8);
3848uint8 __ovld __cnfn convert_uint8_rtn(int8);
3849uint8 __ovld __cnfn convert_uint8_sat_rtn(int8);
3850uint8 __ovld __cnfn convert_uint8(int8);
3851uint8 __ovld __cnfn convert_uint8_sat(int8);
3852uint8 __ovld __cnfn convert_uint8_rte(uint8);
3853uint8 __ovld __cnfn convert_uint8_sat_rte(uint8);
3854uint8 __ovld __cnfn convert_uint8_rtz(uint8);
3855uint8 __ovld __cnfn convert_uint8_sat_rtz(uint8);
3856uint8 __ovld __cnfn convert_uint8_rtp(uint8);
3857uint8 __ovld __cnfn convert_uint8_sat_rtp(uint8);
3858uint8 __ovld __cnfn convert_uint8_rtn(uint8);
3859uint8 __ovld __cnfn convert_uint8_sat_rtn(uint8);
3860uint8 __ovld __cnfn convert_uint8(uint8);
3861uint8 __ovld __cnfn convert_uint8_sat(uint8);
3862uint8 __ovld __cnfn convert_uint8_rte(long8);
3863uint8 __ovld __cnfn convert_uint8_sat_rte(long8);
3864uint8 __ovld __cnfn convert_uint8_rtz(long8);
3865uint8 __ovld __cnfn convert_uint8_sat_rtz(long8);
3866uint8 __ovld __cnfn convert_uint8_rtp(long8);
3867uint8 __ovld __cnfn convert_uint8_sat_rtp(long8);
3868uint8 __ovld __cnfn convert_uint8_rtn(long8);
3869uint8 __ovld __cnfn convert_uint8_sat_rtn(long8);
3870uint8 __ovld __cnfn convert_uint8(long8);
3871uint8 __ovld __cnfn convert_uint8_sat(long8);
3872uint8 __ovld __cnfn convert_uint8_rte(ulong8);
3873uint8 __ovld __cnfn convert_uint8_sat_rte(ulong8);
3874uint8 __ovld __cnfn convert_uint8_rtz(ulong8);
3875uint8 __ovld __cnfn convert_uint8_sat_rtz(ulong8);
3876uint8 __ovld __cnfn convert_uint8_rtp(ulong8);
3877uint8 __ovld __cnfn convert_uint8_sat_rtp(ulong8);
3878uint8 __ovld __cnfn convert_uint8_rtn(ulong8);
3879uint8 __ovld __cnfn convert_uint8_sat_rtn(ulong8);
3880uint8 __ovld __cnfn convert_uint8(ulong8);
3881uint8 __ovld __cnfn convert_uint8_sat(ulong8);
3882uint8 __ovld __cnfn convert_uint8_rte(float8);
3883uint8 __ovld __cnfn convert_uint8_sat_rte(float8);
3884uint8 __ovld __cnfn convert_uint8_rtz(float8);
3885uint8 __ovld __cnfn convert_uint8_sat_rtz(float8);
3886uint8 __ovld __cnfn convert_uint8_rtp(float8);
3887uint8 __ovld __cnfn convert_uint8_sat_rtp(float8);
3888uint8 __ovld __cnfn convert_uint8_rtn(float8);
3889uint8 __ovld __cnfn convert_uint8_sat_rtn(float8);
3890uint8 __ovld __cnfn convert_uint8(float8);
3891uint8 __ovld __cnfn convert_uint8_sat(float8);
3892long8 __ovld __cnfn convert_long8_rte(char8);
3893long8 __ovld __cnfn convert_long8_sat_rte(char8);
3894long8 __ovld __cnfn convert_long8_rtz(char8);
3895long8 __ovld __cnfn convert_long8_sat_rtz(char8);
3896long8 __ovld __cnfn convert_long8_rtp(char8);
3897long8 __ovld __cnfn convert_long8_sat_rtp(char8);
3898long8 __ovld __cnfn convert_long8_rtn(char8);
3899long8 __ovld __cnfn convert_long8_sat_rtn(char8);
3900long8 __ovld __cnfn convert_long8(char8);
3901long8 __ovld __cnfn convert_long8_sat(char8);
3902long8 __ovld __cnfn convert_long8_rte(uchar8);
3903long8 __ovld __cnfn convert_long8_sat_rte(uchar8);
3904long8 __ovld __cnfn convert_long8_rtz(uchar8);
3905long8 __ovld __cnfn convert_long8_sat_rtz(uchar8);
3906long8 __ovld __cnfn convert_long8_rtp(uchar8);
3907long8 __ovld __cnfn convert_long8_sat_rtp(uchar8);
3908long8 __ovld __cnfn convert_long8_rtn(uchar8);
3909long8 __ovld __cnfn convert_long8_sat_rtn(uchar8);
3910long8 __ovld __cnfn convert_long8(uchar8);
3911long8 __ovld __cnfn convert_long8_sat(uchar8);
3912long8 __ovld __cnfn convert_long8_rte(short8);
3913long8 __ovld __cnfn convert_long8_sat_rte(short8);
3914long8 __ovld __cnfn convert_long8_rtz(short8);
3915long8 __ovld __cnfn convert_long8_sat_rtz(short8);
3916long8 __ovld __cnfn convert_long8_rtp(short8);
3917long8 __ovld __cnfn convert_long8_sat_rtp(short8);
3918long8 __ovld __cnfn convert_long8_rtn(short8);
3919long8 __ovld __cnfn convert_long8_sat_rtn(short8);
3920long8 __ovld __cnfn convert_long8(short8);
3921long8 __ovld __cnfn convert_long8_sat(short8);
3922long8 __ovld __cnfn convert_long8_rte(ushort8);
3923long8 __ovld __cnfn convert_long8_sat_rte(ushort8);
3924long8 __ovld __cnfn convert_long8_rtz(ushort8);
3925long8 __ovld __cnfn convert_long8_sat_rtz(ushort8);
3926long8 __ovld __cnfn convert_long8_rtp(ushort8);
3927long8 __ovld __cnfn convert_long8_sat_rtp(ushort8);
3928long8 __ovld __cnfn convert_long8_rtn(ushort8);
3929long8 __ovld __cnfn convert_long8_sat_rtn(ushort8);
3930long8 __ovld __cnfn convert_long8(ushort8);
3931long8 __ovld __cnfn convert_long8_sat(ushort8);
3932long8 __ovld __cnfn convert_long8_rte(int8);
3933long8 __ovld __cnfn convert_long8_sat_rte(int8);
3934long8 __ovld __cnfn convert_long8_rtz(int8);
3935long8 __ovld __cnfn convert_long8_sat_rtz(int8);
3936long8 __ovld __cnfn convert_long8_rtp(int8);
3937long8 __ovld __cnfn convert_long8_sat_rtp(int8);
3938long8 __ovld __cnfn convert_long8_rtn(int8);
3939long8 __ovld __cnfn convert_long8_sat_rtn(int8);
3940long8 __ovld __cnfn convert_long8(int8);
3941long8 __ovld __cnfn convert_long8_sat(int8);
3942long8 __ovld __cnfn convert_long8_rte(uint8);
3943long8 __ovld __cnfn convert_long8_sat_rte(uint8);
3944long8 __ovld __cnfn convert_long8_rtz(uint8);
3945long8 __ovld __cnfn convert_long8_sat_rtz(uint8);
3946long8 __ovld __cnfn convert_long8_rtp(uint8);
3947long8 __ovld __cnfn convert_long8_sat_rtp(uint8);
3948long8 __ovld __cnfn convert_long8_rtn(uint8);
3949long8 __ovld __cnfn convert_long8_sat_rtn(uint8);
3950long8 __ovld __cnfn convert_long8(uint8);
3951long8 __ovld __cnfn convert_long8_sat(uint8);
3952long8 __ovld __cnfn convert_long8_rte(long8);
3953long8 __ovld __cnfn convert_long8_sat_rte(long8);
3954long8 __ovld __cnfn convert_long8_rtz(long8);
3955long8 __ovld __cnfn convert_long8_sat_rtz(long8);
3956long8 __ovld __cnfn convert_long8_rtp(long8);
3957long8 __ovld __cnfn convert_long8_sat_rtp(long8);
3958long8 __ovld __cnfn convert_long8_rtn(long8);
3959long8 __ovld __cnfn convert_long8_sat_rtn(long8);
3960long8 __ovld __cnfn convert_long8(long8);
3961long8 __ovld __cnfn convert_long8_sat(long8);
3962long8 __ovld __cnfn convert_long8_rte(ulong8);
3963long8 __ovld __cnfn convert_long8_sat_rte(ulong8);
3964long8 __ovld __cnfn convert_long8_rtz(ulong8);
3965long8 __ovld __cnfn convert_long8_sat_rtz(ulong8);
3966long8 __ovld __cnfn convert_long8_rtp(ulong8);
3967long8 __ovld __cnfn convert_long8_sat_rtp(ulong8);
3968long8 __ovld __cnfn convert_long8_rtn(ulong8);
3969long8 __ovld __cnfn convert_long8_sat_rtn(ulong8);
3970long8 __ovld __cnfn convert_long8(ulong8);
3971long8 __ovld __cnfn convert_long8_sat(ulong8);
3972long8 __ovld __cnfn convert_long8_rte(float8);
3973long8 __ovld __cnfn convert_long8_sat_rte(float8);
3974long8 __ovld __cnfn convert_long8_rtz(float8);
3975long8 __ovld __cnfn convert_long8_sat_rtz(float8);
3976long8 __ovld __cnfn convert_long8_rtp(float8);
3977long8 __ovld __cnfn convert_long8_sat_rtp(float8);
3978long8 __ovld __cnfn convert_long8_rtn(float8);
3979long8 __ovld __cnfn convert_long8_sat_rtn(float8);
3980long8 __ovld __cnfn convert_long8(float8);
3981long8 __ovld __cnfn convert_long8_sat(float8);
3982ulong8 __ovld __cnfn convert_ulong8_rte(char8);
3983ulong8 __ovld __cnfn convert_ulong8_sat_rte(char8);
3984ulong8 __ovld __cnfn convert_ulong8_rtz(char8);
3985ulong8 __ovld __cnfn convert_ulong8_sat_rtz(char8);
3986ulong8 __ovld __cnfn convert_ulong8_rtp(char8);
3987ulong8 __ovld __cnfn convert_ulong8_sat_rtp(char8);
3988ulong8 __ovld __cnfn convert_ulong8_rtn(char8);
3989ulong8 __ovld __cnfn convert_ulong8_sat_rtn(char8);
3990ulong8 __ovld __cnfn convert_ulong8(char8);
3991ulong8 __ovld __cnfn convert_ulong8_sat(char8);
3992ulong8 __ovld __cnfn convert_ulong8_rte(uchar8);
3993ulong8 __ovld __cnfn convert_ulong8_sat_rte(uchar8);
3994ulong8 __ovld __cnfn convert_ulong8_rtz(uchar8);
3995ulong8 __ovld __cnfn convert_ulong8_sat_rtz(uchar8);
3996ulong8 __ovld __cnfn convert_ulong8_rtp(uchar8);
3997ulong8 __ovld __cnfn convert_ulong8_sat_rtp(uchar8);
3998ulong8 __ovld __cnfn convert_ulong8_rtn(uchar8);
3999ulong8 __ovld __cnfn convert_ulong8_sat_rtn(uchar8);
4000ulong8 __ovld __cnfn convert_ulong8(uchar8);
4001ulong8 __ovld __cnfn convert_ulong8_sat(uchar8);
4002ulong8 __ovld __cnfn convert_ulong8_rte(short8);
4003ulong8 __ovld __cnfn convert_ulong8_sat_rte(short8);
4004ulong8 __ovld __cnfn convert_ulong8_rtz(short8);
4005ulong8 __ovld __cnfn convert_ulong8_sat_rtz(short8);
4006ulong8 __ovld __cnfn convert_ulong8_rtp(short8);
4007ulong8 __ovld __cnfn convert_ulong8_sat_rtp(short8);
4008ulong8 __ovld __cnfn convert_ulong8_rtn(short8);
4009ulong8 __ovld __cnfn convert_ulong8_sat_rtn(short8);
4010ulong8 __ovld __cnfn convert_ulong8(short8);
4011ulong8 __ovld __cnfn convert_ulong8_sat(short8);
4012ulong8 __ovld __cnfn convert_ulong8_rte(ushort8);
4013ulong8 __ovld __cnfn convert_ulong8_sat_rte(ushort8);
4014ulong8 __ovld __cnfn convert_ulong8_rtz(ushort8);
4015ulong8 __ovld __cnfn convert_ulong8_sat_rtz(ushort8);
4016ulong8 __ovld __cnfn convert_ulong8_rtp(ushort8);
4017ulong8 __ovld __cnfn convert_ulong8_sat_rtp(ushort8);
4018ulong8 __ovld __cnfn convert_ulong8_rtn(ushort8);
4019ulong8 __ovld __cnfn convert_ulong8_sat_rtn(ushort8);
4020ulong8 __ovld __cnfn convert_ulong8(ushort8);
4021ulong8 __ovld __cnfn convert_ulong8_sat(ushort8);
4022ulong8 __ovld __cnfn convert_ulong8_rte(int8);
4023ulong8 __ovld __cnfn convert_ulong8_sat_rte(int8);
4024ulong8 __ovld __cnfn convert_ulong8_rtz(int8);
4025ulong8 __ovld __cnfn convert_ulong8_sat_rtz(int8);
4026ulong8 __ovld __cnfn convert_ulong8_rtp(int8);
4027ulong8 __ovld __cnfn convert_ulong8_sat_rtp(int8);
4028ulong8 __ovld __cnfn convert_ulong8_rtn(int8);
4029ulong8 __ovld __cnfn convert_ulong8_sat_rtn(int8);
4030ulong8 __ovld __cnfn convert_ulong8(int8);
4031ulong8 __ovld __cnfn convert_ulong8_sat(int8);
4032ulong8 __ovld __cnfn convert_ulong8_rte(uint8);
4033ulong8 __ovld __cnfn convert_ulong8_sat_rte(uint8);
4034ulong8 __ovld __cnfn convert_ulong8_rtz(uint8);
4035ulong8 __ovld __cnfn convert_ulong8_sat_rtz(uint8);
4036ulong8 __ovld __cnfn convert_ulong8_rtp(uint8);
4037ulong8 __ovld __cnfn convert_ulong8_sat_rtp(uint8);
4038ulong8 __ovld __cnfn convert_ulong8_rtn(uint8);
4039ulong8 __ovld __cnfn convert_ulong8_sat_rtn(uint8);
4040ulong8 __ovld __cnfn convert_ulong8(uint8);
4041ulong8 __ovld __cnfn convert_ulong8_sat(uint8);
4042ulong8 __ovld __cnfn convert_ulong8_rte(long8);
4043ulong8 __ovld __cnfn convert_ulong8_sat_rte(long8);
4044ulong8 __ovld __cnfn convert_ulong8_rtz(long8);
4045ulong8 __ovld __cnfn convert_ulong8_sat_rtz(long8);
4046ulong8 __ovld __cnfn convert_ulong8_rtp(long8);
4047ulong8 __ovld __cnfn convert_ulong8_sat_rtp(long8);
4048ulong8 __ovld __cnfn convert_ulong8_rtn(long8);
4049ulong8 __ovld __cnfn convert_ulong8_sat_rtn(long8);
4050ulong8 __ovld __cnfn convert_ulong8(long8);
4051ulong8 __ovld __cnfn convert_ulong8_sat(long8);
4052ulong8 __ovld __cnfn convert_ulong8_rte(ulong8);
4053ulong8 __ovld __cnfn convert_ulong8_sat_rte(ulong8);
4054ulong8 __ovld __cnfn convert_ulong8_rtz(ulong8);
4055ulong8 __ovld __cnfn convert_ulong8_sat_rtz(ulong8);
4056ulong8 __ovld __cnfn convert_ulong8_rtp(ulong8);
4057ulong8 __ovld __cnfn convert_ulong8_sat_rtp(ulong8);
4058ulong8 __ovld __cnfn convert_ulong8_rtn(ulong8);
4059ulong8 __ovld __cnfn convert_ulong8_sat_rtn(ulong8);
4060ulong8 __ovld __cnfn convert_ulong8(ulong8);
4061ulong8 __ovld __cnfn convert_ulong8_sat(ulong8);
4062ulong8 __ovld __cnfn convert_ulong8_rte(float8);
4063ulong8 __ovld __cnfn convert_ulong8_sat_rte(float8);
4064ulong8 __ovld __cnfn convert_ulong8_rtz(float8);
4065ulong8 __ovld __cnfn convert_ulong8_sat_rtz(float8);
4066ulong8 __ovld __cnfn convert_ulong8_rtp(float8);
4067ulong8 __ovld __cnfn convert_ulong8_sat_rtp(float8);
4068ulong8 __ovld __cnfn convert_ulong8_rtn(float8);
4069ulong8 __ovld __cnfn convert_ulong8_sat_rtn(float8);
4070ulong8 __ovld __cnfn convert_ulong8(float8);
4071ulong8 __ovld __cnfn convert_ulong8_sat(float8);
4072float8 __ovld __cnfn convert_float8_rte(char8);
4073float8 __ovld __cnfn convert_float8_rtz(char8);
4074float8 __ovld __cnfn convert_float8_rtp(char8);
4075float8 __ovld __cnfn convert_float8_rtn(char8);
4076float8 __ovld __cnfn convert_float8(char8);
4077float8 __ovld __cnfn convert_float8_rte(uchar8);
4078float8 __ovld __cnfn convert_float8_rtz(uchar8);
4079float8 __ovld __cnfn convert_float8_rtp(uchar8);
4080float8 __ovld __cnfn convert_float8_rtn(uchar8);
4081float8 __ovld __cnfn convert_float8(uchar8);
4082float8 __ovld __cnfn convert_float8_rte(short8);
4083float8 __ovld __cnfn convert_float8_rtz(short8);
4084float8 __ovld __cnfn convert_float8_rtp(short8);
4085float8 __ovld __cnfn convert_float8_rtn(short8);
4086float8 __ovld __cnfn convert_float8(short8);
4087float8 __ovld __cnfn convert_float8_rte(ushort8);
4088float8 __ovld __cnfn convert_float8_rtz(ushort8);
4089float8 __ovld __cnfn convert_float8_rtp(ushort8);
4090float8 __ovld __cnfn convert_float8_rtn(ushort8);
4091float8 __ovld __cnfn convert_float8(ushort8);
4092float8 __ovld __cnfn convert_float8_rte(int8);
4093float8 __ovld __cnfn convert_float8_rtz(int8);
4094float8 __ovld __cnfn convert_float8_rtp(int8);
4095float8 __ovld __cnfn convert_float8_rtn(int8);
4096float8 __ovld __cnfn convert_float8(int8);
4097float8 __ovld __cnfn convert_float8_rte(uint8);
4098float8 __ovld __cnfn convert_float8_rtz(uint8);
4099float8 __ovld __cnfn convert_float8_rtp(uint8);
4100float8 __ovld __cnfn convert_float8_rtn(uint8);
4101float8 __ovld __cnfn convert_float8(uint8);
4102float8 __ovld __cnfn convert_float8_rte(long8);
4103float8 __ovld __cnfn convert_float8_rtz(long8);
4104float8 __ovld __cnfn convert_float8_rtp(long8);
4105float8 __ovld __cnfn convert_float8_rtn(long8);
4106float8 __ovld __cnfn convert_float8(long8);
4107float8 __ovld __cnfn convert_float8_rte(ulong8);
4108float8 __ovld __cnfn convert_float8_rtz(ulong8);
4109float8 __ovld __cnfn convert_float8_rtp(ulong8);
4110float8 __ovld __cnfn convert_float8_rtn(ulong8);
4111float8 __ovld __cnfn convert_float8(ulong8);
4112float8 __ovld __cnfn convert_float8_rte(float8);
4113float8 __ovld __cnfn convert_float8_rtz(float8);
4114float8 __ovld __cnfn convert_float8_rtp(float8);
4115float8 __ovld __cnfn convert_float8_rtn(float8);
4116float8 __ovld __cnfn convert_float8(float8);
4117char16 __ovld __cnfn convert_char16_rte(char16);
4118char16 __ovld __cnfn convert_char16_sat_rte(char16);
4119char16 __ovld __cnfn convert_char16_rtz(char16);
4120char16 __ovld __cnfn convert_char16_sat_rtz(char16);
4121char16 __ovld __cnfn convert_char16_rtp(char16);
4122char16 __ovld __cnfn convert_char16_sat_rtp(char16);
4123char16 __ovld __cnfn convert_char16_rtn(char16);
4124char16 __ovld __cnfn convert_char16_sat_rtn(char16);
4125char16 __ovld __cnfn convert_char16(char16);
4126char16 __ovld __cnfn convert_char16_sat(char16);
4127char16 __ovld __cnfn convert_char16_rte(uchar16);
4128char16 __ovld __cnfn convert_char16_sat_rte(uchar16);
4129char16 __ovld __cnfn convert_char16_rtz(uchar16);
4130char16 __ovld __cnfn convert_char16_sat_rtz(uchar16);
4131char16 __ovld __cnfn convert_char16_rtp(uchar16);
4132char16 __ovld __cnfn convert_char16_sat_rtp(uchar16);
4133char16 __ovld __cnfn convert_char16_rtn(uchar16);
4134char16 __ovld __cnfn convert_char16_sat_rtn(uchar16);
4135char16 __ovld __cnfn convert_char16(uchar16);
4136char16 __ovld __cnfn convert_char16_sat(uchar16);
4137char16 __ovld __cnfn convert_char16_rte(short16);
4138char16 __ovld __cnfn convert_char16_sat_rte(short16);
4139char16 __ovld __cnfn convert_char16_rtz(short16);
4140char16 __ovld __cnfn convert_char16_sat_rtz(short16);
4141char16 __ovld __cnfn convert_char16_rtp(short16);
4142char16 __ovld __cnfn convert_char16_sat_rtp(short16);
4143char16 __ovld __cnfn convert_char16_rtn(short16);
4144char16 __ovld __cnfn convert_char16_sat_rtn(short16);
4145char16 __ovld __cnfn convert_char16(short16);
4146char16 __ovld __cnfn convert_char16_sat(short16);
4147char16 __ovld __cnfn convert_char16_rte(ushort16);
4148char16 __ovld __cnfn convert_char16_sat_rte(ushort16);
4149char16 __ovld __cnfn convert_char16_rtz(ushort16);
4150char16 __ovld __cnfn convert_char16_sat_rtz(ushort16);
4151char16 __ovld __cnfn convert_char16_rtp(ushort16);
4152char16 __ovld __cnfn convert_char16_sat_rtp(ushort16);
4153char16 __ovld __cnfn convert_char16_rtn(ushort16);
4154char16 __ovld __cnfn convert_char16_sat_rtn(ushort16);
4155char16 __ovld __cnfn convert_char16(ushort16);
4156char16 __ovld __cnfn convert_char16_sat(ushort16);
4157char16 __ovld __cnfn convert_char16_rte(int16);
4158char16 __ovld __cnfn convert_char16_sat_rte(int16);
4159char16 __ovld __cnfn convert_char16_rtz(int16);
4160char16 __ovld __cnfn convert_char16_sat_rtz(int16);
4161char16 __ovld __cnfn convert_char16_rtp(int16);
4162char16 __ovld __cnfn convert_char16_sat_rtp(int16);
4163char16 __ovld __cnfn convert_char16_rtn(int16);
4164char16 __ovld __cnfn convert_char16_sat_rtn(int16);
4165char16 __ovld __cnfn convert_char16(int16);
4166char16 __ovld __cnfn convert_char16_sat(int16);
4167char16 __ovld __cnfn convert_char16_rte(uint16);
4168char16 __ovld __cnfn convert_char16_sat_rte(uint16);
4169char16 __ovld __cnfn convert_char16_rtz(uint16);
4170char16 __ovld __cnfn convert_char16_sat_rtz(uint16);
4171char16 __ovld __cnfn convert_char16_rtp(uint16);
4172char16 __ovld __cnfn convert_char16_sat_rtp(uint16);
4173char16 __ovld __cnfn convert_char16_rtn(uint16);
4174char16 __ovld __cnfn convert_char16_sat_rtn(uint16);
4175char16 __ovld __cnfn convert_char16(uint16);
4176char16 __ovld __cnfn convert_char16_sat(uint16);
4177char16 __ovld __cnfn convert_char16_rte(long16);
4178char16 __ovld __cnfn convert_char16_sat_rte(long16);
4179char16 __ovld __cnfn convert_char16_rtz(long16);
4180char16 __ovld __cnfn convert_char16_sat_rtz(long16);
4181char16 __ovld __cnfn convert_char16_rtp(long16);
4182char16 __ovld __cnfn convert_char16_sat_rtp(long16);
4183char16 __ovld __cnfn convert_char16_rtn(long16);
4184char16 __ovld __cnfn convert_char16_sat_rtn(long16);
4185char16 __ovld __cnfn convert_char16(long16);
4186char16 __ovld __cnfn convert_char16_sat(long16);
4187char16 __ovld __cnfn convert_char16_rte(ulong16);
4188char16 __ovld __cnfn convert_char16_sat_rte(ulong16);
4189char16 __ovld __cnfn convert_char16_rtz(ulong16);
4190char16 __ovld __cnfn convert_char16_sat_rtz(ulong16);
4191char16 __ovld __cnfn convert_char16_rtp(ulong16);
4192char16 __ovld __cnfn convert_char16_sat_rtp(ulong16);
4193char16 __ovld __cnfn convert_char16_rtn(ulong16);
4194char16 __ovld __cnfn convert_char16_sat_rtn(ulong16);
4195char16 __ovld __cnfn convert_char16(ulong16);
4196char16 __ovld __cnfn convert_char16_sat(ulong16);
4197char16 __ovld __cnfn convert_char16_rte(float16);
4198char16 __ovld __cnfn convert_char16_sat_rte(float16);
4199char16 __ovld __cnfn convert_char16_rtz(float16);
4200char16 __ovld __cnfn convert_char16_sat_rtz(float16);
4201char16 __ovld __cnfn convert_char16_rtp(float16);
4202char16 __ovld __cnfn convert_char16_sat_rtp(float16);
4203char16 __ovld __cnfn convert_char16_rtn(float16);
4204char16 __ovld __cnfn convert_char16_sat_rtn(float16);
4205char16 __ovld __cnfn convert_char16(float16);
4206char16 __ovld __cnfn convert_char16_sat(float16);
4207uchar16 __ovld __cnfn convert_uchar16_rte(char16);
4208uchar16 __ovld __cnfn convert_uchar16_sat_rte(char16);
4209uchar16 __ovld __cnfn convert_uchar16_rtz(char16);
4210uchar16 __ovld __cnfn convert_uchar16_sat_rtz(char16);
4211uchar16 __ovld __cnfn convert_uchar16_rtp(char16);
4212uchar16 __ovld __cnfn convert_uchar16_sat_rtp(char16);
4213uchar16 __ovld __cnfn convert_uchar16_rtn(char16);
4214uchar16 __ovld __cnfn convert_uchar16_sat_rtn(char16);
4215uchar16 __ovld __cnfn convert_uchar16(char16);
4216uchar16 __ovld __cnfn convert_uchar16_sat(char16);
4217uchar16 __ovld __cnfn convert_uchar16_rte(uchar16);
4218uchar16 __ovld __cnfn convert_uchar16_sat_rte(uchar16);
4219uchar16 __ovld __cnfn convert_uchar16_rtz(uchar16);
4220uchar16 __ovld __cnfn convert_uchar16_sat_rtz(uchar16);
4221uchar16 __ovld __cnfn convert_uchar16_rtp(uchar16);
4222uchar16 __ovld __cnfn convert_uchar16_sat_rtp(uchar16);
4223uchar16 __ovld __cnfn convert_uchar16_rtn(uchar16);
4224uchar16 __ovld __cnfn convert_uchar16_sat_rtn(uchar16);
4225uchar16 __ovld __cnfn convert_uchar16(uchar16);
4226uchar16 __ovld __cnfn convert_uchar16_sat(uchar16);
4227uchar16 __ovld __cnfn convert_uchar16_rte(short16);
4228uchar16 __ovld __cnfn convert_uchar16_sat_rte(short16);
4229uchar16 __ovld __cnfn convert_uchar16_rtz(short16);
4230uchar16 __ovld __cnfn convert_uchar16_sat_rtz(short16);
4231uchar16 __ovld __cnfn convert_uchar16_rtp(short16);
4232uchar16 __ovld __cnfn convert_uchar16_sat_rtp(short16);
4233uchar16 __ovld __cnfn convert_uchar16_rtn(short16);
4234uchar16 __ovld __cnfn convert_uchar16_sat_rtn(short16);
4235uchar16 __ovld __cnfn convert_uchar16(short16);
4236uchar16 __ovld __cnfn convert_uchar16_sat(short16);
4237uchar16 __ovld __cnfn convert_uchar16_rte(ushort16);
4238uchar16 __ovld __cnfn convert_uchar16_sat_rte(ushort16);
4239uchar16 __ovld __cnfn convert_uchar16_rtz(ushort16);
4240uchar16 __ovld __cnfn convert_uchar16_sat_rtz(ushort16);
4241uchar16 __ovld __cnfn convert_uchar16_rtp(ushort16);
4242uchar16 __ovld __cnfn convert_uchar16_sat_rtp(ushort16);
4243uchar16 __ovld __cnfn convert_uchar16_rtn(ushort16);
4244uchar16 __ovld __cnfn convert_uchar16_sat_rtn(ushort16);
4245uchar16 __ovld __cnfn convert_uchar16(ushort16);
4246uchar16 __ovld __cnfn convert_uchar16_sat(ushort16);
4247uchar16 __ovld __cnfn convert_uchar16_rte(int16);
4248uchar16 __ovld __cnfn convert_uchar16_sat_rte(int16);
4249uchar16 __ovld __cnfn convert_uchar16_rtz(int16);
4250uchar16 __ovld __cnfn convert_uchar16_sat_rtz(int16);
4251uchar16 __ovld __cnfn convert_uchar16_rtp(int16);
4252uchar16 __ovld __cnfn convert_uchar16_sat_rtp(int16);
4253uchar16 __ovld __cnfn convert_uchar16_rtn(int16);
4254uchar16 __ovld __cnfn convert_uchar16_sat_rtn(int16);
4255uchar16 __ovld __cnfn convert_uchar16(int16);
4256uchar16 __ovld __cnfn convert_uchar16_sat(int16);
4257uchar16 __ovld __cnfn convert_uchar16_rte(uint16);
4258uchar16 __ovld __cnfn convert_uchar16_sat_rte(uint16);
4259uchar16 __ovld __cnfn convert_uchar16_rtz(uint16);
4260uchar16 __ovld __cnfn convert_uchar16_sat_rtz(uint16);
4261uchar16 __ovld __cnfn convert_uchar16_rtp(uint16);
4262uchar16 __ovld __cnfn convert_uchar16_sat_rtp(uint16);
4263uchar16 __ovld __cnfn convert_uchar16_rtn(uint16);
4264uchar16 __ovld __cnfn convert_uchar16_sat_rtn(uint16);
4265uchar16 __ovld __cnfn convert_uchar16(uint16);
4266uchar16 __ovld __cnfn convert_uchar16_sat(uint16);
4267uchar16 __ovld __cnfn convert_uchar16_rte(long16);
4268uchar16 __ovld __cnfn convert_uchar16_sat_rte(long16);
4269uchar16 __ovld __cnfn convert_uchar16_rtz(long16);
4270uchar16 __ovld __cnfn convert_uchar16_sat_rtz(long16);
4271uchar16 __ovld __cnfn convert_uchar16_rtp(long16);
4272uchar16 __ovld __cnfn convert_uchar16_sat_rtp(long16);
4273uchar16 __ovld __cnfn convert_uchar16_rtn(long16);
4274uchar16 __ovld __cnfn convert_uchar16_sat_rtn(long16);
4275uchar16 __ovld __cnfn convert_uchar16(long16);
4276uchar16 __ovld __cnfn convert_uchar16_sat(long16);
4277uchar16 __ovld __cnfn convert_uchar16_rte(ulong16);
4278uchar16 __ovld __cnfn convert_uchar16_sat_rte(ulong16);
4279uchar16 __ovld __cnfn convert_uchar16_rtz(ulong16);
4280uchar16 __ovld __cnfn convert_uchar16_sat_rtz(ulong16);
4281uchar16 __ovld __cnfn convert_uchar16_rtp(ulong16);
4282uchar16 __ovld __cnfn convert_uchar16_sat_rtp(ulong16);
4283uchar16 __ovld __cnfn convert_uchar16_rtn(ulong16);
4284uchar16 __ovld __cnfn convert_uchar16_sat_rtn(ulong16);
4285uchar16 __ovld __cnfn convert_uchar16(ulong16);
4286uchar16 __ovld __cnfn convert_uchar16_sat(ulong16);
4287uchar16 __ovld __cnfn convert_uchar16_rte(float16);
4288uchar16 __ovld __cnfn convert_uchar16_sat_rte(float16);
4289uchar16 __ovld __cnfn convert_uchar16_rtz(float16);
4290uchar16 __ovld __cnfn convert_uchar16_sat_rtz(float16);
4291uchar16 __ovld __cnfn convert_uchar16_rtp(float16);
4292uchar16 __ovld __cnfn convert_uchar16_sat_rtp(float16);
4293uchar16 __ovld __cnfn convert_uchar16_rtn(float16);
4294uchar16 __ovld __cnfn convert_uchar16_sat_rtn(float16);
4295uchar16 __ovld __cnfn convert_uchar16(float16);
4296uchar16 __ovld __cnfn convert_uchar16_sat(float16);
4297short16 __ovld __cnfn convert_short16_rte(char16);
4298short16 __ovld __cnfn convert_short16_sat_rte(char16);
4299short16 __ovld __cnfn convert_short16_rtz(char16);
4300short16 __ovld __cnfn convert_short16_sat_rtz(char16);
4301short16 __ovld __cnfn convert_short16_rtp(char16);
4302short16 __ovld __cnfn convert_short16_sat_rtp(char16);
4303short16 __ovld __cnfn convert_short16_rtn(char16);
4304short16 __ovld __cnfn convert_short16_sat_rtn(char16);
4305short16 __ovld __cnfn convert_short16(char16);
4306short16 __ovld __cnfn convert_short16_sat(char16);
4307short16 __ovld __cnfn convert_short16_rte(uchar16);
4308short16 __ovld __cnfn convert_short16_sat_rte(uchar16);
4309short16 __ovld __cnfn convert_short16_rtz(uchar16);
4310short16 __ovld __cnfn convert_short16_sat_rtz(uchar16);
4311short16 __ovld __cnfn convert_short16_rtp(uchar16);
4312short16 __ovld __cnfn convert_short16_sat_rtp(uchar16);
4313short16 __ovld __cnfn convert_short16_rtn(uchar16);
4314short16 __ovld __cnfn convert_short16_sat_rtn(uchar16);
4315short16 __ovld __cnfn convert_short16(uchar16);
4316short16 __ovld __cnfn convert_short16_sat(uchar16);
4317short16 __ovld __cnfn convert_short16_rte(short16);
4318short16 __ovld __cnfn convert_short16_sat_rte(short16);
4319short16 __ovld __cnfn convert_short16_rtz(short16);
4320short16 __ovld __cnfn convert_short16_sat_rtz(short16);
4321short16 __ovld __cnfn convert_short16_rtp(short16);
4322short16 __ovld __cnfn convert_short16_sat_rtp(short16);
4323short16 __ovld __cnfn convert_short16_rtn(short16);
4324short16 __ovld __cnfn convert_short16_sat_rtn(short16);
4325short16 __ovld __cnfn convert_short16(short16);
4326short16 __ovld __cnfn convert_short16_sat(short16);
4327short16 __ovld __cnfn convert_short16_rte(ushort16);
4328short16 __ovld __cnfn convert_short16_sat_rte(ushort16);
4329short16 __ovld __cnfn convert_short16_rtz(ushort16);
4330short16 __ovld __cnfn convert_short16_sat_rtz(ushort16);
4331short16 __ovld __cnfn convert_short16_rtp(ushort16);
4332short16 __ovld __cnfn convert_short16_sat_rtp(ushort16);
4333short16 __ovld __cnfn convert_short16_rtn(ushort16);
4334short16 __ovld __cnfn convert_short16_sat_rtn(ushort16);
4335short16 __ovld __cnfn convert_short16(ushort16);
4336short16 __ovld __cnfn convert_short16_sat(ushort16);
4337short16 __ovld __cnfn convert_short16_rte(int16);
4338short16 __ovld __cnfn convert_short16_sat_rte(int16);
4339short16 __ovld __cnfn convert_short16_rtz(int16);
4340short16 __ovld __cnfn convert_short16_sat_rtz(int16);
4341short16 __ovld __cnfn convert_short16_rtp(int16);
4342short16 __ovld __cnfn convert_short16_sat_rtp(int16);
4343short16 __ovld __cnfn convert_short16_rtn(int16);
4344short16 __ovld __cnfn convert_short16_sat_rtn(int16);
4345short16 __ovld __cnfn convert_short16(int16);
4346short16 __ovld __cnfn convert_short16_sat(int16);
4347short16 __ovld __cnfn convert_short16_rte(uint16);
4348short16 __ovld __cnfn convert_short16_sat_rte(uint16);
4349short16 __ovld __cnfn convert_short16_rtz(uint16);
4350short16 __ovld __cnfn convert_short16_sat_rtz(uint16);
4351short16 __ovld __cnfn convert_short16_rtp(uint16);
4352short16 __ovld __cnfn convert_short16_sat_rtp(uint16);
4353short16 __ovld __cnfn convert_short16_rtn(uint16);
4354short16 __ovld __cnfn convert_short16_sat_rtn(uint16);
4355short16 __ovld __cnfn convert_short16(uint16);
4356short16 __ovld __cnfn convert_short16_sat(uint16);
4357short16 __ovld __cnfn convert_short16_rte(long16);
4358short16 __ovld __cnfn convert_short16_sat_rte(long16);
4359short16 __ovld __cnfn convert_short16_rtz(long16);
4360short16 __ovld __cnfn convert_short16_sat_rtz(long16);
4361short16 __ovld __cnfn convert_short16_rtp(long16);
4362short16 __ovld __cnfn convert_short16_sat_rtp(long16);
4363short16 __ovld __cnfn convert_short16_rtn(long16);
4364short16 __ovld __cnfn convert_short16_sat_rtn(long16);
4365short16 __ovld __cnfn convert_short16(long16);
4366short16 __ovld __cnfn convert_short16_sat(long16);
4367short16 __ovld __cnfn convert_short16_rte(ulong16);
4368short16 __ovld __cnfn convert_short16_sat_rte(ulong16);
4369short16 __ovld __cnfn convert_short16_rtz(ulong16);
4370short16 __ovld __cnfn convert_short16_sat_rtz(ulong16);
4371short16 __ovld __cnfn convert_short16_rtp(ulong16);
4372short16 __ovld __cnfn convert_short16_sat_rtp(ulong16);
4373short16 __ovld __cnfn convert_short16_rtn(ulong16);
4374short16 __ovld __cnfn convert_short16_sat_rtn(ulong16);
4375short16 __ovld __cnfn convert_short16(ulong16);
4376short16 __ovld __cnfn convert_short16_sat(ulong16);
4377short16 __ovld __cnfn convert_short16_rte(float16);
4378short16 __ovld __cnfn convert_short16_sat_rte(float16);
4379short16 __ovld __cnfn convert_short16_rtz(float16);
4380short16 __ovld __cnfn convert_short16_sat_rtz(float16);
4381short16 __ovld __cnfn convert_short16_rtp(float16);
4382short16 __ovld __cnfn convert_short16_sat_rtp(float16);
4383short16 __ovld __cnfn convert_short16_rtn(float16);
4384short16 __ovld __cnfn convert_short16_sat_rtn(float16);
4385short16 __ovld __cnfn convert_short16(float16);
4386short16 __ovld __cnfn convert_short16_sat(float16);
4387ushort16 __ovld __cnfn convert_ushort16_rte(char16);
4388ushort16 __ovld __cnfn convert_ushort16_sat_rte(char16);
4389ushort16 __ovld __cnfn convert_ushort16_rtz(char16);
4390ushort16 __ovld __cnfn convert_ushort16_sat_rtz(char16);
4391ushort16 __ovld __cnfn convert_ushort16_rtp(char16);
4392ushort16 __ovld __cnfn convert_ushort16_sat_rtp(char16);
4393ushort16 __ovld __cnfn convert_ushort16_rtn(char16);
4394ushort16 __ovld __cnfn convert_ushort16_sat_rtn(char16);
4395ushort16 __ovld __cnfn convert_ushort16(char16);
4396ushort16 __ovld __cnfn convert_ushort16_sat(char16);
4397ushort16 __ovld __cnfn convert_ushort16_rte(uchar16);
4398ushort16 __ovld __cnfn convert_ushort16_sat_rte(uchar16);
4399ushort16 __ovld __cnfn convert_ushort16_rtz(uchar16);
4400ushort16 __ovld __cnfn convert_ushort16_sat_rtz(uchar16);
4401ushort16 __ovld __cnfn convert_ushort16_rtp(uchar16);
4402ushort16 __ovld __cnfn convert_ushort16_sat_rtp(uchar16);
4403ushort16 __ovld __cnfn convert_ushort16_rtn(uchar16);
4404ushort16 __ovld __cnfn convert_ushort16_sat_rtn(uchar16);
4405ushort16 __ovld __cnfn convert_ushort16(uchar16);
4406ushort16 __ovld __cnfn convert_ushort16_sat(uchar16);
4407ushort16 __ovld __cnfn convert_ushort16_rte(short16);
4408ushort16 __ovld __cnfn convert_ushort16_sat_rte(short16);
4409ushort16 __ovld __cnfn convert_ushort16_rtz(short16);
4410ushort16 __ovld __cnfn convert_ushort16_sat_rtz(short16);
4411ushort16 __ovld __cnfn convert_ushort16_rtp(short16);
4412ushort16 __ovld __cnfn convert_ushort16_sat_rtp(short16);
4413ushort16 __ovld __cnfn convert_ushort16_rtn(short16);
4414ushort16 __ovld __cnfn convert_ushort16_sat_rtn(short16);
4415ushort16 __ovld __cnfn convert_ushort16(short16);
4416ushort16 __ovld __cnfn convert_ushort16_sat(short16);
4417ushort16 __ovld __cnfn convert_ushort16_rte(ushort16);
4418ushort16 __ovld __cnfn convert_ushort16_sat_rte(ushort16);
4419ushort16 __ovld __cnfn convert_ushort16_rtz(ushort16);
4420ushort16 __ovld __cnfn convert_ushort16_sat_rtz(ushort16);
4421ushort16 __ovld __cnfn convert_ushort16_rtp(ushort16);
4422ushort16 __ovld __cnfn convert_ushort16_sat_rtp(ushort16);
4423ushort16 __ovld __cnfn convert_ushort16_rtn(ushort16);
4424ushort16 __ovld __cnfn convert_ushort16_sat_rtn(ushort16);
4425ushort16 __ovld __cnfn convert_ushort16(ushort16);
4426ushort16 __ovld __cnfn convert_ushort16_sat(ushort16);
4427ushort16 __ovld __cnfn convert_ushort16_rte(int16);
4428ushort16 __ovld __cnfn convert_ushort16_sat_rte(int16);
4429ushort16 __ovld __cnfn convert_ushort16_rtz(int16);
4430ushort16 __ovld __cnfn convert_ushort16_sat_rtz(int16);
4431ushort16 __ovld __cnfn convert_ushort16_rtp(int16);
4432ushort16 __ovld __cnfn convert_ushort16_sat_rtp(int16);
4433ushort16 __ovld __cnfn convert_ushort16_rtn(int16);
4434ushort16 __ovld __cnfn convert_ushort16_sat_rtn(int16);
4435ushort16 __ovld __cnfn convert_ushort16(int16);
4436ushort16 __ovld __cnfn convert_ushort16_sat(int16);
4437ushort16 __ovld __cnfn convert_ushort16_rte(uint16);
4438ushort16 __ovld __cnfn convert_ushort16_sat_rte(uint16);
4439ushort16 __ovld __cnfn convert_ushort16_rtz(uint16);
4440ushort16 __ovld __cnfn convert_ushort16_sat_rtz(uint16);
4441ushort16 __ovld __cnfn convert_ushort16_rtp(uint16);
4442ushort16 __ovld __cnfn convert_ushort16_sat_rtp(uint16);
4443ushort16 __ovld __cnfn convert_ushort16_rtn(uint16);
4444ushort16 __ovld __cnfn convert_ushort16_sat_rtn(uint16);
4445ushort16 __ovld __cnfn convert_ushort16(uint16);
4446ushort16 __ovld __cnfn convert_ushort16_sat(uint16);
4447ushort16 __ovld __cnfn convert_ushort16_rte(long16);
4448ushort16 __ovld __cnfn convert_ushort16_sat_rte(long16);
4449ushort16 __ovld __cnfn convert_ushort16_rtz(long16);
4450ushort16 __ovld __cnfn convert_ushort16_sat_rtz(long16);
4451ushort16 __ovld __cnfn convert_ushort16_rtp(long16);
4452ushort16 __ovld __cnfn convert_ushort16_sat_rtp(long16);
4453ushort16 __ovld __cnfn convert_ushort16_rtn(long16);
4454ushort16 __ovld __cnfn convert_ushort16_sat_rtn(long16);
4455ushort16 __ovld __cnfn convert_ushort16(long16);
4456ushort16 __ovld __cnfn convert_ushort16_sat(long16);
4457ushort16 __ovld __cnfn convert_ushort16_rte(ulong16);
4458ushort16 __ovld __cnfn convert_ushort16_sat_rte(ulong16);
4459ushort16 __ovld __cnfn convert_ushort16_rtz(ulong16);
4460ushort16 __ovld __cnfn convert_ushort16_sat_rtz(ulong16);
4461ushort16 __ovld __cnfn convert_ushort16_rtp(ulong16);
4462ushort16 __ovld __cnfn convert_ushort16_sat_rtp(ulong16);
4463ushort16 __ovld __cnfn convert_ushort16_rtn(ulong16);
4464ushort16 __ovld __cnfn convert_ushort16_sat_rtn(ulong16);
4465ushort16 __ovld __cnfn convert_ushort16(ulong16);
4466ushort16 __ovld __cnfn convert_ushort16_sat(ulong16);
4467ushort16 __ovld __cnfn convert_ushort16_rte(float16);
4468ushort16 __ovld __cnfn convert_ushort16_sat_rte(float16);
4469ushort16 __ovld __cnfn convert_ushort16_rtz(float16);
4470ushort16 __ovld __cnfn convert_ushort16_sat_rtz(float16);
4471ushort16 __ovld __cnfn convert_ushort16_rtp(float16);
4472ushort16 __ovld __cnfn convert_ushort16_sat_rtp(float16);
4473ushort16 __ovld __cnfn convert_ushort16_rtn(float16);
4474ushort16 __ovld __cnfn convert_ushort16_sat_rtn(float16);
4475ushort16 __ovld __cnfn convert_ushort16(float16);
4476ushort16 __ovld __cnfn convert_ushort16_sat(float16);
4477int16 __ovld __cnfn convert_int16_rte(char16);
4478int16 __ovld __cnfn convert_int16_sat_rte(char16);
4479int16 __ovld __cnfn convert_int16_rtz(char16);
4480int16 __ovld __cnfn convert_int16_sat_rtz(char16);
4481int16 __ovld __cnfn convert_int16_rtp(char16);
4482int16 __ovld __cnfn convert_int16_sat_rtp(char16);
4483int16 __ovld __cnfn convert_int16_rtn(char16);
4484int16 __ovld __cnfn convert_int16_sat_rtn(char16);
4485int16 __ovld __cnfn convert_int16(char16);
4486int16 __ovld __cnfn convert_int16_sat(char16);
4487int16 __ovld __cnfn convert_int16_rte(uchar16);
4488int16 __ovld __cnfn convert_int16_sat_rte(uchar16);
4489int16 __ovld __cnfn convert_int16_rtz(uchar16);
4490int16 __ovld __cnfn convert_int16_sat_rtz(uchar16);
4491int16 __ovld __cnfn convert_int16_rtp(uchar16);
4492int16 __ovld __cnfn convert_int16_sat_rtp(uchar16);
4493int16 __ovld __cnfn convert_int16_rtn(uchar16);
4494int16 __ovld __cnfn convert_int16_sat_rtn(uchar16);
4495int16 __ovld __cnfn convert_int16(uchar16);
4496int16 __ovld __cnfn convert_int16_sat(uchar16);
4497int16 __ovld __cnfn convert_int16_rte(short16);
4498int16 __ovld __cnfn convert_int16_sat_rte(short16);
4499int16 __ovld __cnfn convert_int16_rtz(short16);
4500int16 __ovld __cnfn convert_int16_sat_rtz(short16);
4501int16 __ovld __cnfn convert_int16_rtp(short16);
4502int16 __ovld __cnfn convert_int16_sat_rtp(short16);
4503int16 __ovld __cnfn convert_int16_rtn(short16);
4504int16 __ovld __cnfn convert_int16_sat_rtn(short16);
4505int16 __ovld __cnfn convert_int16(short16);
4506int16 __ovld __cnfn convert_int16_sat(short16);
4507int16 __ovld __cnfn convert_int16_rte(ushort16);
4508int16 __ovld __cnfn convert_int16_sat_rte(ushort16);
4509int16 __ovld __cnfn convert_int16_rtz(ushort16);
4510int16 __ovld __cnfn convert_int16_sat_rtz(ushort16);
4511int16 __ovld __cnfn convert_int16_rtp(ushort16);
4512int16 __ovld __cnfn convert_int16_sat_rtp(ushort16);
4513int16 __ovld __cnfn convert_int16_rtn(ushort16);
4514int16 __ovld __cnfn convert_int16_sat_rtn(ushort16);
4515int16 __ovld __cnfn convert_int16(ushort16);
4516int16 __ovld __cnfn convert_int16_sat(ushort16);
4517int16 __ovld __cnfn convert_int16_rte(int16);
4518int16 __ovld __cnfn convert_int16_sat_rte(int16);
4519int16 __ovld __cnfn convert_int16_rtz(int16);
4520int16 __ovld __cnfn convert_int16_sat_rtz(int16);
4521int16 __ovld __cnfn convert_int16_rtp(int16);
4522int16 __ovld __cnfn convert_int16_sat_rtp(int16);
4523int16 __ovld __cnfn convert_int16_rtn(int16);
4524int16 __ovld __cnfn convert_int16_sat_rtn(int16);
4525int16 __ovld __cnfn convert_int16(int16);
4526int16 __ovld __cnfn convert_int16_sat(int16);
4527int16 __ovld __cnfn convert_int16_rte(uint16);
4528int16 __ovld __cnfn convert_int16_sat_rte(uint16);
4529int16 __ovld __cnfn convert_int16_rtz(uint16);
4530int16 __ovld __cnfn convert_int16_sat_rtz(uint16);
4531int16 __ovld __cnfn convert_int16_rtp(uint16);
4532int16 __ovld __cnfn convert_int16_sat_rtp(uint16);
4533int16 __ovld __cnfn convert_int16_rtn(uint16);
4534int16 __ovld __cnfn convert_int16_sat_rtn(uint16);
4535int16 __ovld __cnfn convert_int16(uint16);
4536int16 __ovld __cnfn convert_int16_sat(uint16);
4537int16 __ovld __cnfn convert_int16_rte(long16);
4538int16 __ovld __cnfn convert_int16_sat_rte(long16);
4539int16 __ovld __cnfn convert_int16_rtz(long16);
4540int16 __ovld __cnfn convert_int16_sat_rtz(long16);
4541int16 __ovld __cnfn convert_int16_rtp(long16);
4542int16 __ovld __cnfn convert_int16_sat_rtp(long16);
4543int16 __ovld __cnfn convert_int16_rtn(long16);
4544int16 __ovld __cnfn convert_int16_sat_rtn(long16);
4545int16 __ovld __cnfn convert_int16(long16);
4546int16 __ovld __cnfn convert_int16_sat(long16);
4547int16 __ovld __cnfn convert_int16_rte(ulong16);
4548int16 __ovld __cnfn convert_int16_sat_rte(ulong16);
4549int16 __ovld __cnfn convert_int16_rtz(ulong16);
4550int16 __ovld __cnfn convert_int16_sat_rtz(ulong16);
4551int16 __ovld __cnfn convert_int16_rtp(ulong16);
4552int16 __ovld __cnfn convert_int16_sat_rtp(ulong16);
4553int16 __ovld __cnfn convert_int16_rtn(ulong16);
4554int16 __ovld __cnfn convert_int16_sat_rtn(ulong16);
4555int16 __ovld __cnfn convert_int16(ulong16);
4556int16 __ovld __cnfn convert_int16_sat(ulong16);
4557int16 __ovld __cnfn convert_int16_rte(float16);
4558int16 __ovld __cnfn convert_int16_sat_rte(float16);
4559int16 __ovld __cnfn convert_int16_rtz(float16);
4560int16 __ovld __cnfn convert_int16_sat_rtz(float16);
4561int16 __ovld __cnfn convert_int16_rtp(float16);
4562int16 __ovld __cnfn convert_int16_sat_rtp(float16);
4563int16 __ovld __cnfn convert_int16_rtn(float16);
4564int16 __ovld __cnfn convert_int16_sat_rtn(float16);
4565int16 __ovld __cnfn convert_int16(float16);
4566int16 __ovld __cnfn convert_int16_sat(float16);
4567uint16 __ovld __cnfn convert_uint16_rte(char16);
4568uint16 __ovld __cnfn convert_uint16_sat_rte(char16);
4569uint16 __ovld __cnfn convert_uint16_rtz(char16);
4570uint16 __ovld __cnfn convert_uint16_sat_rtz(char16);
4571uint16 __ovld __cnfn convert_uint16_rtp(char16);
4572uint16 __ovld __cnfn convert_uint16_sat_rtp(char16);
4573uint16 __ovld __cnfn convert_uint16_rtn(char16);
4574uint16 __ovld __cnfn convert_uint16_sat_rtn(char16);
4575uint16 __ovld __cnfn convert_uint16(char16);
4576uint16 __ovld __cnfn convert_uint16_sat(char16);
4577uint16 __ovld __cnfn convert_uint16_rte(uchar16);
4578uint16 __ovld __cnfn convert_uint16_sat_rte(uchar16);
4579uint16 __ovld __cnfn convert_uint16_rtz(uchar16);
4580uint16 __ovld __cnfn convert_uint16_sat_rtz(uchar16);
4581uint16 __ovld __cnfn convert_uint16_rtp(uchar16);
4582uint16 __ovld __cnfn convert_uint16_sat_rtp(uchar16);
4583uint16 __ovld __cnfn convert_uint16_rtn(uchar16);
4584uint16 __ovld __cnfn convert_uint16_sat_rtn(uchar16);
4585uint16 __ovld __cnfn convert_uint16(uchar16);
4586uint16 __ovld __cnfn convert_uint16_sat(uchar16);
4587uint16 __ovld __cnfn convert_uint16_rte(short16);
4588uint16 __ovld __cnfn convert_uint16_sat_rte(short16);
4589uint16 __ovld __cnfn convert_uint16_rtz(short16);
4590uint16 __ovld __cnfn convert_uint16_sat_rtz(short16);
4591uint16 __ovld __cnfn convert_uint16_rtp(short16);
4592uint16 __ovld __cnfn convert_uint16_sat_rtp(short16);
4593uint16 __ovld __cnfn convert_uint16_rtn(short16);
4594uint16 __ovld __cnfn convert_uint16_sat_rtn(short16);
4595uint16 __ovld __cnfn convert_uint16(short16);
4596uint16 __ovld __cnfn convert_uint16_sat(short16);
4597uint16 __ovld __cnfn convert_uint16_rte(ushort16);
4598uint16 __ovld __cnfn convert_uint16_sat_rte(ushort16);
4599uint16 __ovld __cnfn convert_uint16_rtz(ushort16);
4600uint16 __ovld __cnfn convert_uint16_sat_rtz(ushort16);
4601uint16 __ovld __cnfn convert_uint16_rtp(ushort16);
4602uint16 __ovld __cnfn convert_uint16_sat_rtp(ushort16);
4603uint16 __ovld __cnfn convert_uint16_rtn(ushort16);
4604uint16 __ovld __cnfn convert_uint16_sat_rtn(ushort16);
4605uint16 __ovld __cnfn convert_uint16(ushort16);
4606uint16 __ovld __cnfn convert_uint16_sat(ushort16);
4607uint16 __ovld __cnfn convert_uint16_rte(int16);
4608uint16 __ovld __cnfn convert_uint16_sat_rte(int16);
4609uint16 __ovld __cnfn convert_uint16_rtz(int16);
4610uint16 __ovld __cnfn convert_uint16_sat_rtz(int16);
4611uint16 __ovld __cnfn convert_uint16_rtp(int16);
4612uint16 __ovld __cnfn convert_uint16_sat_rtp(int16);
4613uint16 __ovld __cnfn convert_uint16_rtn(int16);
4614uint16 __ovld __cnfn convert_uint16_sat_rtn(int16);
4615uint16 __ovld __cnfn convert_uint16(int16);
4616uint16 __ovld __cnfn convert_uint16_sat(int16);
4617uint16 __ovld __cnfn convert_uint16_rte(uint16);
4618uint16 __ovld __cnfn convert_uint16_sat_rte(uint16);
4619uint16 __ovld __cnfn convert_uint16_rtz(uint16);
4620uint16 __ovld __cnfn convert_uint16_sat_rtz(uint16);
4621uint16 __ovld __cnfn convert_uint16_rtp(uint16);
4622uint16 __ovld __cnfn convert_uint16_sat_rtp(uint16);
4623uint16 __ovld __cnfn convert_uint16_rtn(uint16);
4624uint16 __ovld __cnfn convert_uint16_sat_rtn(uint16);
4625uint16 __ovld __cnfn convert_uint16(uint16);
4626uint16 __ovld __cnfn convert_uint16_sat(uint16);
4627uint16 __ovld __cnfn convert_uint16_rte(long16);
4628uint16 __ovld __cnfn convert_uint16_sat_rte(long16);
4629uint16 __ovld __cnfn convert_uint16_rtz(long16);
4630uint16 __ovld __cnfn convert_uint16_sat_rtz(long16);
4631uint16 __ovld __cnfn convert_uint16_rtp(long16);
4632uint16 __ovld __cnfn convert_uint16_sat_rtp(long16);
4633uint16 __ovld __cnfn convert_uint16_rtn(long16);
4634uint16 __ovld __cnfn convert_uint16_sat_rtn(long16);
4635uint16 __ovld __cnfn convert_uint16(long16);
4636uint16 __ovld __cnfn convert_uint16_sat(long16);
4637uint16 __ovld __cnfn convert_uint16_rte(ulong16);
4638uint16 __ovld __cnfn convert_uint16_sat_rte(ulong16);
4639uint16 __ovld __cnfn convert_uint16_rtz(ulong16);
4640uint16 __ovld __cnfn convert_uint16_sat_rtz(ulong16);
4641uint16 __ovld __cnfn convert_uint16_rtp(ulong16);
4642uint16 __ovld __cnfn convert_uint16_sat_rtp(ulong16);
4643uint16 __ovld __cnfn convert_uint16_rtn(ulong16);
4644uint16 __ovld __cnfn convert_uint16_sat_rtn(ulong16);
4645uint16 __ovld __cnfn convert_uint16(ulong16);
4646uint16 __ovld __cnfn convert_uint16_sat(ulong16);
4647uint16 __ovld __cnfn convert_uint16_rte(float16);
4648uint16 __ovld __cnfn convert_uint16_sat_rte(float16);
4649uint16 __ovld __cnfn convert_uint16_rtz(float16);
4650uint16 __ovld __cnfn convert_uint16_sat_rtz(float16);
4651uint16 __ovld __cnfn convert_uint16_rtp(float16);
4652uint16 __ovld __cnfn convert_uint16_sat_rtp(float16);
4653uint16 __ovld __cnfn convert_uint16_rtn(float16);
4654uint16 __ovld __cnfn convert_uint16_sat_rtn(float16);
4655uint16 __ovld __cnfn convert_uint16(float16);
4656uint16 __ovld __cnfn convert_uint16_sat(float16);
4657long16 __ovld __cnfn convert_long16_rte(char16);
4658long16 __ovld __cnfn convert_long16_sat_rte(char16);
4659long16 __ovld __cnfn convert_long16_rtz(char16);
4660long16 __ovld __cnfn convert_long16_sat_rtz(char16);
4661long16 __ovld __cnfn convert_long16_rtp(char16);
4662long16 __ovld __cnfn convert_long16_sat_rtp(char16);
4663long16 __ovld __cnfn convert_long16_rtn(char16);
4664long16 __ovld __cnfn convert_long16_sat_rtn(char16);
4665long16 __ovld __cnfn convert_long16(char16);
4666long16 __ovld __cnfn convert_long16_sat(char16);
4667long16 __ovld __cnfn convert_long16_rte(uchar16);
4668long16 __ovld __cnfn convert_long16_sat_rte(uchar16);
4669long16 __ovld __cnfn convert_long16_rtz(uchar16);
4670long16 __ovld __cnfn convert_long16_sat_rtz(uchar16);
4671long16 __ovld __cnfn convert_long16_rtp(uchar16);
4672long16 __ovld __cnfn convert_long16_sat_rtp(uchar16);
4673long16 __ovld __cnfn convert_long16_rtn(uchar16);
4674long16 __ovld __cnfn convert_long16_sat_rtn(uchar16);
4675long16 __ovld __cnfn convert_long16(uchar16);
4676long16 __ovld __cnfn convert_long16_sat(uchar16);
4677long16 __ovld __cnfn convert_long16_rte(short16);
4678long16 __ovld __cnfn convert_long16_sat_rte(short16);
4679long16 __ovld __cnfn convert_long16_rtz(short16);
4680long16 __ovld __cnfn convert_long16_sat_rtz(short16);
4681long16 __ovld __cnfn convert_long16_rtp(short16);
4682long16 __ovld __cnfn convert_long16_sat_rtp(short16);
4683long16 __ovld __cnfn convert_long16_rtn(short16);
4684long16 __ovld __cnfn convert_long16_sat_rtn(short16);
4685long16 __ovld __cnfn convert_long16(short16);
4686long16 __ovld __cnfn convert_long16_sat(short16);
4687long16 __ovld __cnfn convert_long16_rte(ushort16);
4688long16 __ovld __cnfn convert_long16_sat_rte(ushort16);
4689long16 __ovld __cnfn convert_long16_rtz(ushort16);
4690long16 __ovld __cnfn convert_long16_sat_rtz(ushort16);
4691long16 __ovld __cnfn convert_long16_rtp(ushort16);
4692long16 __ovld __cnfn convert_long16_sat_rtp(ushort16);
4693long16 __ovld __cnfn convert_long16_rtn(ushort16);
4694long16 __ovld __cnfn convert_long16_sat_rtn(ushort16);
4695long16 __ovld __cnfn convert_long16(ushort16);
4696long16 __ovld __cnfn convert_long16_sat(ushort16);
4697long16 __ovld __cnfn convert_long16_rte(int16);
4698long16 __ovld __cnfn convert_long16_sat_rte(int16);
4699long16 __ovld __cnfn convert_long16_rtz(int16);
4700long16 __ovld __cnfn convert_long16_sat_rtz(int16);
4701long16 __ovld __cnfn convert_long16_rtp(int16);
4702long16 __ovld __cnfn convert_long16_sat_rtp(int16);
4703long16 __ovld __cnfn convert_long16_rtn(int16);
4704long16 __ovld __cnfn convert_long16_sat_rtn(int16);
4705long16 __ovld __cnfn convert_long16(int16);
4706long16 __ovld __cnfn convert_long16_sat(int16);
4707long16 __ovld __cnfn convert_long16_rte(uint16);
4708long16 __ovld __cnfn convert_long16_sat_rte(uint16);
4709long16 __ovld __cnfn convert_long16_rtz(uint16);
4710long16 __ovld __cnfn convert_long16_sat_rtz(uint16);
4711long16 __ovld __cnfn convert_long16_rtp(uint16);
4712long16 __ovld __cnfn convert_long16_sat_rtp(uint16);
4713long16 __ovld __cnfn convert_long16_rtn(uint16);
4714long16 __ovld __cnfn convert_long16_sat_rtn(uint16);
4715long16 __ovld __cnfn convert_long16(uint16);
4716long16 __ovld __cnfn convert_long16_sat(uint16);
4717long16 __ovld __cnfn convert_long16_rte(long16);
4718long16 __ovld __cnfn convert_long16_sat_rte(long16);
4719long16 __ovld __cnfn convert_long16_rtz(long16);
4720long16 __ovld __cnfn convert_long16_sat_rtz(long16);
4721long16 __ovld __cnfn convert_long16_rtp(long16);
4722long16 __ovld __cnfn convert_long16_sat_rtp(long16);
4723long16 __ovld __cnfn convert_long16_rtn(long16);
4724long16 __ovld __cnfn convert_long16_sat_rtn(long16);
4725long16 __ovld __cnfn convert_long16(long16);
4726long16 __ovld __cnfn convert_long16_sat(long16);
4727long16 __ovld __cnfn convert_long16_rte(ulong16);
4728long16 __ovld __cnfn convert_long16_sat_rte(ulong16);
4729long16 __ovld __cnfn convert_long16_rtz(ulong16);
4730long16 __ovld __cnfn convert_long16_sat_rtz(ulong16);
4731long16 __ovld __cnfn convert_long16_rtp(ulong16);
4732long16 __ovld __cnfn convert_long16_sat_rtp(ulong16);
4733long16 __ovld __cnfn convert_long16_rtn(ulong16);
4734long16 __ovld __cnfn convert_long16_sat_rtn(ulong16);
4735long16 __ovld __cnfn convert_long16(ulong16);
4736long16 __ovld __cnfn convert_long16_sat(ulong16);
4737long16 __ovld __cnfn convert_long16_rte(float16);
4738long16 __ovld __cnfn convert_long16_sat_rte(float16);
4739long16 __ovld __cnfn convert_long16_rtz(float16);
4740long16 __ovld __cnfn convert_long16_sat_rtz(float16);
4741long16 __ovld __cnfn convert_long16_rtp(float16);
4742long16 __ovld __cnfn convert_long16_sat_rtp(float16);
4743long16 __ovld __cnfn convert_long16_rtn(float16);
4744long16 __ovld __cnfn convert_long16_sat_rtn(float16);
4745long16 __ovld __cnfn convert_long16(float16);
4746long16 __ovld __cnfn convert_long16_sat(float16);
4747ulong16 __ovld __cnfn convert_ulong16_rte(char16);
4748ulong16 __ovld __cnfn convert_ulong16_sat_rte(char16);
4749ulong16 __ovld __cnfn convert_ulong16_rtz(char16);
4750ulong16 __ovld __cnfn convert_ulong16_sat_rtz(char16);
4751ulong16 __ovld __cnfn convert_ulong16_rtp(char16);
4752ulong16 __ovld __cnfn convert_ulong16_sat_rtp(char16);
4753ulong16 __ovld __cnfn convert_ulong16_rtn(char16);
4754ulong16 __ovld __cnfn convert_ulong16_sat_rtn(char16);
4755ulong16 __ovld __cnfn convert_ulong16(char16);
4756ulong16 __ovld __cnfn convert_ulong16_sat(char16);
4757ulong16 __ovld __cnfn convert_ulong16_rte(uchar16);
4758ulong16 __ovld __cnfn convert_ulong16_sat_rte(uchar16);
4759ulong16 __ovld __cnfn convert_ulong16_rtz(uchar16);
4760ulong16 __ovld __cnfn convert_ulong16_sat_rtz(uchar16);
4761ulong16 __ovld __cnfn convert_ulong16_rtp(uchar16);
4762ulong16 __ovld __cnfn convert_ulong16_sat_rtp(uchar16);
4763ulong16 __ovld __cnfn convert_ulong16_rtn(uchar16);
4764ulong16 __ovld __cnfn convert_ulong16_sat_rtn(uchar16);
4765ulong16 __ovld __cnfn convert_ulong16(uchar16);
4766ulong16 __ovld __cnfn convert_ulong16_sat(uchar16);
4767ulong16 __ovld __cnfn convert_ulong16_rte(short16);
4768ulong16 __ovld __cnfn convert_ulong16_sat_rte(short16);
4769ulong16 __ovld __cnfn convert_ulong16_rtz(short16);
4770ulong16 __ovld __cnfn convert_ulong16_sat_rtz(short16);
4771ulong16 __ovld __cnfn convert_ulong16_rtp(short16);
4772ulong16 __ovld __cnfn convert_ulong16_sat_rtp(short16);
4773ulong16 __ovld __cnfn convert_ulong16_rtn(short16);
4774ulong16 __ovld __cnfn convert_ulong16_sat_rtn(short16);
4775ulong16 __ovld __cnfn convert_ulong16(short16);
4776ulong16 __ovld __cnfn convert_ulong16_sat(short16);
4777ulong16 __ovld __cnfn convert_ulong16_rte(ushort16);
4778ulong16 __ovld __cnfn convert_ulong16_sat_rte(ushort16);
4779ulong16 __ovld __cnfn convert_ulong16_rtz(ushort16);
4780ulong16 __ovld __cnfn convert_ulong16_sat_rtz(ushort16);
4781ulong16 __ovld __cnfn convert_ulong16_rtp(ushort16);
4782ulong16 __ovld __cnfn convert_ulong16_sat_rtp(ushort16);
4783ulong16 __ovld __cnfn convert_ulong16_rtn(ushort16);
4784ulong16 __ovld __cnfn convert_ulong16_sat_rtn(ushort16);
4785ulong16 __ovld __cnfn convert_ulong16(ushort16);
4786ulong16 __ovld __cnfn convert_ulong16_sat(ushort16);
4787ulong16 __ovld __cnfn convert_ulong16_rte(int16);
4788ulong16 __ovld __cnfn convert_ulong16_sat_rte(int16);
4789ulong16 __ovld __cnfn convert_ulong16_rtz(int16);
4790ulong16 __ovld __cnfn convert_ulong16_sat_rtz(int16);
4791ulong16 __ovld __cnfn convert_ulong16_rtp(int16);
4792ulong16 __ovld __cnfn convert_ulong16_sat_rtp(int16);
4793ulong16 __ovld __cnfn convert_ulong16_rtn(int16);
4794ulong16 __ovld __cnfn convert_ulong16_sat_rtn(int16);
4795ulong16 __ovld __cnfn convert_ulong16(int16);
4796ulong16 __ovld __cnfn convert_ulong16_sat(int16);
4797ulong16 __ovld __cnfn convert_ulong16_rte(uint16);
4798ulong16 __ovld __cnfn convert_ulong16_sat_rte(uint16);
4799ulong16 __ovld __cnfn convert_ulong16_rtz(uint16);
4800ulong16 __ovld __cnfn convert_ulong16_sat_rtz(uint16);
4801ulong16 __ovld __cnfn convert_ulong16_rtp(uint16);
4802ulong16 __ovld __cnfn convert_ulong16_sat_rtp(uint16);
4803ulong16 __ovld __cnfn convert_ulong16_rtn(uint16);
4804ulong16 __ovld __cnfn convert_ulong16_sat_rtn(uint16);
4805ulong16 __ovld __cnfn convert_ulong16(uint16);
4806ulong16 __ovld __cnfn convert_ulong16_sat(uint16);
4807ulong16 __ovld __cnfn convert_ulong16_rte(long16);
4808ulong16 __ovld __cnfn convert_ulong16_sat_rte(long16);
4809ulong16 __ovld __cnfn convert_ulong16_rtz(long16);
4810ulong16 __ovld __cnfn convert_ulong16_sat_rtz(long16);
4811ulong16 __ovld __cnfn convert_ulong16_rtp(long16);
4812ulong16 __ovld __cnfn convert_ulong16_sat_rtp(long16);
4813ulong16 __ovld __cnfn convert_ulong16_rtn(long16);
4814ulong16 __ovld __cnfn convert_ulong16_sat_rtn(long16);
4815ulong16 __ovld __cnfn convert_ulong16(long16);
4816ulong16 __ovld __cnfn convert_ulong16_sat(long16);
4817ulong16 __ovld __cnfn convert_ulong16_rte(ulong16);
4818ulong16 __ovld __cnfn convert_ulong16_sat_rte(ulong16);
4819ulong16 __ovld __cnfn convert_ulong16_rtz(ulong16);
4820ulong16 __ovld __cnfn convert_ulong16_sat_rtz(ulong16);
4821ulong16 __ovld __cnfn convert_ulong16_rtp(ulong16);
4822ulong16 __ovld __cnfn convert_ulong16_sat_rtp(ulong16);
4823ulong16 __ovld __cnfn convert_ulong16_rtn(ulong16);
4824ulong16 __ovld __cnfn convert_ulong16_sat_rtn(ulong16);
4825ulong16 __ovld __cnfn convert_ulong16(ulong16);
4826ulong16 __ovld __cnfn convert_ulong16_sat(ulong16);
4827ulong16 __ovld __cnfn convert_ulong16_rte(float16);
4828ulong16 __ovld __cnfn convert_ulong16_sat_rte(float16);
4829ulong16 __ovld __cnfn convert_ulong16_rtz(float16);
4830ulong16 __ovld __cnfn convert_ulong16_sat_rtz(float16);
4831ulong16 __ovld __cnfn convert_ulong16_rtp(float16);
4832ulong16 __ovld __cnfn convert_ulong16_sat_rtp(float16);
4833ulong16 __ovld __cnfn convert_ulong16_rtn(float16);
4834ulong16 __ovld __cnfn convert_ulong16_sat_rtn(float16);
4835ulong16 __ovld __cnfn convert_ulong16(float16);
4836ulong16 __ovld __cnfn convert_ulong16_sat(float16);
4837float16 __ovld __cnfn convert_float16_rte(char16);
4838float16 __ovld __cnfn convert_float16_rtz(char16);
4839float16 __ovld __cnfn convert_float16_rtp(char16);
4840float16 __ovld __cnfn convert_float16_rtn(char16);
4841float16 __ovld __cnfn convert_float16(char16);
4842float16 __ovld __cnfn convert_float16_rte(uchar16);
4843float16 __ovld __cnfn convert_float16_rtz(uchar16);
4844float16 __ovld __cnfn convert_float16_rtp(uchar16);
4845float16 __ovld __cnfn convert_float16_rtn(uchar16);
4846float16 __ovld __cnfn convert_float16(uchar16);
4847float16 __ovld __cnfn convert_float16_rte(short16);
4848float16 __ovld __cnfn convert_float16_rtz(short16);
4849float16 __ovld __cnfn convert_float16_rtp(short16);
4850float16 __ovld __cnfn convert_float16_rtn(short16);
4851float16 __ovld __cnfn convert_float16(short16);
4852float16 __ovld __cnfn convert_float16_rte(ushort16);
4853float16 __ovld __cnfn convert_float16_rtz(ushort16);
4854float16 __ovld __cnfn convert_float16_rtp(ushort16);
4855float16 __ovld __cnfn convert_float16_rtn(ushort16);
4856float16 __ovld __cnfn convert_float16(ushort16);
4857float16 __ovld __cnfn convert_float16_rte(int16);
4858float16 __ovld __cnfn convert_float16_rtz(int16);
4859float16 __ovld __cnfn convert_float16_rtp(int16);
4860float16 __ovld __cnfn convert_float16_rtn(int16);
4861float16 __ovld __cnfn convert_float16(int16);
4862float16 __ovld __cnfn convert_float16_rte(uint16);
4863float16 __ovld __cnfn convert_float16_rtz(uint16);
4864float16 __ovld __cnfn convert_float16_rtp(uint16);
4865float16 __ovld __cnfn convert_float16_rtn(uint16);
4866float16 __ovld __cnfn convert_float16(uint16);
4867float16 __ovld __cnfn convert_float16_rte(long16);
4868float16 __ovld __cnfn convert_float16_rtz(long16);
4869float16 __ovld __cnfn convert_float16_rtp(long16);
4870float16 __ovld __cnfn convert_float16_rtn(long16);
4871float16 __ovld __cnfn convert_float16(long16);
4872float16 __ovld __cnfn convert_float16_rte(ulong16);
4873float16 __ovld __cnfn convert_float16_rtz(ulong16);
4874float16 __ovld __cnfn convert_float16_rtp(ulong16);
4875float16 __ovld __cnfn convert_float16_rtn(ulong16);
4876float16 __ovld __cnfn convert_float16(ulong16);
4877float16 __ovld __cnfn convert_float16_rte(float16);
4878float16 __ovld __cnfn convert_float16_rtz(float16);
4879float16 __ovld __cnfn convert_float16_rtp(float16);
4880float16 __ovld __cnfn convert_float16_rtn(float16);
4881float16 __ovld __cnfn convert_float16(float16);
4882
4883// Conversions with double data type parameters or return value.
4884
4885#ifdef cl_khr_fp64
4886char __ovld __cnfn convert_char(double);
4887char __ovld __cnfn convert_char_rte(double);
4888char __ovld __cnfn convert_char_rtn(double);
4889char __ovld __cnfn convert_char_rtp(double);
4890char __ovld __cnfn convert_char_rtz(double);
4891char __ovld __cnfn convert_char_sat(double);
4892char __ovld __cnfn convert_char_sat_rte(double);
4893char __ovld __cnfn convert_char_sat_rtn(double);
4894char __ovld __cnfn convert_char_sat_rtp(double);
4895char __ovld __cnfn convert_char_sat_rtz(double);
4896char2 __ovld __cnfn convert_char2(double2);
4897char2 __ovld __cnfn convert_char2_rte(double2);
4898char2 __ovld __cnfn convert_char2_rtn(double2);
4899char2 __ovld __cnfn convert_char2_rtp(double2);
4900char2 __ovld __cnfn convert_char2_rtz(double2);
4901char2 __ovld __cnfn convert_char2_sat(double2);
4902char2 __ovld __cnfn convert_char2_sat_rte(double2);
4903char2 __ovld __cnfn convert_char2_sat_rtn(double2);
4904char2 __ovld __cnfn convert_char2_sat_rtp(double2);
4905char2 __ovld __cnfn convert_char2_sat_rtz(double2);
4906char3 __ovld __cnfn convert_char3(double3);
4907char3 __ovld __cnfn convert_char3_rte(double3);
4908char3 __ovld __cnfn convert_char3_rtn(double3);
4909char3 __ovld __cnfn convert_char3_rtp(double3);
4910char3 __ovld __cnfn convert_char3_rtz(double3);
4911char3 __ovld __cnfn convert_char3_sat(double3);
4912char3 __ovld __cnfn convert_char3_sat_rte(double3);
4913char3 __ovld __cnfn convert_char3_sat_rtn(double3);
4914char3 __ovld __cnfn convert_char3_sat_rtp(double3);
4915char3 __ovld __cnfn convert_char3_sat_rtz(double3);
4916char4 __ovld __cnfn convert_char4(double4);
4917char4 __ovld __cnfn convert_char4_rte(double4);
4918char4 __ovld __cnfn convert_char4_rtn(double4);
4919char4 __ovld __cnfn convert_char4_rtp(double4);
4920char4 __ovld __cnfn convert_char4_rtz(double4);
4921char4 __ovld __cnfn convert_char4_sat(double4);
4922char4 __ovld __cnfn convert_char4_sat_rte(double4);
4923char4 __ovld __cnfn convert_char4_sat_rtn(double4);
4924char4 __ovld __cnfn convert_char4_sat_rtp(double4);
4925char4 __ovld __cnfn convert_char4_sat_rtz(double4);
4926char8 __ovld __cnfn convert_char8(double8);
4927char8 __ovld __cnfn convert_char8_rte(double8);
4928char8 __ovld __cnfn convert_char8_rtn(double8);
4929char8 __ovld __cnfn convert_char8_rtp(double8);
4930char8 __ovld __cnfn convert_char8_rtz(double8);
4931char8 __ovld __cnfn convert_char8_sat(double8);
4932char8 __ovld __cnfn convert_char8_sat_rte(double8);
4933char8 __ovld __cnfn convert_char8_sat_rtn(double8);
4934char8 __ovld __cnfn convert_char8_sat_rtp(double8);
4935char8 __ovld __cnfn convert_char8_sat_rtz(double8);
4936char16 __ovld __cnfn convert_char16(double16);
4937char16 __ovld __cnfn convert_char16_rte(double16);
4938char16 __ovld __cnfn convert_char16_rtn(double16);
4939char16 __ovld __cnfn convert_char16_rtp(double16);
4940char16 __ovld __cnfn convert_char16_rtz(double16);
4941char16 __ovld __cnfn convert_char16_sat(double16);
4942char16 __ovld __cnfn convert_char16_sat_rte(double16);
4943char16 __ovld __cnfn convert_char16_sat_rtn(double16);
4944char16 __ovld __cnfn convert_char16_sat_rtp(double16);
4945char16 __ovld __cnfn convert_char16_sat_rtz(double16);
4946
4947uchar __ovld __cnfn convert_uchar(double);
4948uchar __ovld __cnfn convert_uchar_rte(double);
4949uchar __ovld __cnfn convert_uchar_rtn(double);
4950uchar __ovld __cnfn convert_uchar_rtp(double);
4951uchar __ovld __cnfn convert_uchar_rtz(double);
4952uchar __ovld __cnfn convert_uchar_sat(double);
4953uchar __ovld __cnfn convert_uchar_sat_rte(double);
4954uchar __ovld __cnfn convert_uchar_sat_rtn(double);
4955uchar __ovld __cnfn convert_uchar_sat_rtp(double);
4956uchar __ovld __cnfn convert_uchar_sat_rtz(double);
4957uchar2 __ovld __cnfn convert_uchar2(double2);
4958uchar2 __ovld __cnfn convert_uchar2_rte(double2);
4959uchar2 __ovld __cnfn convert_uchar2_rtn(double2);
4960uchar2 __ovld __cnfn convert_uchar2_rtp(double2);
4961uchar2 __ovld __cnfn convert_uchar2_rtz(double2);
4962uchar2 __ovld __cnfn convert_uchar2_sat(double2);
4963uchar2 __ovld __cnfn convert_uchar2_sat_rte(double2);
4964uchar2 __ovld __cnfn convert_uchar2_sat_rtn(double2);
4965uchar2 __ovld __cnfn convert_uchar2_sat_rtp(double2);
4966uchar2 __ovld __cnfn convert_uchar2_sat_rtz(double2);
4967uchar3 __ovld __cnfn convert_uchar3(double3);
4968uchar3 __ovld __cnfn convert_uchar3_rte(double3);
4969uchar3 __ovld __cnfn convert_uchar3_rtn(double3);
4970uchar3 __ovld __cnfn convert_uchar3_rtp(double3);
4971uchar3 __ovld __cnfn convert_uchar3_rtz(double3);
4972uchar3 __ovld __cnfn convert_uchar3_sat(double3);
4973uchar3 __ovld __cnfn convert_uchar3_sat_rte(double3);
4974uchar3 __ovld __cnfn convert_uchar3_sat_rtn(double3);
4975uchar3 __ovld __cnfn convert_uchar3_sat_rtp(double3);
4976uchar3 __ovld __cnfn convert_uchar3_sat_rtz(double3);
4977uchar4 __ovld __cnfn convert_uchar4(double4);
4978uchar4 __ovld __cnfn convert_uchar4_rte(double4);
4979uchar4 __ovld __cnfn convert_uchar4_rtn(double4);
4980uchar4 __ovld __cnfn convert_uchar4_rtp(double4);
4981uchar4 __ovld __cnfn convert_uchar4_rtz(double4);
4982uchar4 __ovld __cnfn convert_uchar4_sat(double4);
4983uchar4 __ovld __cnfn convert_uchar4_sat_rte(double4);
4984uchar4 __ovld __cnfn convert_uchar4_sat_rtn(double4);
4985uchar4 __ovld __cnfn convert_uchar4_sat_rtp(double4);
4986uchar4 __ovld __cnfn convert_uchar4_sat_rtz(double4);
4987uchar8 __ovld __cnfn convert_uchar8(double8);
4988uchar8 __ovld __cnfn convert_uchar8_rte(double8);
4989uchar8 __ovld __cnfn convert_uchar8_rtn(double8);
4990uchar8 __ovld __cnfn convert_uchar8_rtp(double8);
4991uchar8 __ovld __cnfn convert_uchar8_rtz(double8);
4992uchar8 __ovld __cnfn convert_uchar8_sat(double8);
4993uchar8 __ovld __cnfn convert_uchar8_sat_rte(double8);
4994uchar8 __ovld __cnfn convert_uchar8_sat_rtn(double8);
4995uchar8 __ovld __cnfn convert_uchar8_sat_rtp(double8);
4996uchar8 __ovld __cnfn convert_uchar8_sat_rtz(double8);
4997uchar16 __ovld __cnfn convert_uchar16(double16);
4998uchar16 __ovld __cnfn convert_uchar16_rte(double16);
4999uchar16 __ovld __cnfn convert_uchar16_rtn(double16);
5000uchar16 __ovld __cnfn convert_uchar16_rtp(double16);
5001uchar16 __ovld __cnfn convert_uchar16_rtz(double16);
5002uchar16 __ovld __cnfn convert_uchar16_sat(double16);
5003uchar16 __ovld __cnfn convert_uchar16_sat_rte(double16);
5004uchar16 __ovld __cnfn convert_uchar16_sat_rtn(double16);
5005uchar16 __ovld __cnfn convert_uchar16_sat_rtp(double16);
5006uchar16 __ovld __cnfn convert_uchar16_sat_rtz(double16);
5007
5008short __ovld __cnfn convert_short(double);
5009short __ovld __cnfn convert_short_rte(double);
5010short __ovld __cnfn convert_short_rtn(double);
5011short __ovld __cnfn convert_short_rtp(double);
5012short __ovld __cnfn convert_short_rtz(double);
5013short __ovld __cnfn convert_short_sat(double);
5014short __ovld __cnfn convert_short_sat_rte(double);
5015short __ovld __cnfn convert_short_sat_rtn(double);
5016short __ovld __cnfn convert_short_sat_rtp(double);
5017short __ovld __cnfn convert_short_sat_rtz(double);
5018short2 __ovld __cnfn convert_short2(double2);
5019short2 __ovld __cnfn convert_short2_rte(double2);
5020short2 __ovld __cnfn convert_short2_rtn(double2);
5021short2 __ovld __cnfn convert_short2_rtp(double2);
5022short2 __ovld __cnfn convert_short2_rtz(double2);
5023short2 __ovld __cnfn convert_short2_sat(double2);
5024short2 __ovld __cnfn convert_short2_sat_rte(double2);
5025short2 __ovld __cnfn convert_short2_sat_rtn(double2);
5026short2 __ovld __cnfn convert_short2_sat_rtp(double2);
5027short2 __ovld __cnfn convert_short2_sat_rtz(double2);
5028short3 __ovld __cnfn convert_short3(double3);
5029short3 __ovld __cnfn convert_short3_rte(double3);
5030short3 __ovld __cnfn convert_short3_rtn(double3);
5031short3 __ovld __cnfn convert_short3_rtp(double3);
5032short3 __ovld __cnfn convert_short3_rtz(double3);
5033short3 __ovld __cnfn convert_short3_sat(double3);
5034short3 __ovld __cnfn convert_short3_sat_rte(double3);
5035short3 __ovld __cnfn convert_short3_sat_rtn(double3);
5036short3 __ovld __cnfn convert_short3_sat_rtp(double3);
5037short3 __ovld __cnfn convert_short3_sat_rtz(double3);
5038short4 __ovld __cnfn convert_short4(double4);
5039short4 __ovld __cnfn convert_short4_rte(double4);
5040short4 __ovld __cnfn convert_short4_rtn(double4);
5041short4 __ovld __cnfn convert_short4_rtp(double4);
5042short4 __ovld __cnfn convert_short4_rtz(double4);
5043short4 __ovld __cnfn convert_short4_sat(double4);
5044short4 __ovld __cnfn convert_short4_sat_rte(double4);
5045short4 __ovld __cnfn convert_short4_sat_rtn(double4);
5046short4 __ovld __cnfn convert_short4_sat_rtp(double4);
5047short4 __ovld __cnfn convert_short4_sat_rtz(double4);
5048short8 __ovld __cnfn convert_short8(double8);
5049short8 __ovld __cnfn convert_short8_rte(double8);
5050short8 __ovld __cnfn convert_short8_rtn(double8);
5051short8 __ovld __cnfn convert_short8_rtp(double8);
5052short8 __ovld __cnfn convert_short8_rtz(double8);
5053short8 __ovld __cnfn convert_short8_sat(double8);
5054short8 __ovld __cnfn convert_short8_sat_rte(double8);
5055short8 __ovld __cnfn convert_short8_sat_rtn(double8);
5056short8 __ovld __cnfn convert_short8_sat_rtp(double8);
5057short8 __ovld __cnfn convert_short8_sat_rtz(double8);
5058short16 __ovld __cnfn convert_short16(double16);
5059short16 __ovld __cnfn convert_short16_rte(double16);
5060short16 __ovld __cnfn convert_short16_rtn(double16);
5061short16 __ovld __cnfn convert_short16_rtp(double16);
5062short16 __ovld __cnfn convert_short16_rtz(double16);
5063short16 __ovld __cnfn convert_short16_sat(double16);
5064short16 __ovld __cnfn convert_short16_sat_rte(double16);
5065short16 __ovld __cnfn convert_short16_sat_rtn(double16);
5066short16 __ovld __cnfn convert_short16_sat_rtp(double16);
5067short16 __ovld __cnfn convert_short16_sat_rtz(double16);
5068
5069ushort __ovld __cnfn convert_ushort(double);
5070ushort __ovld __cnfn convert_ushort_rte(double);
5071ushort __ovld __cnfn convert_ushort_rtn(double);
5072ushort __ovld __cnfn convert_ushort_rtp(double);
5073ushort __ovld __cnfn convert_ushort_rtz(double);
5074ushort __ovld __cnfn convert_ushort_sat(double);
5075ushort __ovld __cnfn convert_ushort_sat_rte(double);
5076ushort __ovld __cnfn convert_ushort_sat_rtn(double);
5077ushort __ovld __cnfn convert_ushort_sat_rtp(double);
5078ushort __ovld __cnfn convert_ushort_sat_rtz(double);
5079ushort2 __ovld __cnfn convert_ushort2(double2);
5080ushort2 __ovld __cnfn convert_ushort2_rte(double2);
5081ushort2 __ovld __cnfn convert_ushort2_rtn(double2);
5082ushort2 __ovld __cnfn convert_ushort2_rtp(double2);
5083ushort2 __ovld __cnfn convert_ushort2_rtz(double2);
5084ushort2 __ovld __cnfn convert_ushort2_sat(double2);
5085ushort2 __ovld __cnfn convert_ushort2_sat_rte(double2);
5086ushort2 __ovld __cnfn convert_ushort2_sat_rtn(double2);
5087ushort2 __ovld __cnfn convert_ushort2_sat_rtp(double2);
5088ushort2 __ovld __cnfn convert_ushort2_sat_rtz(double2);
5089ushort3 __ovld __cnfn convert_ushort3(double3);
5090ushort3 __ovld __cnfn convert_ushort3_rte(double3);
5091ushort3 __ovld __cnfn convert_ushort3_rtn(double3);
5092ushort3 __ovld __cnfn convert_ushort3_rtp(double3);
5093ushort3 __ovld __cnfn convert_ushort3_rtz(double3);
5094ushort3 __ovld __cnfn convert_ushort3_sat(double3);
5095ushort3 __ovld __cnfn convert_ushort3_sat_rte(double3);
5096ushort3 __ovld __cnfn convert_ushort3_sat_rtn(double3);
5097ushort3 __ovld __cnfn convert_ushort3_sat_rtp(double3);
5098ushort3 __ovld __cnfn convert_ushort3_sat_rtz(double3);
5099ushort4 __ovld __cnfn convert_ushort4(double4);
5100ushort4 __ovld __cnfn convert_ushort4_rte(double4);
5101ushort4 __ovld __cnfn convert_ushort4_rtn(double4);
5102ushort4 __ovld __cnfn convert_ushort4_rtp(double4);
5103ushort4 __ovld __cnfn convert_ushort4_rtz(double4);
5104ushort4 __ovld __cnfn convert_ushort4_sat(double4);
5105ushort4 __ovld __cnfn convert_ushort4_sat_rte(double4);
5106ushort4 __ovld __cnfn convert_ushort4_sat_rtn(double4);
5107ushort4 __ovld __cnfn convert_ushort4_sat_rtp(double4);
5108ushort4 __ovld __cnfn convert_ushort4_sat_rtz(double4);
5109ushort8 __ovld __cnfn convert_ushort8(double8);
5110ushort8 __ovld __cnfn convert_ushort8_rte(double8);
5111ushort8 __ovld __cnfn convert_ushort8_rtn(double8);
5112ushort8 __ovld __cnfn convert_ushort8_rtp(double8);
5113ushort8 __ovld __cnfn convert_ushort8_rtz(double8);
5114ushort8 __ovld __cnfn convert_ushort8_sat(double8);
5115ushort8 __ovld __cnfn convert_ushort8_sat_rte(double8);
5116ushort8 __ovld __cnfn convert_ushort8_sat_rtn(double8);
5117ushort8 __ovld __cnfn convert_ushort8_sat_rtp(double8);
5118ushort8 __ovld __cnfn convert_ushort8_sat_rtz(double8);
5119ushort16 __ovld __cnfn convert_ushort16(double16);
5120ushort16 __ovld __cnfn convert_ushort16_rte(double16);
5121ushort16 __ovld __cnfn convert_ushort16_rtn(double16);
5122ushort16 __ovld __cnfn convert_ushort16_rtp(double16);
5123ushort16 __ovld __cnfn convert_ushort16_rtz(double16);
5124ushort16 __ovld __cnfn convert_ushort16_sat(double16);
5125ushort16 __ovld __cnfn convert_ushort16_sat_rte(double16);
5126ushort16 __ovld __cnfn convert_ushort16_sat_rtn(double16);
5127ushort16 __ovld __cnfn convert_ushort16_sat_rtp(double16);
5128ushort16 __ovld __cnfn convert_ushort16_sat_rtz(double16);
5129
5130int __ovld __cnfn convert_int(double);
5131int __ovld __cnfn convert_int_rte(double);
5132int __ovld __cnfn convert_int_rtn(double);
5133int __ovld __cnfn convert_int_rtp(double);
5134int __ovld __cnfn convert_int_rtz(double);
5135int __ovld __cnfn convert_int_sat(double);
5136int __ovld __cnfn convert_int_sat_rte(double);
5137int __ovld __cnfn convert_int_sat_rtn(double);
5138int __ovld __cnfn convert_int_sat_rtp(double);
5139int __ovld __cnfn convert_int_sat_rtz(double);
5140int2 __ovld __cnfn convert_int2(double2);
5141int2 __ovld __cnfn convert_int2_rte(double2);
5142int2 __ovld __cnfn convert_int2_rtn(double2);
5143int2 __ovld __cnfn convert_int2_rtp(double2);
5144int2 __ovld __cnfn convert_int2_rtz(double2);
5145int2 __ovld __cnfn convert_int2_sat(double2);
5146int2 __ovld __cnfn convert_int2_sat_rte(double2);
5147int2 __ovld __cnfn convert_int2_sat_rtn(double2);
5148int2 __ovld __cnfn convert_int2_sat_rtp(double2);
5149int2 __ovld __cnfn convert_int2_sat_rtz(double2);
5150int3 __ovld __cnfn convert_int3(double3);
5151int3 __ovld __cnfn convert_int3_rte(double3);
5152int3 __ovld __cnfn convert_int3_rtn(double3);
5153int3 __ovld __cnfn convert_int3_rtp(double3);
5154int3 __ovld __cnfn convert_int3_rtz(double3);
5155int3 __ovld __cnfn convert_int3_sat(double3);
5156int3 __ovld __cnfn convert_int3_sat_rte(double3);
5157int3 __ovld __cnfn convert_int3_sat_rtn(double3);
5158int3 __ovld __cnfn convert_int3_sat_rtp(double3);
5159int3 __ovld __cnfn convert_int3_sat_rtz(double3);
5160int4 __ovld __cnfn convert_int4(double4);
5161int4 __ovld __cnfn convert_int4_rte(double4);
5162int4 __ovld __cnfn convert_int4_rtn(double4);
5163int4 __ovld __cnfn convert_int4_rtp(double4);
5164int4 __ovld __cnfn convert_int4_rtz(double4);
5165int4 __ovld __cnfn convert_int4_sat(double4);
5166int4 __ovld __cnfn convert_int4_sat_rte(double4);
5167int4 __ovld __cnfn convert_int4_sat_rtn(double4);
5168int4 __ovld __cnfn convert_int4_sat_rtp(double4);
5169int4 __ovld __cnfn convert_int4_sat_rtz(double4);
5170int8 __ovld __cnfn convert_int8(double8);
5171int8 __ovld __cnfn convert_int8_rte(double8);
5172int8 __ovld __cnfn convert_int8_rtn(double8);
5173int8 __ovld __cnfn convert_int8_rtp(double8);
5174int8 __ovld __cnfn convert_int8_rtz(double8);
5175int8 __ovld __cnfn convert_int8_sat(double8);
5176int8 __ovld __cnfn convert_int8_sat_rte(double8);
5177int8 __ovld __cnfn convert_int8_sat_rtn(double8);
5178int8 __ovld __cnfn convert_int8_sat_rtp(double8);
5179int8 __ovld __cnfn convert_int8_sat_rtz(double8);
5180int16 __ovld __cnfn convert_int16(double16);
5181int16 __ovld __cnfn convert_int16_rte(double16);
5182int16 __ovld __cnfn convert_int16_rtn(double16);
5183int16 __ovld __cnfn convert_int16_rtp(double16);
5184int16 __ovld __cnfn convert_int16_rtz(double16);
5185int16 __ovld __cnfn convert_int16_sat(double16);
5186int16 __ovld __cnfn convert_int16_sat_rte(double16);
5187int16 __ovld __cnfn convert_int16_sat_rtn(double16);
5188int16 __ovld __cnfn convert_int16_sat_rtp(double16);
5189int16 __ovld __cnfn convert_int16_sat_rtz(double16);
5190
5191uint __ovld __cnfn convert_uint(double);
5192uint __ovld __cnfn convert_uint_rte(double);
5193uint __ovld __cnfn convert_uint_rtn(double);
5194uint __ovld __cnfn convert_uint_rtp(double);
5195uint __ovld __cnfn convert_uint_rtz(double);
5196uint __ovld __cnfn convert_uint_sat(double);
5197uint __ovld __cnfn convert_uint_sat_rte(double);
5198uint __ovld __cnfn convert_uint_sat_rtn(double);
5199uint __ovld __cnfn convert_uint_sat_rtp(double);
5200uint __ovld __cnfn convert_uint_sat_rtz(double);
5201uint2 __ovld __cnfn convert_uint2(double2);
5202uint2 __ovld __cnfn convert_uint2_rte(double2);
5203uint2 __ovld __cnfn convert_uint2_rtn(double2);
5204uint2 __ovld __cnfn convert_uint2_rtp(double2);
5205uint2 __ovld __cnfn convert_uint2_rtz(double2);
5206uint2 __ovld __cnfn convert_uint2_sat(double2);
5207uint2 __ovld __cnfn convert_uint2_sat_rte(double2);
5208uint2 __ovld __cnfn convert_uint2_sat_rtn(double2);
5209uint2 __ovld __cnfn convert_uint2_sat_rtp(double2);
5210uint2 __ovld __cnfn convert_uint2_sat_rtz(double2);
5211uint3 __ovld __cnfn convert_uint3(double3);
5212uint3 __ovld __cnfn convert_uint3_rte(double3);
5213uint3 __ovld __cnfn convert_uint3_rtn(double3);
5214uint3 __ovld __cnfn convert_uint3_rtp(double3);
5215uint3 __ovld __cnfn convert_uint3_rtz(double3);
5216uint3 __ovld __cnfn convert_uint3_sat(double3);
5217uint3 __ovld __cnfn convert_uint3_sat_rte(double3);
5218uint3 __ovld __cnfn convert_uint3_sat_rtn(double3);
5219uint3 __ovld __cnfn convert_uint3_sat_rtp(double3);
5220uint3 __ovld __cnfn convert_uint3_sat_rtz(double3);
5221uint4 __ovld __cnfn convert_uint4(double4);
5222uint4 __ovld __cnfn convert_uint4_rte(double4);
5223uint4 __ovld __cnfn convert_uint4_rtn(double4);
5224uint4 __ovld __cnfn convert_uint4_rtp(double4);
5225uint4 __ovld __cnfn convert_uint4_rtz(double4);
5226uint4 __ovld __cnfn convert_uint4_sat(double4);
5227uint4 __ovld __cnfn convert_uint4_sat_rte(double4);
5228uint4 __ovld __cnfn convert_uint4_sat_rtn(double4);
5229uint4 __ovld __cnfn convert_uint4_sat_rtp(double4);
5230uint4 __ovld __cnfn convert_uint4_sat_rtz(double4);
5231uint8 __ovld __cnfn convert_uint8(double8);
5232uint8 __ovld __cnfn convert_uint8_rte(double8);
5233uint8 __ovld __cnfn convert_uint8_rtn(double8);
5234uint8 __ovld __cnfn convert_uint8_rtp(double8);
5235uint8 __ovld __cnfn convert_uint8_rtz(double8);
5236uint8 __ovld __cnfn convert_uint8_sat(double8);
5237uint8 __ovld __cnfn convert_uint8_sat_rte(double8);
5238uint8 __ovld __cnfn convert_uint8_sat_rtn(double8);
5239uint8 __ovld __cnfn convert_uint8_sat_rtp(double8);
5240uint8 __ovld __cnfn convert_uint8_sat_rtz(double8);
5241uint16 __ovld __cnfn convert_uint16(double16);
5242uint16 __ovld __cnfn convert_uint16_rte(double16);
5243uint16 __ovld __cnfn convert_uint16_rtn(double16);
5244uint16 __ovld __cnfn convert_uint16_rtp(double16);
5245uint16 __ovld __cnfn convert_uint16_rtz(double16);
5246uint16 __ovld __cnfn convert_uint16_sat(double16);
5247uint16 __ovld __cnfn convert_uint16_sat_rte(double16);
5248uint16 __ovld __cnfn convert_uint16_sat_rtn(double16);
5249uint16 __ovld __cnfn convert_uint16_sat_rtp(double16);
5250uint16 __ovld __cnfn convert_uint16_sat_rtz(double16);
5251
5252long __ovld __cnfn convert_long(double);
5253long __ovld __cnfn convert_long_rte(double);
5254long __ovld __cnfn convert_long_rtn(double);
5255long __ovld __cnfn convert_long_rtp(double);
5256long __ovld __cnfn convert_long_rtz(double);
5257long __ovld __cnfn convert_long_sat(double);
5258long __ovld __cnfn convert_long_sat_rte(double);
5259long __ovld __cnfn convert_long_sat_rtn(double);
5260long __ovld __cnfn convert_long_sat_rtp(double);
5261long __ovld __cnfn convert_long_sat_rtz(double);
5262long2 __ovld __cnfn convert_long2(double2);
5263long2 __ovld __cnfn convert_long2_rte(double2);
5264long2 __ovld __cnfn convert_long2_rtn(double2);
5265long2 __ovld __cnfn convert_long2_rtp(double2);
5266long2 __ovld __cnfn convert_long2_rtz(double2);
5267long2 __ovld __cnfn convert_long2_sat(double2);
5268long2 __ovld __cnfn convert_long2_sat_rte(double2);
5269long2 __ovld __cnfn convert_long2_sat_rtn(double2);
5270long2 __ovld __cnfn convert_long2_sat_rtp(double2);
5271long2 __ovld __cnfn convert_long2_sat_rtz(double2);
5272long3 __ovld __cnfn convert_long3(double3);
5273long3 __ovld __cnfn convert_long3_rte(double3);
5274long3 __ovld __cnfn convert_long3_rtn(double3);
5275long3 __ovld __cnfn convert_long3_rtp(double3);
5276long3 __ovld __cnfn convert_long3_rtz(double3);
5277long3 __ovld __cnfn convert_long3_sat(double3);
5278long3 __ovld __cnfn convert_long3_sat_rte(double3);
5279long3 __ovld __cnfn convert_long3_sat_rtn(double3);
5280long3 __ovld __cnfn convert_long3_sat_rtp(double3);
5281long3 __ovld __cnfn convert_long3_sat_rtz(double3);
5282long4 __ovld __cnfn convert_long4(double4);
5283long4 __ovld __cnfn convert_long4_rte(double4);
5284long4 __ovld __cnfn convert_long4_rtn(double4);
5285long4 __ovld __cnfn convert_long4_rtp(double4);
5286long4 __ovld __cnfn convert_long4_rtz(double4);
5287long4 __ovld __cnfn convert_long4_sat(double4);
5288long4 __ovld __cnfn convert_long4_sat_rte(double4);
5289long4 __ovld __cnfn convert_long4_sat_rtn(double4);
5290long4 __ovld __cnfn convert_long4_sat_rtp(double4);
5291long4 __ovld __cnfn convert_long4_sat_rtz(double4);
5292long8 __ovld __cnfn convert_long8(double8);
5293long8 __ovld __cnfn convert_long8_rte(double8);
5294long8 __ovld __cnfn convert_long8_rtn(double8);
5295long8 __ovld __cnfn convert_long8_rtp(double8);
5296long8 __ovld __cnfn convert_long8_rtz(double8);
5297long8 __ovld __cnfn convert_long8_sat(double8);
5298long8 __ovld __cnfn convert_long8_sat_rte(double8);
5299long8 __ovld __cnfn convert_long8_sat_rtn(double8);
5300long8 __ovld __cnfn convert_long8_sat_rtp(double8);
5301long8 __ovld __cnfn convert_long8_sat_rtz(double8);
5302long16 __ovld __cnfn convert_long16(double16);
5303long16 __ovld __cnfn convert_long16_rte(double16);
5304long16 __ovld __cnfn convert_long16_rtn(double16);
5305long16 __ovld __cnfn convert_long16_rtp(double16);
5306long16 __ovld __cnfn convert_long16_rtz(double16);
5307long16 __ovld __cnfn convert_long16_sat(double16);
5308long16 __ovld __cnfn convert_long16_sat_rte(double16);
5309long16 __ovld __cnfn convert_long16_sat_rtn(double16);
5310long16 __ovld __cnfn convert_long16_sat_rtp(double16);
5311long16 __ovld __cnfn convert_long16_sat_rtz(double16);
5312
5313ulong __ovld __cnfn convert_ulong(double);
5314ulong __ovld __cnfn convert_ulong_rte(double);
5315ulong __ovld __cnfn convert_ulong_rtn(double);
5316ulong __ovld __cnfn convert_ulong_rtp(double);
5317ulong __ovld __cnfn convert_ulong_rtz(double);
5318ulong __ovld __cnfn convert_ulong_sat(double);
5319ulong __ovld __cnfn convert_ulong_sat_rte(double);
5320ulong __ovld __cnfn convert_ulong_sat_rtn(double);
5321ulong __ovld __cnfn convert_ulong_sat_rtp(double);
5322ulong __ovld __cnfn convert_ulong_sat_rtz(double);
5323ulong2 __ovld __cnfn convert_ulong2(double2);
5324ulong2 __ovld __cnfn convert_ulong2_rte(double2);
5325ulong2 __ovld __cnfn convert_ulong2_rtn(double2);
5326ulong2 __ovld __cnfn convert_ulong2_rtp(double2);
5327ulong2 __ovld __cnfn convert_ulong2_rtz(double2);
5328ulong2 __ovld __cnfn convert_ulong2_sat(double2);
5329ulong2 __ovld __cnfn convert_ulong2_sat_rte(double2);
5330ulong2 __ovld __cnfn convert_ulong2_sat_rtn(double2);
5331ulong2 __ovld __cnfn convert_ulong2_sat_rtp(double2);
5332ulong2 __ovld __cnfn convert_ulong2_sat_rtz(double2);
5333ulong3 __ovld __cnfn convert_ulong3(double3);
5334ulong3 __ovld __cnfn convert_ulong3_rte(double3);
5335ulong3 __ovld __cnfn convert_ulong3_rtn(double3);
5336ulong3 __ovld __cnfn convert_ulong3_rtp(double3);
5337ulong3 __ovld __cnfn convert_ulong3_rtz(double3);
5338ulong3 __ovld __cnfn convert_ulong3_sat(double3);
5339ulong3 __ovld __cnfn convert_ulong3_sat_rte(double3);
5340ulong3 __ovld __cnfn convert_ulong3_sat_rtn(double3);
5341ulong3 __ovld __cnfn convert_ulong3_sat_rtp(double3);
5342ulong3 __ovld __cnfn convert_ulong3_sat_rtz(double3);
5343ulong4 __ovld __cnfn convert_ulong4(double4);
5344ulong4 __ovld __cnfn convert_ulong4_rte(double4);
5345ulong4 __ovld __cnfn convert_ulong4_rtn(double4);
5346ulong4 __ovld __cnfn convert_ulong4_rtp(double4);
5347ulong4 __ovld __cnfn convert_ulong4_rtz(double4);
5348ulong4 __ovld __cnfn convert_ulong4_sat(double4);
5349ulong4 __ovld __cnfn convert_ulong4_sat_rte(double4);
5350ulong4 __ovld __cnfn convert_ulong4_sat_rtn(double4);
5351ulong4 __ovld __cnfn convert_ulong4_sat_rtp(double4);
5352ulong4 __ovld __cnfn convert_ulong4_sat_rtz(double4);
5353ulong8 __ovld __cnfn convert_ulong8(double8);
5354ulong8 __ovld __cnfn convert_ulong8_rte(double8);
5355ulong8 __ovld __cnfn convert_ulong8_rtn(double8);
5356ulong8 __ovld __cnfn convert_ulong8_rtp(double8);
5357ulong8 __ovld __cnfn convert_ulong8_rtz(double8);
5358ulong8 __ovld __cnfn convert_ulong8_sat(double8);
5359ulong8 __ovld __cnfn convert_ulong8_sat_rte(double8);
5360ulong8 __ovld __cnfn convert_ulong8_sat_rtn(double8);
5361ulong8 __ovld __cnfn convert_ulong8_sat_rtp(double8);
5362ulong8 __ovld __cnfn convert_ulong8_sat_rtz(double8);
5363ulong16 __ovld __cnfn convert_ulong16(double16);
5364ulong16 __ovld __cnfn convert_ulong16_rte(double16);
5365ulong16 __ovld __cnfn convert_ulong16_rtn(double16);
5366ulong16 __ovld __cnfn convert_ulong16_rtp(double16);
5367ulong16 __ovld __cnfn convert_ulong16_rtz(double16);
5368ulong16 __ovld __cnfn convert_ulong16_sat(double16);
5369ulong16 __ovld __cnfn convert_ulong16_sat_rte(double16);
5370ulong16 __ovld __cnfn convert_ulong16_sat_rtn(double16);
5371ulong16 __ovld __cnfn convert_ulong16_sat_rtp(double16);
5372ulong16 __ovld __cnfn convert_ulong16_sat_rtz(double16);
5373
5374float __ovld __cnfn convert_float(double);
5375float __ovld __cnfn convert_float_rte(double);
5376float __ovld __cnfn convert_float_rtn(double);
5377float __ovld __cnfn convert_float_rtp(double);
5378float __ovld __cnfn convert_float_rtz(double);
5379float2 __ovld __cnfn convert_float2(double2);
5380float2 __ovld __cnfn convert_float2_rte(double2);
5381float2 __ovld __cnfn convert_float2_rtn(double2);
5382float2 __ovld __cnfn convert_float2_rtp(double2);
5383float2 __ovld __cnfn convert_float2_rtz(double2);
5384float3 __ovld __cnfn convert_float3(double3);
5385float3 __ovld __cnfn convert_float3_rte(double3);
5386float3 __ovld __cnfn convert_float3_rtn(double3);
5387float3 __ovld __cnfn convert_float3_rtp(double3);
5388float3 __ovld __cnfn convert_float3_rtz(double3);
5389float4 __ovld __cnfn convert_float4(double4);
5390float4 __ovld __cnfn convert_float4_rte(double4);
5391float4 __ovld __cnfn convert_float4_rtn(double4);
5392float4 __ovld __cnfn convert_float4_rtp(double4);
5393float4 __ovld __cnfn convert_float4_rtz(double4);
5394float8 __ovld __cnfn convert_float8(double8);
5395float8 __ovld __cnfn convert_float8_rte(double8);
5396float8 __ovld __cnfn convert_float8_rtn(double8);
5397float8 __ovld __cnfn convert_float8_rtp(double8);
5398float8 __ovld __cnfn convert_float8_rtz(double8);
5399float16 __ovld __cnfn convert_float16(double16);
5400float16 __ovld __cnfn convert_float16_rte(double16);
5401float16 __ovld __cnfn convert_float16_rtn(double16);
5402float16 __ovld __cnfn convert_float16_rtp(double16);
5403float16 __ovld __cnfn convert_float16_rtz(double16);
5404
5405double __ovld __cnfn convert_double(char);
5406double __ovld __cnfn convert_double(double);
5407double __ovld __cnfn convert_double(float);
5408double __ovld __cnfn convert_double(int);
5409double __ovld __cnfn convert_double(long);
5410double __ovld __cnfn convert_double(short);
5411double __ovld __cnfn convert_double(uchar);
5412double __ovld __cnfn convert_double(uint);
5413double __ovld __cnfn convert_double(ulong);
5414double __ovld __cnfn convert_double(ushort);
5415double __ovld __cnfn convert_double_rte(char);
5416double __ovld __cnfn convert_double_rte(double);
5417double __ovld __cnfn convert_double_rte(float);
5418double __ovld __cnfn convert_double_rte(int);
5419double __ovld __cnfn convert_double_rte(long);
5420double __ovld __cnfn convert_double_rte(short);
5421double __ovld __cnfn convert_double_rte(uchar);
5422double __ovld __cnfn convert_double_rte(uint);
5423double __ovld __cnfn convert_double_rte(ulong);
5424double __ovld __cnfn convert_double_rte(ushort);
5425double __ovld __cnfn convert_double_rtn(char);
5426double __ovld __cnfn convert_double_rtn(double);
5427double __ovld __cnfn convert_double_rtn(float);
5428double __ovld __cnfn convert_double_rtn(int);
5429double __ovld __cnfn convert_double_rtn(long);
5430double __ovld __cnfn convert_double_rtn(short);
5431double __ovld __cnfn convert_double_rtn(uchar);
5432double __ovld __cnfn convert_double_rtn(uint);
5433double __ovld __cnfn convert_double_rtn(ulong);
5434double __ovld __cnfn convert_double_rtn(ushort);
5435double __ovld __cnfn convert_double_rtp(char);
5436double __ovld __cnfn convert_double_rtp(double);
5437double __ovld __cnfn convert_double_rtp(float);
5438double __ovld __cnfn convert_double_rtp(int);
5439double __ovld __cnfn convert_double_rtp(long);
5440double __ovld __cnfn convert_double_rtp(short);
5441double __ovld __cnfn convert_double_rtp(uchar);
5442double __ovld __cnfn convert_double_rtp(uint);
5443double __ovld __cnfn convert_double_rtp(ulong);
5444double __ovld __cnfn convert_double_rtp(ushort);
5445double __ovld __cnfn convert_double_rtz(char);
5446double __ovld __cnfn convert_double_rtz(double);
5447double __ovld __cnfn convert_double_rtz(float);
5448double __ovld __cnfn convert_double_rtz(int);
5449double __ovld __cnfn convert_double_rtz(long);
5450double __ovld __cnfn convert_double_rtz(short);
5451double __ovld __cnfn convert_double_rtz(uchar);
5452double __ovld __cnfn convert_double_rtz(uint);
5453double __ovld __cnfn convert_double_rtz(ulong);
5454double __ovld __cnfn convert_double_rtz(ushort);
5455double2 __ovld __cnfn convert_double2(char2);
5456double2 __ovld __cnfn convert_double2(double2);
5457double2 __ovld __cnfn convert_double2(float2);
5458double2 __ovld __cnfn convert_double2(int2);
5459double2 __ovld __cnfn convert_double2(long2);
5460double2 __ovld __cnfn convert_double2(short2);
5461double2 __ovld __cnfn convert_double2(uchar2);
5462double2 __ovld __cnfn convert_double2(uint2);
5463double2 __ovld __cnfn convert_double2(ulong2);
5464double2 __ovld __cnfn convert_double2(ushort2);
5465double2 __ovld __cnfn convert_double2_rte(char2);
5466double2 __ovld __cnfn convert_double2_rte(double2);
5467double2 __ovld __cnfn convert_double2_rte(float2);
5468double2 __ovld __cnfn convert_double2_rte(int2);
5469double2 __ovld __cnfn convert_double2_rte(long2);
5470double2 __ovld __cnfn convert_double2_rte(short2);
5471double2 __ovld __cnfn convert_double2_rte(uchar2);
5472double2 __ovld __cnfn convert_double2_rte(uint2);
5473double2 __ovld __cnfn convert_double2_rte(ulong2);
5474double2 __ovld __cnfn convert_double2_rte(ushort2);
5475double2 __ovld __cnfn convert_double2_rtn(char2);
5476double2 __ovld __cnfn convert_double2_rtn(double2);
5477double2 __ovld __cnfn convert_double2_rtn(float2);
5478double2 __ovld __cnfn convert_double2_rtn(int2);
5479double2 __ovld __cnfn convert_double2_rtn(long2);
5480double2 __ovld __cnfn convert_double2_rtn(short2);
5481double2 __ovld __cnfn convert_double2_rtn(uchar2);
5482double2 __ovld __cnfn convert_double2_rtn(uint2);
5483double2 __ovld __cnfn convert_double2_rtn(ulong2);
5484double2 __ovld __cnfn convert_double2_rtn(ushort2);
5485double2 __ovld __cnfn convert_double2_rtp(char2);
5486double2 __ovld __cnfn convert_double2_rtp(double2);
5487double2 __ovld __cnfn convert_double2_rtp(float2);
5488double2 __ovld __cnfn convert_double2_rtp(int2);
5489double2 __ovld __cnfn convert_double2_rtp(long2);
5490double2 __ovld __cnfn convert_double2_rtp(short2);
5491double2 __ovld __cnfn convert_double2_rtp(uchar2);
5492double2 __ovld __cnfn convert_double2_rtp(uint2);
5493double2 __ovld __cnfn convert_double2_rtp(ulong2);
5494double2 __ovld __cnfn convert_double2_rtp(ushort2);
5495double2 __ovld __cnfn convert_double2_rtz(char2);
5496double2 __ovld __cnfn convert_double2_rtz(double2);
5497double2 __ovld __cnfn convert_double2_rtz(float2);
5498double2 __ovld __cnfn convert_double2_rtz(int2);
5499double2 __ovld __cnfn convert_double2_rtz(long2);
5500double2 __ovld __cnfn convert_double2_rtz(short2);
5501double2 __ovld __cnfn convert_double2_rtz(uchar2);
5502double2 __ovld __cnfn convert_double2_rtz(uint2);
5503double2 __ovld __cnfn convert_double2_rtz(ulong2);
5504double2 __ovld __cnfn convert_double2_rtz(ushort2);
5505double3 __ovld __cnfn convert_double3(char3);
5506double3 __ovld __cnfn convert_double3(double3);
5507double3 __ovld __cnfn convert_double3(float3);
5508double3 __ovld __cnfn convert_double3(int3);
5509double3 __ovld __cnfn convert_double3(long3);
5510double3 __ovld __cnfn convert_double3(short3);
5511double3 __ovld __cnfn convert_double3(uchar3);
5512double3 __ovld __cnfn convert_double3(uint3);
5513double3 __ovld __cnfn convert_double3(ulong3);
5514double3 __ovld __cnfn convert_double3(ushort3);
5515double3 __ovld __cnfn convert_double3_rte(char3);
5516double3 __ovld __cnfn convert_double3_rte(double3);
5517double3 __ovld __cnfn convert_double3_rte(float3);
5518double3 __ovld __cnfn convert_double3_rte(int3);
5519double3 __ovld __cnfn convert_double3_rte(long3);
5520double3 __ovld __cnfn convert_double3_rte(short3);
5521double3 __ovld __cnfn convert_double3_rte(uchar3);
5522double3 __ovld __cnfn convert_double3_rte(uint3);
5523double3 __ovld __cnfn convert_double3_rte(ulong3);
5524double3 __ovld __cnfn convert_double3_rte(ushort3);
5525double3 __ovld __cnfn convert_double3_rtn(char3);
5526double3 __ovld __cnfn convert_double3_rtn(double3);
5527double3 __ovld __cnfn convert_double3_rtn(float3);
5528double3 __ovld __cnfn convert_double3_rtn(int3);
5529double3 __ovld __cnfn convert_double3_rtn(long3);
5530double3 __ovld __cnfn convert_double3_rtn(short3);
5531double3 __ovld __cnfn convert_double3_rtn(uchar3);
5532double3 __ovld __cnfn convert_double3_rtn(uint3);
5533double3 __ovld __cnfn convert_double3_rtn(ulong3);
5534double3 __ovld __cnfn convert_double3_rtn(ushort3);
5535double3 __ovld __cnfn convert_double3_rtp(char3);
5536double3 __ovld __cnfn convert_double3_rtp(double3);
5537double3 __ovld __cnfn convert_double3_rtp(float3);
5538double3 __ovld __cnfn convert_double3_rtp(int3);
5539double3 __ovld __cnfn convert_double3_rtp(long3);
5540double3 __ovld __cnfn convert_double3_rtp(short3);
5541double3 __ovld __cnfn convert_double3_rtp(uchar3);
5542double3 __ovld __cnfn convert_double3_rtp(uint3);
5543double3 __ovld __cnfn convert_double3_rtp(ulong3);
5544double3 __ovld __cnfn convert_double3_rtp(ushort3);
5545double3 __ovld __cnfn convert_double3_rtz(char3);
5546double3 __ovld __cnfn convert_double3_rtz(double3);
5547double3 __ovld __cnfn convert_double3_rtz(float3);
5548double3 __ovld __cnfn convert_double3_rtz(int3);
5549double3 __ovld __cnfn convert_double3_rtz(long3);
5550double3 __ovld __cnfn convert_double3_rtz(short3);
5551double3 __ovld __cnfn convert_double3_rtz(uchar3);
5552double3 __ovld __cnfn convert_double3_rtz(uint3);
5553double3 __ovld __cnfn convert_double3_rtz(ulong3);
5554double3 __ovld __cnfn convert_double3_rtz(ushort3);
5555double4 __ovld __cnfn convert_double4(char4);
5556double4 __ovld __cnfn convert_double4(double4);
5557double4 __ovld __cnfn convert_double4(float4);
5558double4 __ovld __cnfn convert_double4(int4);
5559double4 __ovld __cnfn convert_double4(long4);
5560double4 __ovld __cnfn convert_double4(short4);
5561double4 __ovld __cnfn convert_double4(uchar4);
5562double4 __ovld __cnfn convert_double4(uint4);
5563double4 __ovld __cnfn convert_double4(ulong4);
5564double4 __ovld __cnfn convert_double4(ushort4);
5565double4 __ovld __cnfn convert_double4_rte(char4);
5566double4 __ovld __cnfn convert_double4_rte(double4);
5567double4 __ovld __cnfn convert_double4_rte(float4);
5568double4 __ovld __cnfn convert_double4_rte(int4);
5569double4 __ovld __cnfn convert_double4_rte(long4);
5570double4 __ovld __cnfn convert_double4_rte(short4);
5571double4 __ovld __cnfn convert_double4_rte(uchar4);
5572double4 __ovld __cnfn convert_double4_rte(uint4);
5573double4 __ovld __cnfn convert_double4_rte(ulong4);
5574double4 __ovld __cnfn convert_double4_rte(ushort4);
5575double4 __ovld __cnfn convert_double4_rtn(char4);
5576double4 __ovld __cnfn convert_double4_rtn(double4);
5577double4 __ovld __cnfn convert_double4_rtn(float4);
5578double4 __ovld __cnfn convert_double4_rtn(int4);
5579double4 __ovld __cnfn convert_double4_rtn(long4);
5580double4 __ovld __cnfn convert_double4_rtn(short4);
5581double4 __ovld __cnfn convert_double4_rtn(uchar4);
5582double4 __ovld __cnfn convert_double4_rtn(uint4);
5583double4 __ovld __cnfn convert_double4_rtn(ulong4);
5584double4 __ovld __cnfn convert_double4_rtn(ushort4);
5585double4 __ovld __cnfn convert_double4_rtp(char4);
5586double4 __ovld __cnfn convert_double4_rtp(double4);
5587double4 __ovld __cnfn convert_double4_rtp(float4);
5588double4 __ovld __cnfn convert_double4_rtp(int4);
5589double4 __ovld __cnfn convert_double4_rtp(long4);
5590double4 __ovld __cnfn convert_double4_rtp(short4);
5591double4 __ovld __cnfn convert_double4_rtp(uchar4);
5592double4 __ovld __cnfn convert_double4_rtp(uint4);
5593double4 __ovld __cnfn convert_double4_rtp(ulong4);
5594double4 __ovld __cnfn convert_double4_rtp(ushort4);
5595double4 __ovld __cnfn convert_double4_rtz(char4);
5596double4 __ovld __cnfn convert_double4_rtz(double4);
5597double4 __ovld __cnfn convert_double4_rtz(float4);
5598double4 __ovld __cnfn convert_double4_rtz(int4);
5599double4 __ovld __cnfn convert_double4_rtz(long4);
5600double4 __ovld __cnfn convert_double4_rtz(short4);
5601double4 __ovld __cnfn convert_double4_rtz(uchar4);
5602double4 __ovld __cnfn convert_double4_rtz(uint4);
5603double4 __ovld __cnfn convert_double4_rtz(ulong4);
5604double4 __ovld __cnfn convert_double4_rtz(ushort4);
5605double8 __ovld __cnfn convert_double8(char8);
5606double8 __ovld __cnfn convert_double8(double8);
5607double8 __ovld __cnfn convert_double8(float8);
5608double8 __ovld __cnfn convert_double8(int8);
5609double8 __ovld __cnfn convert_double8(long8);
5610double8 __ovld __cnfn convert_double8(short8);
5611double8 __ovld __cnfn convert_double8(uchar8);
5612double8 __ovld __cnfn convert_double8(uint8);
5613double8 __ovld __cnfn convert_double8(ulong8);
5614double8 __ovld __cnfn convert_double8(ushort8);
5615double8 __ovld __cnfn convert_double8_rte(char8);
5616double8 __ovld __cnfn convert_double8_rte(double8);
5617double8 __ovld __cnfn convert_double8_rte(float8);
5618double8 __ovld __cnfn convert_double8_rte(int8);
5619double8 __ovld __cnfn convert_double8_rte(long8);
5620double8 __ovld __cnfn convert_double8_rte(short8);
5621double8 __ovld __cnfn convert_double8_rte(uchar8);
5622double8 __ovld __cnfn convert_double8_rte(uint8);
5623double8 __ovld __cnfn convert_double8_rte(ulong8);
5624double8 __ovld __cnfn convert_double8_rte(ushort8);
5625double8 __ovld __cnfn convert_double8_rtn(char8);
5626double8 __ovld __cnfn convert_double8_rtn(double8);
5627double8 __ovld __cnfn convert_double8_rtn(float8);
5628double8 __ovld __cnfn convert_double8_rtn(int8);
5629double8 __ovld __cnfn convert_double8_rtn(long8);
5630double8 __ovld __cnfn convert_double8_rtn(short8);
5631double8 __ovld __cnfn convert_double8_rtn(uchar8);
5632double8 __ovld __cnfn convert_double8_rtn(uint8);
5633double8 __ovld __cnfn convert_double8_rtn(ulong8);
5634double8 __ovld __cnfn convert_double8_rtn(ushort8);
5635double8 __ovld __cnfn convert_double8_rtp(char8);
5636double8 __ovld __cnfn convert_double8_rtp(double8);
5637double8 __ovld __cnfn convert_double8_rtp(float8);
5638double8 __ovld __cnfn convert_double8_rtp(int8);
5639double8 __ovld __cnfn convert_double8_rtp(long8);
5640double8 __ovld __cnfn convert_double8_rtp(short8);
5641double8 __ovld __cnfn convert_double8_rtp(uchar8);
5642double8 __ovld __cnfn convert_double8_rtp(uint8);
5643double8 __ovld __cnfn convert_double8_rtp(ulong8);
5644double8 __ovld __cnfn convert_double8_rtp(ushort8);
5645double8 __ovld __cnfn convert_double8_rtz(char8);
5646double8 __ovld __cnfn convert_double8_rtz(double8);
5647double8 __ovld __cnfn convert_double8_rtz(float8);
5648double8 __ovld __cnfn convert_double8_rtz(int8);
5649double8 __ovld __cnfn convert_double8_rtz(long8);
5650double8 __ovld __cnfn convert_double8_rtz(short8);
5651double8 __ovld __cnfn convert_double8_rtz(uchar8);
5652double8 __ovld __cnfn convert_double8_rtz(uint8);
5653double8 __ovld __cnfn convert_double8_rtz(ulong8);
5654double8 __ovld __cnfn convert_double8_rtz(ushort8);
5655double16 __ovld __cnfn convert_double16(char16);
5656double16 __ovld __cnfn convert_double16(double16);
5657double16 __ovld __cnfn convert_double16(float16);
5658double16 __ovld __cnfn convert_double16(int16);
5659double16 __ovld __cnfn convert_double16(long16);
5660double16 __ovld __cnfn convert_double16(short16);
5661double16 __ovld __cnfn convert_double16(uchar16);
5662double16 __ovld __cnfn convert_double16(uint16);
5663double16 __ovld __cnfn convert_double16(ulong16);
5664double16 __ovld __cnfn convert_double16(ushort16);
5665double16 __ovld __cnfn convert_double16_rte(char16);
5666double16 __ovld __cnfn convert_double16_rte(double16);
5667double16 __ovld __cnfn convert_double16_rte(float16);
5668double16 __ovld __cnfn convert_double16_rte(int16);
5669double16 __ovld __cnfn convert_double16_rte(long16);
5670double16 __ovld __cnfn convert_double16_rte(short16);
5671double16 __ovld __cnfn convert_double16_rte(uchar16);
5672double16 __ovld __cnfn convert_double16_rte(uint16);
5673double16 __ovld __cnfn convert_double16_rte(ulong16);
5674double16 __ovld __cnfn convert_double16_rte(ushort16);
5675double16 __ovld __cnfn convert_double16_rtn(char16);
5676double16 __ovld __cnfn convert_double16_rtn(double16);
5677double16 __ovld __cnfn convert_double16_rtn(float16);
5678double16 __ovld __cnfn convert_double16_rtn(int16);
5679double16 __ovld __cnfn convert_double16_rtn(long16);
5680double16 __ovld __cnfn convert_double16_rtn(short16);
5681double16 __ovld __cnfn convert_double16_rtn(uchar16);
5682double16 __ovld __cnfn convert_double16_rtn(uint16);
5683double16 __ovld __cnfn convert_double16_rtn(ulong16);
5684double16 __ovld __cnfn convert_double16_rtn(ushort16);
5685double16 __ovld __cnfn convert_double16_rtp(char16);
5686double16 __ovld __cnfn convert_double16_rtp(double16);
5687double16 __ovld __cnfn convert_double16_rtp(float16);
5688double16 __ovld __cnfn convert_double16_rtp(int16);
5689double16 __ovld __cnfn convert_double16_rtp(long16);
5690double16 __ovld __cnfn convert_double16_rtp(short16);
5691double16 __ovld __cnfn convert_double16_rtp(uchar16);
5692double16 __ovld __cnfn convert_double16_rtp(uint16);
5693double16 __ovld __cnfn convert_double16_rtp(ulong16);
5694double16 __ovld __cnfn convert_double16_rtp(ushort16);
5695double16 __ovld __cnfn convert_double16_rtz(char16);
5696double16 __ovld __cnfn convert_double16_rtz(double16);
5697double16 __ovld __cnfn convert_double16_rtz(float16);
5698double16 __ovld __cnfn convert_double16_rtz(int16);
5699double16 __ovld __cnfn convert_double16_rtz(long16);
5700double16 __ovld __cnfn convert_double16_rtz(short16);
5701double16 __ovld __cnfn convert_double16_rtz(uchar16);
5702double16 __ovld __cnfn convert_double16_rtz(uint16);
5703double16 __ovld __cnfn convert_double16_rtz(ulong16);
5704double16 __ovld __cnfn convert_double16_rtz(ushort16);
5705#endif //cl_khr_fp64
5706
5707#ifdef cl_khr_fp16
5708// Convert half types to non-double types.
5709uchar __ovld __cnfn convert_uchar(half);
5710uchar __ovld __cnfn convert_uchar_rte(half);
5711uchar __ovld __cnfn convert_uchar_rtp(half);
5712uchar __ovld __cnfn convert_uchar_rtn(half);
5713uchar __ovld __cnfn convert_uchar_rtz(half);
5714uchar __ovld __cnfn convert_uchar_sat(half);
5715uchar __ovld __cnfn convert_uchar_sat_rte(half);
5716uchar __ovld __cnfn convert_uchar_sat_rtp(half);
5717uchar __ovld __cnfn convert_uchar_sat_rtn(half);
5718uchar __ovld __cnfn convert_uchar_sat_rtz(half);
5719uchar2 __ovld __cnfn convert_uchar2(half2);
5720uchar2 __ovld __cnfn convert_uchar2_rte(half2);
5721uchar2 __ovld __cnfn convert_uchar2_rtp(half2);
5722uchar2 __ovld __cnfn convert_uchar2_rtn(half2);
5723uchar2 __ovld __cnfn convert_uchar2_rtz(half2);
5724uchar2 __ovld __cnfn convert_uchar2_sat(half2);
5725uchar2 __ovld __cnfn convert_uchar2_sat_rte(half2);
5726uchar2 __ovld __cnfn convert_uchar2_sat_rtp(half2);
5727uchar2 __ovld __cnfn convert_uchar2_sat_rtn(half2);
5728uchar2 __ovld __cnfn convert_uchar2_sat_rtz(half2);
5729uchar3 __ovld __cnfn convert_uchar3(half3);
5730uchar3 __ovld __cnfn convert_uchar3_rte(half3);
5731uchar3 __ovld __cnfn convert_uchar3_rtp(half3);
5732uchar3 __ovld __cnfn convert_uchar3_rtn(half3);
5733uchar3 __ovld __cnfn convert_uchar3_rtz(half3);
5734uchar3 __ovld __cnfn convert_uchar3_sat(half3);
5735uchar3 __ovld __cnfn convert_uchar3_sat_rte(half3);
5736uchar3 __ovld __cnfn convert_uchar3_sat_rtp(half3);
5737uchar3 __ovld __cnfn convert_uchar3_sat_rtn(half3);
5738uchar3 __ovld __cnfn convert_uchar3_sat_rtz(half3);
5739uchar4 __ovld __cnfn convert_uchar4(half4);
5740uchar4 __ovld __cnfn convert_uchar4_rte(half4);
5741uchar4 __ovld __cnfn convert_uchar4_rtp(half4);
5742uchar4 __ovld __cnfn convert_uchar4_rtn(half4);
5743uchar4 __ovld __cnfn convert_uchar4_rtz(half4);
5744uchar4 __ovld __cnfn convert_uchar4_sat(half4);
5745uchar4 __ovld __cnfn convert_uchar4_sat_rte(half4);
5746uchar4 __ovld __cnfn convert_uchar4_sat_rtp(half4);
5747uchar4 __ovld __cnfn convert_uchar4_sat_rtn(half4);
5748uchar4 __ovld __cnfn convert_uchar4_sat_rtz(half4);
5749uchar8 __ovld __cnfn convert_uchar8(half8);
5750uchar8 __ovld __cnfn convert_uchar8_rte(half8);
5751uchar8 __ovld __cnfn convert_uchar8_rtp(half8);
5752uchar8 __ovld __cnfn convert_uchar8_rtn(half8);
5753uchar8 __ovld __cnfn convert_uchar8_rtz(half8);
5754uchar8 __ovld __cnfn convert_uchar8_sat(half8);
5755uchar8 __ovld __cnfn convert_uchar8_sat_rte(half8);
5756uchar8 __ovld __cnfn convert_uchar8_sat_rtp(half8);
5757uchar8 __ovld __cnfn convert_uchar8_sat_rtn(half8);
5758uchar8 __ovld __cnfn convert_uchar8_sat_rtz(half8);
5759uchar16 __ovld __cnfn convert_uchar16(half16);
5760uchar16 __ovld __cnfn convert_uchar16_rte(half16);
5761uchar16 __ovld __cnfn convert_uchar16_rtp(half16);
5762uchar16 __ovld __cnfn convert_uchar16_rtn(half16);
5763uchar16 __ovld __cnfn convert_uchar16_rtz(half16);
5764uchar16 __ovld __cnfn convert_uchar16_sat(half16);
5765uchar16 __ovld __cnfn convert_uchar16_sat_rte(half16);
5766uchar16 __ovld __cnfn convert_uchar16_sat_rtp(half16);
5767uchar16 __ovld __cnfn convert_uchar16_sat_rtn(half16);
5768uchar16 __ovld __cnfn convert_uchar16_sat_rtz(half16);
5769ushort __ovld __cnfn convert_ushort(half);
5770ushort __ovld __cnfn convert_ushort_rte(half);
5771ushort __ovld __cnfn convert_ushort_rtp(half);
5772ushort __ovld __cnfn convert_ushort_rtn(half);
5773ushort __ovld __cnfn convert_ushort_rtz(half);
5774ushort __ovld __cnfn convert_ushort_sat(half);
5775ushort __ovld __cnfn convert_ushort_sat_rte(half);
5776ushort __ovld __cnfn convert_ushort_sat_rtp(half);
5777ushort __ovld __cnfn convert_ushort_sat_rtn(half);
5778ushort __ovld __cnfn convert_ushort_sat_rtz(half);
5779ushort2 __ovld __cnfn convert_ushort2(half2);
5780ushort2 __ovld __cnfn convert_ushort2_rte(half2);
5781ushort2 __ovld __cnfn convert_ushort2_rtp(half2);
5782ushort2 __ovld __cnfn convert_ushort2_rtn(half2);
5783ushort2 __ovld __cnfn convert_ushort2_rtz(half2);
5784ushort2 __ovld __cnfn convert_ushort2_sat(half2);
5785ushort2 __ovld __cnfn convert_ushort2_sat_rte(half2);
5786ushort2 __ovld __cnfn convert_ushort2_sat_rtp(half2);
5787ushort2 __ovld __cnfn convert_ushort2_sat_rtn(half2);
5788ushort2 __ovld __cnfn convert_ushort2_sat_rtz(half2);
5789ushort3 __ovld __cnfn convert_ushort3(half3);
5790ushort3 __ovld __cnfn convert_ushort3_rte(half3);
5791ushort3 __ovld __cnfn convert_ushort3_rtp(half3);
5792ushort3 __ovld __cnfn convert_ushort3_rtn(half3);
5793ushort3 __ovld __cnfn convert_ushort3_rtz(half3);
5794ushort3 __ovld __cnfn convert_ushort3_sat(half3);
5795ushort3 __ovld __cnfn convert_ushort3_sat_rte(half3);
5796ushort3 __ovld __cnfn convert_ushort3_sat_rtp(half3);
5797ushort3 __ovld __cnfn convert_ushort3_sat_rtn(half3);
5798ushort3 __ovld __cnfn convert_ushort3_sat_rtz(half3);
5799ushort4 __ovld __cnfn convert_ushort4(half4);
5800ushort4 __ovld __cnfn convert_ushort4_rte(half4);
5801ushort4 __ovld __cnfn convert_ushort4_rtp(half4);
5802ushort4 __ovld __cnfn convert_ushort4_rtn(half4);
5803ushort4 __ovld __cnfn convert_ushort4_rtz(half4);
5804ushort4 __ovld __cnfn convert_ushort4_sat(half4);
5805ushort4 __ovld __cnfn convert_ushort4_sat_rte(half4);
5806ushort4 __ovld __cnfn convert_ushort4_sat_rtp(half4);
5807ushort4 __ovld __cnfn convert_ushort4_sat_rtn(half4);
5808ushort4 __ovld __cnfn convert_ushort4_sat_rtz(half4);
5809ushort8 __ovld __cnfn convert_ushort8(half8);
5810ushort8 __ovld __cnfn convert_ushort8_rte(half8);
5811ushort8 __ovld __cnfn convert_ushort8_rtp(half8);
5812ushort8 __ovld __cnfn convert_ushort8_rtn(half8);
5813ushort8 __ovld __cnfn convert_ushort8_rtz(half8);
5814ushort8 __ovld __cnfn convert_ushort8_sat(half8);
5815ushort8 __ovld __cnfn convert_ushort8_sat_rte(half8);
5816ushort8 __ovld __cnfn convert_ushort8_sat_rtp(half8);
5817ushort8 __ovld __cnfn convert_ushort8_sat_rtn(half8);
5818ushort8 __ovld __cnfn convert_ushort8_sat_rtz(half8);
5819ushort16 __ovld __cnfn convert_ushort16(half16);
5820ushort16 __ovld __cnfn convert_ushort16_rte(half16);
5821ushort16 __ovld __cnfn convert_ushort16_rtp(half16);
5822ushort16 __ovld __cnfn convert_ushort16_rtn(half16);
5823ushort16 __ovld __cnfn convert_ushort16_rtz(half16);
5824ushort16 __ovld __cnfn convert_ushort16_sat(half16);
5825ushort16 __ovld __cnfn convert_ushort16_sat_rte(half16);
5826ushort16 __ovld __cnfn convert_ushort16_sat_rtp(half16);
5827ushort16 __ovld __cnfn convert_ushort16_sat_rtn(half16);
5828ushort16 __ovld __cnfn convert_ushort16_sat_rtz(half16);
5829uint __ovld __cnfn convert_uint(half);
5830uint __ovld __cnfn convert_uint_rte(half);
5831uint __ovld __cnfn convert_uint_rtp(half);
5832uint __ovld __cnfn convert_uint_rtn(half);
5833uint __ovld __cnfn convert_uint_rtz(half);
5834uint __ovld __cnfn convert_uint_sat(half);
5835uint __ovld __cnfn convert_uint_sat_rte(half);
5836uint __ovld __cnfn convert_uint_sat_rtp(half);
5837uint __ovld __cnfn convert_uint_sat_rtn(half);
5838uint __ovld __cnfn convert_uint_sat_rtz(half);
5839uint2 __ovld __cnfn convert_uint2(half2);
5840uint2 __ovld __cnfn convert_uint2_rte(half2);
5841uint2 __ovld __cnfn convert_uint2_rtp(half2);
5842uint2 __ovld __cnfn convert_uint2_rtn(half2);
5843uint2 __ovld __cnfn convert_uint2_rtz(half2);
5844uint2 __ovld __cnfn convert_uint2_sat(half2);
5845uint2 __ovld __cnfn convert_uint2_sat_rte(half2);
5846uint2 __ovld __cnfn convert_uint2_sat_rtp(half2);
5847uint2 __ovld __cnfn convert_uint2_sat_rtn(half2);
5848uint2 __ovld __cnfn convert_uint2_sat_rtz(half2);
5849uint3 __ovld __cnfn convert_uint3(half3);
5850uint3 __ovld __cnfn convert_uint3_rte(half3);
5851uint3 __ovld __cnfn convert_uint3_rtp(half3);
5852uint3 __ovld __cnfn convert_uint3_rtn(half3);
5853uint3 __ovld __cnfn convert_uint3_rtz(half3);
5854uint3 __ovld __cnfn convert_uint3_sat(half3);
5855uint3 __ovld __cnfn convert_uint3_sat_rte(half3);
5856uint3 __ovld __cnfn convert_uint3_sat_rtp(half3);
5857uint3 __ovld __cnfn convert_uint3_sat_rtn(half3);
5858uint3 __ovld __cnfn convert_uint3_sat_rtz(half3);
5859uint4 __ovld __cnfn convert_uint4(half4);
5860uint4 __ovld __cnfn convert_uint4_rte(half4);
5861uint4 __ovld __cnfn convert_uint4_rtp(half4);
5862uint4 __ovld __cnfn convert_uint4_rtn(half4);
5863uint4 __ovld __cnfn convert_uint4_rtz(half4);
5864uint4 __ovld __cnfn convert_uint4_sat(half4);
5865uint4 __ovld __cnfn convert_uint4_sat_rte(half4);
5866uint4 __ovld __cnfn convert_uint4_sat_rtp(half4);
5867uint4 __ovld __cnfn convert_uint4_sat_rtn(half4);
5868uint4 __ovld __cnfn convert_uint4_sat_rtz(half4);
5869uint8 __ovld __cnfn convert_uint8(half8);
5870uint8 __ovld __cnfn convert_uint8_rte(half8);
5871uint8 __ovld __cnfn convert_uint8_rtp(half8);
5872uint8 __ovld __cnfn convert_uint8_rtn(half8);
5873uint8 __ovld __cnfn convert_uint8_rtz(half8);
5874uint8 __ovld __cnfn convert_uint8_sat(half8);
5875uint8 __ovld __cnfn convert_uint8_sat_rte(half8);
5876uint8 __ovld __cnfn convert_uint8_sat_rtp(half8);
5877uint8 __ovld __cnfn convert_uint8_sat_rtn(half8);
5878uint8 __ovld __cnfn convert_uint8_sat_rtz(half8);
5879uint16 __ovld __cnfn convert_uint16(half16);
5880uint16 __ovld __cnfn convert_uint16_rte(half16);
5881uint16 __ovld __cnfn convert_uint16_rtp(half16);
5882uint16 __ovld __cnfn convert_uint16_rtn(half16);
5883uint16 __ovld __cnfn convert_uint16_rtz(half16);
5884uint16 __ovld __cnfn convert_uint16_sat(half16);
5885uint16 __ovld __cnfn convert_uint16_sat_rte(half16);
5886uint16 __ovld __cnfn convert_uint16_sat_rtp(half16);
5887uint16 __ovld __cnfn convert_uint16_sat_rtn(half16);
5888uint16 __ovld __cnfn convert_uint16_sat_rtz(half16);
5889ulong __ovld __cnfn convert_ulong(half);
5890ulong __ovld __cnfn convert_ulong_rte(half);
5891ulong __ovld __cnfn convert_ulong_rtp(half);
5892ulong __ovld __cnfn convert_ulong_rtn(half);
5893ulong __ovld __cnfn convert_ulong_rtz(half);
5894ulong __ovld __cnfn convert_ulong_sat(half);
5895ulong __ovld __cnfn convert_ulong_sat_rte(half);
5896ulong __ovld __cnfn convert_ulong_sat_rtp(half);
5897ulong __ovld __cnfn convert_ulong_sat_rtn(half);
5898ulong __ovld __cnfn convert_ulong_sat_rtz(half);
5899ulong2 __ovld __cnfn convert_ulong2(half2);
5900ulong2 __ovld __cnfn convert_ulong2_rte(half2);
5901ulong2 __ovld __cnfn convert_ulong2_rtp(half2);
5902ulong2 __ovld __cnfn convert_ulong2_rtn(half2);
5903ulong2 __ovld __cnfn convert_ulong2_rtz(half2);
5904ulong2 __ovld __cnfn convert_ulong2_sat(half2);
5905ulong2 __ovld __cnfn convert_ulong2_sat_rte(half2);
5906ulong2 __ovld __cnfn convert_ulong2_sat_rtp(half2);
5907ulong2 __ovld __cnfn convert_ulong2_sat_rtn(half2);
5908ulong2 __ovld __cnfn convert_ulong2_sat_rtz(half2);
5909ulong3 __ovld __cnfn convert_ulong3(half3);
5910ulong3 __ovld __cnfn convert_ulong3_rte(half3);
5911ulong3 __ovld __cnfn convert_ulong3_rtp(half3);
5912ulong3 __ovld __cnfn convert_ulong3_rtn(half3);
5913ulong3 __ovld __cnfn convert_ulong3_rtz(half3);
5914ulong3 __ovld __cnfn convert_ulong3_sat(half3);
5915ulong3 __ovld __cnfn convert_ulong3_sat_rte(half3);
5916ulong3 __ovld __cnfn convert_ulong3_sat_rtp(half3);
5917ulong3 __ovld __cnfn convert_ulong3_sat_rtn(half3);
5918ulong3 __ovld __cnfn convert_ulong3_sat_rtz(half3);
5919ulong4 __ovld __cnfn convert_ulong4(half4);
5920ulong4 __ovld __cnfn convert_ulong4_rte(half4);
5921ulong4 __ovld __cnfn convert_ulong4_rtp(half4);
5922ulong4 __ovld __cnfn convert_ulong4_rtn(half4);
5923ulong4 __ovld __cnfn convert_ulong4_rtz(half4);
5924ulong4 __ovld __cnfn convert_ulong4_sat(half4);
5925ulong4 __ovld __cnfn convert_ulong4_sat_rte(half4);
5926ulong4 __ovld __cnfn convert_ulong4_sat_rtp(half4);
5927ulong4 __ovld __cnfn convert_ulong4_sat_rtn(half4);
5928ulong4 __ovld __cnfn convert_ulong4_sat_rtz(half4);
5929ulong8 __ovld __cnfn convert_ulong8(half8);
5930ulong8 __ovld __cnfn convert_ulong8_rte(half8);
5931ulong8 __ovld __cnfn convert_ulong8_rtp(half8);
5932ulong8 __ovld __cnfn convert_ulong8_rtn(half8);
5933ulong8 __ovld __cnfn convert_ulong8_rtz(half8);
5934ulong8 __ovld __cnfn convert_ulong8_sat(half8);
5935ulong8 __ovld __cnfn convert_ulong8_sat_rte(half8);
5936ulong8 __ovld __cnfn convert_ulong8_sat_rtp(half8);
5937ulong8 __ovld __cnfn convert_ulong8_sat_rtn(half8);
5938ulong8 __ovld __cnfn convert_ulong8_sat_rtz(half8);
5939ulong16 __ovld __cnfn convert_ulong16(half16);
5940ulong16 __ovld __cnfn convert_ulong16_rte(half16);
5941ulong16 __ovld __cnfn convert_ulong16_rtp(half16);
5942ulong16 __ovld __cnfn convert_ulong16_rtn(half16);
5943ulong16 __ovld __cnfn convert_ulong16_rtz(half16);
5944ulong16 __ovld __cnfn convert_ulong16_sat(half16);
5945ulong16 __ovld __cnfn convert_ulong16_sat_rte(half16);
5946ulong16 __ovld __cnfn convert_ulong16_sat_rtp(half16);
5947ulong16 __ovld __cnfn convert_ulong16_sat_rtn(half16);
5948ulong16 __ovld __cnfn convert_ulong16_sat_rtz(half16);
5949char __ovld __cnfn convert_char(half);
5950char __ovld __cnfn convert_char_rte(half);
5951char __ovld __cnfn convert_char_rtp(half);
5952char __ovld __cnfn convert_char_rtn(half);
5953char __ovld __cnfn convert_char_rtz(half);
5954char __ovld __cnfn convert_char_sat(half);
5955char __ovld __cnfn convert_char_sat_rte(half);
5956char __ovld __cnfn convert_char_sat_rtp(half);
5957char __ovld __cnfn convert_char_sat_rtn(half);
5958char __ovld __cnfn convert_char_sat_rtz(half);
5959char2 __ovld __cnfn convert_char2(half2);
5960char2 __ovld __cnfn convert_char2_rte(half2);
5961char2 __ovld __cnfn convert_char2_rtp(half2);
5962char2 __ovld __cnfn convert_char2_rtn(half2);
5963char2 __ovld __cnfn convert_char2_rtz(half2);
5964char2 __ovld __cnfn convert_char2_sat(half2);
5965char2 __ovld __cnfn convert_char2_sat_rte(half2);
5966char2 __ovld __cnfn convert_char2_sat_rtp(half2);
5967char2 __ovld __cnfn convert_char2_sat_rtn(half2);
5968char2 __ovld __cnfn convert_char2_sat_rtz(half2);
5969char3 __ovld __cnfn convert_char3(half3);
5970char3 __ovld __cnfn convert_char3_rte(half3);
5971char3 __ovld __cnfn convert_char3_rtp(half3);
5972char3 __ovld __cnfn convert_char3_rtn(half3);
5973char3 __ovld __cnfn convert_char3_rtz(half3);
5974char3 __ovld __cnfn convert_char3_sat(half3);
5975char3 __ovld __cnfn convert_char3_sat_rte(half3);
5976char3 __ovld __cnfn convert_char3_sat_rtp(half3);
5977char3 __ovld __cnfn convert_char3_sat_rtn(half3);
5978char3 __ovld __cnfn convert_char3_sat_rtz(half3);
5979char4 __ovld __cnfn convert_char4(half4);
5980char4 __ovld __cnfn convert_char4_rte(half4);
5981char4 __ovld __cnfn convert_char4_rtp(half4);
5982char4 __ovld __cnfn convert_char4_rtn(half4);
5983char4 __ovld __cnfn convert_char4_rtz(half4);
5984char4 __ovld __cnfn convert_char4_sat(half4);
5985char4 __ovld __cnfn convert_char4_sat_rte(half4);
5986char4 __ovld __cnfn convert_char4_sat_rtp(half4);
5987char4 __ovld __cnfn convert_char4_sat_rtn(half4);
5988char4 __ovld __cnfn convert_char4_sat_rtz(half4);
5989char8 __ovld __cnfn convert_char8(half8);
5990char8 __ovld __cnfn convert_char8_rte(half8);
5991char8 __ovld __cnfn convert_char8_rtp(half8);
5992char8 __ovld __cnfn convert_char8_rtn(half8);
5993char8 __ovld __cnfn convert_char8_rtz(half8);
5994char8 __ovld __cnfn convert_char8_sat(half8);
5995char8 __ovld __cnfn convert_char8_sat_rte(half8);
5996char8 __ovld __cnfn convert_char8_sat_rtp(half8);
5997char8 __ovld __cnfn convert_char8_sat_rtn(half8);
5998char8 __ovld __cnfn convert_char8_sat_rtz(half8);
5999char16 __ovld __cnfn convert_char16(half16);
6000char16 __ovld __cnfn convert_char16_rte(half16);
6001char16 __ovld __cnfn convert_char16_rtp(half16);
6002char16 __ovld __cnfn convert_char16_rtn(half16);
6003char16 __ovld __cnfn convert_char16_rtz(half16);
6004char16 __ovld __cnfn convert_char16_sat(half16);
6005char16 __ovld __cnfn convert_char16_sat_rte(half16);
6006char16 __ovld __cnfn convert_char16_sat_rtp(half16);
6007char16 __ovld __cnfn convert_char16_sat_rtn(half16);
6008char16 __ovld __cnfn convert_char16_sat_rtz(half16);
6009short __ovld __cnfn convert_short(half);
6010short __ovld __cnfn convert_short_rte(half);
6011short __ovld __cnfn convert_short_rtp(half);
6012short __ovld __cnfn convert_short_rtn(half);
6013short __ovld __cnfn convert_short_rtz(half);
6014short __ovld __cnfn convert_short_sat(half);
6015short __ovld __cnfn convert_short_sat_rte(half);
6016short __ovld __cnfn convert_short_sat_rtp(half);
6017short __ovld __cnfn convert_short_sat_rtn(half);
6018short __ovld __cnfn convert_short_sat_rtz(half);
6019short2 __ovld __cnfn convert_short2(half2);
6020short2 __ovld __cnfn convert_short2_rte(half2);
6021short2 __ovld __cnfn convert_short2_rtp(half2);
6022short2 __ovld __cnfn convert_short2_rtn(half2);
6023short2 __ovld __cnfn convert_short2_rtz(half2);
6024short2 __ovld __cnfn convert_short2_sat(half2);
6025short2 __ovld __cnfn convert_short2_sat_rte(half2);
6026short2 __ovld __cnfn convert_short2_sat_rtp(half2);
6027short2 __ovld __cnfn convert_short2_sat_rtn(half2);
6028short2 __ovld __cnfn convert_short2_sat_rtz(half2);
6029short3 __ovld __cnfn convert_short3(half3);
6030short3 __ovld __cnfn convert_short3_rte(half3);
6031short3 __ovld __cnfn convert_short3_rtp(half3);
6032short3 __ovld __cnfn convert_short3_rtn(half3);
6033short3 __ovld __cnfn convert_short3_rtz(half3);
6034short3 __ovld __cnfn convert_short3_sat(half3);
6035short3 __ovld __cnfn convert_short3_sat_rte(half3);
6036short3 __ovld __cnfn convert_short3_sat_rtp(half3);
6037short3 __ovld __cnfn convert_short3_sat_rtn(half3);
6038short3 __ovld __cnfn convert_short3_sat_rtz(half3);
6039short4 __ovld __cnfn convert_short4(half4);
6040short4 __ovld __cnfn convert_short4_rte(half4);
6041short4 __ovld __cnfn convert_short4_rtp(half4);
6042short4 __ovld __cnfn convert_short4_rtn(half4);
6043short4 __ovld __cnfn convert_short4_rtz(half4);
6044short4 __ovld __cnfn convert_short4_sat(half4);
6045short4 __ovld __cnfn convert_short4_sat_rte(half4);
6046short4 __ovld __cnfn convert_short4_sat_rtp(half4);
6047short4 __ovld __cnfn convert_short4_sat_rtn(half4);
6048short4 __ovld __cnfn convert_short4_sat_rtz(half4);
6049short8 __ovld __cnfn convert_short8(half8);
6050short8 __ovld __cnfn convert_short8_rte(half8);
6051short8 __ovld __cnfn convert_short8_rtp(half8);
6052short8 __ovld __cnfn convert_short8_rtn(half8);
6053short8 __ovld __cnfn convert_short8_rtz(half8);
6054short8 __ovld __cnfn convert_short8_sat(half8);
6055short8 __ovld __cnfn convert_short8_sat_rte(half8);
6056short8 __ovld __cnfn convert_short8_sat_rtp(half8);
6057short8 __ovld __cnfn convert_short8_sat_rtn(half8);
6058short8 __ovld __cnfn convert_short8_sat_rtz(half8);
6059short16 __ovld __cnfn convert_short16(half16);
6060short16 __ovld __cnfn convert_short16_rte(half16);
6061short16 __ovld __cnfn convert_short16_rtp(half16);
6062short16 __ovld __cnfn convert_short16_rtn(half16);
6063short16 __ovld __cnfn convert_short16_rtz(half16);
6064short16 __ovld __cnfn convert_short16_sat(half16);
6065short16 __ovld __cnfn convert_short16_sat_rte(half16);
6066short16 __ovld __cnfn convert_short16_sat_rtp(half16);
6067short16 __ovld __cnfn convert_short16_sat_rtn(half16);
6068short16 __ovld __cnfn convert_short16_sat_rtz(half16);
6069int __ovld __cnfn convert_int(half);
6070int __ovld __cnfn convert_int_rte(half);
6071int __ovld __cnfn convert_int_rtp(half);
6072int __ovld __cnfn convert_int_rtn(half);
6073int __ovld __cnfn convert_int_rtz(half);
6074int __ovld __cnfn convert_int_sat(half);
6075int __ovld __cnfn convert_int_sat_rte(half);
6076int __ovld __cnfn convert_int_sat_rtp(half);
6077int __ovld __cnfn convert_int_sat_rtn(half);
6078int __ovld __cnfn convert_int_sat_rtz(half);
6079int2 __ovld __cnfn convert_int2(half2);
6080int2 __ovld __cnfn convert_int2_rte(half2);
6081int2 __ovld __cnfn convert_int2_rtp(half2);
6082int2 __ovld __cnfn convert_int2_rtn(half2);
6083int2 __ovld __cnfn convert_int2_rtz(half2);
6084int2 __ovld __cnfn convert_int2_sat(half2);
6085int2 __ovld __cnfn convert_int2_sat_rte(half2);
6086int2 __ovld __cnfn convert_int2_sat_rtp(half2);
6087int2 __ovld __cnfn convert_int2_sat_rtn(half2);
6088int2 __ovld __cnfn convert_int2_sat_rtz(half2);
6089int3 __ovld __cnfn convert_int3(half3);
6090int3 __ovld __cnfn convert_int3_rte(half3);
6091int3 __ovld __cnfn convert_int3_rtp(half3);
6092int3 __ovld __cnfn convert_int3_rtn(half3);
6093int3 __ovld __cnfn convert_int3_rtz(half3);
6094int3 __ovld __cnfn convert_int3_sat(half3);
6095int3 __ovld __cnfn convert_int3_sat_rte(half3);
6096int3 __ovld __cnfn convert_int3_sat_rtp(half3);
6097int3 __ovld __cnfn convert_int3_sat_rtn(half3);
6098int3 __ovld __cnfn convert_int3_sat_rtz(half3);
6099int4 __ovld __cnfn convert_int4(half4);
6100int4 __ovld __cnfn convert_int4_rte(half4);
6101int4 __ovld __cnfn convert_int4_rtp(half4);
6102int4 __ovld __cnfn convert_int4_rtn(half4);
6103int4 __ovld __cnfn convert_int4_rtz(half4);
6104int4 __ovld __cnfn convert_int4_sat(half4);
6105int4 __ovld __cnfn convert_int4_sat_rte(half4);
6106int4 __ovld __cnfn convert_int4_sat_rtp(half4);
6107int4 __ovld __cnfn convert_int4_sat_rtn(half4);
6108int4 __ovld __cnfn convert_int4_sat_rtz(half4);
6109int8 __ovld __cnfn convert_int8(half8);
6110int8 __ovld __cnfn convert_int8_rte(half8);
6111int8 __ovld __cnfn convert_int8_rtp(half8);
6112int8 __ovld __cnfn convert_int8_rtn(half8);
6113int8 __ovld __cnfn convert_int8_rtz(half8);
6114int8 __ovld __cnfn convert_int8_sat(half8);
6115int8 __ovld __cnfn convert_int8_sat_rte(half8);
6116int8 __ovld __cnfn convert_int8_sat_rtp(half8);
6117int8 __ovld __cnfn convert_int8_sat_rtn(half8);
6118int8 __ovld __cnfn convert_int8_sat_rtz(half8);
6119int16 __ovld __cnfn convert_int16(half16);
6120int16 __ovld __cnfn convert_int16_rte(half16);
6121int16 __ovld __cnfn convert_int16_rtp(half16);
6122int16 __ovld __cnfn convert_int16_rtn(half16);
6123int16 __ovld __cnfn convert_int16_rtz(half16);
6124int16 __ovld __cnfn convert_int16_sat(half16);
6125int16 __ovld __cnfn convert_int16_sat_rte(half16);
6126int16 __ovld __cnfn convert_int16_sat_rtp(half16);
6127int16 __ovld __cnfn convert_int16_sat_rtn(half16);
6128int16 __ovld __cnfn convert_int16_sat_rtz(half16);
6129long __ovld __cnfn convert_long(half);
6130long __ovld __cnfn convert_long_rte(half);
6131long __ovld __cnfn convert_long_rtp(half);
6132long __ovld __cnfn convert_long_rtn(half);
6133long __ovld __cnfn convert_long_rtz(half);
6134long __ovld __cnfn convert_long_sat(half);
6135long __ovld __cnfn convert_long_sat_rte(half);
6136long __ovld __cnfn convert_long_sat_rtp(half);
6137long __ovld __cnfn convert_long_sat_rtn(half);
6138long __ovld __cnfn convert_long_sat_rtz(half);
6139long2 __ovld __cnfn convert_long2(half2);
6140long2 __ovld __cnfn convert_long2_rte(half2);
6141long2 __ovld __cnfn convert_long2_rtp(half2);
6142long2 __ovld __cnfn convert_long2_rtn(half2);
6143long2 __ovld __cnfn convert_long2_rtz(half2);
6144long2 __ovld __cnfn convert_long2_sat(half2);
6145long2 __ovld __cnfn convert_long2_sat_rte(half2);
6146long2 __ovld __cnfn convert_long2_sat_rtp(half2);
6147long2 __ovld __cnfn convert_long2_sat_rtn(half2);
6148long2 __ovld __cnfn convert_long2_sat_rtz(half2);
6149long3 __ovld __cnfn convert_long3(half3);
6150long3 __ovld __cnfn convert_long3_rte(half3);
6151long3 __ovld __cnfn convert_long3_rtp(half3);
6152long3 __ovld __cnfn convert_long3_rtn(half3);
6153long3 __ovld __cnfn convert_long3_rtz(half3);
6154long3 __ovld __cnfn convert_long3_sat(half3);
6155long3 __ovld __cnfn convert_long3_sat_rte(half3);
6156long3 __ovld __cnfn convert_long3_sat_rtp(half3);
6157long3 __ovld __cnfn convert_long3_sat_rtn(half3);
6158long3 __ovld __cnfn convert_long3_sat_rtz(half3);
6159long4 __ovld __cnfn convert_long4(half4);
6160long4 __ovld __cnfn convert_long4_rte(half4);
6161long4 __ovld __cnfn convert_long4_rtp(half4);
6162long4 __ovld __cnfn convert_long4_rtn(half4);
6163long4 __ovld __cnfn convert_long4_rtz(half4);
6164long4 __ovld __cnfn convert_long4_sat(half4);
6165long4 __ovld __cnfn convert_long4_sat_rte(half4);
6166long4 __ovld __cnfn convert_long4_sat_rtp(half4);
6167long4 __ovld __cnfn convert_long4_sat_rtn(half4);
6168long4 __ovld __cnfn convert_long4_sat_rtz(half4);
6169long8 __ovld __cnfn convert_long8(half8);
6170long8 __ovld __cnfn convert_long8_rte(half8);
6171long8 __ovld __cnfn convert_long8_rtp(half8);
6172long8 __ovld __cnfn convert_long8_rtn(half8);
6173long8 __ovld __cnfn convert_long8_rtz(half8);
6174long8 __ovld __cnfn convert_long8_sat(half8);
6175long8 __ovld __cnfn convert_long8_sat_rte(half8);
6176long8 __ovld __cnfn convert_long8_sat_rtp(half8);
6177long8 __ovld __cnfn convert_long8_sat_rtn(half8);
6178long8 __ovld __cnfn convert_long8_sat_rtz(half8);
6179long16 __ovld __cnfn convert_long16(half16);
6180long16 __ovld __cnfn convert_long16_rte(half16);
6181long16 __ovld __cnfn convert_long16_rtp(half16);
6182long16 __ovld __cnfn convert_long16_rtn(half16);
6183long16 __ovld __cnfn convert_long16_rtz(half16);
6184long16 __ovld __cnfn convert_long16_sat(half16);
6185long16 __ovld __cnfn convert_long16_sat_rte(half16);
6186long16 __ovld __cnfn convert_long16_sat_rtp(half16);
6187long16 __ovld __cnfn convert_long16_sat_rtn(half16);
6188long16 __ovld __cnfn convert_long16_sat_rtz(half16);
6189float __ovld __cnfn convert_float(half);
6190float __ovld __cnfn convert_float_rte(half);
6191float __ovld __cnfn convert_float_rtp(half);
6192float __ovld __cnfn convert_float_rtn(half);
6193float __ovld __cnfn convert_float_rtz(half);
6194float2 __ovld __cnfn convert_float2(half2);
6195float2 __ovld __cnfn convert_float2_rte(half2);
6196float2 __ovld __cnfn convert_float2_rtp(half2);
6197float2 __ovld __cnfn convert_float2_rtn(half2);
6198float2 __ovld __cnfn convert_float2_rtz(half2);
6199float3 __ovld __cnfn convert_float3(half3);
6200float3 __ovld __cnfn convert_float3_rte(half3);
6201float3 __ovld __cnfn convert_float3_rtp(half3);
6202float3 __ovld __cnfn convert_float3_rtn(half3);
6203float3 __ovld __cnfn convert_float3_rtz(half3);
6204float4 __ovld __cnfn convert_float4(half4);
6205float4 __ovld __cnfn convert_float4_rte(half4);
6206float4 __ovld __cnfn convert_float4_rtp(half4);
6207float4 __ovld __cnfn convert_float4_rtn(half4);
6208float4 __ovld __cnfn convert_float4_rtz(half4);
6209float8 __ovld __cnfn convert_float8(half8);
6210float8 __ovld __cnfn convert_float8_rte(half8);
6211float8 __ovld __cnfn convert_float8_rtp(half8);
6212float8 __ovld __cnfn convert_float8_rtn(half8);
6213float8 __ovld __cnfn convert_float8_rtz(half8);
6214float16 __ovld __cnfn convert_float16(half16);
6215float16 __ovld __cnfn convert_float16_rte(half16);
6216float16 __ovld __cnfn convert_float16_rtp(half16);
6217float16 __ovld __cnfn convert_float16_rtn(half16);
6218float16 __ovld __cnfn convert_float16_rtz(half16);
6219
6220// Convert non-double types to half types.
6221half __ovld __cnfn convert_half(uchar);
6222half __ovld __cnfn convert_half(ushort);
6223half __ovld __cnfn convert_half(uint);
6224half __ovld __cnfn convert_half(ulong);
6225half __ovld __cnfn convert_half(char);
6226half __ovld __cnfn convert_half(short);
6227half __ovld __cnfn convert_half(int);
6228half __ovld __cnfn convert_half(long);
6229half __ovld __cnfn convert_half(float);
6230half __ovld __cnfn convert_half(half);
6231half __ovld __cnfn convert_half_rte(uchar);
6232half __ovld __cnfn convert_half_rte(ushort);
6233half __ovld __cnfn convert_half_rte(uint);
6234half __ovld __cnfn convert_half_rte(ulong);
6235half __ovld __cnfn convert_half_rte(char);
6236half __ovld __cnfn convert_half_rte(short);
6237half __ovld __cnfn convert_half_rte(int);
6238half __ovld __cnfn convert_half_rte(long);
6239half __ovld __cnfn convert_half_rte(float);
6240half __ovld __cnfn convert_half_rte(half);
6241half __ovld __cnfn convert_half_rtp(uchar);
6242half __ovld __cnfn convert_half_rtp(ushort);
6243half __ovld __cnfn convert_half_rtp(uint);
6244half __ovld __cnfn convert_half_rtp(ulong);
6245half __ovld __cnfn convert_half_rtp(char);
6246half __ovld __cnfn convert_half_rtp(short);
6247half __ovld __cnfn convert_half_rtp(int);
6248half __ovld __cnfn convert_half_rtp(long);
6249half __ovld __cnfn convert_half_rtp(float);
6250half __ovld __cnfn convert_half_rtp(half);
6251half __ovld __cnfn convert_half_rtn(uchar);
6252half __ovld __cnfn convert_half_rtn(ushort);
6253half __ovld __cnfn convert_half_rtn(uint);
6254half __ovld __cnfn convert_half_rtn(ulong);
6255half __ovld __cnfn convert_half_rtn(char);
6256half __ovld __cnfn convert_half_rtn(short);
6257half __ovld __cnfn convert_half_rtn(int);
6258half __ovld __cnfn convert_half_rtn(long);
6259half __ovld __cnfn convert_half_rtn(float);
6260half __ovld __cnfn convert_half_rtn(half);
6261half __ovld __cnfn convert_half_rtz(uchar);
6262half __ovld __cnfn convert_half_rtz(ushort);
6263half __ovld __cnfn convert_half_rtz(uint);
6264half __ovld __cnfn convert_half_rtz(ulong);
6265half __ovld __cnfn convert_half_rtz(char);
6266half __ovld __cnfn convert_half_rtz(short);
6267half __ovld __cnfn convert_half_rtz(int);
6268half __ovld __cnfn convert_half_rtz(long);
6269half __ovld __cnfn convert_half_rtz(float);
6270half __ovld __cnfn convert_half_rtz(half);
6271half2 __ovld __cnfn convert_half2(char2);
6272half2 __ovld __cnfn convert_half2(uchar2);
6273half2 __ovld __cnfn convert_half2(short2);
6274half2 __ovld __cnfn convert_half2(ushort2);
6275half2 __ovld __cnfn convert_half2(int2);
6276half2 __ovld __cnfn convert_half2(uint2);
6277half2 __ovld __cnfn convert_half2(long2);
6278half2 __ovld __cnfn convert_half2(ulong2);
6279half2 __ovld __cnfn convert_half2(float2);
6280half2 __ovld __cnfn convert_half2(half2);
6281half2 __ovld __cnfn convert_half2_rte(char2);
6282half2 __ovld __cnfn convert_half2_rte(uchar2);
6283half2 __ovld __cnfn convert_half2_rte(short2);
6284half2 __ovld __cnfn convert_half2_rte(ushort2);
6285half2 __ovld __cnfn convert_half2_rte(int2);
6286half2 __ovld __cnfn convert_half2_rte(uint2);
6287half2 __ovld __cnfn convert_half2_rte(long2);
6288half2 __ovld __cnfn convert_half2_rte(ulong2);
6289half2 __ovld __cnfn convert_half2_rte(float2);
6290half2 __ovld __cnfn convert_half2_rte(half2);
6291half2 __ovld __cnfn convert_half2_rtp(char2);
6292half2 __ovld __cnfn convert_half2_rtp(uchar2);
6293half2 __ovld __cnfn convert_half2_rtp(short2);
6294half2 __ovld __cnfn convert_half2_rtp(ushort2);
6295half2 __ovld __cnfn convert_half2_rtp(int2);
6296half2 __ovld __cnfn convert_half2_rtp(uint2);
6297half2 __ovld __cnfn convert_half2_rtp(long2);
6298half2 __ovld __cnfn convert_half2_rtp(ulong2);
6299half2 __ovld __cnfn convert_half2_rtp(float2);
6300half2 __ovld __cnfn convert_half2_rtp(half2);
6301half2 __ovld __cnfn convert_half2_rtn(char2);
6302half2 __ovld __cnfn convert_half2_rtn(uchar2);
6303half2 __ovld __cnfn convert_half2_rtn(short2);
6304half2 __ovld __cnfn convert_half2_rtn(ushort2);
6305half2 __ovld __cnfn convert_half2_rtn(int2);
6306half2 __ovld __cnfn convert_half2_rtn(uint2);
6307half2 __ovld __cnfn convert_half2_rtn(long2);
6308half2 __ovld __cnfn convert_half2_rtn(ulong2);
6309half2 __ovld __cnfn convert_half2_rtn(float2);
6310half2 __ovld __cnfn convert_half2_rtn(half2);
6311half2 __ovld __cnfn convert_half2_rtz(char2);
6312half2 __ovld __cnfn convert_half2_rtz(uchar2);
6313half2 __ovld __cnfn convert_half2_rtz(short2);
6314half2 __ovld __cnfn convert_half2_rtz(ushort2);
6315half2 __ovld __cnfn convert_half2_rtz(int2);
6316half2 __ovld __cnfn convert_half2_rtz(uint2);
6317half2 __ovld __cnfn convert_half2_rtz(long2);
6318half2 __ovld __cnfn convert_half2_rtz(ulong2);
6319half2 __ovld __cnfn convert_half2_rtz(float2);
6320half2 __ovld __cnfn convert_half2_rtz(half2);
6321half3 __ovld __cnfn convert_half3(char3);
6322half3 __ovld __cnfn convert_half3(uchar3);
6323half3 __ovld __cnfn convert_half3(short3);
6324half3 __ovld __cnfn convert_half3(ushort3);
6325half3 __ovld __cnfn convert_half3(int3);
6326half3 __ovld __cnfn convert_half3(uint3);
6327half3 __ovld __cnfn convert_half3(long3);
6328half3 __ovld __cnfn convert_half3(ulong3);
6329half3 __ovld __cnfn convert_half3(float3);
6330half3 __ovld __cnfn convert_half3(half3);
6331half3 __ovld __cnfn convert_half3_rte(char3);
6332half3 __ovld __cnfn convert_half3_rte(uchar3);
6333half3 __ovld __cnfn convert_half3_rte(short3);
6334half3 __ovld __cnfn convert_half3_rte(ushort3);
6335half3 __ovld __cnfn convert_half3_rte(int3);
6336half3 __ovld __cnfn convert_half3_rte(uint3);
6337half3 __ovld __cnfn convert_half3_rte(long3);
6338half3 __ovld __cnfn convert_half3_rte(ulong3);
6339half3 __ovld __cnfn convert_half3_rte(float3);
6340half3 __ovld __cnfn convert_half3_rte(half3);
6341half3 __ovld __cnfn convert_half3_rtp(char3);
6342half3 __ovld __cnfn convert_half3_rtp(uchar3);
6343half3 __ovld __cnfn convert_half3_rtp(short3);
6344half3 __ovld __cnfn convert_half3_rtp(ushort3);
6345half3 __ovld __cnfn convert_half3_rtp(int3);
6346half3 __ovld __cnfn convert_half3_rtp(uint3);
6347half3 __ovld __cnfn convert_half3_rtp(long3);
6348half3 __ovld __cnfn convert_half3_rtp(ulong3);
6349half3 __ovld __cnfn convert_half3_rtp(float3);
6350half3 __ovld __cnfn convert_half3_rtp(half3);
6351half3 __ovld __cnfn convert_half3_rtn(char3);
6352half3 __ovld __cnfn convert_half3_rtn(uchar3);
6353half3 __ovld __cnfn convert_half3_rtn(short3);
6354half3 __ovld __cnfn convert_half3_rtn(ushort3);
6355half3 __ovld __cnfn convert_half3_rtn(int3);
6356half3 __ovld __cnfn convert_half3_rtn(uint3);
6357half3 __ovld __cnfn convert_half3_rtn(long3);
6358half3 __ovld __cnfn convert_half3_rtn(ulong3);
6359half3 __ovld __cnfn convert_half3_rtn(float3);
6360half3 __ovld __cnfn convert_half3_rtn(half3);
6361half3 __ovld __cnfn convert_half3_rtz(char3);
6362half3 __ovld __cnfn convert_half3_rtz(uchar3);
6363half3 __ovld __cnfn convert_half3_rtz(short3);
6364half3 __ovld __cnfn convert_half3_rtz(ushort3);
6365half3 __ovld __cnfn convert_half3_rtz(int3);
6366half3 __ovld __cnfn convert_half3_rtz(uint3);
6367half3 __ovld __cnfn convert_half3_rtz(long3);
6368half3 __ovld __cnfn convert_half3_rtz(ulong3);
6369half3 __ovld __cnfn convert_half3_rtz(float3);
6370half3 __ovld __cnfn convert_half3_rtz(half3);
6371half4 __ovld __cnfn convert_half4(char4);
6372half4 __ovld __cnfn convert_half4(uchar4);
6373half4 __ovld __cnfn convert_half4(short4);
6374half4 __ovld __cnfn convert_half4(ushort4);
6375half4 __ovld __cnfn convert_half4(int4);
6376half4 __ovld __cnfn convert_half4(uint4);
6377half4 __ovld __cnfn convert_half4(long4);
6378half4 __ovld __cnfn convert_half4(ulong4);
6379half4 __ovld __cnfn convert_half4(float4);
6380half4 __ovld __cnfn convert_half4(half4);
6381half4 __ovld __cnfn convert_half4_rte(char4);
6382half4 __ovld __cnfn convert_half4_rte(uchar4);
6383half4 __ovld __cnfn convert_half4_rte(short4);
6384half4 __ovld __cnfn convert_half4_rte(ushort4);
6385half4 __ovld __cnfn convert_half4_rte(int4);
6386half4 __ovld __cnfn convert_half4_rte(uint4);
6387half4 __ovld __cnfn convert_half4_rte(long4);
6388half4 __ovld __cnfn convert_half4_rte(ulong4);
6389half4 __ovld __cnfn convert_half4_rte(float4);
6390half4 __ovld __cnfn convert_half4_rte(half4);
6391half4 __ovld __cnfn convert_half4_rtp(char4);
6392half4 __ovld __cnfn convert_half4_rtp(uchar4);
6393half4 __ovld __cnfn convert_half4_rtp(short4);
6394half4 __ovld __cnfn convert_half4_rtp(ushort4);
6395half4 __ovld __cnfn convert_half4_rtp(int4);
6396half4 __ovld __cnfn convert_half4_rtp(uint4);
6397half4 __ovld __cnfn convert_half4_rtp(long4);
6398half4 __ovld __cnfn convert_half4_rtp(ulong4);
6399half4 __ovld __cnfn convert_half4_rtp(float4);
6400half4 __ovld __cnfn convert_half4_rtp(half4);
6401half4 __ovld __cnfn convert_half4_rtn(char4);
6402half4 __ovld __cnfn convert_half4_rtn(uchar4);
6403half4 __ovld __cnfn convert_half4_rtn(short4);
6404half4 __ovld __cnfn convert_half4_rtn(ushort4);
6405half4 __ovld __cnfn convert_half4_rtn(int4);
6406half4 __ovld __cnfn convert_half4_rtn(uint4);
6407half4 __ovld __cnfn convert_half4_rtn(long4);
6408half4 __ovld __cnfn convert_half4_rtn(ulong4);
6409half4 __ovld __cnfn convert_half4_rtn(float4);
6410half4 __ovld __cnfn convert_half4_rtn(half4);
6411half4 __ovld __cnfn convert_half4_rtz(char4);
6412half4 __ovld __cnfn convert_half4_rtz(uchar4);
6413half4 __ovld __cnfn convert_half4_rtz(short4);
6414half4 __ovld __cnfn convert_half4_rtz(ushort4);
6415half4 __ovld __cnfn convert_half4_rtz(int4);
6416half4 __ovld __cnfn convert_half4_rtz(uint4);
6417half4 __ovld __cnfn convert_half4_rtz(long4);
6418half4 __ovld __cnfn convert_half4_rtz(ulong4);
6419half4 __ovld __cnfn convert_half4_rtz(float4);
6420half4 __ovld __cnfn convert_half4_rtz(half4);
6421half8 __ovld __cnfn convert_half8(char8);
6422half8 __ovld __cnfn convert_half8(uchar8);
6423half8 __ovld __cnfn convert_half8(short8);
6424half8 __ovld __cnfn convert_half8(ushort8);
6425half8 __ovld __cnfn convert_half8(int8);
6426half8 __ovld __cnfn convert_half8(uint8);
6427half8 __ovld __cnfn convert_half8(long8);
6428half8 __ovld __cnfn convert_half8(ulong8);
6429half8 __ovld __cnfn convert_half8(float8);
6430half8 __ovld __cnfn convert_half8(half8);
6431half8 __ovld __cnfn convert_half8_rte(char8);
6432half8 __ovld __cnfn convert_half8_rte(uchar8);
6433half8 __ovld __cnfn convert_half8_rte(short8);
6434half8 __ovld __cnfn convert_half8_rte(ushort8);
6435half8 __ovld __cnfn convert_half8_rte(int8);
6436half8 __ovld __cnfn convert_half8_rte(uint8);
6437half8 __ovld __cnfn convert_half8_rte(long8);
6438half8 __ovld __cnfn convert_half8_rte(ulong8);
6439half8 __ovld __cnfn convert_half8_rte(float8);
6440half8 __ovld __cnfn convert_half8_rte(half8);
6441half8 __ovld __cnfn convert_half8_rtp(char8);
6442half8 __ovld __cnfn convert_half8_rtp(uchar8);
6443half8 __ovld __cnfn convert_half8_rtp(short8);
6444half8 __ovld __cnfn convert_half8_rtp(ushort8);
6445half8 __ovld __cnfn convert_half8_rtp(int8);
6446half8 __ovld __cnfn convert_half8_rtp(uint8);
6447half8 __ovld __cnfn convert_half8_rtp(long8);
6448half8 __ovld __cnfn convert_half8_rtp(ulong8);
6449half8 __ovld __cnfn convert_half8_rtp(float8);
6450half8 __ovld __cnfn convert_half8_rtp(half8);
6451half8 __ovld __cnfn convert_half8_rtn(char8);
6452half8 __ovld __cnfn convert_half8_rtn(uchar8);
6453half8 __ovld __cnfn convert_half8_rtn(short8);
6454half8 __ovld __cnfn convert_half8_rtn(ushort8);
6455half8 __ovld __cnfn convert_half8_rtn(int8);
6456half8 __ovld __cnfn convert_half8_rtn(uint8);
6457half8 __ovld __cnfn convert_half8_rtn(long8);
6458half8 __ovld __cnfn convert_half8_rtn(ulong8);
6459half8 __ovld __cnfn convert_half8_rtn(float8);
6460half8 __ovld __cnfn convert_half8_rtn(half8);
6461half8 __ovld __cnfn convert_half8_rtz(char8);
6462half8 __ovld __cnfn convert_half8_rtz(uchar8);
6463half8 __ovld __cnfn convert_half8_rtz(short8);
6464half8 __ovld __cnfn convert_half8_rtz(ushort8);
6465half8 __ovld __cnfn convert_half8_rtz(int8);
6466half8 __ovld __cnfn convert_half8_rtz(uint8);
6467half8 __ovld __cnfn convert_half8_rtz(long8);
6468half8 __ovld __cnfn convert_half8_rtz(ulong8);
6469half8 __ovld __cnfn convert_half8_rtz(float8);
6470half8 __ovld __cnfn convert_half8_rtz(half8);
6471half16 __ovld __cnfn convert_half16(char16);
6472half16 __ovld __cnfn convert_half16(uchar16);
6473half16 __ovld __cnfn convert_half16(short16);
6474half16 __ovld __cnfn convert_half16(ushort16);
6475half16 __ovld __cnfn convert_half16(int16);
6476half16 __ovld __cnfn convert_half16(uint16);
6477half16 __ovld __cnfn convert_half16(long16);
6478half16 __ovld __cnfn convert_half16(ulong16);
6479half16 __ovld __cnfn convert_half16(float16);
6480half16 __ovld __cnfn convert_half16(half16);
6481half16 __ovld __cnfn convert_half16_rte(char16);
6482half16 __ovld __cnfn convert_half16_rte(uchar16);
6483half16 __ovld __cnfn convert_half16_rte(short16);
6484half16 __ovld __cnfn convert_half16_rte(ushort16);
6485half16 __ovld __cnfn convert_half16_rte(int16);
6486half16 __ovld __cnfn convert_half16_rte(uint16);
6487half16 __ovld __cnfn convert_half16_rte(long16);
6488half16 __ovld __cnfn convert_half16_rte(ulong16);
6489half16 __ovld __cnfn convert_half16_rte(float16);
6490half16 __ovld __cnfn convert_half16_rte(half16);
6491half16 __ovld __cnfn convert_half16_rtp(char16);
6492half16 __ovld __cnfn convert_half16_rtp(uchar16);
6493half16 __ovld __cnfn convert_half16_rtp(short16);
6494half16 __ovld __cnfn convert_half16_rtp(ushort16);
6495half16 __ovld __cnfn convert_half16_rtp(int16);
6496half16 __ovld __cnfn convert_half16_rtp(uint16);
6497half16 __ovld __cnfn convert_half16_rtp(long16);
6498half16 __ovld __cnfn convert_half16_rtp(ulong16);
6499half16 __ovld __cnfn convert_half16_rtp(float16);
6500half16 __ovld __cnfn convert_half16_rtp(half16);
6501half16 __ovld __cnfn convert_half16_rtn(char16);
6502half16 __ovld __cnfn convert_half16_rtn(uchar16);
6503half16 __ovld __cnfn convert_half16_rtn(short16);
6504half16 __ovld __cnfn convert_half16_rtn(ushort16);
6505half16 __ovld __cnfn convert_half16_rtn(int16);
6506half16 __ovld __cnfn convert_half16_rtn(uint16);
6507half16 __ovld __cnfn convert_half16_rtn(long16);
6508half16 __ovld __cnfn convert_half16_rtn(ulong16);
6509half16 __ovld __cnfn convert_half16_rtn(float16);
6510half16 __ovld __cnfn convert_half16_rtn(half16);
6511half16 __ovld __cnfn convert_half16_rtz(char16);
6512half16 __ovld __cnfn convert_half16_rtz(uchar16);
6513half16 __ovld __cnfn convert_half16_rtz(short16);
6514half16 __ovld __cnfn convert_half16_rtz(ushort16);
6515half16 __ovld __cnfn convert_half16_rtz(int16);
6516half16 __ovld __cnfn convert_half16_rtz(uint16);
6517half16 __ovld __cnfn convert_half16_rtz(long16);
6518half16 __ovld __cnfn convert_half16_rtz(ulong16);
6519half16 __ovld __cnfn convert_half16_rtz(float16);
6520half16 __ovld __cnfn convert_half16_rtz(half16);
6521
6522// Convert half types to double types.
6523#ifdef cl_khr_fp64
6524double __ovld __cnfn convert_double(half);
6525double __ovld __cnfn convert_double_rte(half);
6526double __ovld __cnfn convert_double_rtp(half);
6527double __ovld __cnfn convert_double_rtn(half);
6528double __ovld __cnfn convert_double_rtz(half);
6529double2 __ovld __cnfn convert_double2(half2);
6530double2 __ovld __cnfn convert_double2_rte(half2);
6531double2 __ovld __cnfn convert_double2_rtp(half2);
6532double2 __ovld __cnfn convert_double2_rtn(half2);
6533double2 __ovld __cnfn convert_double2_rtz(half2);
6534double3 __ovld __cnfn convert_double3(half3);
6535double3 __ovld __cnfn convert_double3_rte(half3);
6536double3 __ovld __cnfn convert_double3_rtp(half3);
6537double3 __ovld __cnfn convert_double3_rtn(half3);
6538double3 __ovld __cnfn convert_double3_rtz(half3);
6539double4 __ovld __cnfn convert_double4(half4);
6540double4 __ovld __cnfn convert_double4_rte(half4);
6541double4 __ovld __cnfn convert_double4_rtp(half4);
6542double4 __ovld __cnfn convert_double4_rtn(half4);
6543double4 __ovld __cnfn convert_double4_rtz(half4);
6544double8 __ovld __cnfn convert_double8(half8);
6545double8 __ovld __cnfn convert_double8_rte(half8);
6546double8 __ovld __cnfn convert_double8_rtp(half8);
6547double8 __ovld __cnfn convert_double8_rtn(half8);
6548double8 __ovld __cnfn convert_double8_rtz(half8);
6549double16 __ovld __cnfn convert_double16(half16);
6550double16 __ovld __cnfn convert_double16_rte(half16);
6551double16 __ovld __cnfn convert_double16_rtp(half16);
6552double16 __ovld __cnfn convert_double16_rtn(half16);
6553double16 __ovld __cnfn convert_double16_rtz(half16);
6554
6555// Convert double types to half types.
6556half __ovld __cnfn convert_half(double);
6557half __ovld __cnfn convert_half_rte(double);
6558half __ovld __cnfn convert_half_rtp(double);
6559half __ovld __cnfn convert_half_rtn(double);
6560half __ovld __cnfn convert_half_rtz(double);
6561half2 __ovld __cnfn convert_half2(double2);
6562half2 __ovld __cnfn convert_half2_rte(double2);
6563half2 __ovld __cnfn convert_half2_rtp(double2);
6564half2 __ovld __cnfn convert_half2_rtn(double2);
6565half2 __ovld __cnfn convert_half2_rtz(double2);
6566half3 __ovld __cnfn convert_half3(double3);
6567half3 __ovld __cnfn convert_half3_rte(double3);
6568half3 __ovld __cnfn convert_half3_rtp(double3);
6569half3 __ovld __cnfn convert_half3_rtn(double3);
6570half3 __ovld __cnfn convert_half3_rtz(double3);
6571half4 __ovld __cnfn convert_half4(double4);
6572half4 __ovld __cnfn convert_half4_rte(double4);
6573half4 __ovld __cnfn convert_half4_rtp(double4);
6574half4 __ovld __cnfn convert_half4_rtn(double4);
6575half4 __ovld __cnfn convert_half4_rtz(double4);
6576half8 __ovld __cnfn convert_half8(double8);
6577half8 __ovld __cnfn convert_half8_rte(double8);
6578half8 __ovld __cnfn convert_half8_rtp(double8);
6579half8 __ovld __cnfn convert_half8_rtn(double8);
6580half8 __ovld __cnfn convert_half8_rtz(double8);
6581half16 __ovld __cnfn convert_half16(double16);
6582half16 __ovld __cnfn convert_half16_rte(double16);
6583half16 __ovld __cnfn convert_half16_rtp(double16);
6584half16 __ovld __cnfn convert_half16_rtn(double16);
6585half16 __ovld __cnfn convert_half16_rtz(double16);
6586#endif //cl_khr_fp64
6587
6588#endif // cl_khr_fp16
6589
6590/**
6591 * OpenCL v1.1/1.2/2.0 s6.2.4.2 - as_type operators
6592 * Reinterprets a data type as another data type of the same size
6593 */
6594#define as_char(x) __builtin_astype((x),   char)
6595#define as_char2(x) __builtin_astype((x),  char2)
6596#define as_char3(x) __builtin_astype((x),  char3)
6597#define as_char4(x) __builtin_astype((x),  char4)
6598#define as_char8(x) __builtin_astype((x),  char8)
6599#define as_char16(x) __builtin_astype((x), char16)
6600
6601#define as_uchar(x) __builtin_astype((x),   uchar)
6602#define as_uchar2(x) __builtin_astype((x),  uchar2)
6603#define as_uchar3(x) __builtin_astype((x),  uchar3)
6604#define as_uchar4(x) __builtin_astype((x),  uchar4)
6605#define as_uchar8(x) __builtin_astype((x),  uchar8)
6606#define as_uchar16(x) __builtin_astype((x), uchar16)
6607
6608#define as_short(x) __builtin_astype((x),   short)
6609#define as_short2(x) __builtin_astype((x),  short2)
6610#define as_short3(x) __builtin_astype((x),  short3)
6611#define as_short4(x) __builtin_astype((x),  short4)
6612#define as_short8(x) __builtin_astype((x),  short8)
6613#define as_short16(x) __builtin_astype((x), short16)
6614
6615#define as_ushort(x) __builtin_astype((x),   ushort)
6616#define as_ushort2(x) __builtin_astype((x),  ushort2)
6617#define as_ushort3(x) __builtin_astype((x),  ushort3)
6618#define as_ushort4(x) __builtin_astype((x),  ushort4)
6619#define as_ushort8(x) __builtin_astype((x),  ushort8)
6620#define as_ushort16(x) __builtin_astype((x), ushort16)
6621
6622#define as_int(x) __builtin_astype((x),   int)
6623#define as_int2(x) __builtin_astype((x),  int2)
6624#define as_int3(x) __builtin_astype((x),  int3)
6625#define as_int4(x) __builtin_astype((x),  int4)
6626#define as_int8(x) __builtin_astype((x),  int8)
6627#define as_int16(x) __builtin_astype((x), int16)
6628
6629#define as_uint(x) __builtin_astype((x),   uint)
6630#define as_uint2(x) __builtin_astype((x),  uint2)
6631#define as_uint3(x) __builtin_astype((x),  uint3)
6632#define as_uint4(x) __builtin_astype((x),  uint4)
6633#define as_uint8(x) __builtin_astype((x),  uint8)
6634#define as_uint16(x) __builtin_astype((x), uint16)
6635
6636#define as_long(x) __builtin_astype((x),   long)
6637#define as_long2(x) __builtin_astype((x),  long2)
6638#define as_long3(x) __builtin_astype((x),  long3)
6639#define as_long4(x) __builtin_astype((x),  long4)
6640#define as_long8(x) __builtin_astype((x),  long8)
6641#define as_long16(x) __builtin_astype((x), long16)
6642
6643#define as_ulong(x) __builtin_astype((x),   ulong)
6644#define as_ulong2(x) __builtin_astype((x),  ulong2)
6645#define as_ulong3(x) __builtin_astype((x),  ulong3)
6646#define as_ulong4(x) __builtin_astype((x),  ulong4)
6647#define as_ulong8(x) __builtin_astype((x),  ulong8)
6648#define as_ulong16(x) __builtin_astype((x), ulong16)
6649
6650#define as_float(x) __builtin_astype((x),   float)
6651#define as_float2(x) __builtin_astype((x),  float2)
6652#define as_float3(x) __builtin_astype((x),  float3)
6653#define as_float4(x) __builtin_astype((x),  float4)
6654#define as_float8(x) __builtin_astype((x),  float8)
6655#define as_float16(x) __builtin_astype((x), float16)
6656
6657#ifdef cl_khr_fp64
6658#define as_double(x) __builtin_astype((x),   double)
6659#define as_double2(x) __builtin_astype((x),  double2)
6660#define as_double3(x) __builtin_astype((x),  double3)
6661#define as_double4(x) __builtin_astype((x),  double4)
6662#define as_double8(x) __builtin_astype((x),  double8)
6663#define as_double16(x) __builtin_astype((x), double16)
6664#endif //cl_khr_fp64
6665
6666#ifdef cl_khr_fp16
6667#define as_half(x) __builtin_astype((x),   half)
6668#define as_half2(x) __builtin_astype((x),  half2)
6669#define as_half3(x) __builtin_astype((x),  half3)
6670#define as_half4(x) __builtin_astype((x),  half4)
6671#define as_half8(x) __builtin_astype((x),  half8)
6672#define as_half16(x) __builtin_astype((x), half16)
6673#endif //cl_khr_fp16
6674
6675// OpenCL v1.1 s6.9, v1.2/2.0 s6.10 - Function qualifiers
6676
6677#define __kernel_exec(X, typen) __kernel \
6678 __attribute__((work_group_size_hint(X, 1, 1))) \
6679 __attribute__((vec_type_hint(typen)))
6680
6681#define kernel_exec(X, typen) __kernel \
6682 __attribute__((work_group_size_hint(X, 1, 1))) \
6683 __attribute__((vec_type_hint(typen)))
6684
6685// OpenCL v1.1 s6.11.1, v1.2 s6.12.1, v2.0 s6.13.1 - Work-item Functions
6686
6687/**
6688 * Returns the number of dimensions in use. This is the
6689 * value given to the work_dim argument specified in
6690 * clEnqueueNDRangeKernel.
6691 * For clEnqueueTask, this returns 1.
6692 */
6693uint __ovld __cnfn get_work_dim(void);
6694
6695/**
6696 * Returns the number of global work-items specified for
6697 * dimension identified by dimindx. This value is given by
6698 * the global_work_size argument to
6699 * clEnqueueNDRangeKernel. Valid values of dimindx
6700 * are 0 to get_work_dim() - 1. For other values of
6701 * dimindx, get_global_size() returns 1.
6702 * For clEnqueueTask, this always returns 1.
6703 */
6704size_t __ovld __cnfn get_global_size(uint dimindx);
6705
6706/**
6707 * Returns the unique global work-item ID value for
6708 * dimension identified by dimindx. The global work-item
6709 * ID specifies the work-item ID based on the number of
6710 * global work-items specified to execute the kernel. Valid
6711 * values of dimindx are 0 to get_work_dim() - 1. For
6712 * other values of dimindx, get_global_id() returns 0.
6713 * For clEnqueueTask, this returns 0.
6714 */
6715size_t __ovld __cnfn get_global_id(uint dimindx);
6716
6717/**
6718 * Returns the number of local work-items specified in
6719 * dimension identified by dimindx. This value is given by
6720 * the local_work_size argument to
6721 * clEnqueueNDRangeKernel if local_work_size is not
6722 * NULL; otherwise the OpenCL implementation chooses
6723 * an appropriate local_work_size value which is returned
6724 * by this function. Valid values of dimindx are 0 to
6725 * get_work_dim() - 1. For other values of dimindx,
6726 * get_local_size() returns 1.
6727 * For clEnqueueTask, this always returns 1.
6728 */
6729size_t __ovld __cnfn get_local_size(uint dimindx);
6730
6731/**
6732 * Returns the unique local work-item ID i.e. a work-item
6733 * within a specific work-group for dimension identified by
6734 * dimindx. Valid values of dimindx are 0 to
6735 * get_work_dim() - 1. For other values of dimindx,
6736 * get_local_id() returns 0.
6737 * For clEnqueueTask, this returns 0.
6738 */
6739size_t __ovld __cnfn get_local_id(uint dimindx);
6740
6741/**
6742 * Returns the number of work-groups that will execute a
6743 * kernel for dimension identified by dimindx.
6744 * Valid values of dimindx are 0 to get_work_dim() - 1.
6745 * For other values of dimindx, get_num_groups () returns
6746 * 1.
6747 * For clEnqueueTask, this always returns 1.
6748 */
6749size_t __ovld __cnfn get_num_groups(uint dimindx);
6750
6751/**
6752 * get_group_id returns the work-group ID which is a
6753 * number from 0 .. get_num_groups(dimindx) - 1.
6754 * Valid values of dimindx are 0 to get_work_dim() - 1.
6755 * For other values, get_group_id() returns 0.
6756 * For clEnqueueTask, this returns 0.
6757 */
6758size_t __ovld __cnfn get_group_id(uint dimindx);
6759
6760/**
6761 * get_global_offset returns the offset values specified in
6762 * global_work_offset argument to
6763 * clEnqueueNDRangeKernel.
6764 * Valid values of dimindx are 0 to get_work_dim() - 1.
6765 * For other values, get_global_offset() returns 0.
6766 * For clEnqueueTask, this returns 0.
6767 */
6768size_t __ovld __cnfn get_global_offset(uint dimindx);
6769
6770#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
6771size_t __ovld get_enqueued_local_size(uint dimindx);
6772size_t __ovld get_global_linear_id(void);
6773size_t __ovld get_local_linear_id(void);
6774#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
6775
6776// OpenCL v1.1 s6.11.2, v1.2 s6.12.2, v2.0 s6.13.2 - Math functions
6777
6778/**
6779 * Arc cosine function.
6780 */
6781float __ovld __cnfn acos(float);
6782float2 __ovld __cnfn acos(float2);
6783float3 __ovld __cnfn acos(float3);
6784float4 __ovld __cnfn acos(float4);
6785float8 __ovld __cnfn acos(float8);
6786float16 __ovld __cnfn acos(float16);
6787#ifdef cl_khr_fp64
6788double __ovld __cnfn acos(double);
6789double2 __ovld __cnfn acos(double2);
6790double3 __ovld __cnfn acos(double3);
6791double4 __ovld __cnfn acos(double4);
6792double8 __ovld __cnfn acos(double8);
6793double16 __ovld __cnfn acos(double16);
6794#endif //cl_khr_fp64
6795#ifdef cl_khr_fp16
6796half __ovld __cnfn acos(half);
6797half2 __ovld __cnfn acos(half2);
6798half3 __ovld __cnfn acos(half3);
6799half4 __ovld __cnfn acos(half4);
6800half8 __ovld __cnfn acos(half8);
6801half16 __ovld __cnfn acos(half16);
6802#endif //cl_khr_fp16
6803
6804/**
6805 * Inverse hyperbolic cosine.
6806 */
6807float __ovld __cnfn acosh(float);
6808float2 __ovld __cnfn acosh(float2);
6809float3 __ovld __cnfn acosh(float3);
6810float4 __ovld __cnfn acosh(float4);
6811float8 __ovld __cnfn acosh(float8);
6812float16 __ovld __cnfn acosh(float16);
6813#ifdef cl_khr_fp64
6814double __ovld __cnfn acosh(double);
6815double2 __ovld __cnfn acosh(double2);
6816double3 __ovld __cnfn acosh(double3);
6817double4 __ovld __cnfn acosh(double4);
6818double8 __ovld __cnfn acosh(double8);
6819double16 __ovld __cnfn acosh(double16);
6820#endif //cl_khr_fp64
6821#ifdef cl_khr_fp16
6822half __ovld __cnfn acosh(half);
6823half2 __ovld __cnfn acosh(half2);
6824half3 __ovld __cnfn acosh(half3);
6825half4 __ovld __cnfn acosh(half4);
6826half8 __ovld __cnfn acosh(half8);
6827half16 __ovld __cnfn acosh(half16);
6828#endif //cl_khr_fp16
6829
6830/**
6831 * Compute acos (x) / PI.
6832 */
6833float __ovld __cnfn acospi(float x);
6834float2 __ovld __cnfn acospi(float2 x);
6835float3 __ovld __cnfn acospi(float3 x);
6836float4 __ovld __cnfn acospi(float4 x);
6837float8 __ovld __cnfn acospi(float8 x);
6838float16 __ovld __cnfn acospi(float16 x);
6839#ifdef cl_khr_fp64
6840double __ovld __cnfn acospi(double x);
6841double2 __ovld __cnfn acospi(double2 x);
6842double3 __ovld __cnfn acospi(double3 x);
6843double4 __ovld __cnfn acospi(double4 x);
6844double8 __ovld __cnfn acospi(double8 x);
6845double16 __ovld __cnfn acospi(double16 x);
6846#endif //cl_khr_fp64
6847#ifdef cl_khr_fp16
6848half __ovld __cnfn acospi(half x);
6849half2 __ovld __cnfn acospi(half2 x);
6850half3 __ovld __cnfn acospi(half3 x);
6851half4 __ovld __cnfn acospi(half4 x);
6852half8 __ovld __cnfn acospi(half8 x);
6853half16 __ovld __cnfn acospi(half16 x);
6854#endif //cl_khr_fp16
6855
6856/**
6857 * Arc sine function.
6858 */
6859float __ovld __cnfn asin(float);
6860float2 __ovld __cnfn asin(float2);
6861float3 __ovld __cnfn asin(float3);
6862float4 __ovld __cnfn asin(float4);
6863float8 __ovld __cnfn asin(float8);
6864float16 __ovld __cnfn asin(float16);
6865#ifdef cl_khr_fp64
6866double __ovld __cnfn asin(double);
6867double2 __ovld __cnfn asin(double2);
6868double3 __ovld __cnfn asin(double3);
6869double4 __ovld __cnfn asin(double4);
6870double8 __ovld __cnfn asin(double8);
6871double16 __ovld __cnfn asin(double16);
6872#endif //cl_khr_fp64
6873#ifdef cl_khr_fp16
6874half __ovld __cnfn asin(half);
6875half2 __ovld __cnfn asin(half2);
6876half3 __ovld __cnfn asin(half3);
6877half4 __ovld __cnfn asin(half4);
6878half8 __ovld __cnfn asin(half8);
6879half16 __ovld __cnfn asin(half16);
6880#endif //cl_khr_fp16
6881
6882/**
6883 * Inverse hyperbolic sine.
6884 */
6885float __ovld __cnfn asinh(float);
6886float2 __ovld __cnfn asinh(float2);
6887float3 __ovld __cnfn asinh(float3);
6888float4 __ovld __cnfn asinh(float4);
6889float8 __ovld __cnfn asinh(float8);
6890float16 __ovld __cnfn asinh(float16);
6891#ifdef cl_khr_fp64
6892double __ovld __cnfn asinh(double);
6893double2 __ovld __cnfn asinh(double2);
6894double3 __ovld __cnfn asinh(double3);
6895double4 __ovld __cnfn asinh(double4);
6896double8 __ovld __cnfn asinh(double8);
6897double16 __ovld __cnfn asinh(double16);
6898#endif //cl_khr_fp64
6899#ifdef cl_khr_fp16
6900half __ovld __cnfn asinh(half);
6901half2 __ovld __cnfn asinh(half2);
6902half3 __ovld __cnfn asinh(half3);
6903half4 __ovld __cnfn asinh(half4);
6904half8 __ovld __cnfn asinh(half8);
6905half16 __ovld __cnfn asinh(half16);
6906#endif //cl_khr_fp16
6907
6908/**
6909 * Compute asin (x) / PI.
6910 */
6911float __ovld __cnfn asinpi(float x);
6912float2 __ovld __cnfn asinpi(float2 x);
6913float3 __ovld __cnfn asinpi(float3 x);
6914float4 __ovld __cnfn asinpi(float4 x);
6915float8 __ovld __cnfn asinpi(float8 x);
6916float16 __ovld __cnfn asinpi(float16 x);
6917#ifdef cl_khr_fp64
6918double __ovld __cnfn asinpi(double x);
6919double2 __ovld __cnfn asinpi(double2 x);
6920double3 __ovld __cnfn asinpi(double3 x);
6921double4 __ovld __cnfn asinpi(double4 x);
6922double8 __ovld __cnfn asinpi(double8 x);
6923double16 __ovld __cnfn asinpi(double16 x);
6924#endif //cl_khr_fp64
6925#ifdef cl_khr_fp16
6926half __ovld __cnfn asinpi(half x);
6927half2 __ovld __cnfn asinpi(half2 x);
6928half3 __ovld __cnfn asinpi(half3 x);
6929half4 __ovld __cnfn asinpi(half4 x);
6930half8 __ovld __cnfn asinpi(half8 x);
6931half16 __ovld __cnfn asinpi(half16 x);
6932#endif //cl_khr_fp16
6933
6934/**
6935 * Arc tangent function.
6936 */
6937float __ovld __cnfn atan(float y_over_x);
6938float2 __ovld __cnfn atan(float2 y_over_x);
6939float3 __ovld __cnfn atan(float3 y_over_x);
6940float4 __ovld __cnfn atan(float4 y_over_x);
6941float8 __ovld __cnfn atan(float8 y_over_x);
6942float16 __ovld __cnfn atan(float16 y_over_x);
6943#ifdef cl_khr_fp64
6944double __ovld __cnfn atan(double y_over_x);
6945double2 __ovld __cnfn atan(double2 y_over_x);
6946double3 __ovld __cnfn atan(double3 y_over_x);
6947double4 __ovld __cnfn atan(double4 y_over_x);
6948double8 __ovld __cnfn atan(double8 y_over_x);
6949double16 __ovld __cnfn atan(double16 y_over_x);
6950#endif //cl_khr_fp64
6951#ifdef cl_khr_fp16
6952half __ovld __cnfn atan(half y_over_x);
6953half2 __ovld __cnfn atan(half2 y_over_x);
6954half3 __ovld __cnfn atan(half3 y_over_x);
6955half4 __ovld __cnfn atan(half4 y_over_x);
6956half8 __ovld __cnfn atan(half8 y_over_x);
6957half16 __ovld __cnfn atan(half16 y_over_x);
6958#endif //cl_khr_fp16
6959
6960/**
6961 * Arc tangent of y / x.
6962 */
6963float __ovld __cnfn atan2(float yfloat x);
6964float2 __ovld __cnfn atan2(float2 yfloat2 x);
6965float3 __ovld __cnfn atan2(float3 yfloat3 x);
6966float4 __ovld __cnfn atan2(float4 yfloat4 x);
6967float8 __ovld __cnfn atan2(float8 yfloat8 x);
6968float16 __ovld __cnfn atan2(float16 yfloat16 x);
6969#ifdef cl_khr_fp64
6970double __ovld __cnfn atan2(double y, double x);
6971double2 __ovld __cnfn atan2(double2 y, double2 x);
6972double3 __ovld __cnfn atan2(double3 y, double3 x);
6973double4 __ovld __cnfn atan2(double4 y, double4 x);
6974double8 __ovld __cnfn atan2(double8 y, double8 x);
6975double16 __ovld __cnfn atan2(double16 y, double16 x);
6976#endif //cl_khr_fp64
6977#ifdef cl_khr_fp16
6978half __ovld __cnfn atan2(half y, half x);
6979half2 __ovld __cnfn atan2(half2 y, half2 x);
6980half3 __ovld __cnfn atan2(half3 y, half3 x);
6981half4 __ovld __cnfn atan2(half4 y, half4 x);
6982half8 __ovld __cnfn atan2(half8 y, half8 x);
6983half16 __ovld __cnfn atan2(half16 y, half16 x);
6984#endif //cl_khr_fp16
6985
6986/**
6987 * Hyperbolic arc tangent.
6988 */
6989float __ovld __cnfn atanh(float);
6990float2 __ovld __cnfn atanh(float2);
6991float3 __ovld __cnfn atanh(float3);
6992float4 __ovld __cnfn atanh(float4);
6993float8 __ovld __cnfn atanh(float8);
6994float16 __ovld __cnfn atanh(float16);
6995#ifdef cl_khr_fp64
6996double __ovld __cnfn atanh(double);
6997double2 __ovld __cnfn atanh(double2);
6998double3 __ovld __cnfn atanh(double3);
6999double4 __ovld __cnfn atanh(double4);
7000double8 __ovld __cnfn atanh(double8);
7001double16 __ovld __cnfn atanh(double16);
7002#endif //cl_khr_fp64
7003#ifdef cl_khr_fp16
7004half __ovld __cnfn atanh(half);
7005half2 __ovld __cnfn atanh(half2);
7006half3 __ovld __cnfn atanh(half3);
7007half4 __ovld __cnfn atanh(half4);
7008half8 __ovld __cnfn atanh(half8);
7009half16 __ovld __cnfn atanh(half16);
7010#endif //cl_khr_fp16
7011
7012/**
7013 * Compute atan (x) / PI.
7014 */
7015float __ovld __cnfn atanpi(float x);
7016float2 __ovld __cnfn atanpi(float2 x);
7017float3 __ovld __cnfn atanpi(float3 x);
7018float4 __ovld __cnfn atanpi(float4 x);
7019float8 __ovld __cnfn atanpi(float8 x);
7020float16 __ovld __cnfn atanpi(float16 x);
7021#ifdef cl_khr_fp64
7022double __ovld __cnfn atanpi(double x);
7023double2 __ovld __cnfn atanpi(double2 x);
7024double3 __ovld __cnfn atanpi(double3 x);
7025double4 __ovld __cnfn atanpi(double4 x);
7026double8 __ovld __cnfn atanpi(double8 x);
7027double16 __ovld __cnfn atanpi(double16 x);
7028#endif //cl_khr_fp64
7029#ifdef cl_khr_fp16
7030half __ovld __cnfn atanpi(half x);
7031half2 __ovld __cnfn atanpi(half2 x);
7032half3 __ovld __cnfn atanpi(half3 x);
7033half4 __ovld __cnfn atanpi(half4 x);
7034half8 __ovld __cnfn atanpi(half8 x);
7035half16 __ovld __cnfn atanpi(half16 x);
7036#endif //cl_khr_fp16
7037
7038/**
7039 * Compute atan2 (y, x) / PI.
7040 */
7041float __ovld __cnfn atan2pi(float yfloat x);
7042float2 __ovld __cnfn atan2pi(float2 yfloat2 x);
7043float3 __ovld __cnfn atan2pi(float3 yfloat3 x);
7044float4 __ovld __cnfn atan2pi(float4 yfloat4 x);
7045float8 __ovld __cnfn atan2pi(float8 yfloat8 x);
7046float16 __ovld __cnfn atan2pi(float16 yfloat16 x);
7047#ifdef cl_khr_fp64
7048double __ovld __cnfn atan2pi(double y, double x);
7049double2 __ovld __cnfn atan2pi(double2 y, double2 x);
7050double3 __ovld __cnfn atan2pi(double3 y, double3 x);
7051double4 __ovld __cnfn atan2pi(double4 y, double4 x);
7052double8 __ovld __cnfn atan2pi(double8 y, double8 x);
7053double16 __ovld __cnfn atan2pi(double16 y, double16 x);
7054#endif //cl_khr_fp64
7055#ifdef cl_khr_fp16
7056half __ovld __cnfn atan2pi(half y, half x);
7057half2 __ovld __cnfn atan2pi(half2 y, half2 x);
7058half3 __ovld __cnfn atan2pi(half3 y, half3 x);
7059half4 __ovld __cnfn atan2pi(half4 y, half4 x);
7060half8 __ovld __cnfn atan2pi(half8 y, half8 x);
7061half16 __ovld __cnfn atan2pi(half16 y, half16 x);
7062#endif //cl_khr_fp16
7063
7064/**
7065 * Compute cube-root.
7066 */
7067float __ovld __cnfn cbrt(float);
7068float2 __ovld __cnfn cbrt(float2);
7069float3 __ovld __cnfn cbrt(float3);
7070float4 __ovld __cnfn cbrt(float4);
7071float8 __ovld __cnfn cbrt(float8);
7072float16 __ovld __cnfn cbrt(float16);
7073#ifdef cl_khr_fp64
7074double __ovld __cnfn cbrt(double);
7075double2 __ovld __cnfn cbrt(double2);
7076double3 __ovld __cnfn cbrt(double3);
7077double4 __ovld __cnfn cbrt(double4);
7078double8 __ovld __cnfn cbrt(double8);
7079double16 __ovld __cnfn cbrt(double16);
7080#endif //cl_khr_fp64
7081#ifdef cl_khr_fp16
7082half __ovld __cnfn cbrt(half);
7083half2 __ovld __cnfn cbrt(half2);
7084half3 __ovld __cnfn cbrt(half3);
7085half4 __ovld __cnfn cbrt(half4);
7086half8 __ovld __cnfn cbrt(half8);
7087half16 __ovld __cnfn cbrt(half16);
7088#endif //cl_khr_fp16
7089
7090/**
7091 * Round to integral value using the round to positive
7092 * infinity rounding mode.
7093 */
7094float __ovld __cnfn ceil(float);
7095float2 __ovld __cnfn ceil(float2);
7096float3 __ovld __cnfn ceil(float3);
7097float4 __ovld __cnfn ceil(float4);
7098float8 __ovld __cnfn ceil(float8);
7099float16 __ovld __cnfn ceil(float16);
7100#ifdef cl_khr_fp64
7101double __ovld __cnfn ceil(double);
7102double2 __ovld __cnfn ceil(double2);
7103double3 __ovld __cnfn ceil(double3);
7104double4 __ovld __cnfn ceil(double4);
7105double8 __ovld __cnfn ceil(double8);
7106double16 __ovld __cnfn ceil(double16);
7107#endif //cl_khr_fp64
7108#ifdef cl_khr_fp16
7109half __ovld __cnfn ceil(half);
7110half2 __ovld __cnfn ceil(half2);
7111half3 __ovld __cnfn ceil(half3);
7112half4 __ovld __cnfn ceil(half4);
7113half8 __ovld __cnfn ceil(half8);
7114half16 __ovld __cnfn ceil(half16);
7115#endif //cl_khr_fp16
7116
7117/**
7118 * Returns x with its sign changed to match the sign of y.
7119 */
7120float __ovld __cnfn copysign(float xfloat y);
7121float2 __ovld __cnfn copysign(float2 xfloat2 y);
7122float3 __ovld __cnfn copysign(float3 xfloat3 y);
7123float4 __ovld __cnfn copysign(float4 xfloat4 y);
7124float8 __ovld __cnfn copysign(float8 xfloat8 y);
7125float16 __ovld __cnfn copysign(float16 xfloat16 y);
7126#ifdef cl_khr_fp64
7127double __ovld __cnfn copysign(double x, double y);
7128double2 __ovld __cnfn copysign(double2 x, double2 y);
7129double3 __ovld __cnfn copysign(double3 x, double3 y);
7130double4 __ovld __cnfn copysign(double4 x, double4 y);
7131double8 __ovld __cnfn copysign(double8 x, double8 y);
7132double16 __ovld __cnfn copysign(double16 x, double16 y);
7133#endif //cl_khr_fp64
7134#ifdef cl_khr_fp16
7135half __ovld __cnfn copysign(half x, half y);
7136half2 __ovld __cnfn copysign(half2 x, half2 y);
7137half3 __ovld __cnfn copysign(half3 x, half3 y);
7138half4 __ovld __cnfn copysign(half4 x, half4 y);
7139half8 __ovld __cnfn copysign(half8 x, half8 y);
7140half16 __ovld __cnfn copysign(half16 x, half16 y);
7141#endif //cl_khr_fp16
7142
7143/**
7144 * Compute cosine.
7145 */
7146float __ovld __cnfn cos(float);
7147float2 __ovld __cnfn cos(float2);
7148float3 __ovld __cnfn cos(float3);
7149float4 __ovld __cnfn cos(float4);
7150float8 __ovld __cnfn cos(float8);
7151float16 __ovld __cnfn cos(float16);
7152#ifdef cl_khr_fp64
7153double __ovld __cnfn cos(double);
7154double2 __ovld __cnfn cos(double2);
7155double3 __ovld __cnfn cos(double3);
7156double4 __ovld __cnfn cos(double4);
7157double8 __ovld __cnfn cos(double8);
7158double16 __ovld __cnfn cos(double16);
7159#endif //cl_khr_fp64
7160#ifdef cl_khr_fp16
7161half __ovld __cnfn cos(half);
7162half2 __ovld __cnfn cos(half2);
7163half3 __ovld __cnfn cos(half3);
7164half4 __ovld __cnfn cos(half4);
7165half8 __ovld __cnfn cos(half8);
7166half16 __ovld __cnfn cos(half16);
7167#endif //cl_khr_fp16
7168
7169/**
7170 * Compute hyperbolic cosine.
7171 */
7172float __ovld __cnfn cosh(float);
7173float2 __ovld __cnfn cosh(float2);
7174float3 __ovld __cnfn cosh(float3);
7175float4 __ovld __cnfn cosh(float4);
7176float8 __ovld __cnfn cosh(float8);
7177float16 __ovld __cnfn cosh(float16);
7178#ifdef cl_khr_fp64
7179double __ovld __cnfn cosh(double);
7180double2 __ovld __cnfn cosh(double2);
7181double3 __ovld __cnfn cosh(double3);
7182double4 __ovld __cnfn cosh(double4);
7183double8 __ovld __cnfn cosh(double8);
7184double16 __ovld __cnfn cosh(double16);
7185#endif //cl_khr_fp64
7186#ifdef cl_khr_fp16
7187half __ovld __cnfn cosh(half);
7188half2 __ovld __cnfn cosh(half2);
7189half3 __ovld __cnfn cosh(half3);
7190half4 __ovld __cnfn cosh(half4);
7191half8 __ovld __cnfn cosh(half8);
7192half16 __ovld __cnfn cosh(half16);
7193#endif //cl_khr_fp16
7194
7195/**
7196 * Compute cos (PI * x).
7197 */
7198float __ovld __cnfn cospi(float x);
7199float2 __ovld __cnfn cospi(float2 x);
7200float3 __ovld __cnfn cospi(float3 x);
7201float4 __ovld __cnfn cospi(float4 x);
7202float8 __ovld __cnfn cospi(float8 x);
7203float16 __ovld __cnfn cospi(float16 x);
7204#ifdef cl_khr_fp64
7205double __ovld __cnfn cospi(double x);
7206double2 __ovld __cnfn cospi(double2 x);
7207double3 __ovld __cnfn cospi(double3 x);
7208double4 __ovld __cnfn cospi(double4 x);
7209double8 __ovld __cnfn cospi(double8 x);
7210double16 __ovld __cnfn cospi(double16 x);
7211#endif //cl_khr_fp64
7212#ifdef cl_khr_fp16
7213half __ovld __cnfn cospi(half x);
7214half2 __ovld __cnfn cospi(half2 x);
7215half3 __ovld __cnfn cospi(half3 x);
7216half4 __ovld __cnfn cospi(half4 x);
7217half8 __ovld __cnfn cospi(half8 x);
7218half16 __ovld __cnfn cospi(half16 x);
7219#endif //cl_khr_fp16
7220
7221/**
7222 * Complementary error function.
7223 */
7224float __ovld __cnfn erfc(float);
7225float2 __ovld __cnfn erfc(float2);
7226float3 __ovld __cnfn erfc(float3);
7227float4 __ovld __cnfn erfc(float4);
7228float8 __ovld __cnfn erfc(float8);
7229float16 __ovld __cnfn erfc(float16);
7230#ifdef cl_khr_fp64
7231double __ovld __cnfn erfc(double);
7232double2 __ovld __cnfn erfc(double2);
7233double3 __ovld __cnfn erfc(double3);
7234double4 __ovld __cnfn erfc(double4);
7235double8 __ovld __cnfn erfc(double8);
7236double16 __ovld __cnfn erfc(double16);
7237#endif //cl_khr_fp64
7238#ifdef cl_khr_fp16
7239half __ovld __cnfn erfc(half);
7240half2 __ovld __cnfn erfc(half2);
7241half3 __ovld __cnfn erfc(half3);
7242half4 __ovld __cnfn erfc(half4);
7243half8 __ovld __cnfn erfc(half8);
7244half16 __ovld __cnfn erfc(half16);
7245#endif //cl_khr_fp16
7246
7247/**
7248 * Error function encountered in integrating the
7249 * normal distribution.
7250 */
7251float __ovld __cnfn erf(float);
7252float2 __ovld __cnfn erf(float2);
7253float3 __ovld __cnfn erf(float3);
7254float4 __ovld __cnfn erf(float4);
7255float8 __ovld __cnfn erf(float8);
7256float16 __ovld __cnfn erf(float16);
7257#ifdef cl_khr_fp64
7258double __ovld __cnfn erf(double);
7259double2 __ovld __cnfn erf(double2);
7260double3 __ovld __cnfn erf(double3);
7261double4 __ovld __cnfn erf(double4);
7262double8 __ovld __cnfn erf(double8);
7263double16 __ovld __cnfn erf(double16);
7264#endif //cl_khr_fp64
7265#ifdef cl_khr_fp16
7266half __ovld __cnfn erf(half);
7267half2 __ovld __cnfn erf(half2);
7268half3 __ovld __cnfn erf(half3);
7269half4 __ovld __cnfn erf(half4);
7270half8 __ovld __cnfn erf(half8);
7271half16 __ovld __cnfn erf(half16);
7272#endif //cl_khr_fp16
7273
7274/**
7275 * Compute the base e exponential function of x.
7276 */
7277float __ovld __cnfn exp(float x);
7278float2 __ovld __cnfn exp(float2 x);
7279float3 __ovld __cnfn exp(float3 x);
7280float4 __ovld __cnfn exp(float4 x);
7281float8 __ovld __cnfn exp(float8 x);
7282float16 __ovld __cnfn exp(float16 x);
7283#ifdef cl_khr_fp64
7284double __ovld __cnfn exp(double x);
7285double2 __ovld __cnfn exp(double2 x);
7286double3 __ovld __cnfn exp(double3 x);
7287double4 __ovld __cnfn exp(double4 x);
7288double8 __ovld __cnfn exp(double8 x);
7289double16 __ovld __cnfn exp(double16 x);
7290#endif //cl_khr_fp64
7291#ifdef cl_khr_fp16
7292half __ovld __cnfn exp(half x);
7293half2 __ovld __cnfn exp(half2 x);
7294half3 __ovld __cnfn exp(half3 x);
7295half4 __ovld __cnfn exp(half4 x);
7296half8 __ovld __cnfn exp(half8 x);
7297half16 __ovld __cnfn exp(half16 x);
7298#endif //cl_khr_fp16
7299
7300/**
7301 * Exponential base 2 function.
7302 */
7303float __ovld __cnfn exp2(float);
7304float2 __ovld __cnfn exp2(float2);
7305float3 __ovld __cnfn exp2(float3);
7306float4 __ovld __cnfn exp2(float4);
7307float8 __ovld __cnfn exp2(float8);
7308float16 __ovld __cnfn exp2(float16);
7309#ifdef cl_khr_fp64
7310double __ovld __cnfn exp2(double);
7311double2 __ovld __cnfn exp2(double2);
7312double3 __ovld __cnfn exp2(double3);
7313double4 __ovld __cnfn exp2(double4);
7314double8 __ovld __cnfn exp2(double8);
7315double16 __ovld __cnfn exp2(double16);
7316#endif //cl_khr_fp64
7317#ifdef cl_khr_fp16
7318half __ovld __cnfn exp2(half);
7319half2 __ovld __cnfn exp2(half2);
7320half3 __ovld __cnfn exp2(half3);
7321half4 __ovld __cnfn exp2(half4);
7322half8 __ovld __cnfn exp2(half8);
7323half16 __ovld __cnfn exp2(half16);
7324#endif //cl_khr_fp16
7325
7326/**
7327 * Exponential base 10 function.
7328 */
7329float __ovld __cnfn exp10(float);
7330float2 __ovld __cnfn exp10(float2);
7331float3 __ovld __cnfn exp10(float3);
7332float4 __ovld __cnfn exp10(float4);
7333float8 __ovld __cnfn exp10(float8);
7334float16 __ovld __cnfn exp10(float16);
7335#ifdef cl_khr_fp64
7336double __ovld __cnfn exp10(double);
7337double2 __ovld __cnfn exp10(double2);
7338double3 __ovld __cnfn exp10(double3);
7339double4 __ovld __cnfn exp10(double4);
7340double8 __ovld __cnfn exp10(double8);
7341double16 __ovld __cnfn exp10(double16);
7342#endif //cl_khr_fp64
7343#ifdef cl_khr_fp16
7344half __ovld __cnfn exp10(half);
7345half2 __ovld __cnfn exp10(half2);
7346half3 __ovld __cnfn exp10(half3);
7347half4 __ovld __cnfn exp10(half4);
7348half8 __ovld __cnfn exp10(half8);
7349half16 __ovld __cnfn exp10(half16);
7350#endif //cl_khr_fp16
7351
7352/**
7353 * Compute e^x- 1.0.
7354 */
7355float __ovld __cnfn expm1(float x);
7356float2 __ovld __cnfn expm1(float2 x);
7357float3 __ovld __cnfn expm1(float3 x);
7358float4 __ovld __cnfn expm1(float4 x);
7359float8 __ovld __cnfn expm1(float8 x);
7360float16 __ovld __cnfn expm1(float16 x);
7361#ifdef cl_khr_fp64
7362double __ovld __cnfn expm1(double x);
7363double2 __ovld __cnfn expm1(double2 x);
7364double3 __ovld __cnfn expm1(double3 x);
7365double4 __ovld __cnfn expm1(double4 x);
7366double8 __ovld __cnfn expm1(double8 x);
7367double16 __ovld __cnfn expm1(double16 x);
7368#endif //cl_khr_fp64
7369#ifdef cl_khr_fp16
7370half __ovld __cnfn expm1(half x);
7371half2 __ovld __cnfn expm1(half2 x);
7372half3 __ovld __cnfn expm1(half3 x);
7373half4 __ovld __cnfn expm1(half4 x);
7374half8 __ovld __cnfn expm1(half8 x);
7375half16 __ovld __cnfn expm1(half16 x);
7376#endif //cl_khr_fp16
7377
7378/**
7379 * Compute absolute value of a floating-point number.
7380 */
7381float __ovld __cnfn fabs(float);
7382float2 __ovld __cnfn fabs(float2);
7383float3 __ovld __cnfn fabs(float3);
7384float4 __ovld __cnfn fabs(float4);
7385float8 __ovld __cnfn fabs(float8);
7386float16 __ovld __cnfn fabs(float16);
7387#ifdef cl_khr_fp64
7388double __ovld __cnfn fabs(double);
7389double2 __ovld __cnfn fabs(double2);
7390double3 __ovld __cnfn fabs(double3);
7391double4 __ovld __cnfn fabs(double4);
7392double8 __ovld __cnfn fabs(double8);
7393double16 __ovld __cnfn fabs(double16);
7394#endif //cl_khr_fp64
7395#ifdef cl_khr_fp16
7396half __ovld __cnfn fabs(half);
7397half2 __ovld __cnfn fabs(half2);
7398half3 __ovld __cnfn fabs(half3);
7399half4 __ovld __cnfn fabs(half4);
7400half8 __ovld __cnfn fabs(half8);
7401half16 __ovld __cnfn fabs(half16);
7402#endif //cl_khr_fp16
7403
7404/**
7405 * x - y if x > y, +0 if x is less than or equal to y.
7406 */
7407float __ovld __cnfn fdim(float xfloat y);
7408float2 __ovld __cnfn fdim(float2 xfloat2 y);
7409float3 __ovld __cnfn fdim(float3 xfloat3 y);
7410float4 __ovld __cnfn fdim(float4 xfloat4 y);
7411float8 __ovld __cnfn fdim(float8 xfloat8 y);
7412float16 __ovld __cnfn fdim(float16 xfloat16 y);
7413#ifdef cl_khr_fp64
7414double __ovld __cnfn fdim(double x, double y);
7415double2 __ovld __cnfn fdim(double2 x, double2 y);
7416double3 __ovld __cnfn fdim(double3 x, double3 y);
7417double4 __ovld __cnfn fdim(double4 x, double4 y);
7418double8 __ovld __cnfn fdim(double8 x, double8 y);
7419double16 __ovld __cnfn fdim(double16 x, double16 y);
7420#endif //cl_khr_fp64
7421#ifdef cl_khr_fp16
7422half __ovld __cnfn fdim(half x, half y);
7423half2 __ovld __cnfn fdim(half2 x, half2 y);
7424half3 __ovld __cnfn fdim(half3 x, half3 y);
7425half4 __ovld __cnfn fdim(half4 x, half4 y);
7426half8 __ovld __cnfn fdim(half8 x, half8 y);
7427half16 __ovld __cnfn fdim(half16 x, half16 y);
7428#endif //cl_khr_fp16
7429
7430/**
7431 * Round to integral value using the round to -ve
7432 * infinity rounding mode.
7433 */
7434float __ovld __cnfn floor(float);
7435float2 __ovld __cnfn floor(float2);
7436float3 __ovld __cnfn floor(float3);
7437float4 __ovld __cnfn floor(float4);
7438float8 __ovld __cnfn floor(float8);
7439float16 __ovld __cnfn floor(float16);
7440#ifdef cl_khr_fp64
7441double __ovld __cnfn floor(double);
7442double2 __ovld __cnfn floor(double2);
7443double3 __ovld __cnfn floor(double3);
7444double4 __ovld __cnfn floor(double4);
7445double8 __ovld __cnfn floor(double8);
7446double16 __ovld __cnfn floor(double16);
7447#endif //cl_khr_fp64
7448#ifdef cl_khr_fp16
7449half __ovld __cnfn floor(half);
7450half2 __ovld __cnfn floor(half2);
7451half3 __ovld __cnfn floor(half3);
7452half4 __ovld __cnfn floor(half4);
7453half8 __ovld __cnfn floor(half8);
7454half16 __ovld __cnfn floor(half16);
7455#endif //cl_khr_fp16
7456
7457/**
7458 * Returns the correctly rounded floating-point
7459 * representation of the sum of c with the infinitely
7460 * precise product of a and b. Rounding of
7461 * intermediate products shall not occur. Edge case
7462 * behavior is per the IEEE 754-2008 standard.
7463 */
7464float __ovld __cnfn fma(float afloat bfloat c);
7465float2 __ovld __cnfn fma(float2 afloat2 bfloat2 c);
7466float3 __ovld __cnfn fma(float3 afloat3 bfloat3 c);
7467float4 __ovld __cnfn fma(float4 afloat4 bfloat4 c);
7468float8 __ovld __cnfn fma(float8 afloat8 bfloat8 c);
7469float16 __ovld __cnfn fma(float16 afloat16 bfloat16 c);
7470#ifdef cl_khr_fp64
7471double __ovld __cnfn fma(double a, double b, double c);
7472double2 __ovld __cnfn fma(double2 a, double2 b, double2 c);
7473double3 __ovld __cnfn fma(double3 a, double3 b, double3 c);
7474double4 __ovld __cnfn fma(double4 a, double4 b, double4 c);
7475double8 __ovld __cnfn fma(double8 a, double8 b, double8 c);
7476double16 __ovld __cnfn fma(double16 a, double16 b, double16 c);
7477#endif //cl_khr_fp64
7478#ifdef cl_khr_fp16
7479half __ovld __cnfn fma(half a, half b, half c);
7480half2 __ovld __cnfn fma(half2 a, half2 b, half2 c);
7481half3 __ovld __cnfn fma(half3 a, half3 b, half3 c);
7482half4 __ovld __cnfn fma(half4 a, half4 b, half4 c);
7483half8 __ovld __cnfn fma(half8 a, half8 b, half8 c);
7484half16 __ovld __cnfn fma(half16 a, half16 b, half16 c);
7485#endif //cl_khr_fp16
7486
7487/**
7488 * Returns y if x < y, otherwise it returns x. If one
7489 * argument is a NaN, fmax() returns the other
7490 * argument. If both arguments are NaNs, fmax()
7491 * returns a NaN.
7492 */
7493float __ovld __cnfn fmax(float xfloat y);
7494float2 __ovld __cnfn fmax(float2 xfloat2 y);
7495float3 __ovld __cnfn fmax(float3 xfloat3 y);
7496float4 __ovld __cnfn fmax(float4 xfloat4 y);
7497float8 __ovld __cnfn fmax(float8 xfloat8 y);
7498float16 __ovld __cnfn fmax(float16 xfloat16 y);
7499float2 __ovld __cnfn fmax(float2 xfloat y);
7500float3 __ovld __cnfn fmax(float3 xfloat y);
7501float4 __ovld __cnfn fmax(float4 xfloat y);
7502float8 __ovld __cnfn fmax(float8 xfloat y);
7503float16 __ovld __cnfn fmax(float16 xfloat y);
7504#ifdef cl_khr_fp64
7505double __ovld __cnfn fmax(double x, double y);
7506double2 __ovld __cnfn fmax(double2 x, double2 y);
7507double3 __ovld __cnfn fmax(double3 x, double3 y);
7508double4 __ovld __cnfn fmax(double4 x, double4 y);
7509double8 __ovld __cnfn fmax(double8 x, double8 y);
7510double16 __ovld __cnfn fmax(double16 x, double16 y);
7511double2 __ovld __cnfn fmax(double2 x, double y);
7512double3 __ovld __cnfn fmax(double3 x, double y);
7513double4 __ovld __cnfn fmax(double4 x, double y);
7514double8 __ovld __cnfn fmax(double8 x, double y);
7515double16 __ovld __cnfn fmax(double16 x, double y);
7516#endif //cl_khr_fp64
7517#ifdef cl_khr_fp16
7518half __ovld __cnfn fmax(half x, half y);
7519half2 __ovld __cnfn fmax(half2 x, half2 y);
7520half3 __ovld __cnfn fmax(half3 x, half3 y);
7521half4 __ovld __cnfn fmax(half4 x, half4 y);
7522half8 __ovld __cnfn fmax(half8 x, half8 y);
7523half16 __ovld __cnfn fmax(half16 x, half16 y);
7524half2 __ovld __cnfn fmax(half2 x, half y);
7525half3 __ovld __cnfn fmax(half3 x, half y);
7526half4 __ovld __cnfn fmax(half4 x, half y);
7527half8 __ovld __cnfn fmax(half8 x, half y);
7528half16 __ovld __cnfn fmax(half16 x, half y);
7529#endif //cl_khr_fp16
7530
7531/**
7532 * Returns y if y < x, otherwise it returns x. If one
7533 * argument is a NaN, fmin() returns the other
7534 * argument. If both arguments are NaNs, fmin()
7535 * returns a NaN.
7536 */
7537float __ovld __cnfn fmin(float xfloat y);
7538float2 __ovld __cnfn fmin(float2 xfloat2 y);
7539float3 __ovld __cnfn fmin(float3 xfloat3 y);
7540float4 __ovld __cnfn fmin(float4 xfloat4 y);
7541float8 __ovld __cnfn fmin(float8 xfloat8 y);
7542float16 __ovld __cnfn fmin(float16 xfloat16 y);
7543float2 __ovld __cnfn fmin(float2 xfloat y);
7544float3 __ovld __cnfn fmin(float3 xfloat y);
7545float4 __ovld __cnfn fmin(float4 xfloat y);
7546float8 __ovld __cnfn fmin(float8 xfloat y);
7547float16 __ovld __cnfn fmin(float16 xfloat y);
7548#ifdef cl_khr_fp64
7549double __ovld __cnfn fmin(double x, double y);
7550double2 __ovld __cnfn fmin(double2 x, double2 y);
7551double3 __ovld __cnfn fmin(double3 x, double3 y);
7552double4 __ovld __cnfn fmin(double4 x, double4 y);
7553double8 __ovld __cnfn fmin(double8 x, double8 y);
7554double16 __ovld __cnfn fmin(double16 x, double16 y);
7555double2 __ovld __cnfn fmin(double2 x, double y);
7556double3 __ovld __cnfn fmin(double3 x, double y);
7557double4 __ovld __cnfn fmin(double4 x, double y);
7558double8 __ovld __cnfn fmin(double8 x, double y);
7559double16 __ovld __cnfn fmin(double16 x, double y);
7560#endif //cl_khr_fp64
7561#ifdef cl_khr_fp16
7562half __ovld __cnfn fmin(half x, half y);
7563half2 __ovld __cnfn fmin(half2 x, half2 y);
7564half3 __ovld __cnfn fmin(half3 x, half3 y);
7565half4 __ovld __cnfn fmin(half4 x, half4 y);
7566half8 __ovld __cnfn fmin(half8 x, half8 y);
7567half16 __ovld __cnfn fmin(half16 x, half16 y);
7568half2 __ovld __cnfn fmin(half2 x, half y);
7569half3 __ovld __cnfn fmin(half3 x, half y);
7570half4 __ovld __cnfn fmin(half4 x, half y);
7571half8 __ovld __cnfn fmin(half8 x, half y);
7572half16 __ovld __cnfn fmin(half16 x, half y);
7573#endif //cl_khr_fp16
7574
7575/**
7576 * Modulus. Returns x - y * trunc (x/y).
7577 */
7578float __ovld __cnfn fmod(float xfloat y);
7579float2 __ovld __cnfn fmod(float2 xfloat2 y);
7580float3 __ovld __cnfn fmod(float3 xfloat3 y);
7581float4 __ovld __cnfn fmod(float4 xfloat4 y);
7582float8 __ovld __cnfn fmod(float8 xfloat8 y);
7583float16 __ovld __cnfn fmod(float16 xfloat16 y);
7584#ifdef cl_khr_fp64
7585double __ovld __cnfn fmod(double x, double y);
7586double2 __ovld __cnfn fmod(double2 x, double2 y);
7587double3 __ovld __cnfn fmod(double3 x, double3 y);
7588double4 __ovld __cnfn fmod(double4 x, double4 y);
7589double8 __ovld __cnfn fmod(double8 x, double8 y);
7590double16 __ovld __cnfn fmod(double16 x, double16 y);
7591#endif //cl_khr_fp64
7592#ifdef cl_khr_fp16
7593half __ovld __cnfn fmod(half x, half y);
7594half2 __ovld __cnfn fmod(half2 x, half2 y);
7595half3 __ovld __cnfn fmod(half3 x, half3 y);
7596half4 __ovld __cnfn fmod(half4 x, half4 y);
7597half8 __ovld __cnfn fmod(half8 x, half8 y);
7598half16 __ovld __cnfn fmod(half16 x, half16 y);
7599#endif //cl_khr_fp16
7600
7601/**
7602 * Returns fmin(x - floor (x), 0x1.fffffep-1f ).
7603 * floor(x) is returned in iptr.
7604 */
7605#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
7606float __ovld fract(float xfloat *iptr);
7607float2 __ovld fract(float2 xfloat2 *iptr);
7608float3 __ovld fract(float3 xfloat3 *iptr);
7609float4 __ovld fract(float4 xfloat4 *iptr);
7610float8 __ovld fract(float8 xfloat8 *iptr);
7611float16 __ovld fract(float16 xfloat16 *iptr);
7612#ifdef cl_khr_fp64
7613double __ovld fract(double x, double *iptr);
7614double2 __ovld fract(double2 x, double2 *iptr);
7615double3 __ovld fract(double3 x, double3 *iptr);
7616double4 __ovld fract(double4 x, double4 *iptr);
7617double8 __ovld fract(double8 x, double8 *iptr);
7618double16 __ovld fract(double16 x, double16 *iptr);
7619#endif //cl_khr_fp64
7620#ifdef cl_khr_fp16
7621half __ovld fract(half x, half *iptr);
7622half2 __ovld fract(half2 x, half2 *iptr);
7623half3 __ovld fract(half3 x, half3 *iptr);
7624half4 __ovld fract(half4 x, half4 *iptr);
7625half8 __ovld fract(half8 x, half8 *iptr);
7626half16 __ovld fract(half16 x, half16 *iptr);
7627#endif //cl_khr_fp16
7628#else
7629float __ovld fract(float x, __global float *iptr);
7630float2 __ovld fract(float2 x, __global float2 *iptr);
7631float3 __ovld fract(float3 x, __global float3 *iptr);
7632float4 __ovld fract(float4 x, __global float4 *iptr);
7633float8 __ovld fract(float8 x, __global float8 *iptr);
7634float16 __ovld fract(float16 x, __global float16 *iptr);
7635float __ovld fract(float x, __local float *iptr);
7636float2 __ovld fract(float2 x, __local float2 *iptr);
7637float3 __ovld fract(float3 x, __local float3 *iptr);
7638float4 __ovld fract(float4 x, __local float4 *iptr);
7639float8 __ovld fract(float8 x, __local float8 *iptr);
7640float16 __ovld fract(float16 x, __local float16 *iptr);
7641float __ovld fract(float x, __private float *iptr);
7642float2 __ovld fract(float2 x, __private float2 *iptr);
7643float3 __ovld fract(float3 x, __private float3 *iptr);
7644float4 __ovld fract(float4 x, __private float4 *iptr);
7645float8 __ovld fract(float8 x, __private float8 *iptr);
7646float16 __ovld fract(float16 x, __private float16 *iptr);
7647#ifdef cl_khr_fp64
7648double __ovld fract(double x, __global double *iptr);
7649double2 __ovld fract(double2 x, __global double2 *iptr);
7650double3 __ovld fract(double3 x, __global double3 *iptr);
7651double4 __ovld fract(double4 x, __global double4 *iptr);
7652double8 __ovld fract(double8 x, __global double8 *iptr);
7653double16 __ovld fract(double16 x, __global double16 *iptr);
7654double __ovld fract(double x, __local double *iptr);
7655double2 __ovld fract(double2 x, __local double2 *iptr);
7656double3 __ovld fract(double3 x, __local double3 *iptr);
7657double4 __ovld fract(double4 x, __local double4 *iptr);
7658double8 __ovld fract(double8 x, __local double8 *iptr);
7659double16 __ovld fract(double16 x, __local double16 *iptr);
7660double __ovld fract(double x, __private double *iptr);
7661double2 __ovld fract(double2 x, __private double2 *iptr);
7662double3 __ovld fract(double3 x, __private double3 *iptr);
7663double4 __ovld fract(double4 x, __private double4 *iptr);
7664double8 __ovld fract(double8 x, __private double8 *iptr);
7665double16 __ovld fract(double16 x, __private double16 *iptr);
7666#endif //cl_khr_fp64
7667#ifdef cl_khr_fp16
7668half __ovld fract(half x, __global half *iptr);
7669half2 __ovld fract(half2 x, __global half2 *iptr);
7670half3 __ovld fract(half3 x, __global half3 *iptr);
7671half4 __ovld fract(half4 x, __global half4 *iptr);
7672half8 __ovld fract(half8 x, __global half8 *iptr);
7673half16 __ovld fract(half16 x, __global half16 *iptr);
7674half __ovld fract(half x, __local half *iptr);
7675half2 __ovld fract(half2 x, __local half2 *iptr);
7676half3 __ovld fract(half3 x, __local half3 *iptr);
7677half4 __ovld fract(half4 x, __local half4 *iptr);
7678half8 __ovld fract(half8 x, __local half8 *iptr);
7679half16 __ovld fract(half16 x, __local half16 *iptr);
7680half __ovld fract(half x, __private half *iptr);
7681half2 __ovld fract(half2 x, __private half2 *iptr);
7682half3 __ovld fract(half3 x, __private half3 *iptr);
7683half4 __ovld fract(half4 x, __private half4 *iptr);
7684half8 __ovld fract(half8 x, __private half8 *iptr);
7685half16 __ovld fract(half16 x, __private half16 *iptr);
7686#endif //cl_khr_fp16
7687#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
7688
7689/**
7690 * Extract mantissa and exponent from x. For each
7691 * component the mantissa returned is a float with
7692 * magnitude in the interval [1/2, 1) or 0. Each
7693 * component of x equals mantissa returned * 2^exp.
7694 */
7695#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
7696float __ovld frexp(float xint *exp);
7697float2 __ovld frexp(float2 xint2 *exp);
7698float3 __ovld frexp(float3 xint3 *exp);
7699float4 __ovld frexp(float4 xint4 *exp);
7700float8 __ovld frexp(float8 xint8 *exp);
7701float16 __ovld frexp(float16 xint16 *exp);
7702#ifdef cl_khr_fp64
7703double __ovld frexp(double x, int *exp);
7704double2 __ovld frexp(double2 x, int2 *exp);
7705double3 __ovld frexp(double3 x, int3 *exp);
7706double4 __ovld frexp(double4 x, int4 *exp);
7707double8 __ovld frexp(double8 x, int8 *exp);
7708double16 __ovld frexp(double16 x, int16 *exp);
7709#endif //cl_khr_fp64
7710#ifdef cl_khr_fp16
7711half __ovld frexp(half x, int *exp);
7712half2 __ovld frexp(half2 x, int2 *exp);
7713half3 __ovld frexp(half3 x, int3 *exp);
7714half4 __ovld frexp(half4 x, int4 *exp);
7715half8 __ovld frexp(half8 x, int8 *exp);
7716half16 __ovld frexp(half16 x, int16 *exp);
7717#endif //cl_khr_fp16
7718#else
7719float __ovld frexp(float x, __global int *exp);
7720float2 __ovld frexp(float2 x, __global int2 *exp);
7721float3 __ovld frexp(float3 x, __global int3 *exp);
7722float4 __ovld frexp(float4 x, __global int4 *exp);
7723float8 __ovld frexp(float8 x, __global int8 *exp);
7724float16 __ovld frexp(float16 x, __global int16 *exp);
7725float __ovld frexp(float x, __local int *exp);
7726float2 __ovld frexp(float2 x, __local int2 *exp);
7727float3 __ovld frexp(float3 x, __local int3 *exp);
7728float4 __ovld frexp(float4 x, __local int4 *exp);
7729float8 __ovld frexp(float8 x, __local int8 *exp);
7730float16 __ovld frexp(float16 x, __local int16 *exp);
7731float __ovld frexp(float x, __private int *exp);
7732float2 __ovld frexp(float2 x, __private int2 *exp);
7733float3 __ovld frexp(float3 x, __private int3 *exp);
7734float4 __ovld frexp(float4 x, __private int4 *exp);
7735float8 __ovld frexp(float8 x, __private int8 *exp);
7736float16 __ovld frexp(float16 x, __private int16 *exp);
7737#ifdef cl_khr_fp64
7738double __ovld frexp(double x, __global int *exp);
7739double2 __ovld frexp(double2 x, __global int2 *exp);
7740double3 __ovld frexp(double3 x, __global int3 *exp);
7741double4 __ovld frexp(double4 x, __global int4 *exp);
7742double8 __ovld frexp(double8 x, __global int8 *exp);
7743double16 __ovld frexp(double16 x, __global int16 *exp);
7744double __ovld frexp(double x, __local int *exp);
7745double2 __ovld frexp(double2 x, __local int2 *exp);
7746double3 __ovld frexp(double3 x, __local int3 *exp);
7747double4 __ovld frexp(double4 x, __local int4 *exp);
7748double8 __ovld frexp(double8 x, __local int8 *exp);
7749double16 __ovld frexp(double16 x, __local int16 *exp);
7750double __ovld frexp(double x, __private int *exp);
7751double2 __ovld frexp(double2 x, __private int2 *exp);
7752double3 __ovld frexp(double3 x, __private int3 *exp);
7753double4 __ovld frexp(double4 x, __private int4 *exp);
7754double8 __ovld frexp(double8 x, __private int8 *exp);
7755double16 __ovld frexp(double16 x, __private int16 *exp);
7756#endif //cl_khr_fp64
7757#ifdef cl_khr_fp16
7758half __ovld frexp(half x, __global int *exp);
7759half2 __ovld frexp(half2 x, __global int2 *exp);
7760half3 __ovld frexp(half3 x, __global int3 *exp);
7761half4 __ovld frexp(half4 x, __global int4 *exp);
7762half8 __ovld frexp(half8 x, __global int8 *exp);
7763half16 __ovld frexp(half16 x, __global int16 *exp);
7764half __ovld frexp(half x, __local int *exp);
7765half2 __ovld frexp(half2 x, __local int2 *exp);
7766half3 __ovld frexp(half3 x, __local int3 *exp);
7767half4 __ovld frexp(half4 x, __local int4 *exp);
7768half8 __ovld frexp(half8 x, __local int8 *exp);
7769half16 __ovld frexp(half16 x, __local int16 *exp);
7770half __ovld frexp(half x, __private int *exp);
7771half2 __ovld frexp(half2 x, __private int2 *exp);
7772half3 __ovld frexp(half3 x, __private int3 *exp);
7773half4 __ovld frexp(half4 x, __private int4 *exp);
7774half8 __ovld frexp(half8 x, __private int8 *exp);
7775half16 __ovld frexp(half16 x, __private int16 *exp);
7776#endif //cl_khr_fp16
7777#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
7778
7779/**
7780 * Compute the value of the square root of x^2 + y^2
7781 * without undue overflow or underflow.
7782 */
7783float __ovld __cnfn hypot(float xfloat y);
7784float2 __ovld __cnfn hypot(float2 xfloat2 y);
7785float3 __ovld __cnfn hypot(float3 xfloat3 y);
7786float4 __ovld __cnfn hypot(float4 xfloat4 y);
7787float8 __ovld __cnfn hypot(float8 xfloat8 y);
7788float16 __ovld __cnfn hypot(float16 xfloat16 y);
7789#ifdef cl_khr_fp64
7790double __ovld __cnfn hypot(double x, double y);
7791double2 __ovld __cnfn hypot(double2 x, double2 y);
7792double3 __ovld __cnfn hypot(double3 x, double3 y);
7793double4 __ovld __cnfn hypot(double4 x, double4 y);
7794double8 __ovld __cnfn hypot(double8 x, double8 y);
7795double16 __ovld __cnfn hypot(double16 x, double16 y);
7796#endif //cl_khr_fp64
7797#ifdef cl_khr_fp16
7798half __ovld __cnfn hypot(half x, half y);
7799half2 __ovld __cnfn hypot(half2 x, half2 y);
7800half3 __ovld __cnfn hypot(half3 x, half3 y);
7801half4 __ovld __cnfn hypot(half4 x, half4 y);
7802half8 __ovld __cnfn hypot(half8 x, half8 y);
7803half16 __ovld __cnfn hypot(half16 x, half16 y);
7804#endif //cl_khr_fp16
7805
7806/**
7807 * Return the exponent as an integer value.
7808 */
7809int __ovld __cnfn ilogb(float x);
7810int2 __ovld __cnfn ilogb(float2 x);
7811int3 __ovld __cnfn ilogb(float3 x);
7812int4 __ovld __cnfn ilogb(float4 x);
7813int8 __ovld __cnfn ilogb(float8 x);
7814int16 __ovld __cnfn ilogb(float16 x);
7815#ifdef cl_khr_fp64
7816int __ovld __cnfn ilogb(double x);
7817int2 __ovld __cnfn ilogb(double2 x);
7818int3 __ovld __cnfn ilogb(double3 x);
7819int4 __ovld __cnfn ilogb(double4 x);
7820int8 __ovld __cnfn ilogb(double8 x);
7821int16 __ovld __cnfn ilogb(double16 x);
7822#endif //cl_khr_fp64
7823#ifdef cl_khr_fp16
7824int __ovld __cnfn ilogb(half x);
7825int2 __ovld __cnfn ilogb(half2 x);
7826int3 __ovld __cnfn ilogb(half3 x);
7827int4 __ovld __cnfn ilogb(half4 x);
7828int8 __ovld __cnfn ilogb(half8 x);
7829int16 __ovld __cnfn ilogb(half16 x);
7830#endif //cl_khr_fp16
7831
7832/**
7833 * Multiply x by 2 to the power n.
7834 */
7835float __ovld __cnfn ldexp(float xint n);
7836float2 __ovld __cnfn ldexp(float2 xint2 n);
7837float3 __ovld __cnfn ldexp(float3 xint3 n);
7838float4 __ovld __cnfn ldexp(float4 xint4 n);
7839float8 __ovld __cnfn ldexp(float8 xint8 n);
7840float16 __ovld __cnfn ldexp(float16 xint16 n);
7841float2 __ovld __cnfn ldexp(float2 xint n);
7842float3 __ovld __cnfn ldexp(float3 xint n);
7843float4 __ovld __cnfn ldexp(float4 xint n);
7844float8 __ovld __cnfn ldexp(float8 xint n);
7845float16 __ovld __cnfn ldexp(float16 xint n);
7846#ifdef cl_khr_fp64
7847double __ovld __cnfn ldexp(double x, int n);
7848double2 __ovld __cnfn ldexp(double2 x, int2 n);
7849double3 __ovld __cnfn ldexp(double3 x, int3 n);
7850double4 __ovld __cnfn ldexp(double4 x, int4 n);
7851double8 __ovld __cnfn ldexp(double8 x, int8 n);
7852double16 __ovld __cnfn ldexp(double16 x, int16 n);
7853double2 __ovld __cnfn ldexp(double2 x, int n);
7854double3 __ovld __cnfn ldexp(double3 x, int n);
7855double4 __ovld __cnfn ldexp(double4 x, int n);
7856double8 __ovld __cnfn ldexp(double8 x, int n);
7857double16 __ovld __cnfn ldexp(double16 x, int n);
7858#endif //cl_khr_fp64
7859#ifdef cl_khr_fp16
7860half __ovld __cnfn ldexp(half x, int n);
7861half2 __ovld __cnfn ldexp(half2 x, int2 n);
7862half3 __ovld __cnfn ldexp(half3 x, int3 n);
7863half4 __ovld __cnfn ldexp(half4 x, int4 n);
7864half8 __ovld __cnfn ldexp(half8 x, int8 n);
7865half16 __ovld __cnfn ldexp(half16 x, int16 n);
7866half2 __ovld __cnfn ldexp(half2 x, int n);
7867half3 __ovld __cnfn ldexp(half3 x, int n);
7868half4 __ovld __cnfn ldexp(half4 x, int n);
7869half8 __ovld __cnfn ldexp(half8 x, int n);
7870half16 __ovld __cnfn ldexp(half16 x, int n);
7871#endif //cl_khr_fp16
7872
7873/**
7874 * Log gamma function. Returns the natural
7875 * logarithm of the absolute value of the gamma
7876 * function. The sign of the gamma function is
7877 * returned in the signp argument of lgamma_r.
7878 */
7879float __ovld __cnfn lgamma(float x);
7880float2 __ovld __cnfn lgamma(float2 x);
7881float3 __ovld __cnfn lgamma(float3 x);
7882float4 __ovld __cnfn lgamma(float4 x);
7883float8 __ovld __cnfn lgamma(float8 x);
7884float16 __ovld __cnfn lgamma(float16 x);
7885#ifdef cl_khr_fp64
7886double __ovld __cnfn lgamma(double x);
7887double2 __ovld __cnfn lgamma(double2 x);
7888double3 __ovld __cnfn lgamma(double3 x);
7889double4 __ovld __cnfn lgamma(double4 x);
7890double8 __ovld __cnfn lgamma(double8 x);
7891double16 __ovld __cnfn lgamma(double16 x);
7892#endif //cl_khr_fp64
7893#ifdef cl_khr_fp16
7894half __ovld __cnfn lgamma(half x);
7895half2 __ovld __cnfn lgamma(half2 x);
7896half3 __ovld __cnfn lgamma(half3 x);
7897half4 __ovld __cnfn lgamma(half4 x);
7898half8 __ovld __cnfn lgamma(half8 x);
7899half16 __ovld __cnfn lgamma(half16 x);
7900#endif //cl_khr_fp16
7901
7902#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
7903float __ovld lgamma_r(float xint *signp);
7904float2 __ovld lgamma_r(float2 xint2 *signp);
7905float3 __ovld lgamma_r(float3 xint3 *signp);
7906float4 __ovld lgamma_r(float4 xint4 *signp);
7907float8 __ovld lgamma_r(float8 xint8 *signp);
7908float16 __ovld lgamma_r(float16 xint16 *signp);
7909#ifdef cl_khr_fp64
7910double __ovld lgamma_r(double x, int *signp);
7911double2 __ovld lgamma_r(double2 x, int2 *signp);
7912double3 __ovld lgamma_r(double3 x, int3 *signp);
7913double4 __ovld lgamma_r(double4 x, int4 *signp);
7914double8 __ovld lgamma_r(double8 x, int8 *signp);
7915double16 __ovld lgamma_r(double16 x, int16 *signp);
7916#endif //cl_khr_fp64
7917#ifdef cl_khr_fp16
7918half __ovld lgamma_r(half x, int *signp);
7919half2 __ovld lgamma_r(half2 x, int2 *signp);
7920half3 __ovld lgamma_r(half3 x, int3 *signp);
7921half4 __ovld lgamma_r(half4 x, int4 *signp);
7922half8 __ovld lgamma_r(half8 x, int8 *signp);
7923half16 __ovld lgamma_r(half16 x, int16 *signp);
7924#endif //cl_khr_fp16
7925#else
7926float __ovld lgamma_r(float x, __global int *signp);
7927float2 __ovld lgamma_r(float2 x, __global int2 *signp);
7928float3 __ovld lgamma_r(float3 x, __global int3 *signp);
7929float4 __ovld lgamma_r(float4 x, __global int4 *signp);
7930float8 __ovld lgamma_r(float8 x, __global int8 *signp);
7931float16 __ovld lgamma_r(float16 x, __global int16 *signp);
7932float __ovld lgamma_r(float x, __local int *signp);
7933float2 __ovld lgamma_r(float2 x, __local int2 *signp);
7934float3 __ovld lgamma_r(float3 x, __local int3 *signp);
7935float4 __ovld lgamma_r(float4 x, __local int4 *signp);
7936float8 __ovld lgamma_r(float8 x, __local int8 *signp);
7937float16 __ovld lgamma_r(float16 x, __local int16 *signp);
7938float __ovld lgamma_r(float x, __private int *signp);
7939float2 __ovld lgamma_r(float2 x, __private int2 *signp);
7940float3 __ovld lgamma_r(float3 x, __private int3 *signp);
7941float4 __ovld lgamma_r(float4 x, __private int4 *signp);
7942float8 __ovld lgamma_r(float8 x, __private int8 *signp);
7943float16 __ovld lgamma_r(float16 x, __private int16 *signp);
7944#ifdef cl_khr_fp64
7945double __ovld lgamma_r(double x, __global int *signp);
7946double2 __ovld lgamma_r(double2 x, __global int2 *signp);
7947double3 __ovld lgamma_r(double3 x, __global int3 *signp);
7948double4 __ovld lgamma_r(double4 x, __global int4 *signp);
7949double8 __ovld lgamma_r(double8 x, __global int8 *signp);
7950double16 __ovld lgamma_r(double16 x, __global int16 *signp);
7951double __ovld lgamma_r(double x, __local int *signp);
7952double2 __ovld lgamma_r(double2 x, __local int2 *signp);
7953double3 __ovld lgamma_r(double3 x, __local int3 *signp);
7954double4 __ovld lgamma_r(double4 x, __local int4 *signp);
7955double8 __ovld lgamma_r(double8 x, __local int8 *signp);
7956double16 __ovld lgamma_r(double16 x, __local int16 *signp);
7957double __ovld lgamma_r(double x, __private int *signp);
7958double2 __ovld lgamma_r(double2 x, __private int2 *signp);
7959double3 __ovld lgamma_r(double3 x, __private int3 *signp);
7960double4 __ovld lgamma_r(double4 x, __private int4 *signp);
7961double8 __ovld lgamma_r(double8 x, __private int8 *signp);
7962double16 __ovld lgamma_r(double16 x, __private int16 *signp);
7963#endif //cl_khr_fp64
7964#ifdef cl_khr_fp16
7965half __ovld lgamma_r(half x, __global int *signp);
7966half2 __ovld lgamma_r(half2 x, __global int2 *signp);
7967half3 __ovld lgamma_r(half3 x, __global int3 *signp);
7968half4 __ovld lgamma_r(half4 x, __global int4 *signp);
7969half8 __ovld lgamma_r(half8 x, __global int8 *signp);
7970half16 __ovld lgamma_r(half16 x, __global int16 *signp);
7971half __ovld lgamma_r(half x, __local int *signp);
7972half2 __ovld lgamma_r(half2 x, __local int2 *signp);
7973half3 __ovld lgamma_r(half3 x, __local int3 *signp);
7974half4 __ovld lgamma_r(half4 x, __local int4 *signp);
7975half8 __ovld lgamma_r(half8 x, __local int8 *signp);
7976half16 __ovld lgamma_r(half16 x, __local int16 *signp);
7977half __ovld lgamma_r(half x, __private int *signp);
7978half2 __ovld lgamma_r(half2 x, __private int2 *signp);
7979half3 __ovld lgamma_r(half3 x, __private int3 *signp);
7980half4 __ovld lgamma_r(half4 x, __private int4 *signp);
7981half8 __ovld lgamma_r(half8 x, __private int8 *signp);
7982half16 __ovld lgamma_r(half16 x, __private int16 *signp);
7983#endif //cl_khr_fp16
7984#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
7985
7986/**
7987 * Compute natural logarithm.
7988 */
7989float __ovld __cnfn log(float);
7990float2 __ovld __cnfn log(float2);
7991float3 __ovld __cnfn log(float3);
7992float4 __ovld __cnfn log(float4);
7993float8 __ovld __cnfn log(float8);
7994float16 __ovld __cnfn log(float16);
7995#ifdef cl_khr_fp64
7996double __ovld __cnfn log(double);
7997double2 __ovld __cnfn log(double2);
7998double3 __ovld __cnfn log(double3);
7999double4 __ovld __cnfn log(double4);
8000double8 __ovld __cnfn log(double8);
8001double16 __ovld __cnfn log(double16);
8002#endif //cl_khr_fp64
8003#ifdef cl_khr_fp16
8004half __ovld __cnfn log(half);
8005half2 __ovld __cnfn log(half2);
8006half3 __ovld __cnfn log(half3);
8007half4 __ovld __cnfn log(half4);
8008half8 __ovld __cnfn log(half8);
8009half16 __ovld __cnfn log(half16);
8010#endif //cl_khr_fp16
8011
8012/**
8013 * Compute a base 2 logarithm.
8014 */
8015float __ovld __cnfn log2(float);
8016float2 __ovld __cnfn log2(float2);
8017float3 __ovld __cnfn log2(float3);
8018float4 __ovld __cnfn log2(float4);
8019float8 __ovld __cnfn log2(float8);
8020float16 __ovld __cnfn log2(float16);
8021#ifdef cl_khr_fp64
8022double __ovld __cnfn log2(double);
8023double2 __ovld __cnfn log2(double2);
8024double3 __ovld __cnfn log2(double3);
8025double4 __ovld __cnfn log2(double4);
8026double8 __ovld __cnfn log2(double8);
8027double16 __ovld __cnfn log2(double16);
8028#endif //cl_khr_fp64
8029#ifdef cl_khr_fp16
8030half __ovld __cnfn log2(half);
8031half2 __ovld __cnfn log2(half2);
8032half3 __ovld __cnfn log2(half3);
8033half4 __ovld __cnfn log2(half4);
8034half8 __ovld __cnfn log2(half8);
8035half16 __ovld __cnfn log2(half16);
8036#endif //cl_khr_fp16
8037
8038/**
8039 * Compute a base 10 logarithm.
8040 */
8041float __ovld __cnfn log10(float);
8042float2 __ovld __cnfn log10(float2);
8043float3 __ovld __cnfn log10(float3);
8044float4 __ovld __cnfn log10(float4);
8045float8 __ovld __cnfn log10(float8);
8046float16 __ovld __cnfn log10(float16);
8047#ifdef cl_khr_fp64
8048double __ovld __cnfn log10(double);
8049double2 __ovld __cnfn log10(double2);
8050double3 __ovld __cnfn log10(double3);
8051double4 __ovld __cnfn log10(double4);
8052double8 __ovld __cnfn log10(double8);
8053double16 __ovld __cnfn log10(double16);
8054#endif //cl_khr_fp64
8055#ifdef cl_khr_fp16
8056half __ovld __cnfn log10(half);
8057half2 __ovld __cnfn log10(half2);
8058half3 __ovld __cnfn log10(half3);
8059half4 __ovld __cnfn log10(half4);
8060half8 __ovld __cnfn log10(half8);
8061half16 __ovld __cnfn log10(half16);
8062#endif //cl_khr_fp16
8063
8064/**
8065 * Compute a base e logarithm of (1.0 + x).
8066 */
8067float __ovld __cnfn log1p(float x);
8068float2 __ovld __cnfn log1p(float2 x);
8069float3 __ovld __cnfn log1p(float3 x);
8070float4 __ovld __cnfn log1p(float4 x);
8071float8 __ovld __cnfn log1p(float8 x);
8072float16 __ovld __cnfn log1p(float16 x);
8073#ifdef cl_khr_fp64
8074double __ovld __cnfn log1p(double x);
8075double2 __ovld __cnfn log1p(double2 x);
8076double3 __ovld __cnfn log1p(double3 x);
8077double4 __ovld __cnfn log1p(double4 x);
8078double8 __ovld __cnfn log1p(double8 x);
8079double16 __ovld __cnfn log1p(double16 x);
8080#endif //cl_khr_fp64
8081#ifdef cl_khr_fp16
8082half __ovld __cnfn log1p(half x);
8083half2 __ovld __cnfn log1p(half2 x);
8084half3 __ovld __cnfn log1p(half3 x);
8085half4 __ovld __cnfn log1p(half4 x);
8086half8 __ovld __cnfn log1p(half8 x);
8087half16 __ovld __cnfn log1p(half16 x);
8088#endif //cl_khr_fp16
8089
8090/**
8091 * Compute the exponent of x, which is the integral
8092 * part of logr | x |.
8093 */
8094float __ovld __cnfn logb(float x);
8095float2 __ovld __cnfn logb(float2 x);
8096float3 __ovld __cnfn logb(float3 x);
8097float4 __ovld __cnfn logb(float4 x);
8098float8 __ovld __cnfn logb(float8 x);
8099float16 __ovld __cnfn logb(float16 x);
8100#ifdef cl_khr_fp64
8101double __ovld __cnfn logb(double x);
8102double2 __ovld __cnfn logb(double2 x);
8103double3 __ovld __cnfn logb(double3 x);
8104double4 __ovld __cnfn logb(double4 x);
8105double8 __ovld __cnfn logb(double8 x);
8106double16 __ovld __cnfn logb(double16 x);
8107#endif //cl_khr_fp64
8108#ifdef cl_khr_fp16
8109half __ovld __cnfn logb(half x);
8110half2 __ovld __cnfn logb(half2 x);
8111half3 __ovld __cnfn logb(half3 x);
8112half4 __ovld __cnfn logb(half4 x);
8113half8 __ovld __cnfn logb(half8 x);
8114half16 __ovld __cnfn logb(half16 x);
8115#endif //cl_khr_fp16
8116
8117/**
8118 * mad approximates a * b + c. Whether or how the
8119 * product of a * b is rounded and how supernormal or
8120 * subnormal intermediate products are handled is not
8121 * defined. mad is intended to be used where speed is
8122 * preferred over accuracy.
8123 */
8124float __ovld __cnfn mad(float afloat bfloat c);
8125float2 __ovld __cnfn mad(float2 afloat2 bfloat2 c);
8126float3 __ovld __cnfn mad(float3 afloat3 bfloat3 c);
8127float4 __ovld __cnfn mad(float4 afloat4 bfloat4 c);
8128float8 __ovld __cnfn mad(float8 afloat8 bfloat8 c);
8129float16 __ovld __cnfn mad(float16 afloat16 bfloat16 c);
8130#ifdef cl_khr_fp64
8131double __ovld __cnfn mad(double a, double b, double c);
8132double2 __ovld __cnfn mad(double2 a, double2 b, double2 c);
8133double3 __ovld __cnfn mad(double3 a, double3 b, double3 c);
8134double4 __ovld __cnfn mad(double4 a, double4 b, double4 c);
8135double8 __ovld __cnfn mad(double8 a, double8 b, double8 c);
8136double16 __ovld __cnfn mad(double16 a, double16 b, double16 c);
8137#endif //cl_khr_fp64
8138#ifdef cl_khr_fp16
8139half __ovld __cnfn mad(half a, half b, half c);
8140half2 __ovld __cnfn mad(half2 a, half2 b, half2 c);
8141half3 __ovld __cnfn mad(half3 a, half3 b, half3 c);
8142half4 __ovld __cnfn mad(half4 a, half4 b, half4 c);
8143half8 __ovld __cnfn mad(half8 a, half8 b, half8 c);
8144half16 __ovld __cnfn mad(half16 a, half16 b, half16 c);
8145#endif //cl_khr_fp16
8146
8147/**
8148 * Returns x if | x | > | y |, y if | y | > | x |, otherwise
8149 * fmax(x, y).
8150 */
8151float __ovld __cnfn maxmag(float xfloat y);
8152float2 __ovld __cnfn maxmag(float2 xfloat2 y);
8153float3 __ovld __cnfn maxmag(float3 xfloat3 y);
8154float4 __ovld __cnfn maxmag(float4 xfloat4 y);
8155float8 __ovld __cnfn maxmag(float8 xfloat8 y);
8156float16 __ovld __cnfn maxmag(float16 xfloat16 y);
8157#ifdef cl_khr_fp64
8158double __ovld __cnfn maxmag(double x, double y);
8159double2 __ovld __cnfn maxmag(double2 x, double2 y);
8160double3 __ovld __cnfn maxmag(double3 x, double3 y);
8161double4 __ovld __cnfn maxmag(double4 x, double4 y);
8162double8 __ovld __cnfn maxmag(double8 x, double8 y);
8163double16 __ovld __cnfn maxmag(double16 x, double16 y);
8164#endif //cl_khr_fp64
8165#ifdef cl_khr_fp16
8166half __ovld __cnfn maxmag(half x, half y);
8167half2 __ovld __cnfn maxmag(half2 x, half2 y);
8168half3 __ovld __cnfn maxmag(half3 x, half3 y);
8169half4 __ovld __cnfn maxmag(half4 x, half4 y);
8170half8 __ovld __cnfn maxmag(half8 x, half8 y);
8171half16 __ovld __cnfn maxmag(half16 x, half16 y);
8172#endif //cl_khr_fp16
8173
8174/**
8175 * Returns x if | x | < | y |, y if | y | < | x |, otherwise
8176 * fmin(x, y).
8177 */
8178float __ovld __cnfn minmag(float xfloat y);
8179float2 __ovld __cnfn minmag(float2 xfloat2 y);
8180float3 __ovld __cnfn minmag(float3 xfloat3 y);
8181float4 __ovld __cnfn minmag(float4 xfloat4 y);
8182float8 __ovld __cnfn minmag(float8 xfloat8 y);
8183float16 __ovld __cnfn minmag(float16 xfloat16 y);
8184#ifdef cl_khr_fp64
8185double __ovld __cnfn minmag(double x, double y);
8186double2 __ovld __cnfn minmag(double2 x, double2 y);
8187double3 __ovld __cnfn minmag(double3 x, double3 y);
8188double4 __ovld __cnfn minmag(double4 x, double4 y);
8189double8 __ovld __cnfn minmag(double8 x, double8 y);
8190double16 __ovld __cnfn minmag(double16 x, double16 y);
8191#endif //cl_khr_fp64
8192#ifdef cl_khr_fp16
8193half __ovld __cnfn minmag(half x, half y);
8194half2 __ovld __cnfn minmag(half2 x, half2 y);
8195half3 __ovld __cnfn minmag(half3 x, half3 y);
8196half4 __ovld __cnfn minmag(half4 x, half4 y);
8197half8 __ovld __cnfn minmag(half8 x, half8 y);
8198half16 __ovld __cnfn minmag(half16 x, half16 y);
8199#endif //cl_khr_fp16
8200
8201/**
8202 * Decompose a floating-point number. The modf
8203 * function breaks the argument x into integral and
8204 * fractional parts, each of which has the same sign as
8205 * the argument. It stores the integral part in the object
8206 * pointed to by iptr.
8207 */
8208#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
8209float __ovld modf(float xfloat *iptr);
8210float2 __ovld modf(float2 xfloat2 *iptr);
8211float3 __ovld modf(float3 xfloat3 *iptr);
8212float4 __ovld modf(float4 xfloat4 *iptr);
8213float8 __ovld modf(float8 xfloat8 *iptr);
8214float16 __ovld modf(float16 xfloat16 *iptr);
8215#ifdef cl_khr_fp64
8216double __ovld modf(double x, double *iptr);
8217double2 __ovld modf(double2 x, double2 *iptr);
8218double3 __ovld modf(double3 x, double3 *iptr);
8219double4 __ovld modf(double4 x, double4 *iptr);
8220double8 __ovld modf(double8 x, double8 *iptr);
8221double16 __ovld modf(double16 x, double16 *iptr);
8222#endif //cl_khr_fp64
8223#ifdef cl_khr_fp16
8224half __ovld modf(half x, half *iptr);
8225half2 __ovld modf(half2 x, half2 *iptr);
8226half3 __ovld modf(half3 x, half3 *iptr);
8227half4 __ovld modf(half4 x, half4 *iptr);
8228half8 __ovld modf(half8 x, half8 *iptr);
8229half16 __ovld modf(half16 x, half16 *iptr);
8230#endif //cl_khr_fp16
8231#else
8232float __ovld modf(float x, __global float *iptr);
8233float2 __ovld modf(float2 x, __global float2 *iptr);
8234float3 __ovld modf(float3 x, __global float3 *iptr);
8235float4 __ovld modf(float4 x, __global float4 *iptr);
8236float8 __ovld modf(float8 x, __global float8 *iptr);
8237float16 __ovld modf(float16 x, __global float16 *iptr);
8238float __ovld modf(float x, __local float *iptr);
8239float2 __ovld modf(float2 x, __local float2 *iptr);
8240float3 __ovld modf(float3 x, __local float3 *iptr);
8241float4 __ovld modf(float4 x, __local float4 *iptr);
8242float8 __ovld modf(float8 x, __local float8 *iptr);
8243float16 __ovld modf(float16 x, __local float16 *iptr);
8244float __ovld modf(float x, __private float *iptr);
8245float2 __ovld modf(float2 x, __private float2 *iptr);
8246float3 __ovld modf(float3 x, __private float3 *iptr);
8247float4 __ovld modf(float4 x, __private float4 *iptr);
8248float8 __ovld modf(float8 x, __private float8 *iptr);
8249float16 __ovld modf(float16 x, __private float16 *iptr);
8250#ifdef cl_khr_fp64
8251double __ovld modf(double x, __global double *iptr);
8252double2 __ovld modf(double2 x, __global double2 *iptr);
8253double3 __ovld modf(double3 x, __global double3 *iptr);
8254double4 __ovld modf(double4 x, __global double4 *iptr);
8255double8 __ovld modf(double8 x, __global double8 *iptr);
8256double16 __ovld modf(double16 x, __global double16 *iptr);
8257double __ovld modf(double x, __local double *iptr);
8258double2 __ovld modf(double2 x, __local double2 *iptr);
8259double3 __ovld modf(double3 x, __local double3 *iptr);
8260double4 __ovld modf(double4 x, __local double4 *iptr);
8261double8 __ovld modf(double8 x, __local double8 *iptr);
8262double16 __ovld modf(double16 x, __local double16 *iptr);
8263double __ovld modf(double x, __private double *iptr);
8264double2 __ovld modf(double2 x, __private double2 *iptr);
8265double3 __ovld modf(double3 x, __private double3 *iptr);
8266double4 __ovld modf(double4 x, __private double4 *iptr);
8267double8 __ovld modf(double8 x, __private double8 *iptr);
8268double16 __ovld modf(double16 x, __private double16 *iptr);
8269#endif //cl_khr_fp64
8270#ifdef cl_khr_fp16
8271half __ovld modf(half x, __global half *iptr);
8272half2 __ovld modf(half2 x, __global half2 *iptr);
8273half3 __ovld modf(half3 x, __global half3 *iptr);
8274half4 __ovld modf(half4 x, __global half4 *iptr);
8275half8 __ovld modf(half8 x, __global half8 *iptr);
8276half16 __ovld modf(half16 x, __global half16 *iptr);
8277half __ovld modf(half x, __local half *iptr);
8278half2 __ovld modf(half2 x, __local half2 *iptr);
8279half3 __ovld modf(half3 x, __local half3 *iptr);
8280half4 __ovld modf(half4 x, __local half4 *iptr);
8281half8 __ovld modf(half8 x, __local half8 *iptr);
8282half16 __ovld modf(half16 x, __local half16 *iptr);
8283half __ovld modf(half x, __private half *iptr);
8284half2 __ovld modf(half2 x, __private half2 *iptr);
8285half3 __ovld modf(half3 x, __private half3 *iptr);
8286half4 __ovld modf(half4 x, __private half4 *iptr);
8287half8 __ovld modf(half8 x, __private half8 *iptr);
8288half16 __ovld modf(half16 x, __private half16 *iptr);
8289#endif //cl_khr_fp16
8290#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
8291
8292/**
8293 * Returns a quiet NaN. The nancode may be placed
8294 * in the significand of the resulting NaN.
8295 */
8296float __ovld __cnfn nan(uint nancode);
8297float2 __ovld __cnfn nan(uint2 nancode);
8298float3 __ovld __cnfn nan(uint3 nancode);
8299float4 __ovld __cnfn nan(uint4 nancode);
8300float8 __ovld __cnfn nan(uint8 nancode);
8301float16 __ovld __cnfn nan(uint16 nancode);
8302#ifdef cl_khr_fp64
8303double __ovld __cnfn nan(ulong nancode);
8304double2 __ovld __cnfn nan(ulong2 nancode);
8305double3 __ovld __cnfn nan(ulong3 nancode);
8306double4 __ovld __cnfn nan(ulong4 nancode);
8307double8 __ovld __cnfn nan(ulong8 nancode);
8308double16 __ovld __cnfn nan(ulong16 nancode);
8309#endif //cl_khr_fp64
8310#ifdef cl_khr_fp16
8311half __ovld __cnfn nan(ushort nancode);
8312half2 __ovld __cnfn nan(ushort2 nancode);
8313half3 __ovld __cnfn nan(ushort3 nancode);
8314half4 __ovld __cnfn nan(ushort4 nancode);
8315half8 __ovld __cnfn nan(ushort8 nancode);
8316half16 __ovld __cnfn nan(ushort16 nancode);
8317#endif //cl_khr_fp16
8318
8319/**
8320 * Computes the next representable single-precision
8321 * floating-point value following x in the direction of
8322 * y. Thus, if y is less than x, nextafter() returns the
8323 * largest representable floating-point number less
8324 * than x.
8325 */
8326float __ovld __cnfn nextafter(float xfloat y);
8327float2 __ovld __cnfn nextafter(float2 xfloat2 y);
8328float3 __ovld __cnfn nextafter(float3 xfloat3 y);
8329float4 __ovld __cnfn nextafter(float4 xfloat4 y);
8330float8 __ovld __cnfn nextafter(float8 xfloat8 y);
8331float16 __ovld __cnfn nextafter(float16 xfloat16 y);
8332#ifdef cl_khr_fp64
8333double __ovld __cnfn nextafter(double x, double y);
8334double2 __ovld __cnfn nextafter(double2 x, double2 y);
8335double3 __ovld __cnfn nextafter(double3 x, double3 y);
8336double4 __ovld __cnfn nextafter(double4 x, double4 y);
8337double8 __ovld __cnfn nextafter(double8 x, double8 y);
8338double16 __ovld __cnfn nextafter(double16 x, double16 y);
8339#endif //cl_khr_fp64
8340#ifdef cl_khr_fp16
8341half __ovld __cnfn nextafter(half x, half y);
8342half2 __ovld __cnfn nextafter(half2 x, half2 y);
8343half3 __ovld __cnfn nextafter(half3 x, half3 y);
8344half4 __ovld __cnfn nextafter(half4 x, half4 y);
8345half8 __ovld __cnfn nextafter(half8 x, half8 y);
8346half16 __ovld __cnfn nextafter(half16 x, half16 y);
8347#endif //cl_khr_fp16
8348
8349/**
8350 * Compute x to the power y.
8351 */
8352float __ovld __cnfn pow(float xfloat y);
8353float2 __ovld __cnfn pow(float2 xfloat2 y);
8354float3 __ovld __cnfn pow(float3 xfloat3 y);
8355float4 __ovld __cnfn pow(float4 xfloat4 y);
8356float8 __ovld __cnfn pow(float8 xfloat8 y);
8357float16 __ovld __cnfn pow(float16 xfloat16 y);
8358#ifdef cl_khr_fp64
8359double __ovld __cnfn pow(double x, double y);
8360double2 __ovld __cnfn pow(double2 x, double2 y);
8361double3 __ovld __cnfn pow(double3 x, double3 y);
8362double4 __ovld __cnfn pow(double4 x, double4 y);
8363double8 __ovld __cnfn pow(double8 x, double8 y);
8364double16 __ovld __cnfn pow(double16 x, double16 y);
8365#endif //cl_khr_fp64
8366#ifdef cl_khr_fp16
8367half __ovld __cnfn pow(half x, half y);
8368half2 __ovld __cnfn pow(half2 x, half2 y);
8369half3 __ovld __cnfn pow(half3 x, half3 y);
8370half4 __ovld __cnfn pow(half4 x, half4 y);
8371half8 __ovld __cnfn pow(half8 x, half8 y);
8372half16 __ovld __cnfn pow(half16 x, half16 y);
8373#endif //cl_khr_fp16
8374
8375/**
8376 * Compute x to the power y, where y is an integer.
8377 */
8378float __ovld __cnfn pown(float xint y);
8379float2 __ovld __cnfn pown(float2 xint2 y);
8380float3 __ovld __cnfn pown(float3 xint3 y);
8381float4 __ovld __cnfn pown(float4 xint4 y);
8382float8 __ovld __cnfn pown(float8 xint8 y);
8383float16 __ovld __cnfn pown(float16 xint16 y);
8384#ifdef cl_khr_fp64
8385double __ovld __cnfn pown(double x, int y);
8386double2 __ovld __cnfn pown(double2 x, int2 y);
8387double3 __ovld __cnfn pown(double3 x, int3 y);
8388double4 __ovld __cnfn pown(double4 x, int4 y);
8389double8 __ovld __cnfn pown(double8 x, int8 y);
8390double16 __ovld __cnfn pown(double16 x, int16 y);
8391#endif //cl_khr_fp64
8392#ifdef cl_khr_fp16
8393half __ovld __cnfn pown(half x, int y);
8394half2 __ovld __cnfn pown(half2 x, int2 y);
8395half3 __ovld __cnfn pown(half3 x, int3 y);
8396half4 __ovld __cnfn pown(half4 x, int4 y);
8397half8 __ovld __cnfn pown(half8 x, int8 y);
8398half16 __ovld __cnfn pown(half16 x, int16 y);
8399#endif //cl_khr_fp16
8400
8401/**
8402 * Compute x to the power y, where x is >= 0.
8403 */
8404float __ovld __cnfn powr(float xfloat y);
8405float2 __ovld __cnfn powr(float2 xfloat2 y);
8406float3 __ovld __cnfn powr(float3 xfloat3 y);
8407float4 __ovld __cnfn powr(float4 xfloat4 y);
8408float8 __ovld __cnfn powr(float8 xfloat8 y);
8409float16 __ovld __cnfn powr(float16 xfloat16 y);
8410#ifdef cl_khr_fp64
8411double __ovld __cnfn powr(double x, double y);
8412double2 __ovld __cnfn powr(double2 x, double2 y);
8413double3 __ovld __cnfn powr(double3 x, double3 y);
8414double4 __ovld __cnfn powr(double4 x, double4 y);
8415double8 __ovld __cnfn powr(double8 x, double8 y);
8416double16 __ovld __cnfn powr(double16 x, double16 y);
8417#endif //cl_khr_fp64
8418#ifdef cl_khr_fp16
8419half __ovld __cnfn powr(half x, half y);
8420half2 __ovld __cnfn powr(half2 x, half2 y);
8421half3 __ovld __cnfn powr(half3 x, half3 y);
8422half4 __ovld __cnfn powr(half4 x, half4 y);
8423half8 __ovld __cnfn powr(half8 x, half8 y);
8424half16 __ovld __cnfn powr(half16 x, half16 y);
8425#endif //cl_khr_fp16
8426
8427/**
8428 * Compute the value r such that r = x - n*y, where n
8429 * is the integer nearest the exact value of x/y. If there
8430 * are two integers closest to x/y, n shall be the even
8431 * one. If r is zero, it is given the same sign as x.
8432 */
8433float __ovld __cnfn remainder(float xfloat y);
8434float2 __ovld __cnfn remainder(float2 xfloat2 y);
8435float3 __ovld __cnfn remainder(float3 xfloat3 y);
8436float4 __ovld __cnfn remainder(float4 xfloat4 y);
8437float8 __ovld __cnfn remainder(float8 xfloat8 y);
8438float16 __ovld __cnfn remainder(float16 xfloat16 y);
8439#ifdef cl_khr_fp64
8440double __ovld __cnfn remainder(double x, double y);
8441double2 __ovld __cnfn remainder(double2 x, double2 y);
8442double3 __ovld __cnfn remainder(double3 x, double3 y);
8443double4 __ovld __cnfn remainder(double4 x, double4 y);
8444double8 __ovld __cnfn remainder(double8 x, double8 y);
8445double16 __ovld __cnfn remainder(double16 x, double16 y);
8446#endif //cl_khr_fp64
8447#ifdef cl_khr_fp16
8448half __ovld __cnfn remainder(half x, half y);
8449half2 __ovld __cnfn remainder(half2 x, half2 y);
8450half3 __ovld __cnfn remainder(half3 x, half3 y);
8451half4 __ovld __cnfn remainder(half4 x, half4 y);
8452half8 __ovld __cnfn remainder(half8 x, half8 y);
8453half16 __ovld __cnfn remainder(half16 x, half16 y);
8454#endif //cl_khr_fp16
8455
8456/**
8457 * The remquo function computes the value r such
8458 * that r = x - n*y, where n is the integer nearest the
8459 * exact value of x/y. If there are two integers closest
8460 * to x/y, n shall be the even one. If r is zero, it is
8461 * given the same sign as x. This is the same value
8462 * that is returned by the remainder function.
8463 * remquo also calculates the lower seven bits of the
8464 * integral quotient x/y, and gives that value the same
8465 * sign as x/y. It stores this signed value in the object
8466 * pointed to by quo.
8467 */
8468#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
8469float __ovld remquo(float xfloat yint *quo);
8470float2 __ovld remquo(float2 xfloat2 yint2 *quo);
8471float3 __ovld remquo(float3 xfloat3 yint3 *quo);
8472float4 __ovld remquo(float4 xfloat4 yint4 *quo);
8473float8 __ovld remquo(float8 xfloat8 yint8 *quo);
8474float16 __ovld remquo(float16 xfloat16 yint16 *quo);
8475#ifdef cl_khr_fp64
8476double __ovld remquo(double x, double y, int *quo);
8477double2 __ovld remquo(double2 x, double2 y, int2 *quo);
8478double3 __ovld remquo(double3 x, double3 y, int3 *quo);
8479double4 __ovld remquo(double4 x, double4 y, int4 *quo);
8480double8 __ovld remquo(double8 x, double8 y, int8 *quo);
8481double16 __ovld remquo(double16 x, double16 y, int16 *quo);
8482#endif //cl_khr_fp64
8483#ifdef cl_khr_fp16
8484half __ovld remquo(half x, half y, int *quo);
8485half2 __ovld remquo(half2 x, half2 y, int2 *quo);
8486half3 __ovld remquo(half3 x, half3 y, int3 *quo);
8487half4 __ovld remquo(half4 x, half4 y, int4 *quo);
8488half8 __ovld remquo(half8 x, half8 y, int8 *quo);
8489half16 __ovld remquo(half16 x, half16 y, int16 *quo);
8490
8491#endif //cl_khr_fp16
8492#else
8493float __ovld remquo(float x, float y, __global int *quo);
8494float2 __ovld remquo(float2 x, float2 y, __global int2 *quo);
8495float3 __ovld remquo(float3 x, float3 y, __global int3 *quo);
8496float4 __ovld remquo(float4 x, float4 y, __global int4 *quo);
8497float8 __ovld remquo(float8 x, float8 y, __global int8 *quo);
8498float16 __ovld remquo(float16 x, float16 y, __global int16 *quo);
8499float __ovld remquo(float x, float y, __local int *quo);
8500float2 __ovld remquo(float2 x, float2 y, __local int2 *quo);
8501float3 __ovld remquo(float3 x, float3 y, __local int3 *quo);
8502float4 __ovld remquo(float4 x, float4 y, __local int4 *quo);
8503float8 __ovld remquo(float8 x, float8 y, __local int8 *quo);
8504float16 __ovld remquo(float16 x, float16 y, __local int16 *quo);
8505float __ovld remquo(float x, float y, __private int *quo);
8506float2 __ovld remquo(float2 x, float2 y, __private int2 *quo);
8507float3 __ovld remquo(float3 x, float3 y, __private int3 *quo);
8508float4 __ovld remquo(float4 x, float4 y, __private int4 *quo);
8509float8 __ovld remquo(float8 x, float8 y, __private int8 *quo);
8510float16 __ovld remquo(float16 x, float16 y, __private int16 *quo);
8511#ifdef cl_khr_fp64
8512double __ovld remquo(double x, double y, __global int *quo);
8513double2 __ovld remquo(double2 x, double2 y, __global int2 *quo);
8514double3 __ovld remquo(double3 x, double3 y, __global int3 *quo);
8515double4 __ovld remquo(double4 x, double4 y, __global int4 *quo);
8516double8 __ovld remquo(double8 x, double8 y, __global int8 *quo);
8517double16 __ovld remquo(double16 x, double16 y, __global int16 *quo);
8518double __ovld remquo(double x, double y, __local int *quo);
8519double2 __ovld remquo(double2 x, double2 y, __local int2 *quo);
8520double3 __ovld remquo(double3 x, double3 y, __local int3 *quo);
8521double4 __ovld remquo(double4 x, double4 y, __local int4 *quo);
8522double8 __ovld remquo(double8 x, double8 y, __local int8 *quo);
8523double16 __ovld remquo(double16 x, double16 y, __local int16 *quo);
8524double __ovld remquo(double x, double y, __private int *quo);
8525double2 __ovld remquo(double2 x, double2 y, __private int2 *quo);
8526double3 __ovld remquo(double3 x, double3 y, __private int3 *quo);
8527double4 __ovld remquo(double4 x, double4 y, __private int4 *quo);
8528double8 __ovld remquo(double8 x, double8 y, __private int8 *quo);
8529double16 __ovld remquo(double16 x, double16 y, __private int16 *quo);
8530#endif //cl_khr_fp64
8531#ifdef cl_khr_fp16
8532half __ovld remquo(half x, half y, __global int *quo);
8533half2 __ovld remquo(half2 x, half2 y, __global int2 *quo);
8534half3 __ovld remquo(half3 x, half3 y, __global int3 *quo);
8535half4 __ovld remquo(half4 x, half4 y, __global int4 *quo);
8536half8 __ovld remquo(half8 x, half8 y, __global int8 *quo);
8537half16 __ovld remquo(half16 x, half16 y, __global int16 *quo);
8538half __ovld remquo(half x, half y, __local int *quo);
8539half2 __ovld remquo(half2 x, half2 y, __local int2 *quo);
8540half3 __ovld remquo(half3 x, half3 y, __local int3 *quo);
8541half4 __ovld remquo(half4 x, half4 y, __local int4 *quo);
8542half8 __ovld remquo(half8 x, half8 y, __local int8 *quo);
8543half16 __ovld remquo(half16 x, half16 y, __local int16 *quo);
8544half __ovld remquo(half x, half y, __private int *quo);
8545half2 __ovld remquo(half2 x, half2 y, __private int2 *quo);
8546half3 __ovld remquo(half3 x, half3 y, __private int3 *quo);
8547half4 __ovld remquo(half4 x, half4 y, __private int4 *quo);
8548half8 __ovld remquo(half8 x, half8 y, __private int8 *quo);
8549half16 __ovld remquo(half16 x, half16 y, __private int16 *quo);
8550#endif //cl_khr_fp16
8551#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
8552/**
8553 * Round to integral value (using round to nearest
8554 * even rounding mode) in floating-point format.
8555 * Refer to section 7.1 for description of rounding
8556 * modes.
8557 */
8558float __ovld __cnfn rint(float);
8559float2 __ovld __cnfn rint(float2);
8560float3 __ovld __cnfn rint(float3);
8561float4 __ovld __cnfn rint(float4);
8562float8 __ovld __cnfn rint(float8);
8563float16 __ovld __cnfn rint(float16);
8564#ifdef cl_khr_fp64
8565double __ovld __cnfn rint(double);
8566double2 __ovld __cnfn rint(double2);
8567double3 __ovld __cnfn rint(double3);
8568double4 __ovld __cnfn rint(double4);
8569double8 __ovld __cnfn rint(double8);
8570double16 __ovld __cnfn rint(double16);
8571#endif //cl_khr_fp64
8572#ifdef cl_khr_fp16
8573half __ovld __cnfn rint(half);
8574half2 __ovld __cnfn rint(half2);
8575half3 __ovld __cnfn rint(half3);
8576half4 __ovld __cnfn rint(half4);
8577half8 __ovld __cnfn rint(half8);
8578half16 __ovld __cnfn rint(half16);
8579#endif //cl_khr_fp16
8580
8581/**
8582 * Compute x to the power 1/y.
8583 */
8584float __ovld __cnfn rootn(float xint y);
8585float2 __ovld __cnfn rootn(float2 xint2 y);
8586float3 __ovld __cnfn rootn(float3 xint3 y);
8587float4 __ovld __cnfn rootn(float4 xint4 y);
8588float8 __ovld __cnfn rootn(float8 xint8 y);
8589float16 __ovld __cnfn rootn(float16 xint16 y);
8590#ifdef cl_khr_fp64
8591double __ovld __cnfn rootn(double x, int y);
8592double2 __ovld __cnfn rootn(double2 x, int2 y);
8593double3 __ovld __cnfn rootn(double3 x, int3 y);
8594double4 __ovld __cnfn rootn(double4 x, int4 y);
8595double8 __ovld __cnfn rootn(double8 x, int8 y);
8596double16 __ovld __cnfn rootn(double16 x, int16 y);
8597#endif //cl_khr_fp64
8598#ifdef cl_khr_fp16
8599half __ovld __cnfn rootn(half x, int y);
8600half2 __ovld __cnfn rootn(half2 x, int2 y);
8601half3 __ovld __cnfn rootn(half3 x, int3 y);
8602half4 __ovld __cnfn rootn(half4 x, int4 y);
8603half8 __ovld __cnfn rootn(half8 x, int8 y);
8604half16 __ovld __cnfn rootn(half16 x, int16 y);
8605#endif //cl_khr_fp16
8606
8607/**
8608 * Return the integral value nearest to x rounding
8609 * halfway cases away from zero, regardless of the
8610 * current rounding direction.
8611 */
8612float __ovld __cnfn round(float x);
8613float2 __ovld __cnfn round(float2 x);
8614float3 __ovld __cnfn round(float3 x);
8615float4 __ovld __cnfn round(float4 x);
8616float8 __ovld __cnfn round(float8 x);
8617float16 __ovld __cnfn round(float16 x);
8618#ifdef cl_khr_fp64
8619double __ovld __cnfn round(double x);
8620double2 __ovld __cnfn round(double2 x);
8621double3 __ovld __cnfn round(double3 x);
8622double4 __ovld __cnfn round(double4 x);
8623double8 __ovld __cnfn round(double8 x);
8624double16 __ovld __cnfn round(double16 x);
8625#endif //cl_khr_fp64
8626#ifdef cl_khr_fp16
8627half __ovld __cnfn round(half x);
8628half2 __ovld __cnfn round(half2 x);
8629half3 __ovld __cnfn round(half3 x);
8630half4 __ovld __cnfn round(half4 x);
8631half8 __ovld __cnfn round(half8 x);
8632half16 __ovld __cnfn round(half16 x);
8633#endif //cl_khr_fp16
8634
8635/**
8636 * Compute inverse square root.
8637 */
8638float __ovld __cnfn rsqrt(float);
8639float2 __ovld __cnfn rsqrt(float2);
8640float3 __ovld __cnfn rsqrt(float3);
8641float4 __ovld __cnfn rsqrt(float4);
8642float8 __ovld __cnfn rsqrt(float8);
8643float16 __ovld __cnfn rsqrt(float16);
8644#ifdef cl_khr_fp64
8645double __ovld __cnfn rsqrt(double);
8646double2 __ovld __cnfn rsqrt(double2);
8647double3 __ovld __cnfn rsqrt(double3);
8648double4 __ovld __cnfn rsqrt(double4);
8649double8 __ovld __cnfn rsqrt(double8);
8650double16 __ovld __cnfn rsqrt(double16);
8651#endif //cl_khr_fp64
8652#ifdef cl_khr_fp16
8653half __ovld __cnfn rsqrt(half);
8654half2 __ovld __cnfn rsqrt(half2);
8655half3 __ovld __cnfn rsqrt(half3);
8656half4 __ovld __cnfn rsqrt(half4);
8657half8 __ovld __cnfn rsqrt(half8);
8658half16 __ovld __cnfn rsqrt(half16);
8659#endif //cl_khr_fp16
8660
8661/**
8662 * Compute sine.
8663 */
8664float __ovld __cnfn sin(float);
8665float2 __ovld __cnfn sin(float2);
8666float3 __ovld __cnfn sin(float3);
8667float4 __ovld __cnfn sin(float4);
8668float8 __ovld __cnfn sin(float8);
8669float16 __ovld __cnfn sin(float16);
8670#ifdef cl_khr_fp64
8671double __ovld __cnfn sin(double);
8672double2 __ovld __cnfn sin(double2);
8673double3 __ovld __cnfn sin(double3);
8674double4 __ovld __cnfn sin(double4);
8675double8 __ovld __cnfn sin(double8);
8676double16 __ovld __cnfn sin(double16);
8677#endif //cl_khr_fp64
8678#ifdef cl_khr_fp16
8679half __ovld __cnfn sin(half);
8680half2 __ovld __cnfn sin(half2);
8681half3 __ovld __cnfn sin(half3);
8682half4 __ovld __cnfn sin(half4);
8683half8 __ovld __cnfn sin(half8);
8684half16 __ovld __cnfn sin(half16);
8685#endif //cl_khr_fp16
8686
8687/**
8688 * Compute sine and cosine of x. The computed sine
8689 * is the return value and computed cosine is returned
8690 * in cosval.
8691 */
8692#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
8693float __ovld sincos(float xfloat *cosval);
8694float2 __ovld sincos(float2 xfloat2 *cosval);
8695float3 __ovld sincos(float3 xfloat3 *cosval);
8696float4 __ovld sincos(float4 xfloat4 *cosval);
8697float8 __ovld sincos(float8 xfloat8 *cosval);
8698float16 __ovld sincos(float16 xfloat16 *cosval);
8699#ifdef cl_khr_fp64
8700double __ovld sincos(double x, double *cosval);
8701double2 __ovld sincos(double2 x, double2 *cosval);
8702double3 __ovld sincos(double3 x, double3 *cosval);
8703double4 __ovld sincos(double4 x, double4 *cosval);
8704double8 __ovld sincos(double8 x, double8 *cosval);
8705double16 __ovld sincos(double16 x, double16 *cosval);
8706#endif //cl_khr_fp64
8707#ifdef cl_khr_fp16
8708half __ovld sincos(half x, half *cosval);
8709half2 __ovld sincos(half2 x, half2 *cosval);
8710half3 __ovld sincos(half3 x, half3 *cosval);
8711half4 __ovld sincos(half4 x, half4 *cosval);
8712half8 __ovld sincos(half8 x, half8 *cosval);
8713half16 __ovld sincos(half16 x, half16 *cosval);
8714#endif //cl_khr_fp16
8715#else
8716float __ovld sincos(float x, __global float *cosval);
8717float2 __ovld sincos(float2 x, __global float2 *cosval);
8718float3 __ovld sincos(float3 x, __global float3 *cosval);
8719float4 __ovld sincos(float4 x, __global float4 *cosval);
8720float8 __ovld sincos(float8 x, __global float8 *cosval);
8721float16 __ovld sincos(float16 x, __global float16 *cosval);
8722float __ovld sincos(float x, __local float *cosval);
8723float2 __ovld sincos(float2 x, __local float2 *cosval);
8724float3 __ovld sincos(float3 x, __local float3 *cosval);
8725float4 __ovld sincos(float4 x, __local float4 *cosval);
8726float8 __ovld sincos(float8 x, __local float8 *cosval);
8727float16 __ovld sincos(float16 x, __local float16 *cosval);
8728float __ovld sincos(float x, __private float *cosval);
8729float2 __ovld sincos(float2 x, __private float2 *cosval);
8730float3 __ovld sincos(float3 x, __private float3 *cosval);
8731float4 __ovld sincos(float4 x, __private float4 *cosval);
8732float8 __ovld sincos(float8 x, __private float8 *cosval);
8733float16 __ovld sincos(float16 x, __private float16 *cosval);
8734#ifdef cl_khr_fp64
8735double __ovld sincos(double x, __global double *cosval);
8736double2 __ovld sincos(double2 x, __global double2 *cosval);
8737double3 __ovld sincos(double3 x, __global double3 *cosval);
8738double4 __ovld sincos(double4 x, __global double4 *cosval);
8739double8 __ovld sincos(double8 x, __global double8 *cosval);
8740double16 __ovld sincos(double16 x, __global double16 *cosval);
8741double __ovld sincos(double x, __local double *cosval);
8742double2 __ovld sincos(double2 x, __local double2 *cosval);
8743double3 __ovld sincos(double3 x, __local double3 *cosval);
8744double4 __ovld sincos(double4 x, __local double4 *cosval);
8745double8 __ovld sincos(double8 x, __local double8 *cosval);
8746double16 __ovld sincos(double16 x, __local double16 *cosval);
8747double __ovld sincos(double x, __private double *cosval);
8748double2 __ovld sincos(double2 x, __private double2 *cosval);
8749double3 __ovld sincos(double3 x, __private double3 *cosval);
8750double4 __ovld sincos(double4 x, __private double4 *cosval);
8751double8 __ovld sincos(double8 x, __private double8 *cosval);
8752double16 __ovld sincos(double16 x, __private double16 *cosval);
8753#endif //cl_khr_fp64
8754#ifdef cl_khr_fp16
8755half __ovld sincos(half x, __global half *cosval);
8756half2 __ovld sincos(half2 x, __global half2 *cosval);
8757half3 __ovld sincos(half3 x, __global half3 *cosval);
8758half4 __ovld sincos(half4 x, __global half4 *cosval);
8759half8 __ovld sincos(half8 x, __global half8 *cosval);
8760half16 __ovld sincos(half16 x, __global half16 *cosval);
8761half __ovld sincos(half x, __local half *cosval);
8762half2 __ovld sincos(half2 x, __local half2 *cosval);
8763half3 __ovld sincos(half3 x, __local half3 *cosval);
8764half4 __ovld sincos(half4 x, __local half4 *cosval);
8765half8 __ovld sincos(half8 x, __local half8 *cosval);
8766half16 __ovld sincos(half16 x, __local half16 *cosval);
8767half __ovld sincos(half x, __private half *cosval);
8768half2 __ovld sincos(half2 x, __private half2 *cosval);
8769half3 __ovld sincos(half3 x, __private half3 *cosval);
8770half4 __ovld sincos(half4 x, __private half4 *cosval);
8771half8 __ovld sincos(half8 x, __private half8 *cosval);
8772half16 __ovld sincos(half16 x, __private half16 *cosval);
8773#endif //cl_khr_fp16
8774#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
8775
8776/**
8777 * Compute hyperbolic sine.
8778 */
8779float __ovld __cnfn sinh(float);
8780float2 __ovld __cnfn sinh(float2);
8781float3 __ovld __cnfn sinh(float3);
8782float4 __ovld __cnfn sinh(float4);
8783float8 __ovld __cnfn sinh(float8);
8784float16 __ovld __cnfn sinh(float16);
8785#ifdef cl_khr_fp64
8786double __ovld __cnfn sinh(double);
8787double2 __ovld __cnfn sinh(double2);
8788double3 __ovld __cnfn sinh(double3);
8789double4 __ovld __cnfn sinh(double4);
8790double8 __ovld __cnfn sinh(double8);
8791double16 __ovld __cnfn sinh(double16);
8792#endif //cl_khr_fp64
8793#ifdef cl_khr_fp16
8794half __ovld __cnfn sinh(half);
8795half2 __ovld __cnfn sinh(half2);
8796half3 __ovld __cnfn sinh(half3);
8797half4 __ovld __cnfn sinh(half4);
8798half8 __ovld __cnfn sinh(half8);
8799half16 __ovld __cnfn sinh(half16);
8800#endif //cl_khr_fp16
8801
8802/**
8803 * Compute sin (PI * x).
8804 */
8805float __ovld __cnfn sinpi(float x);
8806float2 __ovld __cnfn sinpi(float2 x);
8807float3 __ovld __cnfn sinpi(float3 x);
8808float4 __ovld __cnfn sinpi(float4 x);
8809float8 __ovld __cnfn sinpi(float8 x);
8810float16 __ovld __cnfn sinpi(float16 x);
8811#ifdef cl_khr_fp64
8812double __ovld __cnfn sinpi(double x);
8813double2 __ovld __cnfn sinpi(double2 x);
8814double3 __ovld __cnfn sinpi(double3 x);
8815double4 __ovld __cnfn sinpi(double4 x);
8816double8 __ovld __cnfn sinpi(double8 x);
8817double16 __ovld __cnfn sinpi(double16 x);
8818#endif //cl_khr_fp64
8819#ifdef cl_khr_fp16
8820half __ovld __cnfn sinpi(half x);
8821half2 __ovld __cnfn sinpi(half2 x);
8822half3 __ovld __cnfn sinpi(half3 x);
8823half4 __ovld __cnfn sinpi(half4 x);
8824half8 __ovld __cnfn sinpi(half8 x);
8825half16 __ovld __cnfn sinpi(half16 x);
8826#endif //cl_khr_fp16
8827
8828/**
8829 * Compute square root.
8830 */
8831float __ovld __cnfn sqrt(float);
8832float2 __ovld __cnfn sqrt(float2);
8833float3 __ovld __cnfn sqrt(float3);
8834float4 __ovld __cnfn sqrt(float4);
8835float8 __ovld __cnfn sqrt(float8);
8836float16 __ovld __cnfn sqrt(float16);
8837#ifdef cl_khr_fp64
8838double __ovld __cnfn sqrt(double);
8839double2 __ovld __cnfn sqrt(double2);
8840double3 __ovld __cnfn sqrt(double3);
8841double4 __ovld __cnfn sqrt(double4);
8842double8 __ovld __cnfn sqrt(double8);
8843double16 __ovld __cnfn sqrt(double16);
8844#endif //cl_khr_fp64
8845#ifdef cl_khr_fp16
8846half __ovld __cnfn sqrt(half);
8847half2 __ovld __cnfn sqrt(half2);
8848half3 __ovld __cnfn sqrt(half3);
8849half4 __ovld __cnfn sqrt(half4);
8850half8 __ovld __cnfn sqrt(half8);
8851half16 __ovld __cnfn sqrt(half16);
8852#endif //cl_khr_fp16
8853
8854/**
8855 * Compute tangent.
8856 */
8857float __ovld __cnfn tan(float);
8858float2 __ovld __cnfn tan(float2);
8859float3 __ovld __cnfn tan(float3);
8860float4 __ovld __cnfn tan(float4);
8861float8 __ovld __cnfn tan(float8);
8862float16 __ovld __cnfn tan(float16);
8863#ifdef cl_khr_fp64
8864double __ovld __cnfn tan(double);
8865double2 __ovld __cnfn tan(double2);
8866double3 __ovld __cnfn tan(double3);
8867double4 __ovld __cnfn tan(double4);
8868double8 __ovld __cnfn tan(double8);
8869double16 __ovld __cnfn tan(double16);
8870#endif //cl_khr_fp64
8871#ifdef cl_khr_fp16
8872half __ovld __cnfn tan(half);
8873half2 __ovld __cnfn tan(half2);
8874half3 __ovld __cnfn tan(half3);
8875half4 __ovld __cnfn tan(half4);
8876half8 __ovld __cnfn tan(half8);
8877half16 __ovld __cnfn tan(half16);
8878#endif //cl_khr_fp16
8879
8880/**
8881 * Compute hyperbolic tangent.
8882 */
8883float __ovld __cnfn tanh(float);
8884float2 __ovld __cnfn tanh(float2);
8885float3 __ovld __cnfn tanh(float3);
8886float4 __ovld __cnfn tanh(float4);
8887float8 __ovld __cnfn tanh(float8);
8888float16 __ovld __cnfn tanh(float16);
8889#ifdef cl_khr_fp64
8890double __ovld __cnfn tanh(double);
8891double2 __ovld __cnfn tanh(double2);
8892double3 __ovld __cnfn tanh(double3);
8893double4 __ovld __cnfn tanh(double4);
8894double8 __ovld __cnfn tanh(double8);
8895double16 __ovld __cnfn tanh(double16);
8896#endif //cl_khr_fp64
8897#ifdef cl_khr_fp16
8898half __ovld __cnfn tanh(half);
8899half2 __ovld __cnfn tanh(half2);
8900half3 __ovld __cnfn tanh(half3);
8901half4 __ovld __cnfn tanh(half4);
8902half8 __ovld __cnfn tanh(half8);
8903half16 __ovld __cnfn tanh(half16);
8904#endif //cl_khr_fp16
8905
8906/**
8907 * Compute tan (PI * x).
8908 */
8909float __ovld __cnfn tanpi(float x);
8910float2 __ovld __cnfn tanpi(float2 x);
8911float3 __ovld __cnfn tanpi(float3 x);
8912float4 __ovld __cnfn tanpi(float4 x);
8913float8 __ovld __cnfn tanpi(float8 x);
8914float16 __ovld __cnfn tanpi(float16 x);
8915#ifdef cl_khr_fp64
8916double __ovld __cnfn tanpi(double x);
8917double2 __ovld __cnfn tanpi(double2 x);
8918double3 __ovld __cnfn tanpi(double3 x);
8919double4 __ovld __cnfn tanpi(double4 x);
8920double8 __ovld __cnfn tanpi(double8 x);
8921double16 __ovld __cnfn tanpi(double16 x);
8922#endif //cl_khr_fp64
8923#ifdef cl_khr_fp16
8924half __ovld __cnfn tanpi(half x);
8925half2 __ovld __cnfn tanpi(half2 x);
8926half3 __ovld __cnfn tanpi(half3 x);
8927half4 __ovld __cnfn tanpi(half4 x);
8928half8 __ovld __cnfn tanpi(half8 x);
8929half16 __ovld __cnfn tanpi(half16 x);
8930#endif //cl_khr_fp16
8931
8932/**
8933 * Compute the gamma function.
8934 */
8935float __ovld __cnfn tgamma(float);
8936float2 __ovld __cnfn tgamma(float2);
8937float3 __ovld __cnfn tgamma(float3);
8938float4 __ovld __cnfn tgamma(float4);
8939float8 __ovld __cnfn tgamma(float8);
8940float16 __ovld __cnfn tgamma(float16);
8941#ifdef cl_khr_fp64
8942double __ovld __cnfn tgamma(double);
8943double2 __ovld __cnfn tgamma(double2);
8944double3 __ovld __cnfn tgamma(double3);
8945double4 __ovld __cnfn tgamma(double4);
8946double8 __ovld __cnfn tgamma(double8);
8947double16 __ovld __cnfn tgamma(double16);
8948#endif //cl_khr_fp64
8949#ifdef cl_khr_fp16
8950half __ovld __cnfn tgamma(half);
8951half2 __ovld __cnfn tgamma(half2);
8952half3 __ovld __cnfn tgamma(half3);
8953half4 __ovld __cnfn tgamma(half4);
8954half8 __ovld __cnfn tgamma(half8);
8955half16 __ovld __cnfn tgamma(half16);
8956#endif //cl_khr_fp16
8957
8958/**
8959 * Round to integral value using the round to zero
8960 * rounding mode.
8961 */
8962float __ovld __cnfn trunc(float);
8963float2 __ovld __cnfn trunc(float2);
8964float3 __ovld __cnfn trunc(float3);
8965float4 __ovld __cnfn trunc(float4);
8966float8 __ovld __cnfn trunc(float8);
8967float16 __ovld __cnfn trunc(float16);
8968#ifdef cl_khr_fp64
8969double __ovld __cnfn trunc(double);
8970double2 __ovld __cnfn trunc(double2);
8971double3 __ovld __cnfn trunc(double3);
8972double4 __ovld __cnfn trunc(double4);
8973double8 __ovld __cnfn trunc(double8);
8974double16 __ovld __cnfn trunc(double16);
8975#endif //cl_khr_fp64
8976#ifdef cl_khr_fp16
8977half __ovld __cnfn trunc(half);
8978half2 __ovld __cnfn trunc(half2);
8979half3 __ovld __cnfn trunc(half3);
8980half4 __ovld __cnfn trunc(half4);
8981half8 __ovld __cnfn trunc(half8);
8982half16 __ovld __cnfn trunc(half16);
8983#endif //cl_khr_fp16
8984
8985/**
8986 * Compute cosine. x must be in the range -2^16 ... +2^16.
8987 */
8988float __ovld __cnfn half_cos(float x);
8989float2 __ovld __cnfn half_cos(float2 x);
8990float3 __ovld __cnfn half_cos(float3 x);
8991float4 __ovld __cnfn half_cos(float4 x);
8992float8 __ovld __cnfn half_cos(float8 x);
8993float16 __ovld __cnfn half_cos(float16 x);
8994
8995/**
8996 * Compute x / y.
8997 */
8998float __ovld __cnfn half_divide(float xfloat y);
8999float2 __ovld __cnfn half_divide(float2 xfloat2 y);
9000float3 __ovld __cnfn half_divide(float3 xfloat3 y);
9001float4 __ovld __cnfn half_divide(float4 xfloat4 y);
9002float8 __ovld __cnfn half_divide(float8 xfloat8 y);
9003float16 __ovld __cnfn half_divide(float16 xfloat16 y);
9004
9005/**
9006 * Compute the base- e exponential of x.
9007 */
9008float __ovld __cnfn half_exp(float x);
9009float2 __ovld __cnfn half_exp(float2 x);
9010float3 __ovld __cnfn half_exp(float3 x);
9011float4 __ovld __cnfn half_exp(float4 x);
9012float8 __ovld __cnfn half_exp(float8 x);
9013float16 __ovld __cnfn half_exp(float16 x);
9014
9015/**
9016 * Compute the base- 2 exponential of x.
9017 */
9018float __ovld __cnfn half_exp2(float x);
9019float2 __ovld __cnfn half_exp2(float2 x);
9020float3 __ovld __cnfn half_exp2(float3 x);
9021float4 __ovld __cnfn half_exp2(float4 x);
9022float8 __ovld __cnfn half_exp2(float8 x);
9023float16 __ovld __cnfn half_exp2(float16 x);
9024
9025/**
9026 * Compute the base- 10 exponential of x.
9027 */
9028float __ovld __cnfn half_exp10(float x);
9029float2 __ovld __cnfn half_exp10(float2 x);
9030float3 __ovld __cnfn half_exp10(float3 x);
9031float4 __ovld __cnfn half_exp10(float4 x);
9032float8 __ovld __cnfn half_exp10(float8 x);
9033float16 __ovld __cnfn half_exp10(float16 x);
9034
9035/**
9036 * Compute natural logarithm.
9037 */
9038float __ovld __cnfn half_log(float x);
9039float2 __ovld __cnfn half_log(float2 x);
9040float3 __ovld __cnfn half_log(float3 x);
9041float4 __ovld __cnfn half_log(float4 x);
9042float8 __ovld __cnfn half_log(float8 x);
9043float16 __ovld __cnfn half_log(float16 x);
9044
9045/**
9046 * Compute a base 2 logarithm.
9047 */
9048float __ovld __cnfn half_log2(float x);
9049float2 __ovld __cnfn half_log2(float2 x);
9050float3 __ovld __cnfn half_log2(float3 x);
9051float4 __ovld __cnfn half_log2(float4 x);
9052float8 __ovld __cnfn half_log2(float8 x);
9053float16 __ovld __cnfn half_log2(float16 x);
9054
9055/**
9056 * Compute a base 10 logarithm.
9057 */
9058float __ovld __cnfn half_log10(float x);
9059float2 __ovld __cnfn half_log10(float2 x);
9060float3 __ovld __cnfn half_log10(float3 x);
9061float4 __ovld __cnfn half_log10(float4 x);
9062float8 __ovld __cnfn half_log10(float8 x);
9063float16 __ovld __cnfn half_log10(float16 x);
9064
9065/**
9066 * Compute x to the power y, where x is >= 0.
9067 */
9068float __ovld __cnfn half_powr(float xfloat y);
9069float2 __ovld __cnfn half_powr(float2 xfloat2 y);
9070float3 __ovld __cnfn half_powr(float3 xfloat3 y);
9071float4 __ovld __cnfn half_powr(float4 xfloat4 y);
9072float8 __ovld __cnfn half_powr(float8 xfloat8 y);
9073float16 __ovld __cnfn half_powr(float16 xfloat16 y);
9074
9075/**
9076 * Compute reciprocal.
9077 */
9078float __ovld __cnfn half_recip(float x);
9079float2 __ovld __cnfn half_recip(float2 x);
9080float3 __ovld __cnfn half_recip(float3 x);
9081float4 __ovld __cnfn half_recip(float4 x);
9082float8 __ovld __cnfn half_recip(float8 x);
9083float16 __ovld __cnfn half_recip(float16 x);
9084
9085/**
9086 * Compute inverse square root.
9087 */
9088float __ovld __cnfn half_rsqrt(float x);
9089float2 __ovld __cnfn half_rsqrt(float2 x);
9090float3 __ovld __cnfn half_rsqrt(float3 x);
9091float4 __ovld __cnfn half_rsqrt(float4 x);
9092float8 __ovld __cnfn half_rsqrt(float8 x);
9093float16 __ovld __cnfn half_rsqrt(float16 x);
9094
9095/**
9096 * Compute sine. x must be in the range -2^16 ... +2^16.
9097 */
9098float __ovld __cnfn half_sin(float x);
9099float2 __ovld __cnfn half_sin(float2 x);
9100float3 __ovld __cnfn half_sin(float3 x);
9101float4 __ovld __cnfn half_sin(float4 x);
9102float8 __ovld __cnfn half_sin(float8 x);
9103float16 __ovld __cnfn half_sin(float16 x);
9104
9105/**
9106 * Compute square root.
9107 */
9108float __ovld __cnfn half_sqrt(float x);
9109float2 __ovld __cnfn half_sqrt(float2 x);
9110float3 __ovld __cnfn half_sqrt(float3 x);
9111float4 __ovld __cnfn half_sqrt(float4 x);
9112float8 __ovld __cnfn half_sqrt(float8 x);
9113float16 __ovld __cnfn half_sqrt(float16 x);
9114
9115/**
9116 * Compute tangent. x must be in the range -216 ... +216.
9117 */
9118float __ovld __cnfn half_tan(float x);
9119float2 __ovld __cnfn half_tan(float2 x);
9120float3 __ovld __cnfn half_tan(float3 x);
9121float4 __ovld __cnfn half_tan(float4 x);
9122float8 __ovld __cnfn half_tan(float8 x);
9123float16 __ovld __cnfn half_tan(float16 x);
9124
9125/**
9126 * Compute cosine over an implementation-defined range.
9127 * The maximum error is implementation-defined.
9128 */
9129float __ovld __cnfn native_cos(float x);
9130float2 __ovld __cnfn native_cos(float2 x);
9131float3 __ovld __cnfn native_cos(float3 x);
9132float4 __ovld __cnfn native_cos(float4 x);
9133float8 __ovld __cnfn native_cos(float8 x);
9134float16 __ovld __cnfn native_cos(float16 x);
9135
9136/**
9137 * Compute x / y over an implementation-defined range.
9138 * The maximum error is implementation-defined.
9139 */
9140float __ovld __cnfn native_divide(float xfloat y);
9141float2 __ovld __cnfn native_divide(float2 xfloat2 y);
9142float3 __ovld __cnfn native_divide(float3 xfloat3 y);
9143float4 __ovld __cnfn native_divide(float4 xfloat4 y);
9144float8 __ovld __cnfn native_divide(float8 xfloat8 y);
9145float16 __ovld __cnfn native_divide(float16 xfloat16 y);
9146
9147/**
9148 * Compute the base- e exponential of x over an
9149 * implementation-defined range. The maximum error is
9150 * implementation-defined.
9151 */
9152float __ovld __cnfn native_exp(float x);
9153float2 __ovld __cnfn native_exp(float2 x);
9154float3 __ovld __cnfn native_exp(float3 x);
9155float4 __ovld __cnfn native_exp(float4 x);
9156float8 __ovld __cnfn native_exp(float8 x);
9157float16 __ovld __cnfn native_exp(float16 x);
9158
9159/**
9160 * Compute the base- 2 exponential of x over an
9161 * implementation-defined range. The maximum error is
9162 * implementation-defined.
9163 */
9164float __ovld __cnfn native_exp2(float x);
9165float2 __ovld __cnfn native_exp2(float2 x);
9166float3 __ovld __cnfn native_exp2(float3 x);
9167float4 __ovld __cnfn native_exp2(float4 x);
9168float8 __ovld __cnfn native_exp2(float8 x);
9169float16 __ovld __cnfn native_exp2(float16 x);
9170
9171/**
9172 * Compute the base- 10 exponential of x over an
9173 * implementation-defined range. The maximum error is
9174 * implementation-defined.
9175 */
9176float __ovld __cnfn native_exp10(float x);
9177float2 __ovld __cnfn native_exp10(float2 x);
9178float3 __ovld __cnfn native_exp10(float3 x);
9179float4 __ovld __cnfn native_exp10(float4 x);
9180float8 __ovld __cnfn native_exp10(float8 x);
9181float16 __ovld __cnfn native_exp10(float16 x);
9182
9183/**
9184 * Compute natural logarithm over an implementationdefined
9185 * range. The maximum error is implementation
9186 * defined.
9187 */
9188float __ovld __cnfn native_log(float x);
9189float2 __ovld __cnfn native_log(float2 x);
9190float3 __ovld __cnfn native_log(float3 x);
9191float4 __ovld __cnfn native_log(float4 x);
9192float8 __ovld __cnfn native_log(float8 x);
9193float16 __ovld __cnfn native_log(float16 x);
9194
9195/**
9196 * Compute a base 2 logarithm over an implementationdefined
9197 * range. The maximum error is implementationdefined.
9198 */
9199float __ovld __cnfn native_log2(float x);
9200float2 __ovld __cnfn native_log2(float2 x);
9201float3 __ovld __cnfn native_log2(float3 x);
9202float4 __ovld __cnfn native_log2(float4 x);
9203float8 __ovld __cnfn native_log2(float8 x);
9204float16 __ovld __cnfn native_log2(float16 x);
9205
9206/**
9207 * Compute a base 10 logarithm over an implementationdefined
9208 * range. The maximum error is implementationdefined.
9209 */
9210float __ovld __cnfn native_log10(float x);
9211float2 __ovld __cnfn native_log10(float2 x);
9212float3 __ovld __cnfn native_log10(float3 x);
9213float4 __ovld __cnfn native_log10(float4 x);
9214float8 __ovld __cnfn native_log10(float8 x);
9215float16 __ovld __cnfn native_log10(float16 x);
9216
9217/**
9218 * Compute x to the power y, where x is >= 0. The range of
9219 * x and y are implementation-defined. The maximum error
9220 * is implementation-defined.
9221 */
9222float __ovld __cnfn native_powr(float xfloat y);
9223float2 __ovld __cnfn native_powr(float2 xfloat2 y);
9224float3 __ovld __cnfn native_powr(float3 xfloat3 y);
9225float4 __ovld __cnfn native_powr(float4 xfloat4 y);
9226float8 __ovld __cnfn native_powr(float8 xfloat8 y);
9227float16 __ovld __cnfn native_powr(float16 xfloat16 y);
9228
9229/**
9230 * Compute reciprocal over an implementation-defined
9231 * range. The maximum error is implementation-defined.
9232 */
9233float __ovld __cnfn native_recip(float x);
9234float2 __ovld __cnfn native_recip(float2 x);
9235float3 __ovld __cnfn native_recip(float3 x);
9236float4 __ovld __cnfn native_recip(float4 x);
9237float8 __ovld __cnfn native_recip(float8 x);
9238float16 __ovld __cnfn native_recip(float16 x);
9239
9240/**
9241 * Compute inverse square root over an implementationdefined
9242 * range. The maximum error is implementationdefined.
9243 */
9244float __ovld __cnfn native_rsqrt(float x);
9245float2 __ovld __cnfn native_rsqrt(float2 x);
9246float3 __ovld __cnfn native_rsqrt(float3 x);
9247float4 __ovld __cnfn native_rsqrt(float4 x);
9248float8 __ovld __cnfn native_rsqrt(float8 x);
9249float16 __ovld __cnfn native_rsqrt(float16 x);
9250
9251/**
9252 * Compute sine over an implementation-defined range.
9253 * The maximum error is implementation-defined.
9254 */
9255float __ovld __cnfn native_sin(float x);
9256float2 __ovld __cnfn native_sin(float2 x);
9257float3 __ovld __cnfn native_sin(float3 x);
9258float4 __ovld __cnfn native_sin(float4 x);
9259float8 __ovld __cnfn native_sin(float8 x);
9260float16 __ovld __cnfn native_sin(float16 x);
9261
9262/**
9263 * Compute square root over an implementation-defined
9264 * range. The maximum error is implementation-defined.
9265 */
9266float __ovld __cnfn native_sqrt(float x);
9267float2 __ovld __cnfn native_sqrt(float2 x);
9268float3 __ovld __cnfn native_sqrt(float3 x);
9269float4 __ovld __cnfn native_sqrt(float4 x);
9270float8 __ovld __cnfn native_sqrt(float8 x);
9271float16 __ovld __cnfn native_sqrt(float16 x);
9272
9273/**
9274 * Compute tangent over an implementation-defined range.
9275 * The maximum error is implementation-defined.
9276 */
9277float __ovld __cnfn native_tan(float x);
9278float2 __ovld __cnfn native_tan(float2 x);
9279float3 __ovld __cnfn native_tan(float3 x);
9280float4 __ovld __cnfn native_tan(float4 x);
9281float8 __ovld __cnfn native_tan(float8 x);
9282float16 __ovld __cnfn native_tan(float16 x);
9283
9284// OpenCL v1.1 s6.11.3, v1.2 s6.12.3, v2.0 s6.13.3 - Integer Functions
9285
9286/**
9287 * Returns | x |.
9288 */
9289uchar __ovld __cnfn abs(char x);
9290uchar __ovld __cnfn abs(uchar x);
9291uchar2 __ovld __cnfn abs(char2 x);
9292uchar2 __ovld __cnfn abs(uchar2 x);
9293uchar3 __ovld __cnfn abs(char3 x);
9294uchar3 __ovld __cnfn abs(uchar3 x);
9295uchar4 __ovld __cnfn abs(char4 x);
9296uchar4 __ovld __cnfn abs(uchar4 x);
9297uchar8 __ovld __cnfn abs(char8 x);
9298uchar8 __ovld __cnfn abs(uchar8 x);
9299uchar16 __ovld __cnfn abs(char16 x);
9300uchar16 __ovld __cnfn abs(uchar16 x);
9301ushort __ovld __cnfn abs(short x);
9302ushort __ovld __cnfn abs(ushort x);
9303ushort2 __ovld __cnfn abs(short2 x);
9304ushort2 __ovld __cnfn abs(ushort2 x);
9305ushort3 __ovld __cnfn abs(short3 x);
9306ushort3 __ovld __cnfn abs(ushort3 x);
9307ushort4 __ovld __cnfn abs(short4 x);
9308ushort4 __ovld __cnfn abs(ushort4 x);
9309ushort8 __ovld __cnfn abs(short8 x);
9310ushort8 __ovld __cnfn abs(ushort8 x);
9311ushort16 __ovld __cnfn abs(short16 x);
9312ushort16 __ovld __cnfn abs(ushort16 x);
9313uint __ovld __cnfn abs(int x);
9314uint __ovld __cnfn abs(uint x);
9315uint2 __ovld __cnfn abs(int2 x);
9316uint2 __ovld __cnfn abs(uint2 x);
9317uint3 __ovld __cnfn abs(int3 x);
9318uint3 __ovld __cnfn abs(uint3 x);
9319uint4 __ovld __cnfn abs(int4 x);
9320uint4 __ovld __cnfn abs(uint4 x);
9321uint8 __ovld __cnfn abs(int8 x);
9322uint8 __ovld __cnfn abs(uint8 x);
9323uint16 __ovld __cnfn abs(int16 x);
9324uint16 __ovld __cnfn abs(uint16 x);
9325ulong __ovld __cnfn abs(long x);
9326ulong __ovld __cnfn abs(ulong x);
9327ulong2 __ovld __cnfn abs(long2 x);
9328ulong2 __ovld __cnfn abs(ulong2 x);
9329ulong3 __ovld __cnfn abs(long3 x);
9330ulong3 __ovld __cnfn abs(ulong3 x);
9331ulong4 __ovld __cnfn abs(long4 x);
9332ulong4 __ovld __cnfn abs(ulong4 x);
9333ulong8 __ovld __cnfn abs(long8 x);
9334ulong8 __ovld __cnfn abs(ulong8 x);
9335ulong16 __ovld __cnfn abs(long16 x);
9336ulong16 __ovld __cnfn abs(ulong16 x);
9337
9338/**
9339 * Returns | x - y | without modulo overflow.
9340 */
9341uchar __ovld __cnfn abs_diff(char xchar y);
9342uchar __ovld __cnfn abs_diff(uchar xuchar y);
9343uchar2 __ovld __cnfn abs_diff(char2 xchar2 y);
9344uchar2 __ovld __cnfn abs_diff(uchar2 xuchar2 y);
9345uchar3 __ovld __cnfn abs_diff(char3 xchar3 y);
9346uchar3 __ovld __cnfn abs_diff(uchar3 xuchar3 y);
9347uchar4 __ovld __cnfn abs_diff(char4 xchar4 y);
9348uchar4 __ovld __cnfn abs_diff(uchar4 xuchar4 y);
9349uchar8 __ovld __cnfn abs_diff(char8 xchar8 y);
9350uchar8 __ovld __cnfn abs_diff(uchar8 xuchar8 y);
9351uchar16 __ovld __cnfn abs_diff(char16 xchar16 y);
9352uchar16 __ovld __cnfn abs_diff(uchar16 xuchar16 y);
9353ushort __ovld __cnfn abs_diff(short xshort y);
9354ushort __ovld __cnfn abs_diff(ushort xushort y);
9355ushort2 __ovld __cnfn abs_diff(short2 xshort2 y);
9356ushort2 __ovld __cnfn abs_diff(ushort2 xushort2 y);
9357ushort3 __ovld __cnfn abs_diff(short3 xshort3 y);
9358ushort3 __ovld __cnfn abs_diff(ushort3 xushort3 y);
9359ushort4 __ovld __cnfn abs_diff(short4 xshort4 y);
9360ushort4 __ovld __cnfn abs_diff(ushort4 xushort4 y);
9361ushort8 __ovld __cnfn abs_diff(short8 xshort8 y);
9362ushort8 __ovld __cnfn abs_diff(ushort8 xushort8 y);
9363ushort16 __ovld __cnfn abs_diff(short16 xshort16 y);
9364ushort16 __ovld __cnfn abs_diff(ushort16 xushort16 y);
9365uint __ovld __cnfn abs_diff(int xint y);
9366uint __ovld __cnfn abs_diff(uint xuint y);
9367uint2 __ovld __cnfn abs_diff(int2 xint2 y);
9368uint2 __ovld __cnfn abs_diff(uint2 xuint2 y);
9369uint3 __ovld __cnfn abs_diff(int3 xint3 y);
9370uint3 __ovld __cnfn abs_diff(uint3 xuint3 y);
9371uint4 __ovld __cnfn abs_diff(int4 xint4 y);
9372uint4 __ovld __cnfn abs_diff(uint4 xuint4 y);
9373uint8 __ovld __cnfn abs_diff(int8 xint8 y);
9374uint8 __ovld __cnfn abs_diff(uint8 xuint8 y);
9375uint16 __ovld __cnfn abs_diff(int16 xint16 y);
9376uint16 __ovld __cnfn abs_diff(uint16 xuint16 y);
9377ulong __ovld __cnfn abs_diff(long xlong y);
9378ulong __ovld __cnfn abs_diff(ulong xulong y);
9379ulong2 __ovld __cnfn abs_diff(long2 xlong2 y);
9380ulong2 __ovld __cnfn abs_diff(ulong2 xulong2 y);
9381ulong3 __ovld __cnfn abs_diff(long3 xlong3 y);
9382ulong3 __ovld __cnfn abs_diff(ulong3 xulong3 y);
9383ulong4 __ovld __cnfn abs_diff(long4 xlong4 y);
9384ulong4 __ovld __cnfn abs_diff(ulong4 xulong4 y);
9385ulong8 __ovld __cnfn abs_diff(long8 xlong8 y);
9386ulong8 __ovld __cnfn abs_diff(ulong8 xulong8 y);
9387ulong16 __ovld __cnfn abs_diff(long16 xlong16 y);
9388ulong16 __ovld __cnfn abs_diff(ulong16 xulong16 y);
9389
9390/**
9391 * Returns x + y and saturates the result.
9392 */
9393char __ovld __cnfn add_sat(char xchar y);
9394uchar __ovld __cnfn add_sat(uchar xuchar y);
9395char2 __ovld __cnfn add_sat(char2 xchar2 y);
9396uchar2 __ovld __cnfn add_sat(uchar2 xuchar2 y);
9397char3 __ovld __cnfn add_sat(char3 xchar3 y);
9398uchar3 __ovld __cnfn add_sat(uchar3 xuchar3 y);
9399char4 __ovld __cnfn add_sat(char4 xchar4 y);
9400uchar4 __ovld __cnfn add_sat(uchar4 xuchar4 y);
9401char8 __ovld __cnfn add_sat(char8 xchar8 y);
9402uchar8 __ovld __cnfn add_sat(uchar8 xuchar8 y);
9403char16 __ovld __cnfn add_sat(char16 xchar16 y);
9404uchar16 __ovld __cnfn add_sat(uchar16 xuchar16 y);
9405short __ovld __cnfn add_sat(short xshort y);
9406ushort __ovld __cnfn add_sat(ushort xushort y);
9407short2 __ovld __cnfn add_sat(short2 xshort2 y);
9408ushort2 __ovld __cnfn add_sat(ushort2 xushort2 y);
9409short3 __ovld __cnfn add_sat(short3 xshort3 y);
9410ushort3 __ovld __cnfn add_sat(ushort3 xushort3 y);
9411short4 __ovld __cnfn add_sat(short4 xshort4 y);
9412ushort4 __ovld __cnfn add_sat(ushort4 xushort4 y);
9413short8 __ovld __cnfn add_sat(short8 xshort8 y);
9414ushort8 __ovld __cnfn add_sat(ushort8 xushort8 y);
9415short16 __ovld __cnfn add_sat(short16 xshort16 y);
9416ushort16 __ovld __cnfn add_sat(ushort16 xushort16 y);
9417int __ovld __cnfn add_sat(int xint y);
9418uint __ovld __cnfn add_sat(uint xuint y);
9419int2 __ovld __cnfn add_sat(int2 xint2 y);
9420uint2 __ovld __cnfn add_sat(uint2 xuint2 y);
9421int3 __ovld __cnfn add_sat(int3 xint3 y);
9422uint3 __ovld __cnfn add_sat(uint3 xuint3 y);
9423int4 __ovld __cnfn add_sat(int4 xint4 y);
9424uint4 __ovld __cnfn add_sat(uint4 xuint4 y);
9425int8 __ovld __cnfn add_sat(int8 xint8 y);
9426uint8 __ovld __cnfn add_sat(uint8 xuint8 y);
9427int16 __ovld __cnfn add_sat(int16 xint16 y);
9428uint16 __ovld __cnfn add_sat(uint16 xuint16 y);
9429long __ovld __cnfn add_sat(long xlong y);
9430ulong __ovld __cnfn add_sat(ulong xulong y);
9431long2 __ovld __cnfn add_sat(long2 xlong2 y);
9432ulong2 __ovld __cnfn add_sat(ulong2 xulong2 y);
9433long3 __ovld __cnfn add_sat(long3 xlong3 y);
9434ulong3 __ovld __cnfn add_sat(ulong3 xulong3 y);
9435long4 __ovld __cnfn add_sat(long4 xlong4 y);
9436ulong4 __ovld __cnfn add_sat(ulong4 xulong4 y);
9437long8 __ovld __cnfn add_sat(long8 xlong8 y);
9438ulong8 __ovld __cnfn add_sat(ulong8 xulong8 y);
9439long16 __ovld __cnfn add_sat(long16 xlong16 y);
9440ulong16 __ovld __cnfn add_sat(ulong16 xulong16 y);
9441
9442/**
9443 * Returns (x + y) >> 1. The intermediate sum does
9444 * not modulo overflow.
9445 */
9446char __ovld __cnfn hadd(char xchar y);
9447uchar __ovld __cnfn hadd(uchar xuchar y);
9448char2 __ovld __cnfn hadd(char2 xchar2 y);
9449uchar2 __ovld __cnfn hadd(uchar2 xuchar2 y);
9450char3 __ovld __cnfn hadd(char3 xchar3 y);
9451uchar3 __ovld __cnfn hadd(uchar3 xuchar3 y);
9452char4 __ovld __cnfn hadd(char4 xchar4 y);
9453uchar4 __ovld __cnfn hadd(uchar4 xuchar4 y);
9454char8 __ovld __cnfn hadd(char8 xchar8 y);
9455uchar8 __ovld __cnfn hadd(uchar8 xuchar8 y);
9456char16 __ovld __cnfn hadd(char16 xchar16 y);
9457uchar16 __ovld __cnfn hadd(uchar16 xuchar16 y);
9458short __ovld __cnfn hadd(short xshort y);
9459ushort __ovld __cnfn hadd(ushort xushort y);
9460short2 __ovld __cnfn hadd(short2 xshort2 y);
9461ushort2 __ovld __cnfn hadd(ushort2 xushort2 y);
9462short3 __ovld __cnfn hadd(short3 xshort3 y);
9463ushort3 __ovld __cnfn hadd(ushort3 xushort3 y);
9464short4 __ovld __cnfn hadd(short4 xshort4 y);
9465ushort4 __ovld __cnfn hadd(ushort4 xushort4 y);
9466short8 __ovld __cnfn hadd(short8 xshort8 y);
9467ushort8 __ovld __cnfn hadd(ushort8 xushort8 y);
9468short16 __ovld __cnfn hadd(short16 xshort16 y);
9469ushort16 __ovld __cnfn hadd(ushort16 xushort16 y);
9470int __ovld __cnfn hadd(int xint y);
9471uint __ovld __cnfn hadd(uint xuint y);
9472int2 __ovld __cnfn hadd(int2 xint2 y);
9473uint2 __ovld __cnfn hadd(uint2 xuint2 y);
9474int3 __ovld __cnfn hadd(int3 xint3 y);
9475uint3 __ovld __cnfn hadd(uint3 xuint3 y);
9476int4 __ovld __cnfn hadd(int4 xint4 y);
9477uint4 __ovld __cnfn hadd(uint4 xuint4 y);
9478int8 __ovld __cnfn hadd(int8 xint8 y);
9479uint8 __ovld __cnfn hadd(uint8 xuint8 y);
9480int16 __ovld __cnfn hadd(int16 xint16 y);
9481uint16 __ovld __cnfn hadd(uint16 xuint16 y);
9482long __ovld __cnfn hadd(long xlong y);
9483ulong __ovld __cnfn hadd(ulong xulong y);
9484long2 __ovld __cnfn hadd(long2 xlong2 y);
9485ulong2 __ovld __cnfn hadd(ulong2 xulong2 y);
9486long3 __ovld __cnfn hadd(long3 xlong3 y);
9487ulong3 __ovld __cnfn hadd(ulong3 xulong3 y);
9488long4 __ovld __cnfn hadd(long4 xlong4 y);
9489ulong4 __ovld __cnfn hadd(ulong4 xulong4 y);
9490long8 __ovld __cnfn hadd(long8 xlong8 y);
9491ulong8 __ovld __cnfn hadd(ulong8 xulong8 y);
9492long16 __ovld __cnfn hadd(long16 xlong16 y);
9493ulong16 __ovld __cnfn hadd(ulong16 xulong16 y);
9494
9495/**
9496 * Returns (x + y + 1) >> 1. The intermediate sum
9497 * does not modulo overflow.
9498 */
9499char __ovld __cnfn rhadd(char xchar y);
9500uchar __ovld __cnfn rhadd(uchar xuchar y);
9501char2 __ovld __cnfn rhadd(char2 xchar2 y);
9502uchar2 __ovld __cnfn rhadd(uchar2 xuchar2 y);
9503char3 __ovld __cnfn rhadd(char3 xchar3 y);
9504uchar3 __ovld __cnfn rhadd(uchar3 xuchar3 y);
9505char4 __ovld __cnfn rhadd(char4 xchar4 y);
9506uchar4 __ovld __cnfn rhadd(uchar4 xuchar4 y);
9507char8 __ovld __cnfn rhadd(char8 xchar8 y);
9508uchar8 __ovld __cnfn rhadd(uchar8 xuchar8 y);
9509char16 __ovld __cnfn rhadd(char16 xchar16 y);
9510uchar16 __ovld __cnfn rhadd(uchar16 xuchar16 y);
9511short __ovld __cnfn rhadd(short xshort y);
9512ushort __ovld __cnfn rhadd(ushort xushort y);
9513short2 __ovld __cnfn rhadd(short2 xshort2 y);
9514ushort2 __ovld __cnfn rhadd(ushort2 xushort2 y);
9515short3 __ovld __cnfn rhadd(short3 xshort3 y);
9516ushort3 __ovld __cnfn rhadd(ushort3 xushort3 y);
9517short4 __ovld __cnfn rhadd(short4 xshort4 y);
9518ushort4 __ovld __cnfn rhadd(ushort4 xushort4 y);
9519short8 __ovld __cnfn rhadd(short8 xshort8 y);
9520ushort8 __ovld __cnfn rhadd(ushort8 xushort8 y);
9521short16 __ovld __cnfn rhadd(short16 xshort16 y);
9522ushort16 __ovld __cnfn rhadd(ushort16 xushort16 y);
9523int __ovld __cnfn rhadd(int xint y);
9524uint __ovld __cnfn rhadd(uint xuint y);
9525int2 __ovld __cnfn rhadd(int2 xint2 y);
9526uint2 __ovld __cnfn rhadd(uint2 xuint2 y);
9527int3 __ovld __cnfn rhadd(int3 xint3 y);
9528uint3 __ovld __cnfn rhadd(uint3 xuint3 y);
9529int4 __ovld __cnfn rhadd(int4 xint4 y);
9530uint4 __ovld __cnfn rhadd(uint4 xuint4 y);
9531int8 __ovld __cnfn rhadd(int8 xint8 y);
9532uint8 __ovld __cnfn rhadd(uint8 xuint8 y);
9533int16 __ovld __cnfn rhadd(int16 xint16 y);
9534uint16 __ovld __cnfn rhadd(uint16 xuint16 y);
9535long __ovld __cnfn rhadd(long xlong y);
9536ulong __ovld __cnfn rhadd(ulong xulong y);
9537long2 __ovld __cnfn rhadd(long2 xlong2 y);
9538ulong2 __ovld __cnfn rhadd(ulong2 xulong2 y);
9539long3 __ovld __cnfn rhadd(long3 xlong3 y);
9540ulong3 __ovld __cnfn rhadd(ulong3 xulong3 y);
9541long4 __ovld __cnfn rhadd(long4 xlong4 y);
9542ulong4 __ovld __cnfn rhadd(ulong4 xulong4 y);
9543long8 __ovld __cnfn rhadd(long8 xlong8 y);
9544ulong8 __ovld __cnfn rhadd(ulong8 xulong8 y);
9545long16 __ovld __cnfn rhadd(long16 xlong16 y);
9546ulong16 __ovld __cnfn rhadd(ulong16 xulong16 y);
9547
9548/**
9549 * Returns min(max(x, minval), maxval).
9550 * Results are undefined if minval > maxval.
9551 */
9552char __ovld __cnfn clamp(char xchar minvalchar maxval);
9553uchar __ovld __cnfn clamp(uchar xuchar minvaluchar maxval);
9554char2 __ovld __cnfn clamp(char2 xchar2 minvalchar2 maxval);
9555uchar2 __ovld __cnfn clamp(uchar2 xuchar2 minvaluchar2 maxval);
9556char3 __ovld __cnfn clamp(char3 xchar3 minvalchar3 maxval);
9557uchar3 __ovld __cnfn clamp(uchar3 xuchar3 minvaluchar3 maxval);
9558char4 __ovld __cnfn clamp(char4 xchar4 minvalchar4 maxval);
9559uchar4 __ovld __cnfn clamp(uchar4 xuchar4 minvaluchar4 maxval);
9560char8 __ovld __cnfn clamp(char8 xchar8 minvalchar8 maxval);
9561uchar8 __ovld __cnfn clamp(uchar8 xuchar8 minvaluchar8 maxval);
9562char16 __ovld __cnfn clamp(char16 xchar16 minvalchar16 maxval);
9563uchar16 __ovld __cnfn clamp(uchar16 xuchar16 minvaluchar16 maxval);
9564short __ovld __cnfn clamp(short xshort minvalshort maxval);
9565ushort __ovld __cnfn clamp(ushort xushort minvalushort maxval);
9566short2 __ovld __cnfn clamp(short2 xshort2 minvalshort2 maxval);
9567ushort2 __ovld __cnfn clamp(ushort2 xushort2 minvalushort2 maxval);
9568short3 __ovld __cnfn clamp(short3 xshort3 minvalshort3 maxval);
9569ushort3 __ovld __cnfn clamp(ushort3 xushort3 minvalushort3 maxval);
9570short4 __ovld __cnfn clamp(short4 xshort4 minvalshort4 maxval);
9571ushort4 __ovld __cnfn clamp(ushort4 xushort4 minvalushort4 maxval);
9572short8 __ovld __cnfn clamp(short8 xshort8 minvalshort8 maxval);
9573ushort8 __ovld __cnfn clamp(ushort8 xushort8 minvalushort8 maxval);
9574short16 __ovld __cnfn clamp(short16 xshort16 minvalshort16 maxval);
9575ushort16 __ovld __cnfn clamp(ushort16 xushort16 minvalushort16 maxval);
9576int __ovld __cnfn clamp(int xint minvalint maxval);
9577uint __ovld __cnfn clamp(uint xuint minvaluint maxval);
9578int2 __ovld __cnfn clamp(int2 xint2 minvalint2 maxval);
9579uint2 __ovld __cnfn clamp(uint2 xuint2 minvaluint2 maxval);
9580int3 __ovld __cnfn clamp(int3 xint3 minvalint3 maxval);
9581uint3 __ovld __cnfn clamp(uint3 xuint3 minvaluint3 maxval);
9582int4 __ovld __cnfn clamp(int4 xint4 minvalint4 maxval);
9583uint4 __ovld __cnfn clamp(uint4 xuint4 minvaluint4 maxval);
9584int8 __ovld __cnfn clamp(int8 xint8 minvalint8 maxval);
9585uint8 __ovld __cnfn clamp(uint8 xuint8 minvaluint8 maxval);
9586int16 __ovld __cnfn clamp(int16 xint16 minvalint16 maxval);
9587uint16 __ovld __cnfn clamp(uint16 xuint16 minvaluint16 maxval);
9588long __ovld __cnfn clamp(long xlong minvallong maxval);
9589ulong __ovld __cnfn clamp(ulong xulong minvalulong maxval);
9590long2 __ovld __cnfn clamp(long2 xlong2 minvallong2 maxval);
9591ulong2 __ovld __cnfn clamp(ulong2 xulong2 minvalulong2 maxval);
9592long3 __ovld __cnfn clamp(long3 xlong3 minvallong3 maxval);
9593ulong3 __ovld __cnfn clamp(ulong3 xulong3 minvalulong3 maxval);
9594long4 __ovld __cnfn clamp(long4 xlong4 minvallong4 maxval);
9595ulong4 __ovld __cnfn clamp(ulong4 xulong4 minvalulong4 maxval);
9596long8 __ovld __cnfn clamp(long8 xlong8 minvallong8 maxval);
9597ulong8 __ovld __cnfn clamp(ulong8 xulong8 minvalulong8 maxval);
9598long16 __ovld __cnfn clamp(long16 xlong16 minvallong16 maxval);
9599ulong16 __ovld __cnfn clamp(ulong16 xulong16 minvalulong16 maxval);
9600char __ovld __cnfn clamp(char xchar minvalchar maxval);
9601uchar __ovld __cnfn clamp(uchar xuchar minvaluchar maxval);
9602char2 __ovld __cnfn clamp(char2 xchar minvalchar maxval);
9603uchar2 __ovld __cnfn clamp(uchar2 xuchar minvaluchar maxval);
9604char3 __ovld __cnfn clamp(char3 xchar minvalchar maxval);
9605uchar3 __ovld __cnfn clamp(uchar3 xuchar minvaluchar maxval);
9606char4 __ovld __cnfn clamp(char4 xchar minvalchar maxval);
9607uchar4 __ovld __cnfn clamp(uchar4 xuchar minvaluchar maxval);
9608char8 __ovld __cnfn clamp(char8 xchar minvalchar maxval);
9609uchar8 __ovld __cnfn clamp(uchar8 xuchar minvaluchar maxval);
9610char16 __ovld __cnfn clamp(char16 xchar minvalchar maxval);
9611uchar16 __ovld __cnfn clamp(uchar16 xuchar minvaluchar maxval);
9612short __ovld __cnfn clamp(short xshort minvalshort maxval);
9613ushort __ovld __cnfn clamp(ushort xushort minvalushort maxval);
9614short2 __ovld __cnfn clamp(short2 xshort minvalshort maxval);
9615ushort2 __ovld __cnfn clamp(ushort2 xushort minvalushort maxval);
9616short3 __ovld __cnfn clamp(short3 xshort minvalshort maxval);
9617ushort3 __ovld __cnfn clamp(ushort3 xushort minvalushort maxval);
9618short4 __ovld __cnfn clamp(short4 xshort minvalshort maxval);
9619ushort4 __ovld __cnfn clamp(ushort4 xushort minvalushort maxval);
9620short8 __ovld __cnfn clamp(short8 xshort minvalshort maxval);
9621ushort8 __ovld __cnfn clamp(ushort8 xushort minvalushort maxval);
9622short16 __ovld __cnfn clamp(short16 xshort minvalshort maxval);
9623ushort16 __ovld __cnfn clamp(ushort16 xushort minvalushort maxval);
9624int __ovld __cnfn clamp(int xint minvalint maxval);
9625uint __ovld __cnfn clamp(uint xuint minvaluint maxval);
9626int2 __ovld __cnfn clamp(int2 xint minvalint maxval);
9627uint2 __ovld __cnfn clamp(uint2 xuint minvaluint maxval);
9628int3 __ovld __cnfn clamp(int3 xint minvalint maxval);
9629uint3 __ovld __cnfn clamp(uint3 xuint minvaluint maxval);
9630int4 __ovld __cnfn clamp(int4 xint minvalint maxval);
9631uint4 __ovld __cnfn clamp(uint4 xuint minvaluint maxval);
9632int8 __ovld __cnfn clamp(int8 xint minvalint maxval);
9633uint8 __ovld __cnfn clamp(uint8 xuint minvaluint maxval);
9634int16 __ovld __cnfn clamp(int16 xint minvalint maxval);
9635uint16 __ovld __cnfn clamp(uint16 xuint minvaluint maxval);
9636long __ovld __cnfn clamp(long xlong minvallong maxval);
9637ulong __ovld __cnfn clamp(ulong xulong minvalulong maxval);
9638long2 __ovld __cnfn clamp(long2 xlong minvallong maxval);
9639ulong2 __ovld __cnfn clamp(ulong2 xulong minvalulong maxval);
9640long3 __ovld __cnfn clamp(long3 xlong minvallong maxval);
9641ulong3 __ovld __cnfn clamp(ulong3 xulong minvalulong maxval);
9642long4 __ovld __cnfn clamp(long4 xlong minvallong maxval);
9643ulong4 __ovld __cnfn clamp(ulong4 xulong minvalulong maxval);
9644long8 __ovld __cnfn clamp(long8 xlong minvallong maxval);
9645ulong8 __ovld __cnfn clamp(ulong8 xulong minvalulong maxval);
9646long16 __ovld __cnfn clamp(long16 xlong minvallong maxval);
9647ulong16 __ovld __cnfn clamp(ulong16 xulong minvalulong maxval);
9648
9649/**
9650 * Returns the number of leading 0-bits in x, starting
9651 * at the most significant bit position.
9652 */
9653char __ovld __cnfn clz(char x);
9654uchar __ovld __cnfn clz(uchar x);
9655char2 __ovld __cnfn clz(char2 x);
9656uchar2 __ovld __cnfn clz(uchar2 x);
9657char3 __ovld __cnfn clz(char3 x);
9658uchar3 __ovld __cnfn clz(uchar3 x);
9659char4 __ovld __cnfn clz(char4 x);
9660uchar4 __ovld __cnfn clz(uchar4 x);
9661char8 __ovld __cnfn clz(char8 x);
9662uchar8 __ovld __cnfn clz(uchar8 x);
9663char16 __ovld __cnfn clz(char16 x);
9664uchar16 __ovld __cnfn clz(uchar16 x);
9665short __ovld __cnfn clz(short x);
9666ushort __ovld __cnfn clz(ushort x);
9667short2 __ovld __cnfn clz(short2 x);
9668ushort2 __ovld __cnfn clz(ushort2 x);
9669short3 __ovld __cnfn clz(short3 x);
9670ushort3 __ovld __cnfn clz(ushort3 x);
9671short4 __ovld __cnfn clz(short4 x);
9672ushort4 __ovld __cnfn clz(ushort4 x);
9673short8 __ovld __cnfn clz(short8 x);
9674ushort8 __ovld __cnfn clz(ushort8 x);
9675short16 __ovld __cnfn clz(short16 x);
9676ushort16 __ovld __cnfn clz(ushort16 x);
9677int __ovld __cnfn clz(int x);
9678uint __ovld __cnfn clz(uint x);
9679int2 __ovld __cnfn clz(int2 x);
9680uint2 __ovld __cnfn clz(uint2 x);
9681int3 __ovld __cnfn clz(int3 x);
9682uint3 __ovld __cnfn clz(uint3 x);
9683int4 __ovld __cnfn clz(int4 x);
9684uint4 __ovld __cnfn clz(uint4 x);
9685int8 __ovld __cnfn clz(int8 x);
9686uint8 __ovld __cnfn clz(uint8 x);
9687int16 __ovld __cnfn clz(int16 x);
9688uint16 __ovld __cnfn clz(uint16 x);
9689long __ovld __cnfn clz(long x);
9690ulong __ovld __cnfn clz(ulong x);
9691long2 __ovld __cnfn clz(long2 x);
9692ulong2 __ovld __cnfn clz(ulong2 x);
9693long3 __ovld __cnfn clz(long3 x);
9694ulong3 __ovld __cnfn clz(ulong3 x);
9695long4 __ovld __cnfn clz(long4 x);
9696ulong4 __ovld __cnfn clz(ulong4 x);
9697long8 __ovld __cnfn clz(long8 x);
9698ulong8 __ovld __cnfn clz(ulong8 x);
9699long16 __ovld __cnfn clz(long16 x);
9700ulong16 __ovld __cnfn clz(ulong16 x);
9701
9702/**
9703 * Returns the count of trailing 0-bits in x. If x is 0,
9704 * returns the size in bits of the type of x or
9705 * component type of x, if x is a vector.
9706 */
9707#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
9708char __ovld ctz(char x);
9709uchar __ovld ctz(uchar x);
9710char2 __ovld ctz(char2 x);
9711uchar2 __ovld ctz(uchar2 x);
9712char3 __ovld ctz(char3 x);
9713uchar3 __ovld ctz(uchar3 x);
9714char4 __ovld ctz(char4 x);
9715uchar4 __ovld ctz(uchar4 x);
9716char8 __ovld ctz(char8 x);
9717uchar8 __ovld ctz(uchar8 x);
9718char16 __ovld ctz(char16 x);
9719uchar16 __ovld ctz(uchar16 x);
9720short __ovld ctz(short x);
9721ushort __ovld ctz(ushort x);
9722short2 __ovld ctz(short2 x);
9723ushort2 __ovld ctz(ushort2 x);
9724short3 __ovld ctz(short3 x);
9725ushort3 __ovld ctz(ushort3 x);
9726short4 __ovld ctz(short4 x);
9727ushort4 __ovld ctz(ushort4 x);
9728short8 __ovld ctz(short8 x);
9729ushort8 __ovld ctz(ushort8 x);
9730short16 __ovld ctz(short16 x);
9731ushort16 __ovld ctz(ushort16 x);
9732int __ovld ctz(int x);
9733uint __ovld ctz(uint x);
9734int2 __ovld ctz(int2 x);
9735uint2 __ovld ctz(uint2 x);
9736int3 __ovld ctz(int3 x);
9737uint3 __ovld ctz(uint3 x);
9738int4 __ovld ctz(int4 x);
9739uint4 __ovld ctz(uint4 x);
9740int8 __ovld ctz(int8 x);
9741uint8 __ovld ctz(uint8 x);
9742int16 __ovld ctz(int16 x);
9743uint16 __ovld ctz(uint16 x);
9744long __ovld ctz(long x);
9745ulong __ovld ctz(ulong x);
9746long2 __ovld ctz(long2 x);
9747ulong2 __ovld ctz(ulong2 x);
9748long3 __ovld ctz(long3 x);
9749ulong3 __ovld ctz(ulong3 x);
9750long4 __ovld ctz(long4 x);
9751ulong4 __ovld ctz(ulong4 x);
9752long8 __ovld ctz(long8 x);
9753ulong8 __ovld ctz(ulong8 x);
9754long16 __ovld ctz(long16 x);
9755ulong16 __ovld ctz(ulong16 x);
9756#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
9757
9758/**
9759 * Returns mul_hi(a, b) + c.
9760 */
9761char __ovld __cnfn mad_hi(char achar bchar c);
9762uchar __ovld __cnfn mad_hi(uchar auchar buchar c);
9763char2 __ovld __cnfn mad_hi(char2 achar2 bchar2 c);
9764uchar2 __ovld __cnfn mad_hi(uchar2 auchar2 buchar2 c);
9765char3 __ovld __cnfn mad_hi(char3 achar3 bchar3 c);
9766uchar3 __ovld __cnfn mad_hi(uchar3 auchar3 buchar3 c);
9767char4 __ovld __cnfn mad_hi(char4 achar4 bchar4 c);
9768uchar4 __ovld __cnfn mad_hi(uchar4 auchar4 buchar4 c);
9769char8 __ovld __cnfn mad_hi(char8 achar8 bchar8 c);
9770uchar8 __ovld __cnfn mad_hi(uchar8 auchar8 buchar8 c);
9771char16 __ovld __cnfn mad_hi(char16 achar16 bchar16 c);
9772uchar16 __ovld __cnfn mad_hi(uchar16 auchar16 buchar16 c);
9773short __ovld __cnfn mad_hi(short ashort bshort c);
9774ushort __ovld __cnfn mad_hi(ushort aushort bushort c);
9775short2 __ovld __cnfn mad_hi(short2 ashort2 bshort2 c);
9776ushort2 __ovld __cnfn mad_hi(ushort2 aushort2 bushort2 c);
9777short3 __ovld __cnfn mad_hi(short3 ashort3 bshort3 c);
9778ushort3 __ovld __cnfn mad_hi(ushort3 aushort3 bushort3 c);
9779short4 __ovld __cnfn mad_hi(short4 ashort4 bshort4 c);
9780ushort4 __ovld __cnfn mad_hi(ushort4 aushort4 bushort4 c);
9781short8 __ovld __cnfn mad_hi(short8 ashort8 bshort8 c);
9782ushort8 __ovld __cnfn mad_hi(ushort8 aushort8 bushort8 c);
9783short16 __ovld __cnfn mad_hi(short16 ashort16 bshort16 c);
9784ushort16 __ovld __cnfn mad_hi(ushort16 aushort16 bushort16 c);
9785int __ovld __cnfn mad_hi(int aint bint c);
9786uint __ovld __cnfn mad_hi(uint auint buint c);
9787int2 __ovld __cnfn mad_hi(int2 aint2 bint2 c);
9788uint2 __ovld __cnfn mad_hi(uint2 auint2 buint2 c);
9789int3 __ovld __cnfn mad_hi(int3 aint3 bint3 c);
9790uint3 __ovld __cnfn mad_hi(uint3 auint3 buint3 c);
9791int4 __ovld __cnfn mad_hi(int4 aint4 bint4 c);
9792uint4 __ovld __cnfn mad_hi(uint4 auint4 buint4 c);
9793int8 __ovld __cnfn mad_hi(int8 aint8 bint8 c);
9794uint8 __ovld __cnfn mad_hi(uint8 auint8 buint8 c);
9795int16 __ovld __cnfn mad_hi(int16 aint16 bint16 c);
9796uint16 __ovld __cnfn mad_hi(uint16 auint16 buint16 c);
9797long __ovld __cnfn mad_hi(long along blong c);
9798ulong __ovld __cnfn mad_hi(ulong aulong bulong c);
9799long2 __ovld __cnfn mad_hi(long2 along2 blong2 c);
9800ulong2 __ovld __cnfn mad_hi(ulong2 aulong2 bulong2 c);
9801long3 __ovld __cnfn mad_hi(long3 along3 blong3 c);
9802ulong3 __ovld __cnfn mad_hi(ulong3 aulong3 bulong3 c);
9803long4 __ovld __cnfn mad_hi(long4 along4 blong4 c);
9804ulong4 __ovld __cnfn mad_hi(ulong4 aulong4 bulong4 c);
9805long8 __ovld __cnfn mad_hi(long8 along8 blong8 c);
9806ulong8 __ovld __cnfn mad_hi(ulong8 aulong8 bulong8 c);
9807long16 __ovld __cnfn mad_hi(long16 along16 blong16 c);
9808ulong16 __ovld __cnfn mad_hi(ulong16 aulong16 bulong16 c);
9809
9810/**
9811 * Returns a * b + c and saturates the result.
9812 */
9813char __ovld __cnfn mad_sat(char achar bchar c);
9814uchar __ovld __cnfn mad_sat(uchar auchar buchar c);
9815char2 __ovld __cnfn mad_sat(char2 achar2 bchar2 c);
9816uchar2 __ovld __cnfn mad_sat(uchar2 auchar2 buchar2 c);
9817char3 __ovld __cnfn mad_sat(char3 achar3 bchar3 c);
9818uchar3 __ovld __cnfn mad_sat(uchar3 auchar3 buchar3 c);
9819char4 __ovld __cnfn mad_sat(char4 achar4 bchar4 c);
9820uchar4 __ovld __cnfn mad_sat(uchar4 auchar4 buchar4 c);
9821char8 __ovld __cnfn mad_sat(char8 achar8 bchar8 c);
9822uchar8 __ovld __cnfn mad_sat(uchar8 auchar8 buchar8 c);
9823char16 __ovld __cnfn mad_sat(char16 achar16 bchar16 c);
9824uchar16 __ovld __cnfn mad_sat(uchar16 auchar16 buchar16 c);
9825short __ovld __cnfn mad_sat(short ashort bshort c);
9826ushort __ovld __cnfn mad_sat(ushort aushort bushort c);
9827short2 __ovld __cnfn mad_sat(short2 ashort2 bshort2 c);
9828ushort2 __ovld __cnfn mad_sat(ushort2 aushort2 bushort2 c);
9829short3 __ovld __cnfn mad_sat(short3 ashort3 bshort3 c);
9830ushort3 __ovld __cnfn mad_sat(ushort3 aushort3 bushort3 c);
9831short4 __ovld __cnfn mad_sat(short4 ashort4 bshort4 c);
9832ushort4 __ovld __cnfn mad_sat(ushort4 aushort4 bushort4 c);
9833short8 __ovld __cnfn mad_sat(short8 ashort8 bshort8 c);
9834ushort8 __ovld __cnfn mad_sat(ushort8 aushort8 bushort8 c);
9835short16 __ovld __cnfn mad_sat(short16 ashort16 bshort16 c);
9836ushort16 __ovld __cnfn mad_sat(ushort16 aushort16 bushort16 c);
9837int __ovld __cnfn mad_sat(int aint bint c);
9838uint __ovld __cnfn mad_sat(uint auint buint c);
9839int2 __ovld __cnfn mad_sat(int2 aint2 bint2 c);
9840uint2 __ovld __cnfn mad_sat(uint2 auint2 buint2 c);
9841int3 __ovld __cnfn mad_sat(int3 aint3 bint3 c);
9842uint3 __ovld __cnfn mad_sat(uint3 auint3 buint3 c);
9843int4 __ovld __cnfn mad_sat(int4 aint4 bint4 c);
9844uint4 __ovld __cnfn mad_sat(uint4 auint4 buint4 c);
9845int8 __ovld __cnfn mad_sat(int8 aint8 bint8 c);
9846uint8 __ovld __cnfn mad_sat(uint8 auint8 buint8 c);
9847int16 __ovld __cnfn mad_sat(int16 aint16 bint16 c);
9848uint16 __ovld __cnfn mad_sat(uint16 auint16 buint16 c);
9849long __ovld __cnfn mad_sat(long along blong c);
9850ulong __ovld __cnfn mad_sat(ulong aulong bulong c);
9851long2 __ovld __cnfn mad_sat(long2 along2 blong2 c);
9852ulong2 __ovld __cnfn mad_sat(ulong2 aulong2 bulong2 c);
9853long3 __ovld __cnfn mad_sat(long3 along3 blong3 c);
9854ulong3 __ovld __cnfn mad_sat(ulong3 aulong3 bulong3 c);
9855long4 __ovld __cnfn mad_sat(long4 along4 blong4 c);
9856ulong4 __ovld __cnfn mad_sat(ulong4 aulong4 bulong4 c);
9857long8 __ovld __cnfn mad_sat(long8 along8 blong8 c);
9858ulong8 __ovld __cnfn mad_sat(ulong8 aulong8 bulong8 c);
9859long16 __ovld __cnfn mad_sat(long16 along16 blong16 c);
9860ulong16 __ovld __cnfn mad_sat(ulong16 aulong16 bulong16 c);
9861
9862/**
9863 * Returns y if x < y, otherwise it returns x.
9864 */
9865char __ovld __cnfn max(char xchar y);
9866uchar __ovld __cnfn max(uchar xuchar y);
9867char2 __ovld __cnfn max(char2 xchar2 y);
9868uchar2 __ovld __cnfn max(uchar2 xuchar2 y);
9869char3 __ovld __cnfn max(char3 xchar3 y);
9870uchar3 __ovld __cnfn max(uchar3 xuchar3 y);
9871char4 __ovld __cnfn max(char4 xchar4 y);
9872uchar4 __ovld __cnfn max(uchar4 xuchar4 y);
9873char8 __ovld __cnfn max(char8 xchar8 y);
9874uchar8 __ovld __cnfn max(uchar8 xuchar8 y);
9875char16 __ovld __cnfn max(char16 xchar16 y);
9876uchar16 __ovld __cnfn max(uchar16 xuchar16 y);
9877short __ovld __cnfn max(short xshort y);
9878ushort __ovld __cnfn max(ushort xushort y);
9879short2 __ovld __cnfn max(short2 xshort2 y);
9880ushort2 __ovld __cnfn max(ushort2 xushort2 y);
9881short3 __ovld __cnfn max(short3 xshort3 y);
9882ushort3 __ovld __cnfn max(ushort3 xushort3 y);
9883short4 __ovld __cnfn max(short4 xshort4 y);
9884ushort4 __ovld __cnfn max(ushort4 xushort4 y);
9885short8 __ovld __cnfn max(short8 xshort8 y);
9886ushort8 __ovld __cnfn max(ushort8 xushort8 y);
9887short16 __ovld __cnfn max(short16 xshort16 y);
9888ushort16 __ovld __cnfn max(ushort16 xushort16 y);
9889int __ovld __cnfn max(int xint y);
9890uint __ovld __cnfn max(uint xuint y);
9891int2 __ovld __cnfn max(int2 xint2 y);
9892uint2 __ovld __cnfn max(uint2 xuint2 y);
9893int3 __ovld __cnfn max(int3 xint3 y);
9894uint3 __ovld __cnfn max(uint3 xuint3 y);
9895int4 __ovld __cnfn max(int4 xint4 y);
9896uint4 __ovld __cnfn max(uint4 xuint4 y);
9897int8 __ovld __cnfn max(int8 xint8 y);
9898uint8 __ovld __cnfn max(uint8 xuint8 y);
9899int16 __ovld __cnfn max(int16 xint16 y);
9900uint16 __ovld __cnfn max(uint16 xuint16 y);
9901long __ovld __cnfn max(long xlong y);
9902ulong __ovld __cnfn max(ulong xulong y);
9903long2 __ovld __cnfn max(long2 xlong2 y);
9904ulong2 __ovld __cnfn max(ulong2 xulong2 y);
9905long3 __ovld __cnfn max(long3 xlong3 y);
9906ulong3 __ovld __cnfn max(ulong3 xulong3 y);
9907long4 __ovld __cnfn max(long4 xlong4 y);
9908ulong4 __ovld __cnfn max(ulong4 xulong4 y);
9909long8 __ovld __cnfn max(long8 xlong8 y);
9910ulong8 __ovld __cnfn max(ulong8 xulong8 y);
9911long16 __ovld __cnfn max(long16 xlong16 y);
9912ulong16 __ovld __cnfn max(ulong16 xulong16 y);
9913char __ovld __cnfn max(char xchar y);
9914uchar __ovld __cnfn max(uchar xuchar y);
9915char2 __ovld __cnfn max(char2 xchar y);
9916uchar2 __ovld __cnfn max(uchar2 xuchar y);
9917char3 __ovld __cnfn max(char3 xchar y);
9918uchar3 __ovld __cnfn max(uchar3 xuchar y);
9919char4 __ovld __cnfn max(char4 xchar y);
9920uchar4 __ovld __cnfn max(uchar4 xuchar y);
9921char8 __ovld __cnfn max(char8 xchar y);
9922uchar8 __ovld __cnfn max(uchar8 xuchar y);
9923char16 __ovld __cnfn max(char16 xchar y);
9924uchar16 __ovld __cnfn max(uchar16 xuchar y);
9925short __ovld __cnfn max(short xshort y);
9926ushort __ovld __cnfn max(ushort xushort y);
9927short2 __ovld __cnfn max(short2 xshort y);
9928ushort2 __ovld __cnfn max(ushort2 xushort y);
9929short3 __ovld __cnfn max(short3 xshort y);
9930ushort3 __ovld __cnfn max(ushort3 xushort y);
9931short4 __ovld __cnfn max(short4 xshort y);
9932ushort4 __ovld __cnfn max(ushort4 xushort y);
9933short8 __ovld __cnfn max(short8 xshort y);
9934ushort8 __ovld __cnfn max(ushort8 xushort y);
9935short16 __ovld __cnfn max(short16 xshort y);
9936ushort16 __ovld __cnfn max(ushort16 xushort y);
9937int __ovld __cnfn max(int xint y);
9938uint __ovld __cnfn max(uint xuint y);
9939int2 __ovld __cnfn max(int2 xint y);
9940uint2 __ovld __cnfn max(uint2 xuint y);
9941int3 __ovld __cnfn max(int3 xint y);
9942uint3 __ovld __cnfn max(uint3 xuint y);
9943int4 __ovld __cnfn max(int4 xint y);
9944uint4 __ovld __cnfn max(uint4 xuint y);
9945int8 __ovld __cnfn max(int8 xint y);
9946uint8 __ovld __cnfn max(uint8 xuint y);
9947int16 __ovld __cnfn max(int16 xint y);
9948uint16 __ovld __cnfn max(uint16 xuint y);
9949long __ovld __cnfn max(long xlong y);
9950ulong __ovld __cnfn max(ulong xulong y);
9951long2 __ovld __cnfn max(long2 xlong y);
9952ulong2 __ovld __cnfn max(ulong2 xulong y);
9953long3 __ovld __cnfn max(long3 xlong y);
9954ulong3 __ovld __cnfn max(ulong3 xulong y);
9955long4 __ovld __cnfn max(long4 xlong y);
9956ulong4 __ovld __cnfn max(ulong4 xulong y);
9957long8 __ovld __cnfn max(long8 xlong y);
9958ulong8 __ovld __cnfn max(ulong8 xulong y);
9959long16 __ovld __cnfn max(long16 xlong y);
9960ulong16 __ovld __cnfn max(ulong16 xulong y);
9961
9962/**
9963 * Returns y if y < x, otherwise it returns x.
9964 */
9965char __ovld __cnfn min(char xchar y);
9966uchar __ovld __cnfn min(uchar xuchar y);
9967char2 __ovld __cnfn min(char2 xchar2 y);
9968uchar2 __ovld __cnfn min(uchar2 xuchar2 y);
9969char3 __ovld __cnfn min(char3 xchar3 y);
9970uchar3 __ovld __cnfn min(uchar3 xuchar3 y);
9971char4 __ovld __cnfn min(char4 xchar4 y);
9972uchar4 __ovld __cnfn min(uchar4 xuchar4 y);
9973char8 __ovld __cnfn min(char8 xchar8 y);
9974uchar8 __ovld __cnfn min(uchar8 xuchar8 y);
9975char16 __ovld __cnfn min(char16 xchar16 y);
9976uchar16 __ovld __cnfn min(uchar16 xuchar16 y);
9977short __ovld __cnfn min(short xshort y);
9978ushort __ovld __cnfn min(ushort xushort y);
9979short2 __ovld __cnfn min(short2 xshort2 y);
9980ushort2 __ovld __cnfn min(ushort2 xushort2 y);
9981short3 __ovld __cnfn min(short3 xshort3 y);
9982ushort3 __ovld __cnfn min(ushort3 xushort3 y);
9983short4 __ovld __cnfn min(short4 xshort4 y);
9984ushort4 __ovld __cnfn min(ushort4 xushort4 y);
9985short8 __ovld __cnfn min(short8 xshort8 y);
9986ushort8 __ovld __cnfn min(ushort8 xushort8 y);
9987short16 __ovld __cnfn min(short16 xshort16 y);
9988ushort16 __ovld __cnfn min(ushort16 xushort16 y);
9989int __ovld __cnfn min(int xint y);
9990uint __ovld __cnfn min(uint xuint y);
9991int2 __ovld __cnfn min(int2 xint2 y);
9992uint2 __ovld __cnfn min(uint2 xuint2 y);
9993int3 __ovld __cnfn min(int3 xint3 y);
9994uint3 __ovld __cnfn min(uint3 xuint3 y);
9995int4 __ovld __cnfn min(int4 xint4 y);
9996uint4 __ovld __cnfn min(uint4 xuint4 y);
9997int8 __ovld __cnfn min(int8 xint8 y);
9998uint8 __ovld __cnfn min(uint8 xuint8 y);
9999int16 __ovld __cnfn min(int16 xint16 y);
10000uint16 __ovld __cnfn min(uint16 xuint16 y);
10001long __ovld __cnfn min(long xlong y);
10002ulong __ovld __cnfn min(ulong xulong y);
10003long2 __ovld __cnfn min(long2 xlong2 y);
10004ulong2 __ovld __cnfn min(ulong2 xulong2 y);
10005long3 __ovld __cnfn min(long3 xlong3 y);
10006ulong3 __ovld __cnfn min(ulong3 xulong3 y);
10007long4 __ovld __cnfn min(long4 xlong4 y);
10008ulong4 __ovld __cnfn min(ulong4 xulong4 y);
10009long8 __ovld __cnfn min(long8 xlong8 y);
10010ulong8 __ovld __cnfn min(ulong8 xulong8 y);
10011long16 __ovld __cnfn min(long16 xlong16 y);
10012ulong16 __ovld __cnfn min(ulong16 xulong16 y);
10013char __ovld __cnfn min(char xchar y);
10014uchar __ovld __cnfn min(uchar xuchar y);
10015char2 __ovld __cnfn min(char2 xchar y);
10016uchar2 __ovld __cnfn min(uchar2 xuchar y);
10017char3 __ovld __cnfn min(char3 xchar y);
10018uchar3 __ovld __cnfn min(uchar3 xuchar y);
10019char4 __ovld __cnfn min(char4 xchar y);
10020uchar4 __ovld __cnfn min(uchar4 xuchar y);
10021char8 __ovld __cnfn min(char8 xchar y);
10022uchar8 __ovld __cnfn min(uchar8 xuchar y);
10023char16 __ovld __cnfn min(char16 xchar y);
10024uchar16 __ovld __cnfn min(uchar16 xuchar y);
10025short __ovld __cnfn min(short xshort y);
10026ushort __ovld __cnfn min(ushort xushort y);
10027short2 __ovld __cnfn min(short2 xshort y);
10028ushort2 __ovld __cnfn min(ushort2 xushort y);
10029short3 __ovld __cnfn min(short3 xshort y);
10030ushort3 __ovld __cnfn min(ushort3 xushort y);
10031short4 __ovld __cnfn min(short4 xshort y);
10032ushort4 __ovld __cnfn min(ushort4 xushort y);
10033short8 __ovld __cnfn min(short8 xshort y);
10034ushort8 __ovld __cnfn min(ushort8 xushort y);
10035short16 __ovld __cnfn min(short16 xshort y);
10036ushort16 __ovld __cnfn min(ushort16 xushort y);
10037int __ovld __cnfn min(int xint y);
10038uint __ovld __cnfn min(uint xuint y);
10039int2 __ovld __cnfn min(int2 xint y);
10040uint2 __ovld __cnfn min(uint2 xuint y);
10041int3 __ovld __cnfn min(int3 xint y);
10042uint3 __ovld __cnfn min(uint3 xuint y);
10043int4 __ovld __cnfn min(int4 xint y);
10044uint4 __ovld __cnfn min(uint4 xuint y);
10045int8 __ovld __cnfn min(int8 xint y);
10046uint8 __ovld __cnfn min(uint8 xuint y);
10047int16 __ovld __cnfn min(int16 xint y);
10048uint16 __ovld __cnfn min(uint16 xuint y);
10049long __ovld __cnfn min(long xlong y);
10050ulong __ovld __cnfn min(ulong xulong y);
10051long2 __ovld __cnfn min(long2 xlong y);
10052ulong2 __ovld __cnfn min(ulong2 xulong y);
10053long3 __ovld __cnfn min(long3 xlong y);
10054ulong3 __ovld __cnfn min(ulong3 xulong y);
10055long4 __ovld __cnfn min(long4 xlong y);
10056ulong4 __ovld __cnfn min(ulong4 xulong y);
10057long8 __ovld __cnfn min(long8 xlong y);
10058ulong8 __ovld __cnfn min(ulong8 xulong y);
10059long16 __ovld __cnfn min(long16 xlong y);
10060ulong16 __ovld __cnfn min(ulong16 xulong y);
10061
10062/**
10063 * Computes x * y and returns the high half of the
10064 * product of x and y.
10065 */
10066char __ovld __cnfn mul_hi(char xchar y);
10067uchar __ovld __cnfn mul_hi(uchar xuchar y);
10068char2 __ovld __cnfn mul_hi(char2 xchar2 y);
10069uchar2 __ovld __cnfn mul_hi(uchar2 xuchar2 y);
10070char3 __ovld __cnfn mul_hi(char3 xchar3 y);
10071uchar3 __ovld __cnfn mul_hi(uchar3 xuchar3 y);
10072char4 __ovld __cnfn mul_hi(char4 xchar4 y);
10073uchar4 __ovld __cnfn mul_hi(uchar4 xuchar4 y);
10074char8 __ovld __cnfn mul_hi(char8 xchar8 y);
10075uchar8 __ovld __cnfn mul_hi(uchar8 xuchar8 y);
10076char16 __ovld __cnfn mul_hi(char16 xchar16 y);
10077uchar16 __ovld __cnfn mul_hi(uchar16 xuchar16 y);
10078short __ovld __cnfn mul_hi(short xshort y);
10079ushort __ovld __cnfn mul_hi(ushort xushort y);
10080short2 __ovld __cnfn mul_hi(short2 xshort2 y);
10081ushort2 __ovld __cnfn mul_hi(ushort2 xushort2 y);
10082short3 __ovld __cnfn mul_hi(short3 xshort3 y);
10083ushort3 __ovld __cnfn mul_hi(ushort3 xushort3 y);
10084short4 __ovld __cnfn mul_hi(short4 xshort4 y);
10085ushort4 __ovld __cnfn mul_hi(ushort4 xushort4 y);
10086short8 __ovld __cnfn mul_hi(short8 xshort8 y);
10087ushort8 __ovld __cnfn mul_hi(ushort8 xushort8 y);
10088short16 __ovld __cnfn mul_hi(short16 xshort16 y);
10089ushort16 __ovld __cnfn mul_hi(ushort16 xushort16 y);
10090int __ovld __cnfn mul_hi(int xint y);
10091uint __ovld __cnfn mul_hi(uint xuint y);
10092int2 __ovld __cnfn mul_hi(int2 xint2 y);
10093uint2 __ovld __cnfn mul_hi(uint2 xuint2 y);
10094int3 __ovld __cnfn mul_hi(int3 xint3 y);
10095uint3 __ovld __cnfn mul_hi(uint3 xuint3 y);
10096int4 __ovld __cnfn mul_hi(int4 xint4 y);
10097uint4 __ovld __cnfn mul_hi(uint4 xuint4 y);
10098int8 __ovld __cnfn mul_hi(int8 xint8 y);
10099uint8 __ovld __cnfn mul_hi(uint8 xuint8 y);
10100int16 __ovld __cnfn mul_hi(int16 xint16 y);
10101uint16 __ovld __cnfn mul_hi(uint16 xuint16 y);
10102long __ovld __cnfn mul_hi(long xlong y);
10103ulong __ovld __cnfn mul_hi(ulong xulong y);
10104long2 __ovld __cnfn mul_hi(long2 xlong2 y);
10105ulong2 __ovld __cnfn mul_hi(ulong2 xulong2 y);
10106long3 __ovld __cnfn mul_hi(long3 xlong3 y);
10107ulong3 __ovld __cnfn mul_hi(ulong3 xulong3 y);
10108long4 __ovld __cnfn mul_hi(long4 xlong4 y);
10109ulong4 __ovld __cnfn mul_hi(ulong4 xulong4 y);
10110long8 __ovld __cnfn mul_hi(long8 xlong8 y);
10111ulong8 __ovld __cnfn mul_hi(ulong8 xulong8 y);
10112long16 __ovld __cnfn mul_hi(long16 xlong16 y);
10113ulong16 __ovld __cnfn mul_hi(ulong16 xulong16 y);
10114
10115/**
10116 * For each element in v, the bits are shifted left by
10117 * the number of bits given by the corresponding
10118 * element in i (subject to usual shift modulo rules
10119 * described in section 6.3). Bits shifted off the left
10120 * side of the element are shifted back in from the
10121 * right.
10122 */
10123char __ovld __cnfn rotate(char vchar i);
10124uchar __ovld __cnfn rotate(uchar vuchar i);
10125char2 __ovld __cnfn rotate(char2 vchar2 i);
10126uchar2 __ovld __cnfn rotate(uchar2 vuchar2 i);
10127char3 __ovld __cnfn rotate(char3 vchar3 i);
10128uchar3 __ovld __cnfn rotate(uchar3 vuchar3 i);
10129char4 __ovld __cnfn rotate(char4 vchar4 i);
10130uchar4 __ovld __cnfn rotate(uchar4 vuchar4 i);
10131char8 __ovld __cnfn rotate(char8 vchar8 i);
10132uchar8 __ovld __cnfn rotate(uchar8 vuchar8 i);
10133char16 __ovld __cnfn rotate(char16 vchar16 i);
10134uchar16 __ovld __cnfn rotate(uchar16 vuchar16 i);
10135short __ovld __cnfn rotate(short vshort i);
10136ushort __ovld __cnfn rotate(ushort vushort i);
10137short2 __ovld __cnfn rotate(short2 vshort2 i);
10138ushort2 __ovld __cnfn rotate(ushort2 vushort2 i);
10139short3 __ovld __cnfn rotate(short3 vshort3 i);
10140ushort3 __ovld __cnfn rotate(ushort3 vushort3 i);
10141short4 __ovld __cnfn rotate(short4 vshort4 i);
10142ushort4 __ovld __cnfn rotate(ushort4 vushort4 i);
10143short8 __ovld __cnfn rotate(short8 vshort8 i);
10144ushort8 __ovld __cnfn rotate(ushort8 vushort8 i);
10145short16 __ovld __cnfn rotate(short16 vshort16 i);
10146ushort16 __ovld __cnfn rotate(ushort16 vushort16 i);
10147int __ovld __cnfn rotate(int vint i);
10148uint __ovld __cnfn rotate(uint vuint i);
10149int2 __ovld __cnfn rotate(int2 vint2 i);
10150uint2 __ovld __cnfn rotate(uint2 vuint2 i);
10151int3 __ovld __cnfn rotate(int3 vint3 i);
10152uint3 __ovld __cnfn rotate(uint3 vuint3 i);
10153int4 __ovld __cnfn rotate(int4 vint4 i);
10154uint4 __ovld __cnfn rotate(uint4 vuint4 i);
10155int8 __ovld __cnfn rotate(int8 vint8 i);
10156uint8 __ovld __cnfn rotate(uint8 vuint8 i);
10157int16 __ovld __cnfn rotate(int16 vint16 i);
10158uint16 __ovld __cnfn rotate(uint16 vuint16 i);
10159long __ovld __cnfn rotate(long vlong i);
10160ulong __ovld __cnfn rotate(ulong vulong i);
10161long2 __ovld __cnfn rotate(long2 vlong2 i);
10162ulong2 __ovld __cnfn rotate(ulong2 vulong2 i);
10163long3 __ovld __cnfn rotate(long3 vlong3 i);
10164ulong3 __ovld __cnfn rotate(ulong3 vulong3 i);
10165long4 __ovld __cnfn rotate(long4 vlong4 i);
10166ulong4 __ovld __cnfn rotate(ulong4 vulong4 i);
10167long8 __ovld __cnfn rotate(long8 vlong8 i);
10168ulong8 __ovld __cnfn rotate(ulong8 vulong8 i);
10169long16 __ovld __cnfn rotate(long16 vlong16 i);
10170ulong16 __ovld __cnfn rotate(ulong16 vulong16 i);
10171
10172/**
10173 * Returns x - y and saturates the result.
10174 */
10175char __ovld __cnfn sub_sat(char xchar y);
10176uchar __ovld __cnfn sub_sat(uchar xuchar y);
10177char2 __ovld __cnfn sub_sat(char2 xchar2 y);
10178uchar2 __ovld __cnfn sub_sat(uchar2 xuchar2 y);
10179char3 __ovld __cnfn sub_sat(char3 xchar3 y);
10180uchar3 __ovld __cnfn sub_sat(uchar3 xuchar3 y);
10181char4 __ovld __cnfn sub_sat(char4 xchar4 y);
10182uchar4 __ovld __cnfn sub_sat(uchar4 xuchar4 y);
10183char8 __ovld __cnfn sub_sat(char8 xchar8 y);
10184uchar8 __ovld __cnfn sub_sat(uchar8 xuchar8 y);
10185char16 __ovld __cnfn sub_sat(char16 xchar16 y);
10186uchar16 __ovld __cnfn sub_sat(uchar16 xuchar16 y);
10187short __ovld __cnfn sub_sat(short xshort y);
10188ushort __ovld __cnfn sub_sat(ushort xushort y);
10189short2 __ovld __cnfn sub_sat(short2 xshort2 y);
10190ushort2 __ovld __cnfn sub_sat(ushort2 xushort2 y);
10191short3 __ovld __cnfn sub_sat(short3 xshort3 y);
10192ushort3 __ovld __cnfn sub_sat(ushort3 xushort3 y);
10193short4 __ovld __cnfn sub_sat(short4 xshort4 y);
10194ushort4 __ovld __cnfn sub_sat(ushort4 xushort4 y);
10195short8 __ovld __cnfn sub_sat(short8 xshort8 y);
10196ushort8 __ovld __cnfn sub_sat(ushort8 xushort8 y);
10197short16 __ovld __cnfn sub_sat(short16 xshort16 y);
10198ushort16 __ovld __cnfn sub_sat(ushort16 xushort16 y);
10199int __ovld __cnfn sub_sat(int xint y);
10200uint __ovld __cnfn sub_sat(uint xuint y);
10201int2 __ovld __cnfn sub_sat(int2 xint2 y);
10202uint2 __ovld __cnfn sub_sat(uint2 xuint2 y);
10203int3 __ovld __cnfn sub_sat(int3 xint3 y);
10204uint3 __ovld __cnfn sub_sat(uint3 xuint3 y);
10205int4 __ovld __cnfn sub_sat(int4 xint4 y);
10206uint4 __ovld __cnfn sub_sat(uint4 xuint4 y);
10207int8 __ovld __cnfn sub_sat(int8 xint8 y);
10208uint8 __ovld __cnfn sub_sat(uint8 xuint8 y);
10209int16 __ovld __cnfn sub_sat(int16 xint16 y);
10210uint16 __ovld __cnfn sub_sat(uint16 xuint16 y);
10211long __ovld __cnfn sub_sat(long xlong y);
10212ulong __ovld __cnfn sub_sat(ulong xulong y);
10213long2 __ovld __cnfn sub_sat(long2 xlong2 y);
10214ulong2 __ovld __cnfn sub_sat(ulong2 xulong2 y);
10215long3 __ovld __cnfn sub_sat(long3 xlong3 y);
10216ulong3 __ovld __cnfn sub_sat(ulong3 xulong3 y);
10217long4 __ovld __cnfn sub_sat(long4 xlong4 y);
10218ulong4 __ovld __cnfn sub_sat(ulong4 xulong4 y);
10219long8 __ovld __cnfn sub_sat(long8 xlong8 y);
10220ulong8 __ovld __cnfn sub_sat(ulong8 xulong8 y);
10221long16 __ovld __cnfn sub_sat(long16 xlong16 y);
10222ulong16 __ovld __cnfn sub_sat(ulong16 xulong16 y);
10223
10224/**
10225 * result[i] = ((short)hi[i] << 8) | lo[i]
10226 * result[i] = ((ushort)hi[i] << 8) | lo[i]
10227 */
10228short __ovld __cnfn upsample(char hiuchar lo);
10229ushort __ovld __cnfn upsample(uchar hiuchar lo);
10230short2 __ovld __cnfn upsample(char2 hiuchar2 lo);
10231short3 __ovld __cnfn upsample(char3 hiuchar3 lo);
10232short4 __ovld __cnfn upsample(char4 hiuchar4 lo);
10233short8 __ovld __cnfn upsample(char8 hiuchar8 lo);
10234short16 __ovld __cnfn upsample(char16 hiuchar16 lo);
10235ushort2 __ovld __cnfn upsample(uchar2 hiuchar2 lo);
10236ushort3 __ovld __cnfn upsample(uchar3 hiuchar3 lo);
10237ushort4 __ovld __cnfn upsample(uchar4 hiuchar4 lo);
10238ushort8 __ovld __cnfn upsample(uchar8 hiuchar8 lo);
10239ushort16 __ovld __cnfn upsample(uchar16 hiuchar16 lo);
10240
10241/**
10242 * result[i] = ((int)hi[i] << 16) | lo[i]
10243 * result[i] = ((uint)hi[i] << 16) | lo[i]
10244 */
10245int __ovld __cnfn upsample(short hiushort lo);
10246uint __ovld __cnfn upsample(ushort hiushort lo);
10247int2 __ovld __cnfn upsample(short2 hiushort2 lo);
10248int3 __ovld __cnfn upsample(short3 hiushort3 lo);
10249int4 __ovld __cnfn upsample(short4 hiushort4 lo);
10250int8 __ovld __cnfn upsample(short8 hiushort8 lo);
10251int16 __ovld __cnfn upsample(short16 hiushort16 lo);
10252uint2 __ovld __cnfn upsample(ushort2 hiushort2 lo);
10253uint3 __ovld __cnfn upsample(ushort3 hiushort3 lo);
10254uint4 __ovld __cnfn upsample(ushort4 hiushort4 lo);
10255uint8 __ovld __cnfn upsample(ushort8 hiushort8 lo);
10256uint16 __ovld __cnfn upsample(ushort16 hiushort16 lo);
10257/**
10258 * result[i] = ((long)hi[i] << 32) | lo[i]
10259 * result[i] = ((ulong)hi[i] << 32) | lo[i]
10260 */
10261long __ovld __cnfn upsample(int hiuint lo);
10262ulong __ovld __cnfn upsample(uint hiuint lo);
10263long2 __ovld __cnfn upsample(int2 hiuint2 lo);
10264long3 __ovld __cnfn upsample(int3 hiuint3 lo);
10265long4 __ovld __cnfn upsample(int4 hiuint4 lo);
10266long8 __ovld __cnfn upsample(int8 hiuint8 lo);
10267long16 __ovld __cnfn upsample(int16 hiuint16 lo);
10268ulong2 __ovld __cnfn upsample(uint2 hiuint2 lo);
10269ulong3 __ovld __cnfn upsample(uint3 hiuint3 lo);
10270ulong4 __ovld __cnfn upsample(uint4 hiuint4 lo);
10271ulong8 __ovld __cnfn upsample(uint8 hiuint8 lo);
10272ulong16 __ovld __cnfn upsample(uint16 hiuint16 lo);
10273
10274/*
10275 * popcount(x): returns the number of set bit in x
10276 */
10277char __ovld __cnfn popcount(char x);
10278uchar __ovld __cnfn popcount(uchar x);
10279char2 __ovld __cnfn popcount(char2 x);
10280uchar2 __ovld __cnfn popcount(uchar2 x);
10281char3 __ovld __cnfn popcount(char3 x);
10282uchar3 __ovld __cnfn popcount(uchar3 x);
10283char4 __ovld __cnfn popcount(char4 x);
10284uchar4 __ovld __cnfn popcount(uchar4 x);
10285char8 __ovld __cnfn popcount(char8 x);
10286uchar8 __ovld __cnfn popcount(uchar8 x);
10287char16 __ovld __cnfn popcount(char16 x);
10288uchar16 __ovld __cnfn popcount(uchar16 x);
10289short __ovld __cnfn popcount(short x);
10290ushort __ovld __cnfn popcount(ushort x);
10291short2 __ovld __cnfn popcount(short2 x);
10292ushort2 __ovld __cnfn popcount(ushort2 x);
10293short3 __ovld __cnfn popcount(short3 x);
10294ushort3 __ovld __cnfn popcount(ushort3 x);
10295short4 __ovld __cnfn popcount(short4 x);
10296ushort4 __ovld __cnfn popcount(ushort4 x);
10297short8 __ovld __cnfn popcount(short8 x);
10298ushort8 __ovld __cnfn popcount(ushort8 x);
10299short16 __ovld __cnfn popcount(short16 x);
10300ushort16 __ovld __cnfn popcount(ushort16 x);
10301int __ovld __cnfn popcount(int x);
10302uint __ovld __cnfn popcount(uint x);
10303int2 __ovld __cnfn popcount(int2 x);
10304uint2 __ovld __cnfn popcount(uint2 x);
10305int3 __ovld __cnfn popcount(int3 x);
10306uint3 __ovld __cnfn popcount(uint3 x);
10307int4 __ovld __cnfn popcount(int4 x);
10308uint4 __ovld __cnfn popcount(uint4 x);
10309int8 __ovld __cnfn popcount(int8 x);
10310uint8 __ovld __cnfn popcount(uint8 x);
10311int16 __ovld __cnfn popcount(int16 x);
10312uint16 __ovld __cnfn popcount(uint16 x);
10313long __ovld __cnfn popcount(long x);
10314ulong __ovld __cnfn popcount(ulong x);
10315long2 __ovld __cnfn popcount(long2 x);
10316ulong2 __ovld __cnfn popcount(ulong2 x);
10317long3 __ovld __cnfn popcount(long3 x);
10318ulong3 __ovld __cnfn popcount(ulong3 x);
10319long4 __ovld __cnfn popcount(long4 x);
10320ulong4 __ovld __cnfn popcount(ulong4 x);
10321long8 __ovld __cnfn popcount(long8 x);
10322ulong8 __ovld __cnfn popcount(ulong8 x);
10323long16 __ovld __cnfn popcount(long16 x);
10324ulong16 __ovld __cnfn popcount(ulong16 x);
10325
10326/**
10327 * Multiply two 24-bit integer values x and y and add
10328 * the 32-bit integer result to the 32-bit integer z.
10329 * Refer to definition of mul24 to see how the 24-bit
10330 * integer multiplication is performed.
10331 */
10332int __ovld __cnfn mad24(int xint yint z);
10333uint __ovld __cnfn mad24(uint xuint yuint z);
10334int2 __ovld __cnfn mad24(int2 xint2 yint2 z);
10335uint2 __ovld __cnfn mad24(uint2 xuint2 yuint2 z);
10336int3 __ovld __cnfn mad24(int3 xint3 yint3 z);
10337uint3 __ovld __cnfn mad24(uint3 xuint3 yuint3 z);
10338int4 __ovld __cnfn mad24(int4 xint4 yint4 z);
10339uint4 __ovld __cnfn mad24(uint4 xuint4 yuint4 z);
10340int8 __ovld __cnfn mad24(int8 xint8 yint8 z);
10341uint8 __ovld __cnfn mad24(uint8 xuint8 yuint8 z);
10342int16 __ovld __cnfn mad24(int16 xint16 yint16 z);
10343uint16 __ovld __cnfn mad24(uint16 xuint16 yuint16 z);
10344
10345/**
10346 * Multiply two 24-bit integer values x and y. x and y
10347 * are 32-bit integers but only the low 24-bits are used
10348 * to perform the multiplication. mul24 should only
10349 * be used when values in x and y are in the range [-
10350 * 2^23, 2^23-1] if x and y are signed integers and in the
10351 * range [0, 2^24-1] if x and y are unsigned integers. If
10352 * x and y are not in this range, the multiplication
10353 * result is implementation-defined.
10354 */
10355int __ovld __cnfn mul24(int xint y);
10356uint __ovld __cnfn mul24(uint xuint y);
10357int2 __ovld __cnfn mul24(int2 xint2 y);
10358uint2 __ovld __cnfn mul24(uint2 xuint2 y);
10359int3 __ovld __cnfn mul24(int3 xint3 y);
10360uint3 __ovld __cnfn mul24(uint3 xuint3 y);
10361int4 __ovld __cnfn mul24(int4 xint4 y);
10362uint4 __ovld __cnfn mul24(uint4 xuint4 y);
10363int8 __ovld __cnfn mul24(int8 xint8 y);
10364uint8 __ovld __cnfn mul24(uint8 xuint8 y);
10365int16 __ovld __cnfn mul24(int16 xint16 y);
10366uint16 __ovld __cnfn mul24(uint16 xuint16 y);
10367
10368// OpenCL v1.1 s6.11.4, v1.2 s6.12.4, v2.0 s6.13.4 - Common Functions
10369
10370/**
10371 * Returns fmin(fmax(x, minval), maxval).
10372 * Results are undefined if minval > maxval.
10373 */
10374float __ovld __cnfn clamp(float xfloat minvalfloat maxval);
10375float2 __ovld __cnfn clamp(float2 xfloat2 minvalfloat2 maxval);
10376float3 __ovld __cnfn clamp(float3 xfloat3 minvalfloat3 maxval);
10377float4 __ovld __cnfn clamp(float4 xfloat4 minvalfloat4 maxval);
10378float8 __ovld __cnfn clamp(float8 xfloat8 minvalfloat8 maxval);
10379float16 __ovld __cnfn clamp(float16 xfloat16 minvalfloat16 maxval);
10380float2 __ovld __cnfn clamp(float2 xfloat minvalfloat maxval);
10381float3 __ovld __cnfn clamp(float3 xfloat minvalfloat maxval);
10382float4 __ovld __cnfn clamp(float4 xfloat minvalfloat maxval);
10383float8 __ovld __cnfn clamp(float8 xfloat minvalfloat maxval);
10384float16 __ovld __cnfn clamp(float16 xfloat minvalfloat maxval);
10385#ifdef cl_khr_fp64
10386double __ovld __cnfn clamp(double x, double minval, double maxval);
10387double2 __ovld __cnfn clamp(double2 x, double2 minval, double2 maxval);
10388double3 __ovld __cnfn clamp(double3 x, double3 minval, double3 maxval);
10389double4 __ovld __cnfn clamp(double4 x, double4 minval, double4 maxval);
10390double8 __ovld __cnfn clamp(double8 x, double8 minval, double8 maxval);
10391double16 __ovld __cnfn clamp(double16 x, double16 minval, double16 maxval);
10392double2 __ovld __cnfn clamp(double2 x, double minval, double maxval);
10393double3 __ovld __cnfn clamp(double3 x, double minval, double maxval);
10394double4 __ovld __cnfn clamp(double4 x, double minval, double maxval);
10395double8 __ovld __cnfn clamp(double8 x, double minval, double maxval);
10396double16 __ovld __cnfn clamp(double16 x, double minval, double maxval);
10397#endif //cl_khr_fp64
10398#ifdef cl_khr_fp16
10399half __ovld __cnfn clamp(half x, half minval, half maxval);
10400half2 __ovld __cnfn clamp(half2 x, half2 minval, half2 maxval);
10401half3 __ovld __cnfn clamp(half3 x, half3 minval, half3 maxval);
10402half4 __ovld __cnfn clamp(half4 x, half4 minval, half4 maxval);
10403half8 __ovld __cnfn clamp(half8 x, half8 minval, half8 maxval);
10404half16 __ovld __cnfn clamp(half16 x, half16 minval, half16 maxval);
10405half2 __ovld __cnfn clamp(half2 x, half minval, half maxval);
10406half3 __ovld __cnfn clamp(half3 x, half minval, half maxval);
10407half4 __ovld __cnfn clamp(half4 x, half minval, half maxval);
10408half8 __ovld __cnfn clamp(half8 x, half minval, half maxval);
10409half16 __ovld __cnfn clamp(half16 x, half minval, half maxval);
10410#endif //cl_khr_fp16
10411
10412/**
10413 * Converts radians to degrees, i.e. (180 / PI) *
10414 * radians.
10415 */
10416float __ovld __cnfn degrees(float radians);
10417float2 __ovld __cnfn degrees(float2 radians);
10418float3 __ovld __cnfn degrees(float3 radians);
10419float4 __ovld __cnfn degrees(float4 radians);
10420float8 __ovld __cnfn degrees(float8 radians);
10421float16 __ovld __cnfn degrees(float16 radians);
10422#ifdef cl_khr_fp64
10423double __ovld __cnfn degrees(double radians);
10424double2 __ovld __cnfn degrees(double2 radians);
10425double3 __ovld __cnfn degrees(double3 radians);
10426double4 __ovld __cnfn degrees(double4 radians);
10427double8 __ovld __cnfn degrees(double8 radians);
10428double16 __ovld __cnfn degrees(double16 radians);
10429#endif //cl_khr_fp64
10430#ifdef cl_khr_fp16
10431half __ovld __cnfn degrees(half radians);
10432half2 __ovld __cnfn degrees(half2 radians);
10433half3 __ovld __cnfn degrees(half3 radians);
10434half4 __ovld __cnfn degrees(half4 radians);
10435half8 __ovld __cnfn degrees(half8 radians);
10436half16 __ovld __cnfn degrees(half16 radians);
10437#endif //cl_khr_fp16
10438
10439/**
10440 * Returns y if x < y, otherwise it returns x. If x and y
10441 * are infinite or NaN, the return values are undefined.
10442 */
10443float __ovld __cnfn max(float xfloat y);
10444float2 __ovld __cnfn max(float2 xfloat2 y);
10445float3 __ovld __cnfn max(float3 xfloat3 y);
10446float4 __ovld __cnfn max(float4 xfloat4 y);
10447float8 __ovld __cnfn max(float8 xfloat8 y);
10448float16 __ovld __cnfn max(float16 xfloat16 y);
10449float2 __ovld __cnfn max(float2 xfloat y);
10450float3 __ovld __cnfn max(float3 xfloat y);
10451float4 __ovld __cnfn max(float4 xfloat y);
10452float8 __ovld __cnfn max(float8 xfloat y);
10453float16 __ovld __cnfn max(float16 xfloat y);
10454#ifdef cl_khr_fp64
10455double __ovld __cnfn max(double x, double y);
10456double2 __ovld __cnfn max(double2 x, double2 y);
10457double3 __ovld __cnfn max(double3 x, double3 y);
10458double4 __ovld __cnfn max(double4 x, double4 y);
10459double8 __ovld __cnfn max(double8 x, double8 y);
10460double16 __ovld __cnfn max(double16 x, double16 y);
10461double2 __ovld __cnfn max(double2 x, double y);
10462double3 __ovld __cnfn max(double3 x, double y);
10463double4 __ovld __cnfn max(double4 x, double y);
10464double8 __ovld __cnfn max(double8 x, double y);
10465double16 __ovld __cnfn max(double16 x, double y);
10466#endif //cl_khr_fp64
10467#ifdef cl_khr_fp16
10468half __ovld __cnfn max(half x, half y);
10469half2 __ovld __cnfn max(half2 x, half2 y);
10470half3 __ovld __cnfn max(half3 x, half3 y);
10471half4 __ovld __cnfn max(half4 x, half4 y);
10472half8 __ovld __cnfn max(half8 x, half8 y);
10473half16 __ovld __cnfn max(half16 x, half16 y);
10474half2 __ovld __cnfn max(half2 x, half y);
10475half3 __ovld __cnfn max(half3 x, half y);
10476half4 __ovld __cnfn max(half4 x, half y);
10477half8 __ovld __cnfn max(half8 x, half y);
10478half16 __ovld __cnfn max(half16 x, half y);
10479#endif //cl_khr_fp16
10480
10481/**
10482 * Returns y if y < x, otherwise it returns x. If x and y
10483 * are infinite or NaN, the return values are undefined.
10484 */
10485float __ovld __cnfn min(float xfloat y);
10486float2 __ovld __cnfn min(float2 xfloat2 y);
10487float3 __ovld __cnfn min(float3 xfloat3 y);
10488float4 __ovld __cnfn min(float4 xfloat4 y);
10489float8 __ovld __cnfn min(float8 xfloat8 y);
10490float16 __ovld __cnfn min(float16 xfloat16 y);
10491float2 __ovld __cnfn min(float2 xfloat y);
10492float3 __ovld __cnfn min(float3 xfloat y);
10493float4 __ovld __cnfn min(float4 xfloat y);
10494float8 __ovld __cnfn min(float8 xfloat y);
10495float16 __ovld __cnfn min(float16 xfloat y);
10496#ifdef cl_khr_fp64
10497double __ovld __cnfn min(double x, double y);
10498double2 __ovld __cnfn min(double2 x, double2 y);
10499double3 __ovld __cnfn min(double3 x, double3 y);
10500double4 __ovld __cnfn min(double4 x, double4 y);
10501double8 __ovld __cnfn min(double8 x, double8 y);
10502double16 __ovld __cnfn min(double16 x, double16 y);
10503double2 __ovld __cnfn min(double2 x, double y);
10504double3 __ovld __cnfn min(double3 x, double y);
10505double4 __ovld __cnfn min(double4 x, double y);
10506double8 __ovld __cnfn min(double8 x, double y);
10507double16 __ovld __cnfn min(double16 x, double y);
10508#endif //cl_khr_fp64
10509#ifdef cl_khr_fp16
10510half __ovld __cnfn min(half x, half y);
10511half2 __ovld __cnfn min(half2 x, half2 y);
10512half3 __ovld __cnfn min(half3 x, half3 y);
10513half4 __ovld __cnfn min(half4 x, half4 y);
10514half8 __ovld __cnfn min(half8 x, half8 y);
10515half16 __ovld __cnfn min(half16 x, half16 y);
10516half2 __ovld __cnfn min(half2 x, half y);
10517half3 __ovld __cnfn min(half3 x, half y);
10518half4 __ovld __cnfn min(half4 x, half y);
10519half8 __ovld __cnfn min(half8 x, half y);
10520half16 __ovld __cnfn min(half16 x, half y);
10521#endif //cl_khr_fp16
10522
10523/**
10524 * Returns the linear blend of x & y implemented as:
10525 * x + (y - x) * a
10526 * a must be a value in the range 0.0 ... 1.0. If a is not
10527 * in the range 0.0 ... 1.0, the return values are
10528 * undefined.
10529 */
10530float __ovld __cnfn mix(float xfloat yfloat a);
10531float2 __ovld __cnfn mix(float2 xfloat2 yfloat2 a);
10532float3 __ovld __cnfn mix(float3 xfloat3 yfloat3 a);
10533float4 __ovld __cnfn mix(float4 xfloat4 yfloat4 a);
10534float8 __ovld __cnfn mix(float8 xfloat8 yfloat8 a);
10535float16 __ovld __cnfn mix(float16 xfloat16 yfloat16 a);
10536float2 __ovld __cnfn mix(float2 xfloat2 yfloat a);
10537float3 __ovld __cnfn mix(float3 xfloat3 yfloat a);
10538float4 __ovld __cnfn mix(float4 xfloat4 yfloat a);
10539float8 __ovld __cnfn mix(float8 xfloat8 yfloat a);
10540float16 __ovld __cnfn mix(float16 xfloat16 yfloat a);
10541#ifdef cl_khr_fp64
10542double __ovld __cnfn mix(double x, double y, double a);
10543double2 __ovld __cnfn mix(double2 x, double2 y, double2 a);
10544double3 __ovld __cnfn mix(double3 x, double3 y, double3 a);
10545double4 __ovld __cnfn mix(double4 x, double4 y, double4 a);
10546double8 __ovld __cnfn mix(double8 x, double8 y, double8 a);
10547double16 __ovld __cnfn mix(double16 x, double16 y, double16 a);
10548double2 __ovld __cnfn mix(double2 x, double2 y, double a);
10549double3 __ovld __cnfn mix(double3 x, double3 y, double a);
10550double4 __ovld __cnfn mix(double4 x, double4 y, double a);
10551double8 __ovld __cnfn mix(double8 x, double8 y, double a);
10552double16 __ovld __cnfn mix(double16 x, double16 y, double a);
10553#endif //cl_khr_fp64
10554#ifdef cl_khr_fp16
10555half __ovld __cnfn mix(half x, half y, half a);
10556half2 __ovld __cnfn mix(half2 x, half2 y, half2 a);
10557half3 __ovld __cnfn mix(half3 x, half3 y, half3 a);
10558half4 __ovld __cnfn mix(half4 x, half4 y, half4 a);
10559half8 __ovld __cnfn mix(half8 x, half8 y, half8 a);
10560half16 __ovld __cnfn mix(half16 x, half16 y, half16 a);
10561half2 __ovld __cnfn mix(half2 x, half2 y, half a);
10562half3 __ovld __cnfn mix(half3 x, half3 y, half a);
10563half4 __ovld __cnfn mix(half4 x, half4 y, half a);
10564half8 __ovld __cnfn mix(half8 x, half8 y, half a);
10565half16 __ovld __cnfn mix(half16 x, half16 y, half a);
10566#endif //cl_khr_fp16
10567
10568/**
10569 * Converts degrees to radians, i.e. (PI / 180) *
10570 * degrees.
10571 */
10572float __ovld __cnfn radians(float degrees);
10573float2 __ovld __cnfn radians(float2 degrees);
10574float3 __ovld __cnfn radians(float3 degrees);
10575float4 __ovld __cnfn radians(float4 degrees);
10576float8 __ovld __cnfn radians(float8 degrees);
10577float16 __ovld __cnfn radians(float16 degrees);
10578#ifdef cl_khr_fp64
10579double __ovld __cnfn radians(double degrees);
10580double2 __ovld __cnfn radians(double2 degrees);
10581double3 __ovld __cnfn radians(double3 degrees);
10582double4 __ovld __cnfn radians(double4 degrees);
10583double8 __ovld __cnfn radians(double8 degrees);
10584double16 __ovld __cnfn radians(double16 degrees);
10585#endif //cl_khr_fp64
10586#ifdef cl_khr_fp16
10587half __ovld __cnfn radians(half degrees);
10588half2 __ovld __cnfn radians(half2 degrees);
10589half3 __ovld __cnfn radians(half3 degrees);
10590half4 __ovld __cnfn radians(half4 degrees);
10591half8 __ovld __cnfn radians(half8 degrees);
10592half16 __ovld __cnfn radians(half16 degrees);
10593#endif //cl_khr_fp16
10594
10595/**
10596 * Returns 0.0 if x < edge, otherwise it returns 1.0.
10597 */
10598float __ovld __cnfn step(float edgefloat x);
10599float2 __ovld __cnfn step(float2 edgefloat2 x);
10600float3 __ovld __cnfn step(float3 edgefloat3 x);
10601float4 __ovld __cnfn step(float4 edgefloat4 x);
10602float8 __ovld __cnfn step(float8 edgefloat8 x);
10603float16 __ovld __cnfn step(float16 edgefloat16 x);
10604float2 __ovld __cnfn step(float edgefloat2 x);
10605float3 __ovld __cnfn step(float edgefloat3 x);
10606float4 __ovld __cnfn step(float edgefloat4 x);
10607float8 __ovld __cnfn step(float edgefloat8 x);
10608float16 __ovld __cnfn step(float edgefloat16 x);
10609#ifdef cl_khr_fp64
10610double __ovld __cnfn step(double edge, double x);
10611double2 __ovld __cnfn step(double2 edge, double2 x);
10612double3 __ovld __cnfn step(double3 edge, double3 x);
10613double4 __ovld __cnfn step(double4 edge, double4 x);
10614double8 __ovld __cnfn step(double8 edge, double8 x);
10615double16 __ovld __cnfn step(double16 edge, double16 x);
10616double2 __ovld __cnfn step(double edge, double2 x);
10617double3 __ovld __cnfn step(double edge, double3 x);
10618double4 __ovld __cnfn step(double edge, double4 x);
10619double8 __ovld __cnfn step(double edge, double8 x);
10620double16 __ovld __cnfn step(double edge, double16 x);
10621#endif //cl_khr_fp64
10622#ifdef cl_khr_fp16
10623half __ovld __cnfn step(half edge, half x);
10624half2 __ovld __cnfn step(half2 edge, half2 x);
10625half3 __ovld __cnfn step(half3 edge, half3 x);
10626half4 __ovld __cnfn step(half4 edge, half4 x);
10627half8 __ovld __cnfn step(half8 edge, half8 x);
10628half16 __ovld __cnfn step(half16 edge, half16 x);
10629half __ovld __cnfn step(half edge, half x);
10630half2 __ovld __cnfn step(half edge, half2 x);
10631half3 __ovld __cnfn step(half edge, half3 x);
10632half4 __ovld __cnfn step(half edge, half4 x);
10633half8 __ovld __cnfn step(half edge, half8 x);
10634half16 __ovld __cnfn step(half edge, half16 x);
10635#endif //cl_khr_fp16
10636
10637/**
10638 * Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and
10639 * performs smooth Hermite interpolation between 0
10640 * and 1when edge0 < x < edge1. This is useful in
10641 * cases where you would want a threshold function
10642 * with a smooth transition.
10643 * This is equivalent to:
10644 * gentype t;
10645 * t = clamp ((x - edge0) / (edge1 - edge0), 0, 1);
10646 * return t * t * (3 - 2 * t);
10647 * Results are undefined if edge0 >= edge1 or if x,
10648 * edge0 or edge1 is a NaN.
10649 */
10650float __ovld __cnfn smoothstep(float edge0float edge1float x);
10651float2 __ovld __cnfn smoothstep(float2 edge0float2 edge1float2 x);
10652float3 __ovld __cnfn smoothstep(float3 edge0float3 edge1float3 x);
10653float4 __ovld __cnfn smoothstep(float4 edge0float4 edge1float4 x);
10654float8 __ovld __cnfn smoothstep(float8 edge0float8 edge1float8 x);
10655float16 __ovld __cnfn smoothstep(float16 edge0float16 edge1float16 x);
10656float2 __ovld __cnfn smoothstep(float edge0float edge1float2 x);
10657float3 __ovld __cnfn smoothstep(float edge0float edge1float3 x);
10658float4 __ovld __cnfn smoothstep(float edge0float edge1float4 x);
10659float8 __ovld __cnfn smoothstep(float edge0float edge1float8 x);
10660float16 __ovld __cnfn smoothstep(float edge0float edge1float16 x);
10661#ifdef cl_khr_fp64
10662double __ovld __cnfn smoothstep(double edge0, double edge1, double x);
10663double2 __ovld __cnfn smoothstep(double2 edge0, double2 edge1, double2 x);
10664double3 __ovld __cnfn smoothstep(double3 edge0, double3 edge1, double3 x);
10665double4 __ovld __cnfn smoothstep(double4 edge0, double4 edge1, double4 x);
10666double8 __ovld __cnfn smoothstep(double8 edge0, double8 edge1, double8 x);
10667double16 __ovld __cnfn smoothstep(double16 edge0, double16 edge1, double16 x);
10668double2 __ovld __cnfn smoothstep(double edge0, double edge1, double2 x);
10669double3 __ovld __cnfn smoothstep(double edge0, double edge1, double3 x);
10670double4 __ovld __cnfn smoothstep(double edge0, double edge1, double4 x);
10671double8 __ovld __cnfn smoothstep(double edge0, double edge1, double8 x);
10672double16 __ovld __cnfn smoothstep(double edge0, double edge1, double16 x);
10673#endif //cl_khr_fp64
10674#ifdef cl_khr_fp16
10675half __ovld __cnfn smoothstep(half edge0, half edge1, half x);
10676half2 __ovld __cnfn smoothstep(half2 edge0, half2 edge1, half2 x);
10677half3 __ovld __cnfn smoothstep(half3 edge0, half3 edge1, half3 x);
10678half4 __ovld __cnfn smoothstep(half4 edge0, half4 edge1, half4 x);
10679half8 __ovld __cnfn smoothstep(half8 edge0, half8 edge1, half8 x);
10680half16 __ovld __cnfn smoothstep(half16 edge0, half16 edge1, half16 x);
10681half __ovld __cnfn smoothstep(half edge0, half edge1, half x);
10682half2 __ovld __cnfn smoothstep(half edge0, half edge1, half2 x);
10683half3 __ovld __cnfn smoothstep(half edge0, half edge1, half3 x);
10684half4 __ovld __cnfn smoothstep(half edge0, half edge1, half4 x);
10685half8 __ovld __cnfn smoothstep(half edge0, half edge1, half8 x);
10686half16 __ovld __cnfn smoothstep(half edge0, half edge1, half16 x);
10687#endif //cl_khr_fp16
10688
10689/**
10690 * Returns 1.0 if x > 0, -0.0 if x = -0.0, +0.0 if x =
10691 * +0.0, or -1.0 if x < 0. Returns 0.0 if x is a NaN.
10692 */
10693float __ovld __cnfn sign(float x);
10694float2 __ovld __cnfn sign(float2 x);
10695float3 __ovld __cnfn sign(float3 x);
10696float4 __ovld __cnfn sign(float4 x);
10697float8 __ovld __cnfn sign(float8 x);
10698float16 __ovld __cnfn sign(float16 x);
10699#ifdef cl_khr_fp64
10700double __ovld __cnfn sign(double x);
10701double2 __ovld __cnfn sign(double2 x);
10702double3 __ovld __cnfn sign(double3 x);
10703double4 __ovld __cnfn sign(double4 x);
10704double8 __ovld __cnfn sign(double8 x);
10705double16 __ovld __cnfn sign(double16 x);
10706#endif //cl_khr_fp64
10707#ifdef cl_khr_fp16
10708half __ovld __cnfn sign(half x);
10709half2 __ovld __cnfn sign(half2 x);
10710half3 __ovld __cnfn sign(half3 x);
10711half4 __ovld __cnfn sign(half4 x);
10712half8 __ovld __cnfn sign(half8 x);
10713half16 __ovld __cnfn sign(half16 x);
10714#endif //cl_khr_fp16
10715
10716// OpenCL v1.1 s6.11.5, v1.2 s6.12.5, v2.0 s6.13.5 - Geometric Functions
10717
10718/**
10719 * Returns the cross product of p0.xyz and p1.xyz. The
10720 * w component of float4 result returned will be 0.0.
10721 */
10722float4 __ovld __cnfn cross(float4 p0float4 p1);
10723float3 __ovld __cnfn cross(float3 p0float3 p1);
10724#ifdef cl_khr_fp64
10725double4 __ovld __cnfn cross(double4 p0, double4 p1);
10726double3 __ovld __cnfn cross(double3 p0, double3 p1);
10727#endif //cl_khr_fp64
10728#ifdef cl_khr_fp16
10729half4 __ovld __cnfn cross(half4 p0, half4 p1);
10730half3 __ovld __cnfn cross(half3 p0, half3 p1);
10731#endif //cl_khr_fp16
10732
10733/**
10734 * Compute dot product.
10735 */
10736float __ovld __cnfn dot(float p0float p1);
10737float __ovld __cnfn dot(float2 p0float2 p1);
10738float __ovld __cnfn dot(float3 p0float3 p1);
10739float __ovld __cnfn dot(float4 p0float4 p1);
10740#ifdef cl_khr_fp64
10741double __ovld __cnfn dot(double p0, double p1);
10742double __ovld __cnfn dot(double2 p0, double2 p1);
10743double __ovld __cnfn dot(double3 p0, double3 p1);
10744double __ovld __cnfn dot(double4 p0, double4 p1);
10745#endif //cl_khr_fp64
10746#ifdef cl_khr_fp16
10747half __ovld __cnfn dot(half p0, half p1);
10748half __ovld __cnfn dot(half2 p0, half2 p1);
10749half __ovld __cnfn dot(half3 p0, half3 p1);
10750half __ovld __cnfn dot(half4 p0, half4 p1);
10751#endif //cl_khr_fp16
10752
10753/**
10754 * Returns the distance between p0 and p1. This is
10755 * calculated as length(p0 - p1).
10756 */
10757float __ovld __cnfn distance(float p0float p1);
10758float __ovld __cnfn distance(float2 p0float2 p1);
10759float __ovld __cnfn distance(float3 p0float3 p1);
10760float __ovld __cnfn distance(float4 p0float4 p1);
10761#ifdef cl_khr_fp64
10762double __ovld __cnfn distance(double p0, double p1);
10763double __ovld __cnfn distance(double2 p0, double2 p1);
10764double __ovld __cnfn distance(double3 p0, double3 p1);
10765double __ovld __cnfn distance(double4 p0, double4 p1);
10766#endif //cl_khr_fp64
10767#ifdef cl_khr_fp16
10768half __ovld __cnfn distance(half p0, half p1);
10769half __ovld __cnfn distance(half2 p0, half2 p1);
10770half __ovld __cnfn distance(half3 p0, half3 p1);
10771half __ovld __cnfn distance(half4 p0, half4 p1);
10772#endif //cl_khr_fp16
10773
10774/**
10775 * Return the length of vector p, i.e.,
10776 * sqrt(p.x2 + p.y 2 + ...)
10777 */
10778float __ovld __cnfn length(float p);
10779float __ovld __cnfn length(float2 p);
10780float __ovld __cnfn length(float3 p);
10781float __ovld __cnfn length(float4 p);
10782#ifdef cl_khr_fp64
10783double __ovld __cnfn length(double p);
10784double __ovld __cnfn length(double2 p);
10785double __ovld __cnfn length(double3 p);
10786double __ovld __cnfn length(double4 p);
10787#endif //cl_khr_fp64
10788#ifdef cl_khr_fp16
10789half __ovld __cnfn length(half p);
10790half __ovld __cnfn length(half2 p);
10791half __ovld __cnfn length(half3 p);
10792half __ovld __cnfn length(half4 p);
10793#endif //cl_khr_fp16
10794
10795/**
10796 * Returns a vector in the same direction as p but with a
10797 * length of 1.
10798 */
10799float __ovld __cnfn normalize(float p);
10800float2 __ovld __cnfn normalize(float2 p);
10801float3 __ovld __cnfn normalize(float3 p);
10802float4 __ovld __cnfn normalize(float4 p);
10803#ifdef cl_khr_fp64
10804double __ovld __cnfn normalize(double p);
10805double2 __ovld __cnfn normalize(double2 p);
10806double3 __ovld __cnfn normalize(double3 p);
10807double4 __ovld __cnfn normalize(double4 p);
10808#endif //cl_khr_fp64
10809#ifdef cl_khr_fp16
10810half __ovld __cnfn normalize(half p);
10811half2 __ovld __cnfn normalize(half2 p);
10812half3 __ovld __cnfn normalize(half3 p);
10813half4 __ovld __cnfn normalize(half4 p);
10814#endif //cl_khr_fp16
10815
10816/**
10817 * Returns fast_length(p0 - p1).
10818 */
10819float __ovld __cnfn fast_distance(float p0float p1);
10820float __ovld __cnfn fast_distance(float2 p0float2 p1);
10821float __ovld __cnfn fast_distance(float3 p0float3 p1);
10822float __ovld __cnfn fast_distance(float4 p0float4 p1);
10823#ifdef cl_khr_fp16
10824half __ovld __cnfn fast_distance(half p0, half p1);
10825half __ovld __cnfn fast_distance(half2 p0, half2 p1);
10826half __ovld __cnfn fast_distance(half3 p0, half3 p1);
10827half __ovld __cnfn fast_distance(half4 p0, half4 p1);
10828#endif //cl_khr_fp16
10829
10830/**
10831 * Returns the length of vector p computed as:
10832 * half_sqrt(p.x2 + p.y2 + ...)
10833 */
10834float __ovld __cnfn fast_length(float p);
10835float __ovld __cnfn fast_length(float2 p);
10836float __ovld __cnfn fast_length(float3 p);
10837float __ovld __cnfn fast_length(float4 p);
10838#ifdef cl_khr_fp16
10839half __ovld __cnfn fast_length(half p);
10840half __ovld __cnfn fast_length(half2 p);
10841half __ovld __cnfn fast_length(half3 p);
10842half __ovld __cnfn fast_length(half4 p);
10843#endif //cl_khr_fp16
10844
10845/**
10846 * Returns a vector in the same direction as p but with a
10847 * length of 1. fast_normalize is computed as:
10848 * p * half_rsqrt (p.x^2 + p.y^2 + ... )
10849 * The result shall be within 8192 ulps error from the
10850 * infinitely precise result of
10851 * if (all(p == 0.0f))
10852 * result = p;
10853 * else
10854 * result = p / sqrt (p.x^2 + p.y^2 + ...);
10855 * with the following exceptions:
10856 * 1) If the sum of squares is greater than FLT_MAX
10857 * then the value of the floating-point values in the
10858 * result vector are undefined.
10859 * 2) If the sum of squares is less than FLT_MIN then
10860 * the implementation may return back p.
10861 * 3) If the device is in "denorms are flushed to zero"
10862 * mode, individual operand elements with magnitude
10863 * less than sqrt(FLT_MIN) may be flushed to zero
10864 * before proceeding with the calculation.
10865 */
10866float __ovld __cnfn fast_normalize(float p);
10867float2 __ovld __cnfn fast_normalize(float2 p);
10868float3 __ovld __cnfn fast_normalize(float3 p);
10869float4 __ovld __cnfn fast_normalize(float4 p);
10870#ifdef cl_khr_fp16
10871half __ovld __cnfn fast_normalize(half p);
10872half2 __ovld __cnfn fast_normalize(half2 p);
10873half3 __ovld __cnfn fast_normalize(half3 p);
10874half4 __ovld __cnfn fast_normalize(half4 p);
10875#endif //cl_khr_fp16
10876
10877// OpenCL v1.1 s6.11.6, v1.2 s6.12.6, v2.0 s6.13.6 - Relational Functions
10878
10879/**
10880 * intn isequal (floatn x, floatn y)
10881 * Returns the component-wise compare of x == y.
10882 */
10883int __ovld __cnfn isequal(float xfloat y);
10884int2 __ovld __cnfn isequal(float2 xfloat2 y);
10885int3 __ovld __cnfn isequal(float3 xfloat3 y);
10886int4 __ovld __cnfn isequal(float4 xfloat4 y);
10887int8 __ovld __cnfn isequal(float8 xfloat8 y);
10888int16 __ovld __cnfn isequal(float16 xfloat16 y);
10889#ifdef cl_khr_fp64
10890int __ovld __cnfn isequal(double x, double y);
10891long2 __ovld __cnfn isequal(double2 x, double2 y);
10892long3 __ovld __cnfn isequal(double3 x, double3 y);
10893long4 __ovld __cnfn isequal(double4 x, double4 y);
10894long8 __ovld __cnfn isequal(double8 x, double8 y);
10895long16 __ovld __cnfn isequal(double16 x, double16 y);
10896#endif //cl_khr_fp64
10897#ifdef cl_khr_fp16
10898int __ovld __cnfn isequal(half x, half y);
10899short2 __ovld __cnfn isequal(half2 x, half2 y);
10900short3 __ovld __cnfn isequal(half3 x, half3 y);
10901short4 __ovld __cnfn isequal(half4 x, half4 y);
10902short8 __ovld __cnfn isequal(half8 x, half8 y);
10903short16 __ovld __cnfn isequal(half16 x, half16 y);
10904#endif //cl_khr_fp16
10905
10906/**
10907 * Returns the component-wise compare of x != y.
10908 */
10909int __ovld __cnfn isnotequal(float xfloat y);
10910int2 __ovld __cnfn isnotequal(float2 xfloat2 y);
10911int3 __ovld __cnfn isnotequal(float3 xfloat3 y);
10912int4 __ovld __cnfn isnotequal(float4 xfloat4 y);
10913int8 __ovld __cnfn isnotequal(float8 xfloat8 y);
10914int16 __ovld __cnfn isnotequal(float16 xfloat16 y);
10915#ifdef cl_khr_fp64
10916int __ovld __cnfn isnotequal(double x, double y);
10917long2 __ovld __cnfn isnotequal(double2 x, double2 y);
10918long3 __ovld __cnfn isnotequal(double3 x, double3 y);
10919long4 __ovld __cnfn isnotequal(double4 x, double4 y);
10920long8 __ovld __cnfn isnotequal(double8 x, double8 y);
10921long16 __ovld __cnfn isnotequal(double16 x, double16 y);
10922#endif //cl_khr_fp64
10923#ifdef cl_khr_fp16
10924int __ovld __cnfn isnotequal(half x, half y);
10925short2 __ovld __cnfn isnotequal(half2 x, half2 y);
10926short3 __ovld __cnfn isnotequal(half3 x, half3 y);
10927short4 __ovld __cnfn isnotequal(half4 x, half4 y);
10928short8 __ovld __cnfn isnotequal(half8 x, half8 y);
10929short16 __ovld __cnfn isnotequal(half16 x, half16 y);
10930#endif //cl_khr_fp16
10931
10932/**
10933 * Returns the component-wise compare of x > y.
10934 */
10935int __ovld __cnfn isgreater(float xfloat y);
10936int2 __ovld __cnfn isgreater(float2 xfloat2 y);
10937int3 __ovld __cnfn isgreater(float3 xfloat3 y);
10938int4 __ovld __cnfn isgreater(float4 xfloat4 y);
10939int8 __ovld __cnfn isgreater(float8 xfloat8 y);
10940int16 __ovld __cnfn isgreater(float16 xfloat16 y);
10941#ifdef cl_khr_fp64
10942int __ovld __cnfn isgreater(double x, double y);
10943long2 __ovld __cnfn isgreater(double2 x, double2 y);
10944long3 __ovld __cnfn isgreater(double3 x, double3 y);
10945long4 __ovld __cnfn isgreater(double4 x, double4 y);
10946long8 __ovld __cnfn isgreater(double8 x, double8 y);
10947long16 __ovld __cnfn isgreater(double16 x, double16 y);
10948#endif //cl_khr_fp64
10949#ifdef cl_khr_fp16
10950int __ovld __cnfn isgreater(half x, half y);
10951short2 __ovld __cnfn isgreater(half2 x, half2 y);
10952short3 __ovld __cnfn isgreater(half3 x, half3 y);
10953short4 __ovld __cnfn isgreater(half4 x, half4 y);
10954short8 __ovld __cnfn isgreater(half8 x, half8 y);
10955short16 __ovld __cnfn isgreater(half16 x, half16 y);
10956#endif //cl_khr_fp16
10957
10958/**
10959 * Returns the component-wise compare of x >= y.
10960 */
10961int __ovld __cnfn isgreaterequal(float xfloat y);
10962int2 __ovld __cnfn isgreaterequal(float2 xfloat2 y);
10963int3 __ovld __cnfn isgreaterequal(float3 xfloat3 y);
10964int4 __ovld __cnfn isgreaterequal(float4 xfloat4 y);
10965int8 __ovld __cnfn isgreaterequal(float8 xfloat8 y);
10966int16 __ovld __cnfn isgreaterequal(float16 xfloat16 y);
10967#ifdef cl_khr_fp64
10968int __ovld __cnfn isgreaterequal(double x, double y);
10969long2 __ovld __cnfn isgreaterequal(double2 x, double2 y);
10970long3 __ovld __cnfn isgreaterequal(double3 x, double3 y);
10971long4 __ovld __cnfn isgreaterequal(double4 x, double4 y);
10972long8 __ovld __cnfn isgreaterequal(double8 x, double8 y);
10973long16 __ovld __cnfn isgreaterequal(double16 x, double16 y);
10974#endif //cl_khr_fp64
10975#ifdef cl_khr_fp16
10976int __ovld __cnfn isgreaterequal(half x, half y);
10977short2 __ovld __cnfn isgreaterequal(half2 x, half2 y);
10978short3 __ovld __cnfn isgreaterequal(half3 x, half3 y);
10979short4 __ovld __cnfn isgreaterequal(half4 x, half4 y);
10980short8 __ovld __cnfn isgreaterequal(half8 x, half8 y);
10981short16 __ovld __cnfn isgreaterequal(half16 x, half16 y);
10982#endif //cl_khr_fp16
10983
10984/**
10985 * Returns the component-wise compare of x < y.
10986 */
10987int __ovld __cnfn isless(float xfloat y);
10988int2 __ovld __cnfn isless(float2 xfloat2 y);
10989int3 __ovld __cnfn isless(float3 xfloat3 y);
10990int4 __ovld __cnfn isless(float4 xfloat4 y);
10991int8 __ovld __cnfn isless(float8 xfloat8 y);
10992int16 __ovld __cnfn isless(float16 xfloat16 y);
10993#ifdef cl_khr_fp64
10994int __ovld __cnfn isless(double x, double y);
10995long2 __ovld __cnfn isless(double2 x, double2 y);
10996long3 __ovld __cnfn isless(double3 x, double3 y);
10997long4 __ovld __cnfn isless(double4 x, double4 y);
10998long8 __ovld __cnfn isless(double8 x, double8 y);
10999long16 __ovld __cnfn isless(double16 x, double16 y);
11000#endif //cl_khr_fp64
11001#ifdef cl_khr_fp16
11002int __ovld __cnfn isless(half x, half y);
11003short2 __ovld __cnfn isless(half2 x, half2 y);
11004short3 __ovld __cnfn isless(half3 x, half3 y);
11005short4 __ovld __cnfn isless(half4 x, half4 y);
11006short8 __ovld __cnfn isless(half8 x, half8 y);
11007short16 __ovld __cnfn isless(half16 x, half16 y);
11008#endif //cl_khr_fp16
11009
11010/**
11011 * Returns the component-wise compare of x <= y.
11012 */
11013int __ovld __cnfn islessequal(float xfloat y);
11014int2 __ovld __cnfn islessequal(float2 xfloat2 y);
11015int3 __ovld __cnfn islessequal(float3 xfloat3 y);
11016int4 __ovld __cnfn islessequal(float4 xfloat4 y);
11017int8 __ovld __cnfn islessequal(float8 xfloat8 y);
11018int16 __ovld __cnfn islessequal(float16 xfloat16 y);
11019#ifdef cl_khr_fp64
11020int __ovld __cnfn islessequal(double x, double y);
11021long2 __ovld __cnfn islessequal(double2 x, double2 y);
11022long3 __ovld __cnfn islessequal(double3 x, double3 y);
11023long4 __ovld __cnfn islessequal(double4 x, double4 y);
11024long8 __ovld __cnfn islessequal(double8 x, double8 y);
11025long16 __ovld __cnfn islessequal(double16 x, double16 y);
11026#endif //cl_khr_fp64
11027#ifdef cl_khr_fp16
11028int __ovld __cnfn islessequal(half x, half y);
11029short2 __ovld __cnfn islessequal(half2 x, half2 y);
11030short3 __ovld __cnfn islessequal(half3 x, half3 y);
11031short4 __ovld __cnfn islessequal(half4 x, half4 y);
11032short8 __ovld __cnfn islessequal(half8 x, half8 y);
11033short16 __ovld __cnfn islessequal(half16 x, half16 y);
11034#endif //cl_khr_fp16
11035
11036/**
11037 * Returns the component-wise compare of
11038 * (x < y) || (x > y) .
11039 */
11040int __ovld __cnfn islessgreater(float xfloat y);
11041int2 __ovld __cnfn islessgreater(float2 xfloat2 y);
11042int3 __ovld __cnfn islessgreater(float3 xfloat3 y);
11043int4 __ovld __cnfn islessgreater(float4 xfloat4 y);
11044int8 __ovld __cnfn islessgreater(float8 xfloat8 y);
11045int16 __ovld __cnfn islessgreater(float16 xfloat16 y);
11046#ifdef cl_khr_fp64
11047int __ovld __cnfn islessgreater(double x, double y);
11048long2 __ovld __cnfn islessgreater(double2 x, double2 y);
11049long3 __ovld __cnfn islessgreater(double3 x, double3 y);
11050long4 __ovld __cnfn islessgreater(double4 x, double4 y);
11051long8 __ovld __cnfn islessgreater(double8 x, double8 y);
11052long16 __ovld __cnfn islessgreater(double16 x, double16 y);
11053#endif //cl_khr_fp64
11054#ifdef cl_khr_fp16
11055int __ovld __cnfn islessgreater(half x, half y);
11056short2 __ovld __cnfn islessgreater(half2 x, half2 y);
11057short3 __ovld __cnfn islessgreater(half3 x, half3 y);
11058short4 __ovld __cnfn islessgreater(half4 x, half4 y);
11059short8 __ovld __cnfn islessgreater(half8 x, half8 y);
11060short16 __ovld __cnfn islessgreater(half16 x, half16 y);
11061#endif //cl_khr_fp16
11062
11063/**
11064 * Test for finite value.
11065 */
11066int __ovld __cnfn isfinite(float);
11067int2 __ovld __cnfn isfinite(float2);
11068int3 __ovld __cnfn isfinite(float3);
11069int4 __ovld __cnfn isfinite(float4);
11070int8 __ovld __cnfn isfinite(float8);
11071int16 __ovld __cnfn isfinite(float16);
11072#ifdef cl_khr_fp64
11073int __ovld __cnfn isfinite(double);
11074long2 __ovld __cnfn isfinite(double2);
11075long3 __ovld __cnfn isfinite(double3);
11076long4 __ovld __cnfn isfinite(double4);
11077long8 __ovld __cnfn isfinite(double8);
11078long16 __ovld __cnfn isfinite(double16);
11079#endif //cl_khr_fp64
11080#ifdef cl_khr_fp16
11081int __ovld __cnfn isfinite(half);
11082short2 __ovld __cnfn isfinite(half2);
11083short3 __ovld __cnfn isfinite(half3);
11084short4 __ovld __cnfn isfinite(half4);
11085short8 __ovld __cnfn isfinite(half8);
11086short16 __ovld __cnfn isfinite(half16);
11087#endif //cl_khr_fp16
11088
11089/**
11090 * Test for infinity value (+ve or -ve) .
11091 */
11092int __ovld __cnfn isinf(float);
11093int2 __ovld __cnfn isinf(float2);
11094int3 __ovld __cnfn isinf(float3);
11095int4 __ovld __cnfn isinf(float4);
11096int8 __ovld __cnfn isinf(float8);
11097int16 __ovld __cnfn isinf(float16);
11098#ifdef cl_khr_fp64
11099int __ovld __cnfn isinf(double);
11100long2 __ovld __cnfn isinf(double2);
11101long3 __ovld __cnfn isinf(double3);
11102long4 __ovld __cnfn isinf(double4);
11103long8 __ovld __cnfn isinf(double8);
11104long16 __ovld __cnfn isinf(double16);
11105#endif //cl_khr_fp64
11106#ifdef cl_khr_fp16
11107int __ovld __cnfn isinf(half);
11108short2 __ovld __cnfn isinf(half2);
11109short3 __ovld __cnfn isinf(half3);
11110short4 __ovld __cnfn isinf(half4);
11111short8 __ovld __cnfn isinf(half8);
11112short16 __ovld __cnfn isinf(half16);
11113#endif //cl_khr_fp16
11114
11115/**
11116 * Test for a NaN.
11117 */
11118int __ovld __cnfn isnan(float);
11119int2 __ovld __cnfn isnan(float2);
11120int3 __ovld __cnfn isnan(float3);
11121int4 __ovld __cnfn isnan(float4);
11122int8 __ovld __cnfn isnan(float8);
11123int16 __ovld __cnfn isnan(float16);
11124#ifdef cl_khr_fp64
11125int __ovld __cnfn isnan(double);
11126long2 __ovld __cnfn isnan(double2);
11127long3 __ovld __cnfn isnan(double3);
11128long4 __ovld __cnfn isnan(double4);
11129long8 __ovld __cnfn isnan(double8);
11130long16 __ovld __cnfn isnan(double16);
11131#endif //cl_khr_fp64
11132#ifdef cl_khr_fp16
11133int __ovld __cnfn isnan(half);
11134short2 __ovld __cnfn isnan(half2);
11135short3 __ovld __cnfn isnan(half3);
11136short4 __ovld __cnfn isnan(half4);
11137short8 __ovld __cnfn isnan(half8);
11138short16 __ovld __cnfn isnan(half16);
11139#endif //cl_khr_fp16
11140
11141/**
11142 * Test for a normal value.
11143 */
11144int __ovld __cnfn isnormal(float);
11145int2 __ovld __cnfn isnormal(float2);
11146int3 __ovld __cnfn isnormal(float3);
11147int4 __ovld __cnfn isnormal(float4);
11148int8 __ovld __cnfn isnormal(float8);
11149int16 __ovld __cnfn isnormal(float16);
11150#ifdef cl_khr_fp64
11151int __ovld __cnfn isnormal(double);
11152long2 __ovld __cnfn isnormal(double2);
11153long3 __ovld __cnfn isnormal(double3);
11154long4 __ovld __cnfn isnormal(double4);
11155long8 __ovld __cnfn isnormal(double8);
11156long16 __ovld __cnfn isnormal(double16);
11157#endif //cl_khr_fp64
11158#ifdef cl_khr_fp16
11159int __ovld __cnfn isnormal(half);
11160short2 __ovld __cnfn isnormal(half2);
11161short3 __ovld __cnfn isnormal(half3);
11162short4 __ovld __cnfn isnormal(half4);
11163short8 __ovld __cnfn isnormal(half8);
11164short16 __ovld __cnfn isnormal(half16);
11165#endif //cl_khr_fp16
11166
11167/**
11168 * Test if arguments are ordered. isordered() takes
11169 * arguments x and y, and returns the result
11170 * isequal(x, x) && isequal(y, y).
11171 */
11172int __ovld __cnfn isordered(float xfloat y);
11173int2 __ovld __cnfn isordered(float2 xfloat2 y);
11174int3 __ovld __cnfn isordered(float3 xfloat3 y);
11175int4 __ovld __cnfn isordered(float4 xfloat4 y);
11176int8 __ovld __cnfn isordered(float8 xfloat8 y);
11177int16 __ovld __cnfn isordered(float16 xfloat16 y);
11178#ifdef cl_khr_fp64
11179int __ovld __cnfn isordered(double x, double y);
11180long2 __ovld __cnfn isordered(double2 x, double2 y);
11181long3 __ovld __cnfn isordered(double3 x, double3 y);
11182long4 __ovld __cnfn isordered(double4 x, double4 y);
11183long8 __ovld __cnfn isordered(double8 x, double8 y);
11184long16 __ovld __cnfn isordered(double16 x, double16 y);
11185#endif //cl_khr_fp64
11186#ifdef cl_khr_fp16
11187int __ovld __cnfn isordered(half x, half y);
11188short2 __ovld __cnfn isordered(half2 x, half2 y);
11189short3 __ovld __cnfn isordered(half3 x, half3 y);
11190short4 __ovld __cnfn isordered(half4 x, half4 y);
11191short8 __ovld __cnfn isordered(half8 x, half8 y);
11192short16 __ovld __cnfn isordered(half16 x, half16 y);
11193#endif //cl_khr_fp16
11194
11195/**
11196 * Test if arguments are unordered. isunordered()
11197 * takes arguments x and y, returning non-zero if x or y
11198 * is NaN, and zero otherwise.
11199 */
11200int __ovld __cnfn isunordered(float xfloat y);
11201int2 __ovld __cnfn isunordered(float2 xfloat2 y);
11202int3 __ovld __cnfn isunordered(float3 xfloat3 y);
11203int4 __ovld __cnfn isunordered(float4 xfloat4 y);
11204int8 __ovld __cnfn isunordered(float8 xfloat8 y);
11205int16 __ovld __cnfn isunordered(float16 xfloat16 y);
11206#ifdef cl_khr_fp64
11207int __ovld __cnfn isunordered(double x, double y);
11208long2 __ovld __cnfn isunordered(double2 x, double2 y);
11209long3 __ovld __cnfn isunordered(double3 x, double3 y);
11210long4 __ovld __cnfn isunordered(double4 x, double4 y);
11211long8 __ovld __cnfn isunordered(double8 x, double8 y);
11212long16 __ovld __cnfn isunordered(double16 x, double16 y);
11213#endif //cl_khr_fp64
11214#ifdef cl_khr_fp16
11215int __ovld __cnfn isunordered(half x, half y);
11216short2 __ovld __cnfn isunordered(half2 x, half2 y);
11217short3 __ovld __cnfn isunordered(half3 x, half3 y);
11218short4 __ovld __cnfn isunordered(half4 x, half4 y);
11219short8 __ovld __cnfn isunordered(half8 x, half8 y);
11220short16 __ovld __cnfn isunordered(half16 x, half16 y);
11221#endif //cl_khr_fp16
11222
11223/**
11224 * Test for sign bit. The scalar version of the function
11225 * returns a 1 if the sign bit in the float is set else returns
11226 * 0. The vector version of the function returns the
11227 * following for each component in floatn: a -1 if the
11228 * sign bit in the float is set else returns 0.
11229 */
11230int __ovld __cnfn signbit(float);
11231int2 __ovld __cnfn signbit(float2);
11232int3 __ovld __cnfn signbit(float3);
11233int4 __ovld __cnfn signbit(float4);
11234int8 __ovld __cnfn signbit(float8);
11235int16 __ovld __cnfn signbit(float16);
11236#ifdef cl_khr_fp64
11237int __ovld __cnfn signbit(double);
11238long2 __ovld __cnfn signbit(double2);
11239long3 __ovld __cnfn signbit(double3);
11240long4 __ovld __cnfn signbit(double4);
11241long8 __ovld __cnfn signbit(double8);
11242long16 __ovld __cnfn signbit(double16);
11243#endif //cl_khr_fp64
11244#ifdef cl_khr_fp16
11245int __ovld __cnfn signbit(half);
11246short2 __ovld __cnfn signbit(half2);
11247short3 __ovld __cnfn signbit(half3);
11248short4 __ovld __cnfn signbit(half4);
11249short8 __ovld __cnfn signbit(half8);
11250short16 __ovld __cnfn signbit(half16);
11251#endif //cl_khr_fp16
11252
11253/**
11254 * Returns 1 if the most significant bit in any component
11255 * of x is set; otherwise returns 0.
11256 */
11257int __ovld __cnfn any(char x);
11258int __ovld __cnfn any(char2 x);
11259int __ovld __cnfn any(char3 x);
11260int __ovld __cnfn any(char4 x);
11261int __ovld __cnfn any(char8 x);
11262int __ovld __cnfn any(char16 x);
11263int __ovld __cnfn any(short x);
11264int __ovld __cnfn any(short2 x);
11265int __ovld __cnfn any(short3 x);
11266int __ovld __cnfn any(short4 x);
11267int __ovld __cnfn any(short8 x);
11268int __ovld __cnfn any(short16 x);
11269int __ovld __cnfn any(int x);
11270int __ovld __cnfn any(int2 x);
11271int __ovld __cnfn any(int3 x);
11272int __ovld __cnfn any(int4 x);
11273int __ovld __cnfn any(int8 x);
11274int __ovld __cnfn any(int16 x);
11275int __ovld __cnfn any(long x);
11276int __ovld __cnfn any(long2 x);
11277int __ovld __cnfn any(long3 x);
11278int __ovld __cnfn any(long4 x);
11279int __ovld __cnfn any(long8 x);
11280int __ovld __cnfn any(long16 x);
11281
11282/**
11283 * Returns 1 if the most significant bit in all components
11284 * of x is set; otherwise returns 0.
11285 */
11286int __ovld __cnfn all(char x);
11287int __ovld __cnfn all(char2 x);
11288int __ovld __cnfn all(char3 x);
11289int __ovld __cnfn all(char4 x);
11290int __ovld __cnfn all(char8 x);
11291int __ovld __cnfn all(char16 x);
11292int __ovld __cnfn all(short x);
11293int __ovld __cnfn all(short2 x);
11294int __ovld __cnfn all(short3 x);
11295int __ovld __cnfn all(short4 x);
11296int __ovld __cnfn all(short8 x);
11297int __ovld __cnfn all(short16 x);
11298int __ovld __cnfn all(int x);
11299int __ovld __cnfn all(int2 x);
11300int __ovld __cnfn all(int3 x);
11301int __ovld __cnfn all(int4 x);
11302int __ovld __cnfn all(int8 x);
11303int __ovld __cnfn all(int16 x);
11304int __ovld __cnfn all(long x);
11305int __ovld __cnfn all(long2 x);
11306int __ovld __cnfn all(long3 x);
11307int __ovld __cnfn all(long4 x);
11308int __ovld __cnfn all(long8 x);
11309int __ovld __cnfn all(long16 x);
11310
11311/**
11312 * Each bit of the result is the corresponding bit of a if
11313 * the corresponding bit of c is 0. Otherwise it is the
11314 * corresponding bit of b.
11315 */
11316char __ovld __cnfn bitselect(char achar bchar c);
11317uchar __ovld __cnfn bitselect(uchar auchar buchar c);
11318char2 __ovld __cnfn bitselect(char2 achar2 bchar2 c);
11319uchar2 __ovld __cnfn bitselect(uchar2 auchar2 buchar2 c);
11320char3 __ovld __cnfn bitselect(char3 achar3 bchar3 c);
11321uchar3 __ovld __cnfn bitselect(uchar3 auchar3 buchar3 c);
11322char4 __ovld __cnfn bitselect(char4 achar4 bchar4 c);
11323uchar4 __ovld __cnfn bitselect(uchar4 auchar4 buchar4 c);
11324char8 __ovld __cnfn bitselect(char8 achar8 bchar8 c);
11325uchar8 __ovld __cnfn bitselect(uchar8 auchar8 buchar8 c);
11326char16 __ovld __cnfn bitselect(char16 achar16 bchar16 c);
11327uchar16 __ovld __cnfn bitselect(uchar16 auchar16 buchar16 c);
11328short __ovld __cnfn bitselect(short ashort bshort c);
11329ushort __ovld __cnfn bitselect(ushort aushort bushort c);
11330short2 __ovld __cnfn bitselect(short2 ashort2 bshort2 c);
11331ushort2 __ovld __cnfn bitselect(ushort2 aushort2 bushort2 c);
11332short3 __ovld __cnfn bitselect(short3 ashort3 bshort3 c);
11333ushort3 __ovld __cnfn bitselect(ushort3 aushort3 bushort3 c);
11334short4 __ovld __cnfn bitselect(short4 ashort4 bshort4 c);
11335ushort4 __ovld __cnfn bitselect(ushort4 aushort4 bushort4 c);
11336short8 __ovld __cnfn bitselect(short8 ashort8 bshort8 c);
11337ushort8 __ovld __cnfn bitselect(ushort8 aushort8 bushort8 c);
11338short16 __ovld __cnfn bitselect(short16 ashort16 bshort16 c);
11339ushort16 __ovld __cnfn bitselect(ushort16 aushort16 bushort16 c);
11340int __ovld __cnfn bitselect(int aint bint c);
11341uint __ovld __cnfn bitselect(uint auint buint c);
11342int2 __ovld __cnfn bitselect(int2 aint2 bint2 c);
11343uint2 __ovld __cnfn bitselect(uint2 auint2 buint2 c);
11344int3 __ovld __cnfn bitselect(int3 aint3 bint3 c);
11345uint3 __ovld __cnfn bitselect(uint3 auint3 buint3 c);
11346int4 __ovld __cnfn bitselect(int4 aint4 bint4 c);
11347uint4 __ovld __cnfn bitselect(uint4 auint4 buint4 c);
11348int8 __ovld __cnfn bitselect(int8 aint8 bint8 c);
11349uint8 __ovld __cnfn bitselect(uint8 auint8 buint8 c);
11350int16 __ovld __cnfn bitselect(int16 aint16 bint16 c);
11351uint16 __ovld __cnfn bitselect(uint16 auint16 buint16 c);
11352long __ovld __cnfn bitselect(long along blong c);
11353ulong __ovld __cnfn bitselect(ulong aulong bulong c);
11354long2 __ovld __cnfn bitselect(long2 along2 blong2 c);
11355ulong2 __ovld __cnfn bitselect(ulong2 aulong2 bulong2 c);
11356long3 __ovld __cnfn bitselect(long3 along3 blong3 c);
11357ulong3 __ovld __cnfn bitselect(ulong3 aulong3 bulong3 c);
11358long4 __ovld __cnfn bitselect(long4 along4 blong4 c);
11359ulong4 __ovld __cnfn bitselect(ulong4 aulong4 bulong4 c);
11360long8 __ovld __cnfn bitselect(long8 along8 blong8 c);
11361ulong8 __ovld __cnfn bitselect(ulong8 aulong8 bulong8 c);
11362long16 __ovld __cnfn bitselect(long16 along16 blong16 c);
11363ulong16 __ovld __cnfn bitselect(ulong16 aulong16 bulong16 c);
11364float __ovld __cnfn bitselect(float afloat bfloat c);
11365float2 __ovld __cnfn bitselect(float2 afloat2 bfloat2 c);
11366float3 __ovld __cnfn bitselect(float3 afloat3 bfloat3 c);
11367float4 __ovld __cnfn bitselect(float4 afloat4 bfloat4 c);
11368float8 __ovld __cnfn bitselect(float8 afloat8 bfloat8 c);
11369float16 __ovld __cnfn bitselect(float16 afloat16 bfloat16 c);
11370#ifdef cl_khr_fp64
11371double __ovld __cnfn bitselect(double a, double b, double c);
11372double2 __ovld __cnfn bitselect(double2 a, double2 b, double2 c);
11373double3 __ovld __cnfn bitselect(double3 a, double3 b, double3 c);
11374double4 __ovld __cnfn bitselect(double4 a, double4 b, double4 c);
11375double8 __ovld __cnfn bitselect(double8 a, double8 b, double8 c);
11376double16 __ovld __cnfn bitselect(double16 a, double16 b, double16 c);
11377#endif //cl_khr_fp64
11378#ifdef cl_khr_fp16
11379half __ovld __cnfn bitselect(half a, half b, half c);
11380half2 __ovld __cnfn bitselect(half2 a, half2 b, half2 c);
11381half3 __ovld __cnfn bitselect(half3 a, half3 b, half3 c);
11382half4 __ovld __cnfn bitselect(half4 a, half4 b, half4 c);
11383half8 __ovld __cnfn bitselect(half8 a, half8 b, half8 c);
11384half16 __ovld __cnfn bitselect(half16 a, half16 b, half16 c);
11385#endif //cl_khr_fp16
11386
11387/**
11388 * For each component of a vector type,
11389 * result[i] = if MSB of c[i] is set ? b[i] : a[i].
11390 * For a scalar type, result = c ? b : a.
11391 * b and a must have the same type.
11392 * c must have the same number of elements and bits as a.
11393 */
11394char __ovld __cnfn select(char achar bchar c);
11395uchar __ovld __cnfn select(uchar auchar bchar c);
11396char2 __ovld __cnfn select(char2 achar2 bchar2 c);
11397uchar2 __ovld __cnfn select(uchar2 auchar2 bchar2 c);
11398char3 __ovld __cnfn select(char3 achar3 bchar3 c);
11399uchar3 __ovld __cnfn select(uchar3 auchar3 bchar3 c);
11400char4 __ovld __cnfn select(char4 achar4 bchar4 c);
11401uchar4 __ovld __cnfn select(uchar4 auchar4 bchar4 c);
11402char8 __ovld __cnfn select(char8 achar8 bchar8 c);
11403uchar8 __ovld __cnfn select(uchar8 auchar8 bchar8 c);
11404char16 __ovld __cnfn select(char16 achar16 bchar16 c);
11405uchar16 __ovld __cnfn select(uchar16 auchar16 bchar16 c);
11406
11407short __ovld __cnfn select(short ashort bshort c);
11408ushort __ovld __cnfn select(ushort aushort bshort c);
11409short2 __ovld __cnfn select(short2 ashort2 bshort2 c);
11410ushort2 __ovld __cnfn select(ushort2 aushort2 bshort2 c);
11411short3 __ovld __cnfn select(short3 ashort3 bshort3 c);
11412ushort3 __ovld __cnfn select(ushort3 aushort3 bshort3 c);
11413short4 __ovld __cnfn select(short4 ashort4 bshort4 c);
11414ushort4 __ovld __cnfn select(ushort4 aushort4 bshort4 c);
11415short8 __ovld __cnfn select(short8 ashort8 bshort8 c);
11416ushort8 __ovld __cnfn select(ushort8 aushort8 bshort8 c);
11417short16 __ovld __cnfn select(short16 ashort16 bshort16 c);
11418ushort16 __ovld __cnfn select(ushort16 aushort16 bshort16 c);
11419
11420int __ovld __cnfn select(int aint bint c);
11421uint __ovld __cnfn select(uint auint bint c);
11422int2 __ovld __cnfn select(int2 aint2 bint2 c);
11423uint2 __ovld __cnfn select(uint2 auint2 bint2 c);
11424int3 __ovld __cnfn select(int3 aint3 bint3 c);
11425uint3 __ovld __cnfn select(uint3 auint3 bint3 c);
11426int4 __ovld __cnfn select(int4 aint4 bint4 c);
11427uint4 __ovld __cnfn select(uint4 auint4 bint4 c);
11428int8 __ovld __cnfn select(int8 aint8 bint8 c);
11429uint8 __ovld __cnfn select(uint8 auint8 bint8 c);
11430int16 __ovld __cnfn select(int16 aint16 bint16 c);
11431uint16 __ovld __cnfn select(uint16 auint16 bint16 c);
11432float __ovld __cnfn select(float afloat bint c);
11433float2 __ovld __cnfn select(float2 afloat2 bint2 c);
11434float3 __ovld __cnfn select(float3 afloat3 bint3 c);
11435float4 __ovld __cnfn select(float4 afloat4 bint4 c);
11436float8 __ovld __cnfn select(float8 afloat8 bint8 c);
11437float16 __ovld __cnfn select(float16 afloat16 bint16 c);
11438
11439long __ovld __cnfn select(long along blong c);
11440ulong __ovld __cnfn select(ulong aulong blong c);
11441long2 __ovld __cnfn select(long2 along2 blong2 c);
11442ulong2 __ovld __cnfn select(ulong2 aulong2 blong2 c);
11443long3 __ovld __cnfn select(long3 along3 blong3 c);
11444ulong3 __ovld __cnfn select(ulong3 aulong3 blong3 c);
11445long4 __ovld __cnfn select(long4 along4 blong4 c);
11446ulong4 __ovld __cnfn select(ulong4 aulong4 blong4 c);
11447long8 __ovld __cnfn select(long8 along8 blong8 c);
11448ulong8 __ovld __cnfn select(ulong8 aulong8 blong8 c);
11449long16 __ovld __cnfn select(long16 along16 blong16 c);
11450ulong16 __ovld __cnfn select(ulong16 aulong16 blong16 c);
11451
11452char __ovld __cnfn select(char achar buchar c);
11453uchar __ovld __cnfn select(uchar auchar buchar c);
11454char2 __ovld __cnfn select(char2 achar2 buchar2 c);
11455uchar2 __ovld __cnfn select(uchar2 auchar2 buchar2 c);
11456char3 __ovld __cnfn select(char3 achar3 buchar3 c);
11457uchar3 __ovld __cnfn select(uchar3 auchar3 buchar3 c);
11458char4 __ovld __cnfn select(char4 achar4 buchar4 c);
11459uchar4 __ovld __cnfn select(uchar4 auchar4 buchar4 c);
11460char8 __ovld __cnfn select(char8 achar8 buchar8 c);
11461uchar8 __ovld __cnfn select(uchar8 auchar8 buchar8 c);
11462char16 __ovld __cnfn select(char16 achar16 buchar16 c);
11463uchar16 __ovld __cnfn select(uchar16 auchar16 buchar16 c);
11464
11465short __ovld __cnfn select(short ashort bushort c);
11466ushort __ovld __cnfn select(ushort aushort bushort c);
11467short2 __ovld __cnfn select(short2 ashort2 bushort2 c);
11468ushort2 __ovld __cnfn select(ushort2 aushort2 bushort2 c);
11469short3 __ovld __cnfn select(short3 ashort3 bushort3 c);
11470ushort3 __ovld __cnfn select(ushort3 aushort3 bushort3 c);
11471short4 __ovld __cnfn select(short4 ashort4 bushort4 c);
11472ushort4 __ovld __cnfn select(ushort4 aushort4 bushort4 c);
11473short8 __ovld __cnfn select(short8 ashort8 bushort8 c);
11474ushort8 __ovld __cnfn select(ushort8 aushort8 bushort8 c);
11475short16 __ovld __cnfn select(short16 ashort16 bushort16 c);
11476ushort16 __ovld __cnfn select(ushort16 aushort16 bushort16 c);
11477
11478int __ovld __cnfn select(int aint buint c);
11479uint __ovld __cnfn select(uint auint buint c);
11480int2 __ovld __cnfn select(int2 aint2 buint2 c);
11481uint2 __ovld __cnfn select(uint2 auint2 buint2 c);
11482int3 __ovld __cnfn select(int3 aint3 buint3 c);
11483uint3 __ovld __cnfn select(uint3 auint3 buint3 c);
11484int4 __ovld __cnfn select(int4 aint4 buint4 c);
11485uint4 __ovld __cnfn select(uint4 auint4 buint4 c);
11486int8 __ovld __cnfn select(int8 aint8 buint8 c);
11487uint8 __ovld __cnfn select(uint8 auint8 buint8 c);
11488int16 __ovld __cnfn select(int16 aint16 buint16 c);
11489uint16 __ovld __cnfn select(uint16 auint16 buint16 c);
11490float __ovld __cnfn select(float afloat buint c);
11491float2 __ovld __cnfn select(float2 afloat2 buint2 c);
11492float3 __ovld __cnfn select(float3 afloat3 buint3 c);
11493float4 __ovld __cnfn select(float4 afloat4 buint4 c);
11494float8 __ovld __cnfn select(float8 afloat8 buint8 c);
11495float16 __ovld __cnfn select(float16 afloat16 buint16 c);
11496
11497long __ovld __cnfn select(long along bulong c);
11498ulong __ovld __cnfn select(ulong aulong bulong c);
11499long2 __ovld __cnfn select(long2 along2 bulong2 c);
11500ulong2 __ovld __cnfn select(ulong2 aulong2 bulong2 c);
11501long3 __ovld __cnfn select(long3 along3 bulong3 c);
11502ulong3 __ovld __cnfn select(ulong3 aulong3 bulong3 c);
11503long4 __ovld __cnfn select(long4 along4 bulong4 c);
11504ulong4 __ovld __cnfn select(ulong4 aulong4 bulong4 c);
11505long8 __ovld __cnfn select(long8 along8 bulong8 c);
11506ulong8 __ovld __cnfn select(ulong8 aulong8 bulong8 c);
11507long16 __ovld __cnfn select(long16 along16 bulong16 c);
11508ulong16 __ovld __cnfn select(ulong16 aulong16 bulong16 c);
11509
11510#ifdef cl_khr_fp64
11511double __ovld __cnfn select(double a, double b, long c);
11512double2 __ovld __cnfn select(double2 a, double2 b, long2 c);
11513double3 __ovld __cnfn select(double3 a, double3 b, long3 c);
11514double4 __ovld __cnfn select(double4 a, double4 b, long4 c);
11515double8 __ovld __cnfn select(double8 a, double8 b, long8 c);
11516double16 __ovld __cnfn select(double16 a, double16 b, long16 c);
11517double __ovld __cnfn select(double a, double b, ulong c);
11518double2 __ovld __cnfn select(double2 a, double2 b, ulong2 c);
11519double3 __ovld __cnfn select(double3 a, double3 b, ulong3 c);
11520double4 __ovld __cnfn select(double4 a, double4 b, ulong4 c);
11521double8 __ovld __cnfn select(double8 a, double8 b, ulong8 c);
11522double16 __ovld __cnfn select(double16 a, double16 b, ulong16 c);
11523#endif //cl_khr_fp64
11524#ifdef cl_khr_fp16
11525half __ovld __cnfn select(half a, half b, short c);
11526half2 __ovld __cnfn select(half2 a, half2 b, short2 c);
11527half3 __ovld __cnfn select(half3 a, half3 b, short3 c);
11528half4 __ovld __cnfn select(half4 a, half4 b, short4 c);
11529half8 __ovld __cnfn select(half8 a, half8 b, short8 c);
11530half16 __ovld __cnfn select(half16 a, half16 b, short16 c);
11531half __ovld __cnfn select(half a, half b, ushort c);
11532half2 __ovld __cnfn select(half2 a, half2 b, ushort2 c);
11533half3 __ovld __cnfn select(half3 a, half3 b, ushort3 c);
11534half4 __ovld __cnfn select(half4 a, half4 b, ushort4 c);
11535half8 __ovld __cnfn select(half8 a, half8 b, ushort8 c);
11536half16 __ovld __cnfn select(half16 a, half16 b, ushort16 c);
11537#endif //cl_khr_fp16
11538
11539// OpenCL v1.1 s6.11.7, v1.2 s6.12.7, v2.0 s6.13.7 - Vector Data Load and Store Functions
11540// 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
11541/**
11542 * Use generic type gentype to indicate the built-in data types
11543 * char, uchar, short, ushort, int, uint, long, ulong, float,
11544 * double or half.
11545 *
11546 * vloadn return sizeof (gentypen) bytes of data read from address (p + (offset * n)).
11547 *
11548 * vstoren write sizeof (gentypen) bytes given by data to address (p + (offset * n)).
11549 *
11550 * The address computed as (p + (offset * n)) must be
11551 * 8-bit aligned if gentype is char, uchar;
11552 * 16-bit aligned if gentype is short, ushort, half;
11553 * 32-bit aligned if gentype is int, uint, float;
11554 * 64-bit aligned if gentype is long, ulong, double.
11555 */
11556
11557char2 __ovld vload2(size_t offsetconst __constant char *p);
11558uchar2 __ovld vload2(size_t offsetconst __constant uchar *p);
11559short2 __ovld vload2(size_t offsetconst __constant short *p);
11560ushort2 __ovld vload2(size_t offsetconst __constant ushort *p);
11561int2 __ovld vload2(size_t offsetconst __constant int *p);
11562uint2 __ovld vload2(size_t offsetconst __constant uint *p);
11563long2 __ovld vload2(size_t offsetconst __constant long *p);
11564ulong2 __ovld vload2(size_t offsetconst __constant ulong *p);
11565float2 __ovld vload2(size_t offsetconst __constant float *p);
11566char3 __ovld vload3(size_t offsetconst __constant char *p);
11567uchar3 __ovld vload3(size_t offsetconst __constant uchar *p);
11568short3 __ovld vload3(size_t offsetconst __constant short *p);
11569ushort3 __ovld vload3(size_t offsetconst __constant ushort *p);
11570int3 __ovld vload3(size_t offsetconst __constant int *p);
11571uint3 __ovld vload3(size_t offsetconst __constant uint *p);
11572long3 __ovld vload3(size_t offsetconst __constant long *p);
11573ulong3 __ovld vload3(size_t offsetconst __constant ulong *p);
11574float3 __ovld vload3(size_t offsetconst __constant float *p);
11575char4 __ovld vload4(size_t offsetconst __constant char *p);
11576uchar4 __ovld vload4(size_t offsetconst __constant uchar *p);
11577short4 __ovld vload4(size_t offsetconst __constant short *p);
11578ushort4 __ovld vload4(size_t offsetconst __constant ushort *p);
11579int4 __ovld vload4(size_t offsetconst __constant int *p);
11580uint4 __ovld vload4(size_t offsetconst __constant uint *p);
11581long4 __ovld vload4(size_t offsetconst __constant long *p);
11582ulong4 __ovld vload4(size_t offsetconst __constant ulong *p);
11583float4 __ovld vload4(size_t offsetconst __constant float *p);
11584char8 __ovld vload8(size_t offsetconst __constant char *p);
11585uchar8 __ovld vload8(size_t offsetconst __constant uchar *p);
11586short8 __ovld vload8(size_t offsetconst __constant short *p);
11587ushort8 __ovld vload8(size_t offsetconst __constant ushort *p);
11588int8 __ovld vload8(size_t offsetconst __constant int *p);
11589uint8 __ovld vload8(size_t offsetconst __constant uint *p);
11590long8 __ovld vload8(size_t offsetconst __constant long *p);
11591ulong8 __ovld vload8(size_t offsetconst __constant ulong *p);
11592float8 __ovld vload8(size_t offsetconst __constant float *p);
11593char16 __ovld vload16(size_t offsetconst __constant char *p);
11594uchar16 __ovld vload16(size_t offsetconst __constant uchar *p);
11595short16 __ovld vload16(size_t offsetconst __constant short *p);
11596ushort16 __ovld vload16(size_t offsetconst __constant ushort *p);
11597int16 __ovld vload16(size_t offsetconst __constant int *p);
11598uint16 __ovld vload16(size_t offsetconst __constant uint *p);
11599long16 __ovld vload16(size_t offsetconst __constant long *p);
11600ulong16 __ovld vload16(size_t offsetconst __constant ulong *p);
11601float16 __ovld vload16(size_t offsetconst __constant float *p);
11602#ifdef cl_khr_fp64
11603double2 __ovld vload2(size_t offset, const __constant double *p);
11604double3 __ovld vload3(size_t offset, const __constant double *p);
11605double4 __ovld vload4(size_t offset, const __constant double *p);
11606double8 __ovld vload8(size_t offset, const __constant double *p);
11607double16 __ovld vload16(size_t offset, const __constant double *p);
11608#endif //cl_khr_fp64
11609
11610#ifdef cl_khr_fp16
11611half __ovld vload(size_t offset, const __constant half *p);
11612half2 __ovld vload2(size_t offset, const __constant half *p);
11613half3 __ovld vload3(size_t offset, const __constant half *p);
11614half4 __ovld vload4(size_t offset, const __constant half *p);
11615half8 __ovld vload8(size_t offset, const __constant half *p);
11616half16 __ovld vload16(size_t offset, const __constant half *p);
11617#endif //cl_khr_fp16
11618
11619#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
11620char2 __ovld vload2(size_t offsetconst char *p);
11621uchar2 __ovld vload2(size_t offsetconst uchar *p);
11622short2 __ovld vload2(size_t offsetconst short *p);
11623ushort2 __ovld vload2(size_t offsetconst ushort *p);
11624int2 __ovld vload2(size_t offsetconst int *p);
11625uint2 __ovld vload2(size_t offsetconst uint *p);
11626long2 __ovld vload2(size_t offsetconst long *p);
11627ulong2 __ovld vload2(size_t offsetconst ulong *p);
11628float2 __ovld vload2(size_t offsetconst float *p);
11629char3 __ovld vload3(size_t offsetconst char *p);
11630uchar3 __ovld vload3(size_t offsetconst uchar *p);
11631short3 __ovld vload3(size_t offsetconst short *p);
11632ushort3 __ovld vload3(size_t offsetconst ushort *p);
11633int3 __ovld vload3(size_t offsetconst int *p);
11634uint3 __ovld vload3(size_t offsetconst uint *p);
11635long3 __ovld vload3(size_t offsetconst long *p);
11636ulong3 __ovld vload3(size_t offsetconst ulong *p);
11637float3 __ovld vload3(size_t offsetconst float *p);
11638char4 __ovld vload4(size_t offsetconst char *p);
11639uchar4 __ovld vload4(size_t offsetconst uchar *p);
11640short4 __ovld vload4(size_t offsetconst short *p);
11641ushort4 __ovld vload4(size_t offsetconst ushort *p);
11642int4 __ovld vload4(size_t offsetconst int *p);
11643uint4 __ovld vload4(size_t offsetconst uint *p);
11644long4 __ovld vload4(size_t offsetconst long *p);
11645ulong4 __ovld vload4(size_t offsetconst ulong *p);
11646float4 __ovld vload4(size_t offsetconst float *p);
11647char8 __ovld vload8(size_t offsetconst char *p);
11648uchar8 __ovld vload8(size_t offsetconst uchar *p);
11649short8 __ovld vload8(size_t offsetconst short *p);
11650ushort8 __ovld vload8(size_t offsetconst ushort *p);
11651int8 __ovld vload8(size_t offsetconst int *p);
11652uint8 __ovld vload8(size_t offsetconst uint *p);
11653long8 __ovld vload8(size_t offsetconst long *p);
11654ulong8 __ovld vload8(size_t offsetconst ulong *p);
11655float8 __ovld vload8(size_t offsetconst float *p);
11656char16 __ovld vload16(size_t offsetconst char *p);
11657uchar16 __ovld vload16(size_t offsetconst uchar *p);
11658short16 __ovld vload16(size_t offsetconst short *p);
11659ushort16 __ovld vload16(size_t offsetconst ushort *p);
11660int16 __ovld vload16(size_t offsetconst int *p);
11661uint16 __ovld vload16(size_t offsetconst uint *p);
11662long16 __ovld vload16(size_t offsetconst long *p);
11663ulong16 __ovld vload16(size_t offsetconst ulong *p);
11664float16 __ovld vload16(size_t offsetconst float *p);
11665
11666#ifdef cl_khr_fp64
11667double2 __ovld vload2(size_t offset, const double *p);
11668double3 __ovld vload3(size_t offset, const double *p);
11669double4 __ovld vload4(size_t offset, const double *p);
11670double8 __ovld vload8(size_t offset, const double *p);
11671double16 __ovld vload16(size_t offset, const double *p);
11672#endif //cl_khr_fp64
11673
11674#ifdef cl_khr_fp16
11675half __ovld vload(size_t offset, const half *p);
11676half2 __ovld vload2(size_t offset, const half *p);
11677half3 __ovld vload3(size_t offset, const half *p);
11678half4 __ovld vload4(size_t offset, const half *p);
11679half8 __ovld vload8(size_t offset, const half *p);
11680half16 __ovld vload16(size_t offset, const half *p);
11681#endif //cl_khr_fp16
11682#else
11683char2 __ovld vload2(size_t offset, const __global char *p);
11684uchar2 __ovld vload2(size_t offset, const __global uchar *p);
11685short2 __ovld vload2(size_t offset, const __global short *p);
11686ushort2 __ovld vload2(size_t offset, const __global ushort *p);
11687int2 __ovld vload2(size_t offset, const __global int *p);
11688uint2 __ovld vload2(size_t offset, const __global uint *p);
11689long2 __ovld vload2(size_t offset, const __global long *p);
11690ulong2 __ovld vload2(size_t offset, const __global ulong *p);
11691float2 __ovld vload2(size_t offset, const __global float *p);
11692char3 __ovld vload3(size_t offset, const __global char *p);
11693uchar3 __ovld vload3(size_t offset, const __global uchar *p);
11694short3 __ovld vload3(size_t offset, const __global short *p);
11695ushort3 __ovld vload3(size_t offset, const __global ushort *p);
11696int3 __ovld vload3(size_t offset, const __global int *p);
11697uint3 __ovld vload3(size_t offset, const __global uint *p);
11698long3 __ovld vload3(size_t offset, const __global long *p);
11699ulong3 __ovld vload3(size_t offset, const __global ulong *p);
11700float3 __ovld vload3(size_t offset, const __global float *p);
11701char4 __ovld vload4(size_t offset, const __global char *p);
11702uchar4 __ovld vload4(size_t offset, const __global uchar *p);
11703short4 __ovld vload4(size_t offset, const __global short *p);
11704ushort4 __ovld vload4(size_t offset, const __global ushort *p);
11705int4 __ovld vload4(size_t offset, const __global int *p);
11706uint4 __ovld vload4(size_t offset, const __global uint *p);
11707long4 __ovld vload4(size_t offset, const __global long *p);
11708ulong4 __ovld vload4(size_t offset, const __global ulong *p);
11709float4 __ovld vload4(size_t offset, const __global float *p);
11710char8 __ovld vload8(size_t offset, const __global char *p);
11711uchar8 __ovld vload8(size_t offset, const __global uchar *p);
11712short8 __ovld vload8(size_t offset, const __global short *p);
11713ushort8 __ovld vload8(size_t offset, const __global ushort *p);
11714int8 __ovld vload8(size_t offset, const __global int *p);
11715uint8 __ovld vload8(size_t offset, const __global uint *p);
11716long8 __ovld vload8(size_t offset, const __global long *p);
11717ulong8 __ovld vload8(size_t offset, const __global ulong *p);
11718float8 __ovld vload8(size_t offset, const __global float *p);
11719char16 __ovld vload16(size_t offset, const __global char *p);
11720uchar16 __ovld vload16(size_t offset, const __global uchar *p);
11721short16 __ovld vload16(size_t offset, const __global short *p);
11722ushort16 __ovld vload16(size_t offset, const __global ushort *p);
11723int16 __ovld vload16(size_t offset, const __global int *p);
11724uint16 __ovld vload16(size_t offset, const __global uint *p);
11725long16 __ovld vload16(size_t offset, const __global long *p);
11726ulong16 __ovld vload16(size_t offset, const __global ulong *p);
11727float16 __ovld vload16(size_t offset, const __global float *p);
11728char2 __ovld vload2(size_t offset, const __local char *p);
11729uchar2 __ovld vload2(size_t offset, const __local uchar *p);
11730short2 __ovld vload2(size_t offset, const __local short *p);
11731ushort2 __ovld vload2(size_t offset, const __local ushort *p);
11732int2 __ovld vload2(size_t offset, const __local int *p);
11733uint2 __ovld vload2(size_t offset, const __local uint *p);
11734long2 __ovld vload2(size_t offset, const __local long *p);
11735ulong2 __ovld vload2(size_t offset, const __local ulong *p);
11736float2 __ovld vload2(size_t offset, const __local float *p);
11737char3 __ovld vload3(size_t offset, const __local char *p);
11738uchar3 __ovld vload3(size_t offset, const __local uchar *p);
11739short3 __ovld vload3(size_t offset, const __local short *p);
11740ushort3 __ovld vload3(size_t offset, const __local ushort *p);
11741int3 __ovld vload3(size_t offset, const __local int *p);
11742uint3 __ovld vload3(size_t offset, const __local uint *p);
11743long3 __ovld vload3(size_t offset, const __local long *p);
11744ulong3 __ovld vload3(size_t offset, const __local ulong *p);
11745float3 __ovld vload3(size_t offset, const __local float *p);
11746char4 __ovld vload4(size_t offset, const __local char *p);
11747uchar4 __ovld vload4(size_t offset, const __local uchar *p);
11748short4 __ovld vload4(size_t offset, const __local short *p);
11749ushort4 __ovld vload4(size_t offset, const __local ushort *p);
11750int4 __ovld vload4(size_t offset, const __local int *p);
11751uint4 __ovld vload4(size_t offset, const __local uint *p);
11752long4 __ovld vload4(size_t offset, const __local long *p);
11753ulong4 __ovld vload4(size_t offset, const __local ulong *p);
11754float4 __ovld vload4(size_t offset, const __local float *p);
11755char8 __ovld vload8(size_t offset, const __local char *p);
11756uchar8 __ovld vload8(size_t offset, const __local uchar *p);
11757short8 __ovld vload8(size_t offset, const __local short *p);
11758ushort8 __ovld vload8(size_t offset, const __local ushort *p);
11759int8 __ovld vload8(size_t offset, const __local int *p);
11760uint8 __ovld vload8(size_t offset, const __local uint *p);
11761long8 __ovld vload8(size_t offset, const __local long *p);
11762ulong8 __ovld vload8(size_t offset, const __local ulong *p);
11763float8 __ovld vload8(size_t offset, const __local float *p);
11764char16 __ovld vload16(size_t offset, const __local char *p);
11765uchar16 __ovld vload16(size_t offset, const __local uchar *p);
11766short16 __ovld vload16(size_t offset, const __local short *p);
11767ushort16 __ovld vload16(size_t offset, const __local ushort *p);
11768int16 __ovld vload16(size_t offset, const __local int *p);
11769uint16 __ovld vload16(size_t offset, const __local uint *p);
11770long16 __ovld vload16(size_t offset, const __local long *p);
11771ulong16 __ovld vload16(size_t offset, const __local ulong *p);
11772float16 __ovld vload16(size_t offset, const __local float *p);
11773char2 __ovld vload2(size_t offset, const __private char *p);
11774uchar2 __ovld vload2(size_t offset, const __private uchar *p);
11775short2 __ovld vload2(size_t offset, const __private short *p);
11776ushort2 __ovld vload2(size_t offset, const __private ushort *p);
11777int2 __ovld vload2(size_t offset, const __private int *p);
11778uint2 __ovld vload2(size_t offset, const __private uint *p);
11779long2 __ovld vload2(size_t offset, const __private long *p);
11780ulong2 __ovld vload2(size_t offset, const __private ulong *p);
11781float2 __ovld vload2(size_t offset, const __private float *p);
11782char3 __ovld vload3(size_t offset, const __private char *p);
11783uchar3 __ovld vload3(size_t offset, const __private uchar *p);
11784short3 __ovld vload3(size_t offset, const __private short *p);
11785ushort3 __ovld vload3(size_t offset, const __private ushort *p);
11786int3 __ovld vload3(size_t offset, const __private int *p);
11787uint3 __ovld vload3(size_t offset, const __private uint *p);
11788long3 __ovld vload3(size_t offset, const __private long *p);
11789ulong3 __ovld vload3(size_t offset, const __private ulong *p);
11790float3 __ovld vload3(size_t offset, const __private float *p);
11791char4 __ovld vload4(size_t offset, const __private char *p);
11792uchar4 __ovld vload4(size_t offset, const __private uchar *p);
11793short4 __ovld vload4(size_t offset, const __private short *p);
11794ushort4 __ovld vload4(size_t offset, const __private ushort *p);
11795int4 __ovld vload4(size_t offset, const __private int *p);
11796uint4 __ovld vload4(size_t offset, const __private uint *p);
11797long4 __ovld vload4(size_t offset, const __private long *p);
11798ulong4 __ovld vload4(size_t offset, const __private ulong *p);
11799float4 __ovld vload4(size_t offset, const __private float *p);
11800char8 __ovld vload8(size_t offset, const __private char *p);
11801uchar8 __ovld vload8(size_t offset, const __private uchar *p);
11802short8 __ovld vload8(size_t offset, const __private short *p);
11803ushort8 __ovld vload8(size_t offset, const __private ushort *p);
11804int8 __ovld vload8(size_t offset, const __private int *p);
11805uint8 __ovld vload8(size_t offset, const __private uint *p);
11806long8 __ovld vload8(size_t offset, const __private long *p);
11807ulong8 __ovld vload8(size_t offset, const __private ulong *p);
11808float8 __ovld vload8(size_t offset, const __private float *p);
11809char16 __ovld vload16(size_t offset, const __private char *p);
11810uchar16 __ovld vload16(size_t offset, const __private uchar *p);
11811short16 __ovld vload16(size_t offset, const __private short *p);
11812ushort16 __ovld vload16(size_t offset, const __private ushort *p);
11813int16 __ovld vload16(size_t offset, const __private int *p);
11814uint16 __ovld vload16(size_t offset, const __private uint *p);
11815long16 __ovld vload16(size_t offset, const __private long *p);
11816ulong16 __ovld vload16(size_t offset, const __private ulong *p);
11817float16 __ovld vload16(size_t offset, const __private float *p);
11818
11819#ifdef cl_khr_fp64
11820double2 __ovld vload2(size_t offset, const __global double *p);
11821double3 __ovld vload3(size_t offset, const __global double *p);
11822double4 __ovld vload4(size_t offset, const __global double *p);
11823double8 __ovld vload8(size_t offset, const __global double *p);
11824double16 __ovld vload16(size_t offset, const __global double *p);
11825double2 __ovld vload2(size_t offset, const __local double *p);
11826double3 __ovld vload3(size_t offset, const __local double *p);
11827double4 __ovld vload4(size_t offset, const __local double *p);
11828double8 __ovld vload8(size_t offset, const __local double *p);
11829double16 __ovld vload16(size_t offset, const __local double *p);
11830double2 __ovld vload2(size_t offset, const __private double *p);
11831double3 __ovld vload3(size_t offset, const __private double *p);
11832double4 __ovld vload4(size_t offset, const __private double *p);
11833double8 __ovld vload8(size_t offset, const __private double *p);
11834double16 __ovld vload16(size_t offset, const __private double *p);
11835#endif //cl_khr_fp64
11836
11837#ifdef cl_khr_fp16
11838half __ovld vload(size_t offset, const __global half *p);
11839half2 __ovld vload2(size_t offset, const __global half *p);
11840half3 __ovld vload3(size_t offset, const __global half *p);
11841half4 __ovld vload4(size_t offset, const __global half *p);
11842half8 __ovld vload8(size_t offset, const __global half *p);
11843half16 __ovld vload16(size_t offset, const __global half *p);
11844half __ovld vload(size_t offset, const __local half *p);
11845half2 __ovld vload2(size_t offset, const __local half *p);
11846half3 __ovld vload3(size_t offset, const __local half *p);
11847half4 __ovld vload4(size_t offset, const __local half *p);
11848half8 __ovld vload8(size_t offset, const __local half *p);
11849half16 __ovld vload16(size_t offset, const __local half *p);
11850half __ovld vload(size_t offset, const __private half *p);
11851half2 __ovld vload2(size_t offset, const __private half *p);
11852half3 __ovld vload3(size_t offset, const __private half *p);
11853half4 __ovld vload4(size_t offset, const __private half *p);
11854half8 __ovld vload8(size_t offset, const __private half *p);
11855half16 __ovld vload16(size_t offset, const __private half *p);
11856#endif //cl_khr_fp16
11857#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
11858
11859#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
11860void __ovld vstore2(char2 datasize_t offsetchar *p);
11861void __ovld vstore2(uchar2 datasize_t offsetuchar *p);
11862void __ovld vstore2(short2 datasize_t offsetshort *p);
11863void __ovld vstore2(ushort2 datasize_t offsetushort *p);
11864void __ovld vstore2(int2 datasize_t offsetint *p);
11865void __ovld vstore2(uint2 datasize_t offsetuint *p);
11866void __ovld vstore2(long2 datasize_t offsetlong *p);
11867void __ovld vstore2(ulong2 datasize_t offsetulong *p);
11868void __ovld vstore2(float2 datasize_t offsetfloat *p);
11869void __ovld vstore3(char3 datasize_t offsetchar *p);
11870void __ovld vstore3(uchar3 datasize_t offsetuchar *p);
11871void __ovld vstore3(short3 datasize_t offsetshort *p);
11872void __ovld vstore3(ushort3 datasize_t offsetushort *p);
11873void __ovld vstore3(int3 datasize_t offsetint *p);
11874void __ovld vstore3(uint3 datasize_t offsetuint *p);
11875void __ovld vstore3(long3 datasize_t offsetlong *p);
11876void __ovld vstore3(ulong3 datasize_t offsetulong *p);
11877void __ovld vstore3(float3 datasize_t offsetfloat *p);
11878void __ovld vstore4(char4 datasize_t offsetchar *p);
11879void __ovld vstore4(uchar4 datasize_t offsetuchar *p);
11880void __ovld vstore4(short4 datasize_t offsetshort *p);
11881void __ovld vstore4(ushort4 datasize_t offsetushort *p);
11882void __ovld vstore4(int4 datasize_t offsetint *p);
11883void __ovld vstore4(uint4 datasize_t offsetuint *p);
11884void __ovld vstore4(long4 datasize_t offsetlong *p);
11885void __ovld vstore4(ulong4 datasize_t offsetulong *p);
11886void __ovld vstore4(float4 datasize_t offsetfloat *p);
11887void __ovld vstore8(char8 datasize_t offsetchar *p);
11888void __ovld vstore8(uchar8 datasize_t offsetuchar *p);
11889void __ovld vstore8(short8 datasize_t offsetshort *p);
11890void __ovld vstore8(ushort8 datasize_t offsetushort *p);
11891void __ovld vstore8(int8 datasize_t offsetint *p);
11892void __ovld vstore8(uint8 datasize_t offsetuint *p);
11893void __ovld vstore8(long8 datasize_t offsetlong *p);
11894void __ovld vstore8(ulong8 datasize_t offsetulong *p);
11895void __ovld vstore8(float8 datasize_t offsetfloat *p);
11896void __ovld vstore16(char16 datasize_t offsetchar *p);
11897void __ovld vstore16(uchar16 datasize_t offsetuchar *p);
11898void __ovld vstore16(short16 datasize_t offsetshort *p);
11899void __ovld vstore16(ushort16 datasize_t offsetushort *p);
11900void __ovld vstore16(int16 datasize_t offsetint *p);
11901void __ovld vstore16(uint16 datasize_t offsetuint *p);
11902void __ovld vstore16(long16 datasize_t offsetlong *p);
11903void __ovld vstore16(ulong16 datasize_t offsetulong *p);
11904void __ovld vstore16(float16 datasize_t offsetfloat *p);
11905#ifdef cl_khr_fp64
11906void __ovld vstore2(double2 data, size_t offset, double *p);
11907void __ovld vstore3(double3 data, size_t offset, double *p);
11908void __ovld vstore4(double4 data, size_t offset, double *p);
11909void __ovld vstore8(double8 data, size_t offset, double *p);
11910void __ovld vstore16(double16 data, size_t offset, double *p);
11911#endif //cl_khr_fp64
11912#ifdef cl_khr_fp16
11913void __ovld vstore(half data, size_t offset, half *p);
11914void __ovld vstore2(half2 data, size_t offset, half *p);
11915void __ovld vstore3(half3 data, size_t offset, half *p);
11916void __ovld vstore4(half4 data, size_t offset, half *p);
11917void __ovld vstore8(half8 data, size_t offset, half *p);
11918void __ovld vstore16(half16 data, size_t offset, half *p);
11919#endif //cl_khr_fp16
11920#else
11921void __ovld vstore2(char2 data, size_t offset, __global char *p);
11922void __ovld vstore2(uchar2 data, size_t offset, __global uchar *p);
11923void __ovld vstore2(short2 data, size_t offset, __global short *p);
11924void __ovld vstore2(ushort2 data, size_t offset, __global ushort *p);
11925void __ovld vstore2(int2 data, size_t offset, __global int *p);
11926void __ovld vstore2(uint2 data, size_t offset, __global uint *p);
11927void __ovld vstore2(long2 data, size_t offset, __global long *p);
11928void __ovld vstore2(ulong2 data, size_t offset, __global ulong *p);
11929void __ovld vstore2(float2 data, size_t offset, __global float *p);
11930void __ovld vstore3(char3 data, size_t offset, __global char *p);
11931void __ovld vstore3(uchar3 data, size_t offset, __global uchar *p);
11932void __ovld vstore3(short3 data, size_t offset, __global short *p);
11933void __ovld vstore3(ushort3 data, size_t offset, __global ushort *p);
11934void __ovld vstore3(int3 data, size_t offset, __global int *p);
11935void __ovld vstore3(uint3 data, size_t offset, __global uint *p);
11936void __ovld vstore3(long3 data, size_t offset, __global long *p);
11937void __ovld vstore3(ulong3 data, size_t offset, __global ulong *p);
11938void __ovld vstore3(float3 data, size_t offset, __global float *p);
11939void __ovld vstore4(char4 data, size_t offset, __global char *p);
11940void __ovld vstore4(uchar4 data, size_t offset, __global uchar *p);
11941void __ovld vstore4(short4 data, size_t offset, __global short *p);
11942void __ovld vstore4(ushort4 data, size_t offset, __global ushort *p);
11943void __ovld vstore4(int4 data, size_t offset, __global int *p);
11944void __ovld vstore4(uint4 data, size_t offset, __global uint *p);
11945void __ovld vstore4(long4 data, size_t offset, __global long *p);
11946void __ovld vstore4(ulong4 data, size_t offset, __global ulong *p);
11947void __ovld vstore4(float4 data, size_t offset, __global float *p);
11948void __ovld vstore8(char8 data, size_t offset, __global char *p);
11949void __ovld vstore8(uchar8 data, size_t offset, __global uchar *p);
11950void __ovld vstore8(short8 data, size_t offset, __global short *p);
11951void __ovld vstore8(ushort8 data, size_t offset, __global ushort *p);
11952void __ovld vstore8(int8 data, size_t offset, __global int *p);
11953void __ovld vstore8(uint8 data, size_t offset, __global uint *p);
11954void __ovld vstore8(long8 data, size_t offset, __global long *p);
11955void __ovld vstore8(ulong8 data, size_t offset, __global ulong *p);
11956void __ovld vstore8(float8 data, size_t offset, __global float *p);
11957void __ovld vstore16(char16 data, size_t offset, __global char *p);
11958void __ovld vstore16(uchar16 data, size_t offset, __global uchar *p);
11959void __ovld vstore16(short16 data, size_t offset, __global short *p);
11960void __ovld vstore16(ushort16 data, size_t offset, __global ushort *p);
11961void __ovld vstore16(int16 data, size_t offset, __global int *p);
11962void __ovld vstore16(uint16 data, size_t offset, __global uint *p);
11963void __ovld vstore16(long16 data, size_t offset, __global long *p);
11964void __ovld vstore16(ulong16 data, size_t offset, __global ulong *p);
11965void __ovld vstore16(float16 data, size_t offset, __global float *p);
11966void __ovld vstore2(char2 data, size_t offset, __local char *p);
11967void __ovld vstore2(uchar2 data, size_t offset, __local uchar *p);
11968void __ovld vstore2(short2 data, size_t offset, __local short *p);
11969void __ovld vstore2(ushort2 data, size_t offset, __local ushort *p);
11970void __ovld vstore2(int2 data, size_t offset, __local int *p);
11971void __ovld vstore2(uint2 data, size_t offset, __local uint *p);
11972void __ovld vstore2(long2 data, size_t offset, __local long *p);
11973void __ovld vstore2(ulong2 data, size_t offset, __local ulong *p);
11974void __ovld vstore2(float2 data, size_t offset, __local float *p);
11975void __ovld vstore3(char3 data, size_t offset, __local char *p);
11976void __ovld vstore3(uchar3 data, size_t offset, __local uchar *p);
11977void __ovld vstore3(short3 data, size_t offset, __local short *p);
11978void __ovld vstore3(ushort3 data, size_t offset, __local ushort *p);
11979void __ovld vstore3(int3 data, size_t offset, __local int *p);
11980void __ovld vstore3(uint3 data, size_t offset, __local uint *p);
11981void __ovld vstore3(long3 data, size_t offset, __local long *p);
11982void __ovld vstore3(ulong3 data, size_t offset, __local ulong *p);
11983void __ovld vstore3(float3 data, size_t offset, __local float *p);
11984void __ovld vstore4(char4 data, size_t offset, __local char *p);
11985void __ovld vstore4(uchar4 data, size_t offset, __local uchar *p);
11986void __ovld vstore4(short4 data, size_t offset, __local short *p);
11987void __ovld vstore4(ushort4 data, size_t offset, __local ushort *p);
11988void __ovld vstore4(int4 data, size_t offset, __local int *p);
11989void __ovld vstore4(uint4 data, size_t offset, __local uint *p);
11990void __ovld vstore4(long4 data, size_t offset, __local long *p);
11991void __ovld vstore4(ulong4 data, size_t offset, __local ulong *p);
11992void __ovld vstore4(float4 data, size_t offset, __local float *p);
11993void __ovld vstore8(char8 data, size_t offset, __local char *p);
11994void __ovld vstore8(uchar8 data, size_t offset, __local uchar *p);
11995void __ovld vstore8(short8 data, size_t offset, __local short *p);
11996void __ovld vstore8(ushort8 data, size_t offset, __local ushort *p);
11997void __ovld vstore8(int8 data, size_t offset, __local int *p);
11998void __ovld vstore8(uint8 data, size_t offset, __local uint *p);
11999void __ovld vstore8(long8 data, size_t offset, __local long *p);
12000void __ovld vstore8(ulong8 data, size_t offset, __local ulong *p);
12001void __ovld vstore8(float8 data, size_t offset, __local float *p);
12002void __ovld vstore16(char16 data, size_t offset, __local char *p);
12003void __ovld vstore16(uchar16 data, size_t offset, __local uchar *p);
12004void __ovld vstore16(short16 data, size_t offset, __local short *p);
12005void __ovld vstore16(ushort16 data, size_t offset, __local ushort *p);
12006void __ovld vstore16(int16 data, size_t offset, __local int *p);
12007void __ovld vstore16(uint16 data, size_t offset, __local uint *p);
12008void __ovld vstore16(long16 data, size_t offset, __local long *p);
12009void __ovld vstore16(ulong16 data, size_t offset, __local ulong *p);
12010void __ovld vstore16(float16 data, size_t offset, __local float *p);
12011void __ovld vstore2(char2 data, size_t offset, __private char *p);
12012void __ovld vstore2(uchar2 data, size_t offset, __private uchar *p);
12013void __ovld vstore2(short2 data, size_t offset, __private short *p);
12014void __ovld vstore2(ushort2 data, size_t offset, __private ushort *p);
12015void __ovld vstore2(int2 data, size_t offset, __private int *p);
12016void __ovld vstore2(uint2 data, size_t offset, __private uint *p);
12017void __ovld vstore2(long2 data, size_t offset, __private long *p);
12018void __ovld vstore2(ulong2 data, size_t offset, __private ulong *p);
12019void __ovld vstore2(float2 data, size_t offset, __private float *p);
12020void __ovld vstore3(char3 data, size_t offset, __private char *p);
12021void __ovld vstore3(uchar3 data, size_t offset, __private uchar *p);
12022void __ovld vstore3(short3 data, size_t offset, __private short *p);
12023void __ovld vstore3(ushort3 data, size_t offset, __private ushort *p);
12024void __ovld vstore3(int3 data, size_t offset, __private int *p);
12025void __ovld vstore3(uint3 data, size_t offset, __private uint *p);
12026void __ovld vstore3(long3 data, size_t offset, __private long *p);
12027void __ovld vstore3(ulong3 data, size_t offset, __private ulong *p);
12028void __ovld vstore3(float3 data, size_t offset, __private float *p);
12029void __ovld vstore4(char4 data, size_t offset, __private char *p);
12030void __ovld vstore4(uchar4 data, size_t offset, __private uchar *p);
12031void __ovld vstore4(short4 data, size_t offset, __private short *p);
12032void __ovld vstore4(ushort4 data, size_t offset, __private ushort *p);
12033void __ovld vstore4(int4 data, size_t offset, __private int *p);
12034void __ovld vstore4(uint4 data, size_t offset, __private uint *p);
12035void __ovld vstore4(long4 data, size_t offset, __private long *p);
12036void __ovld vstore4(ulong4 data, size_t offset, __private ulong *p);
12037void __ovld vstore4(float4 data, size_t offset, __private float *p);
12038void __ovld vstore8(char8 data, size_t offset, __private char *p);
12039void __ovld vstore8(uchar8 data, size_t offset, __private uchar *p);
12040void __ovld vstore8(short8 data, size_t offset, __private short *p);
12041void __ovld vstore8(ushort8 data, size_t offset, __private ushort *p);
12042void __ovld vstore8(int8 data, size_t offset, __private int *p);
12043void __ovld vstore8(uint8 data, size_t offset, __private uint *p);
12044void __ovld vstore8(long8 data, size_t offset, __private long *p);
12045void __ovld vstore8(ulong8 data, size_t offset, __private ulong *p);
12046void __ovld vstore8(float8 data, size_t offset, __private float *p);
12047void __ovld vstore16(char16 data, size_t offset, __private char *p);
12048void __ovld vstore16(uchar16 data, size_t offset, __private uchar *p);
12049void __ovld vstore16(short16 data, size_t offset, __private short *p);
12050void __ovld vstore16(ushort16 data, size_t offset, __private ushort *p);
12051void __ovld vstore16(int16 data, size_t offset, __private int *p);
12052void __ovld vstore16(uint16 data, size_t offset, __private uint *p);
12053void __ovld vstore16(long16 data, size_t offset, __private long *p);
12054void __ovld vstore16(ulong16 data, size_t offset, __private ulong *p);
12055void __ovld vstore16(float16 data, size_t offset, __private float *p);
12056#ifdef cl_khr_fp64
12057void __ovld vstore2(double2 data, size_t offset, __global double *p);
12058void __ovld vstore3(double3 data, size_t offset, __global double *p);
12059void __ovld vstore4(double4 data, size_t offset, __global double *p);
12060void __ovld vstore8(double8 data, size_t offset, __global double *p);
12061void __ovld vstore16(double16 data, size_t offset, __global double *p);
12062void __ovld vstore2(double2 data, size_t offset, __local double *p);
12063void __ovld vstore3(double3 data, size_t offset, __local double *p);
12064void __ovld vstore4(double4 data, size_t offset, __local double *p);
12065void __ovld vstore8(double8 data, size_t offset, __local double *p);
12066void __ovld vstore16(double16 data, size_t offset, __local double *p);
12067void __ovld vstore2(double2 data, size_t offset, __private double *p);
12068void __ovld vstore3(double3 data, size_t offset, __private double *p);
12069void __ovld vstore4(double4 data, size_t offset, __private double *p);
12070void __ovld vstore8(double8 data, size_t offset, __private double *p);
12071void __ovld vstore16(double16 data, size_t offset, __private double *p);
12072#endif //cl_khr_fp64
12073#ifdef cl_khr_fp16
12074void __ovld vstore(half data, size_t offset, __global half *p);
12075void __ovld vstore2(half2 data, size_t offset, __global half *p);
12076void __ovld vstore3(half3 data, size_t offset, __global half *p);
12077void __ovld vstore4(half4 data, size_t offset, __global half *p);
12078void __ovld vstore8(half8 data, size_t offset, __global half *p);
12079void __ovld vstore16(half16 data, size_t offset, __global half *p);
12080void __ovld vstore(half data, size_t offset, __local half *p);
12081void __ovld vstore2(half2 data, size_t offset, __local half *p);
12082void __ovld vstore3(half3 data, size_t offset, __local half *p);
12083void __ovld vstore4(half4 data, size_t offset, __local half *p);
12084void __ovld vstore8(half8 data, size_t offset, __local half *p);
12085void __ovld vstore16(half16 data, size_t offset, __local half *p);
12086void __ovld vstore(half data, size_t offset, __private half *p);
12087void __ovld vstore2(half2 data, size_t offset, __private half *p);
12088void __ovld vstore3(half3 data, size_t offset, __private half *p);
12089void __ovld vstore4(half4 data, size_t offset, __private half *p);
12090void __ovld vstore8(half8 data, size_t offset, __private half *p);
12091void __ovld vstore16(half16 data, size_t offset, __private half *p);
12092#endif //cl_khr_fp16
12093#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
12094
12095/**
12096 * Read sizeof (half) bytes of data from address
12097 * (p + offset). The data read is interpreted as a
12098 * half value. The half value is converted to a
12099 * float value and the float value is returned.
12100 * The read address computed as (p + offset)
12101 * must be 16-bit aligned.
12102 */
12103float __ovld vload_half(size_t offsetconst __constant half *p);
12104#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
12105float __ovld vload_half(size_t offsetconst half *p);
12106#else
12107float __ovld vload_half(size_t offset, const __global half *p);
12108float __ovld vload_half(size_t offset, const __local half *p);
12109float __ovld vload_half(size_t offset, const __private half *p);
12110#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
12111
12112/**
12113 * Read sizeof (halfn) bytes of data from address
12114 * (p + (offset * n)). The data read is interpreted
12115 * as a halfn value. The halfn value read is
12116 * converted to a floatn value and the floatn
12117 * value is returned. The read address computed
12118 * as (p + (offset * n)) must be 16-bit aligned.
12119 */
12120float2 __ovld vload_half2(size_t offsetconst __constant half *p);
12121float3 __ovld vload_half3(size_t offsetconst __constant half *p);
12122float4 __ovld vload_half4(size_t offsetconst __constant half *p);
12123float8 __ovld vload_half8(size_t offsetconst __constant half *p);
12124float16 __ovld vload_half16(size_t offsetconst __constant half *p);
12125#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
12126float2 __ovld vload_half2(size_t offsetconst half *p);
12127float3 __ovld vload_half3(size_t offsetconst half *p);
12128float4 __ovld vload_half4(size_t offsetconst half *p);
12129float8 __ovld vload_half8(size_t offsetconst half *p);
12130float16 __ovld vload_half16(size_t offsetconst half *p);
12131#else
12132float2 __ovld vload_half2(size_t offset, const __global half *p);
12133float3 __ovld vload_half3(size_t offset, const __global half *p);
12134float4 __ovld vload_half4(size_t offset, const __global half *p);
12135float8 __ovld vload_half8(size_t offset, const __global half *p);
12136float16 __ovld vload_half16(size_t offset, const __global half *p);
12137float2 __ovld vload_half2(size_t offset, const __local half *p);
12138float3 __ovld vload_half3(size_t offset, const __local half *p);
12139float4 __ovld vload_half4(size_t offset, const __local half *p);
12140float8 __ovld vload_half8(size_t offset, const __local half *p);
12141float16 __ovld vload_half16(size_t offset, const __local half *p);
12142float2 __ovld vload_half2(size_t offset, const __private half *p);
12143float3 __ovld vload_half3(size_t offset, const __private half *p);
12144float4 __ovld vload_half4(size_t offset, const __private half *p);
12145float8 __ovld vload_half8(size_t offset, const __private half *p);
12146float16 __ovld vload_half16(size_t offset, const __private half *p);
12147#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
12148
12149/**
12150 * The float value given by data is first
12151 * converted to a half value using the appropriate
12152 * rounding mode. The half value is then written
12153 * to address computed as (p + offset). The
12154 * address computed as (p + offset) must be 16-
12155 * bit aligned.
12156 * vstore_half use the current rounding mode.
12157 * The default current rounding mode is round to
12158 * nearest even.
12159 */
12160#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
12161void __ovld vstore_half(float datasize_t offset, half *p);
12162void __ovld vstore_half_rte(float datasize_t offset, half *p);
12163void __ovld vstore_half_rtz(float datasize_t offset, half *p);
12164void __ovld vstore_half_rtp(float datasize_t offset, half *p);
12165void __ovld vstore_half_rtn(float datasize_t offset, half *p);
12166#ifdef cl_khr_fp64
12167void __ovld vstore_half(double data, size_t offset, half *p);
12168void __ovld vstore_half_rte(double data, size_t offset, half *p);
12169void __ovld vstore_half_rtz(double data, size_t offset, half *p);
12170void __ovld vstore_half_rtp(double data, size_t offset, half *p);
12171void __ovld vstore_half_rtn(double data, size_t offset, half *p);
12172#endif //cl_khr_fp64
12173#else
12174void __ovld vstore_half(float data, size_t offset, __global half *p);
12175void __ovld vstore_half_rte(float data, size_t offset, __global half *p);
12176void __ovld vstore_half_rtz(float data, size_t offset, __global half *p);
12177void __ovld vstore_half_rtp(float data, size_t offset, __global half *p);
12178void __ovld vstore_half_rtn(float data, size_t offset, __global half *p);
12179void __ovld vstore_half(float data, size_t offset, __local half *p);
12180void __ovld vstore_half_rte(float data, size_t offset, __local half *p);
12181void __ovld vstore_half_rtz(float data, size_t offset, __local half *p);
12182void __ovld vstore_half_rtp(float data, size_t offset, __local half *p);
12183void __ovld vstore_half_rtn(float data, size_t offset, __local half *p);
12184void __ovld vstore_half(float data, size_t offset, __private half *p);
12185void __ovld vstore_half_rte(float data, size_t offset, __private half *p);
12186void __ovld vstore_half_rtz(float data, size_t offset, __private half *p);
12187void __ovld vstore_half_rtp(float data, size_t offset, __private half *p);
12188void __ovld vstore_half_rtn(float data, size_t offset, __private half *p);
12189#ifdef cl_khr_fp64
12190void __ovld vstore_half(double data, size_t offset, __global half *p);
12191void __ovld vstore_half_rte(double data, size_t offset, __global half *p);
12192void __ovld vstore_half_rtz(double data, size_t offset, __global half *p);
12193void __ovld vstore_half_rtp(double data, size_t offset, __global half *p);
12194void __ovld vstore_half_rtn(double data, size_t offset, __global half *p);
12195void __ovld vstore_half(double data, size_t offset, __local half *p);
12196void __ovld vstore_half_rte(double data, size_t offset, __local half *p);
12197void __ovld vstore_half_rtz(double data, size_t offset, __local half *p);
12198void __ovld vstore_half_rtp(double data, size_t offset, __local half *p);
12199void __ovld vstore_half_rtn(double data, size_t offset, __local half *p);
12200void __ovld vstore_half(double data, size_t offset, __private half *p);
12201void __ovld vstore_half_rte(double data, size_t offset, __private half *p);
12202void __ovld vstore_half_rtz(double data, size_t offset, __private half *p);
12203void __ovld vstore_half_rtp(double data, size_t offset, __private half *p);
12204void __ovld vstore_half_rtn(double data, size_t offset, __private half *p);
12205#endif //cl_khr_fp64
12206#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
12207
12208/**
12209 * The floatn value given by data is converted to
12210 * a halfn value using the appropriate rounding
12211 * mode. The halfn value is then written to
12212 * address computed as (p + (offset * n)). The
12213 * address computed as (p + (offset * n)) must be
12214 * 16-bit aligned.
12215 * vstore_halfn uses the current rounding mode.
12216 * The default current rounding mode is round to
12217 * nearest even.
12218 */
12219#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
12220void __ovld vstore_half2(float2 datasize_t offset, half *p);
12221void __ovld vstore_half3(float3 datasize_t offset, half *p);
12222void __ovld vstore_half4(float4 datasize_t offset, half *p);
12223void __ovld vstore_half8(float8 datasize_t offset, half *p);
12224void __ovld vstore_half16(float16 datasize_t offset, half *p);
12225void __ovld vstore_half2_rte(float2 datasize_t offset, half *p);
12226void __ovld vstore_half3_rte(float3 datasize_t offset, half *p);
12227void __ovld vstore_half4_rte(float4 datasize_t offset, half *p);
12228void __ovld vstore_half8_rte(float8 datasize_t offset, half *p);
12229void __ovld vstore_half16_rte(float16 datasize_t offset, half *p);
12230void __ovld vstore_half2_rtz(float2 datasize_t offset, half *p);
12231void __ovld vstore_half3_rtz(float3 datasize_t offset, half *p);
12232void __ovld vstore_half4_rtz(float4 datasize_t offset, half *p);
12233void __ovld vstore_half8_rtz(float8 datasize_t offset, half *p);
12234void __ovld vstore_half16_rtz(float16 datasize_t offset, half *p);
12235void __ovld vstore_half2_rtp(float2 datasize_t offset, half *p);
12236void __ovld vstore_half3_rtp(float3 datasize_t offset, half *p);
12237void __ovld vstore_half4_rtp(float4 datasize_t offset, half *p);
12238void __ovld vstore_half8_rtp(float8 datasize_t offset, half *p);
12239void __ovld vstore_half16_rtp(float16 datasize_t offset, half *p);
12240void __ovld vstore_half2_rtn(float2 datasize_t offset, half *p);
12241void __ovld vstore_half3_rtn(float3 datasize_t offset, half *p);
12242void __ovld vstore_half4_rtn(float4 datasize_t offset, half *p);
12243void __ovld vstore_half8_rtn(float8 datasize_t offset, half *p);
12244void __ovld vstore_half16_rtn(float16 datasize_t offset, half *p);
12245#ifdef cl_khr_fp64
12246void __ovld vstore_half2(double2 data, size_t offset, half *p);
12247void __ovld vstore_half3(double3 data, size_t offset, half *p);
12248void __ovld vstore_half4(double4 data, size_t offset, half *p);
12249void __ovld vstore_half8(double8 data, size_t offset, half *p);
12250void __ovld vstore_half16(double16 data, size_t offset, half *p);
12251void __ovld vstore_half2_rte(double2 data, size_t offset, half *p);
12252void __ovld vstore_half3_rte(double3 data, size_t offset, half *p);
12253void __ovld vstore_half4_rte(double4 data, size_t offset, half *p);
12254void __ovld vstore_half8_rte(double8 data, size_t offset, half *p);
12255void __ovld vstore_half16_rte(double16 data, size_t offset, half *p);
12256void __ovld vstore_half2_rtz(double2 data, size_t offset, half *p);
12257void __ovld vstore_half3_rtz(double3 data, size_t offset, half *p);
12258void __ovld vstore_half4_rtz(double4 data, size_t offset, half *p);
12259void __ovld vstore_half8_rtz(double8 data, size_t offset, half *p);
12260void __ovld vstore_half16_rtz(double16 data, size_t offset, half *p);
12261void __ovld vstore_half2_rtp(double2 data, size_t offset, half *p);
12262void __ovld vstore_half3_rtp(double3 data, size_t offset, half *p);
12263void __ovld vstore_half4_rtp(double4 data, size_t offset, half *p);
12264void __ovld vstore_half8_rtp(double8 data, size_t offset, half *p);
12265void __ovld vstore_half16_rtp(double16 data, size_t offset, half *p);
12266void __ovld vstore_half2_rtn(double2 data, size_t offset, half *p);
12267void __ovld vstore_half3_rtn(double3 data, size_t offset, half *p);
12268void __ovld vstore_half4_rtn(double4 data, size_t offset, half *p);
12269void __ovld vstore_half8_rtn(double8 data, size_t offset, half *p);
12270void __ovld vstore_half16_rtn(double16 data, size_t offset, half *p);
12271#endif //cl_khr_fp64
12272#else
12273void __ovld vstore_half2(float2 data, size_t offset, __global half *p);
12274void __ovld vstore_half3(float3 data, size_t offset, __global half *p);
12275void __ovld vstore_half4(float4 data, size_t offset, __global half *p);
12276void __ovld vstore_half8(float8 data, size_t offset, __global half *p);
12277void __ovld vstore_half16(float16 data, size_t offset, __global half *p);
12278void __ovld vstore_half2_rte(float2 data, size_t offset, __global half *p);
12279void __ovld vstore_half3_rte(float3 data, size_t offset, __global half *p);
12280void __ovld vstore_half4_rte(float4 data, size_t offset, __global half *p);
12281void __ovld vstore_half8_rte(float8 data, size_t offset, __global half *p);
12282void __ovld vstore_half16_rte(float16 data, size_t offset, __global half *p);
12283void __ovld vstore_half2_rtz(float2 data, size_t offset, __global half *p);
12284void __ovld vstore_half3_rtz(float3 data, size_t offset, __global half *p);
12285void __ovld vstore_half4_rtz(float4 data, size_t offset, __global half *p);
12286void __ovld vstore_half8_rtz(float8 data, size_t offset, __global half *p);
12287void __ovld vstore_half16_rtz(float16 data, size_t offset, __global half *p);
12288void __ovld vstore_half2_rtp(float2 data, size_t offset, __global half *p);
12289void __ovld vstore_half3_rtp(float3 data, size_t offset, __global half *p);
12290void __ovld vstore_half4_rtp(float4 data, size_t offset, __global half *p);
12291void __ovld vstore_half8_rtp(float8 data, size_t offset, __global half *p);
12292void __ovld vstore_half16_rtp(float16 data, size_t offset, __global half *p);
12293void __ovld vstore_half2_rtn(float2 data, size_t offset, __global half *p);
12294void __ovld vstore_half3_rtn(float3 data, size_t offset, __global half *p);
12295void __ovld vstore_half4_rtn(float4 data, size_t offset, __global half *p);
12296void __ovld vstore_half8_rtn(float8 data, size_t offset, __global half *p);
12297void __ovld vstore_half16_rtn(float16 data, size_t offset, __global half *p);
12298void __ovld vstore_half2(float2 data, size_t offset, __local half *p);
12299void __ovld vstore_half3(float3 data, size_t offset, __local half *p);
12300void __ovld vstore_half4(float4 data, size_t offset, __local half *p);
12301void __ovld vstore_half8(float8 data, size_t offset, __local half *p);
12302void __ovld vstore_half16(float16 data, size_t offset, __local half *p);
12303void __ovld vstore_half2_rte(float2 data, size_t offset, __local half *p);
12304void __ovld vstore_half3_rte(float3 data, size_t offset, __local half *p);
12305void __ovld vstore_half4_rte(float4 data, size_t offset, __local half *p);
12306void __ovld vstore_half8_rte(float8 data, size_t offset, __local half *p);
12307void __ovld vstore_half16_rte(float16 data, size_t offset, __local half *p);
12308void __ovld vstore_half2_rtz(float2 data, size_t offset, __local half *p);
12309void __ovld vstore_half3_rtz(float3 data, size_t offset, __local half *p);
12310void __ovld vstore_half4_rtz(float4 data, size_t offset, __local half *p);
12311void __ovld vstore_half8_rtz(float8 data, size_t offset, __local half *p);
12312void __ovld vstore_half16_rtz(float16 data, size_t offset, __local half *p);
12313void __ovld vstore_half2_rtp(float2 data, size_t offset, __local half *p);
12314void __ovld vstore_half3_rtp(float3 data, size_t offset, __local half *p);
12315void __ovld vstore_half4_rtp(float4 data, size_t offset, __local half *p);
12316void __ovld vstore_half8_rtp(float8 data, size_t offset, __local half *p);
12317void __ovld vstore_half16_rtp(float16 data, size_t offset, __local half *p);
12318void __ovld vstore_half2_rtn(float2 data, size_t offset, __local half *p);
12319void __ovld vstore_half3_rtn(float3 data, size_t offset, __local half *p);
12320void __ovld vstore_half4_rtn(float4 data, size_t offset, __local half *p);
12321void __ovld vstore_half8_rtn(float8 data, size_t offset, __local half *p);
12322void __ovld vstore_half16_rtn(float16 data, size_t offset, __local half *p);
12323void __ovld vstore_half2(float2 data, size_t offset, __private half *p);
12324void __ovld vstore_half3(float3 data, size_t offset, __private half *p);
12325void __ovld vstore_half4(float4 data, size_t offset, __private half *p);
12326void __ovld vstore_half8(float8 data, size_t offset, __private half *p);
12327void __ovld vstore_half16(float16 data, size_t offset, __private half *p);
12328void __ovld vstore_half2_rte(float2 data, size_t offset, __private half *p);
12329void __ovld vstore_half3_rte(float3 data, size_t offset, __private half *p);
12330void __ovld vstore_half4_rte(float4 data, size_t offset, __private half *p);
12331void __ovld vstore_half8_rte(float8 data, size_t offset, __private half *p);
12332void __ovld vstore_half16_rte(float16 data, size_t offset, __private half *p);
12333void __ovld vstore_half2_rtz(float2 data, size_t offset, __private half *p);
12334void __ovld vstore_half3_rtz(float3 data, size_t offset, __private half *p);
12335void __ovld vstore_half4_rtz(float4 data, size_t offset, __private half *p);
12336void __ovld vstore_half8_rtz(float8 data, size_t offset, __private half *p);
12337void __ovld vstore_half16_rtz(float16 data, size_t offset, __private half *p);
12338void __ovld vstore_half2_rtp(float2 data, size_t offset, __private half *p);
12339void __ovld vstore_half3_rtp(float3 data, size_t offset, __private half *p);
12340void __ovld vstore_half4_rtp(float4 data, size_t offset, __private half *p);
12341void __ovld vstore_half8_rtp(float8 data, size_t offset, __private half *p);
12342void __ovld vstore_half16_rtp(float16 data, size_t offset, __private half *p);
12343void __ovld vstore_half2_rtn(float2 data, size_t offset, __private half *p);
12344void __ovld vstore_half3_rtn(float3 data, size_t offset, __private half *p);
12345void __ovld vstore_half4_rtn(float4 data, size_t offset, __private half *p);
12346void __ovld vstore_half8_rtn(float8 data, size_t offset, __private half *p);
12347void __ovld vstore_half16_rtn(float16 data, size_t offset, __private half *p);
12348#ifdef cl_khr_fp64
12349void __ovld vstore_half2(double2 data, size_t offset, __global half *p);
12350void __ovld vstore_half3(double3 data, size_t offset, __global half *p);
12351void __ovld vstore_half4(double4 data, size_t offset, __global half *p);
12352void __ovld vstore_half8(double8 data, size_t offset, __global half *p);
12353void __ovld vstore_half16(double16 data, size_t offset, __global half *p);
12354void __ovld vstore_half2_rte(double2 data, size_t offset, __global half *p);
12355void __ovld vstore_half3_rte(double3 data, size_t offset, __global half *p);
12356void __ovld vstore_half4_rte(double4 data, size_t offset, __global half *p);
12357void __ovld vstore_half8_rte(double8 data, size_t offset, __global half *p);
12358void __ovld vstore_half16_rte(double16 data, size_t offset, __global half *p);
12359void __ovld vstore_half2_rtz(double2 data, size_t offset, __global half *p);
12360void __ovld vstore_half3_rtz(double3 data, size_t offset, __global half *p);
12361void __ovld vstore_half4_rtz(double4 data, size_t offset, __global half *p);
12362void __ovld vstore_half8_rtz(double8 data, size_t offset, __global half *p);
12363void __ovld vstore_half16_rtz(double16 data, size_t offset, __global half *p);
12364void __ovld vstore_half2_rtp(double2 data, size_t offset, __global half *p);
12365void __ovld vstore_half3_rtp(double3 data, size_t offset, __global half *p);
12366void __ovld vstore_half4_rtp(double4 data, size_t offset, __global half *p);
12367void __ovld vstore_half8_rtp(double8 data, size_t offset, __global half *p);
12368void __ovld vstore_half16_rtp(double16 data, size_t offset, __global half *p);
12369void __ovld vstore_half2_rtn(double2 data, size_t offset, __global half *p);
12370void __ovld vstore_half3_rtn(double3 data, size_t offset, __global half *p);
12371void __ovld vstore_half4_rtn(double4 data, size_t offset, __global half *p);
12372void __ovld vstore_half8_rtn(double8 data, size_t offset, __global half *p);
12373void __ovld vstore_half16_rtn(double16 data, size_t offset, __global half *p);
12374void __ovld vstore_half2(double2 data, size_t offset, __local half *p);
12375void __ovld vstore_half3(double3 data, size_t offset, __local half *p);
12376void __ovld vstore_half4(double4 data, size_t offset, __local half *p);
12377void __ovld vstore_half8(double8 data, size_t offset, __local half *p);
12378void __ovld vstore_half16(double16 data, size_t offset, __local half *p);
12379void __ovld vstore_half2_rte(double2 data, size_t offset, __local half *p);
12380void __ovld vstore_half3_rte(double3 data, size_t offset, __local half *p);
12381void __ovld vstore_half4_rte(double4 data, size_t offset, __local half *p);
12382void __ovld vstore_half8_rte(double8 data, size_t offset, __local half *p);
12383void __ovld vstore_half16_rte(double16 data, size_t offset, __local half *p);
12384void __ovld vstore_half2_rtz(double2 data, size_t offset, __local half *p);
12385void __ovld vstore_half3_rtz(double3 data, size_t offset, __local half *p);
12386void __ovld vstore_half4_rtz(double4 data, size_t offset, __local half *p);
12387void __ovld vstore_half8_rtz(double8 data, size_t offset, __local half *p);
12388void __ovld vstore_half16_rtz(double16 data, size_t offset, __local half *p);
12389void __ovld vstore_half2_rtp(double2 data, size_t offset, __local half *p);
12390void __ovld vstore_half3_rtp(double3 data, size_t offset, __local half *p);
12391void __ovld vstore_half4_rtp(double4 data, size_t offset, __local half *p);
12392void __ovld vstore_half8_rtp(double8 data, size_t offset, __local half *p);
12393void __ovld vstore_half16_rtp(double16 data, size_t offset, __local half *p);
12394void __ovld vstore_half2_rtn(double2 data, size_t offset, __local half *p);
12395void __ovld vstore_half3_rtn(double3 data, size_t offset, __local half *p);
12396void __ovld vstore_half4_rtn(double4 data, size_t offset, __local half *p);
12397void __ovld vstore_half8_rtn(double8 data, size_t offset, __local half *p);
12398void __ovld vstore_half16_rtn(double16 data, size_t offset, __local half *p);
12399void __ovld vstore_half2(double2 data, size_t offset, __private half *p);
12400void __ovld vstore_half3(double3 data, size_t offset, __private half *p);
12401void __ovld vstore_half4(double4 data, size_t offset, __private half *p);
12402void __ovld vstore_half8(double8 data, size_t offset, __private half *p);
12403void __ovld vstore_half16(double16 data, size_t offset, __private half *p);
12404void __ovld vstore_half2_rte(double2 data, size_t offset, __private half *p);
12405void __ovld vstore_half3_rte(double3 data, size_t offset, __private half *p);
12406void __ovld vstore_half4_rte(double4 data, size_t offset, __private half *p);
12407void __ovld vstore_half8_rte(double8 data, size_t offset, __private half *p);
12408void __ovld vstore_half16_rte(double16 data, size_t offset, __private half *p);
12409void __ovld vstore_half2_rtz(double2 data, size_t offset, __private half *p);
12410void __ovld vstore_half3_rtz(double3 data, size_t offset, __private half *p);
12411void __ovld vstore_half4_rtz(double4 data, size_t offset, __private half *p);
12412void __ovld vstore_half8_rtz(double8 data, size_t offset, __private half *p);
12413void __ovld vstore_half16_rtz(double16 data, size_t offset, __private half *p);
12414void __ovld vstore_half2_rtp(double2 data, size_t offset, __private half *p);
12415void __ovld vstore_half3_rtp(double3 data, size_t offset, __private half *p);
12416void __ovld vstore_half4_rtp(double4 data, size_t offset, __private half *p);
12417void __ovld vstore_half8_rtp(double8 data, size_t offset, __private half *p);
12418void __ovld vstore_half16_rtp(double16 data, size_t offset, __private half *p);
12419void __ovld vstore_half2_rtn(double2 data, size_t offset, __private half *p);
12420void __ovld vstore_half3_rtn(double3 data, size_t offset, __private half *p);
12421void __ovld vstore_half4_rtn(double4 data, size_t offset, __private half *p);
12422void __ovld vstore_half8_rtn(double8 data, size_t offset, __private half *p);
12423void __ovld vstore_half16_rtn(double16 data, size_t offset, __private half *p);
12424#endif //cl_khr_fp64
12425#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
12426
12427/**
12428 * For n = 1, 2, 4, 8 and 16 read sizeof (halfn)
12429 * bytes of data from address (p + (offset * n)).
12430 * The data read is interpreted as a halfn value.
12431 * The halfn value read is converted to a floatn
12432 * value and the floatn value is returned.
12433 * The address computed as (p + (offset * n))
12434 * must be aligned to sizeof (halfn) bytes.
12435 * For n = 3, vloada_half3 reads a half3 from
12436 * address (p + (offset * 4)) and returns a float3.
12437 * The address computed as (p + (offset * 4))
12438 * must be aligned to sizeof (half) * 4 bytes.
12439 */
12440float __ovld vloada_half(size_t offsetconst __constant half *p);
12441float2 __ovld vloada_half2(size_t offsetconst __constant half *p);
12442float3 __ovld vloada_half3(size_t offsetconst __constant half *p);
12443float4 __ovld vloada_half4(size_t offsetconst __constant half *p);
12444float8 __ovld vloada_half8(size_t offsetconst __constant half *p);
12445float16 __ovld vloada_half16(size_t offsetconst __constant half *p);
12446#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
12447float __ovld vloada_half(size_t offsetconst half *p);
12448float2 __ovld vloada_half2(size_t offsetconst half *p);
12449float3 __ovld vloada_half3(size_t offsetconst half *p);
12450float4 __ovld vloada_half4(size_t offsetconst half *p);
12451float8 __ovld vloada_half8(size_t offsetconst half *p);
12452float16 __ovld vloada_half16(size_t offsetconst half *p);
12453#else
12454float __ovld vloada_half(size_t offset, const __global half *p);
12455float2 __ovld vloada_half2(size_t offset, const __global half *p);
12456float3 __ovld vloada_half3(size_t offset, const __global half *p);
12457float4 __ovld vloada_half4(size_t offset, const __global half *p);
12458float8 __ovld vloada_half8(size_t offset, const __global half *p);
12459float16 __ovld vloada_half16(size_t offset, const __global half *p);
12460float __ovld vloada_half(size_t offset, const __local half *p);
12461float2 __ovld vloada_half2(size_t offset, const __local half *p);
12462float3 __ovld vloada_half3(size_t offset, const __local half *p);
12463float4 __ovld vloada_half4(size_t offset, const __local half *p);
12464float8 __ovld vloada_half8(size_t offset, const __local half *p);
12465float16 __ovld vloada_half16(size_t offset, const __local half *p);
12466float __ovld vloada_half(size_t offset, const __private half *p);
12467float2 __ovld vloada_half2(size_t offset, const __private half *p);
12468float3 __ovld vloada_half3(size_t offset, const __private half *p);
12469float4 __ovld vloada_half4(size_t offset, const __private half *p);
12470float8 __ovld vloada_half8(size_t offset, const __private half *p);
12471float16 __ovld vloada_half16(size_t offset, const __private half *p);
12472#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
12473
12474/**
12475 * The floatn value given by data is converted to
12476 * a halfn value using the appropriate rounding
12477 * mode.
12478 * For n = 1, 2, 4, 8 and 16, the halfn value is
12479 * written to the address computed as (p + (offset
12480 * * n)). The address computed as (p + (offset *
12481 * n)) must be aligned to sizeof (halfn) bytes.
12482 * For n = 3, the half3 value is written to the
12483 * address computed as (p + (offset * 4)). The
12484 * address computed as (p + (offset * 4)) must be
12485 * aligned to sizeof (half) * 4 bytes.
12486 * vstorea_halfn uses the current rounding
12487 * mode. The default current rounding mode is
12488 * round to nearest even.
12489 */
12490#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
12491void __ovld vstorea_half(float datasize_t offset, half *p);
12492void __ovld vstorea_half2(float2 datasize_t offset, half *p);
12493void __ovld vstorea_half3(float3 datasize_t offset, half *p);
12494void __ovld vstorea_half4(float4 datasize_t offset, half *p);
12495void __ovld vstorea_half8(float8 datasize_t offset, half *p);
12496void __ovld vstorea_half16(float16 datasize_t offset, half *p);
12497
12498void __ovld vstorea_half_rte(float datasize_t offset, half *p);
12499void __ovld vstorea_half2_rte(float2 datasize_t offset, half *p);
12500void __ovld vstorea_half3_rte(float3 datasize_t offset, half *p);
12501void __ovld vstorea_half4_rte(float4 datasize_t offset, half *p);
12502void __ovld vstorea_half8_rte(float8 datasize_t offset, half *p);
12503void __ovld vstorea_half16_rte(float16 datasize_t offset, half *p);
12504
12505void __ovld vstorea_half_rtz(float datasize_t offset, half *p);
12506void __ovld vstorea_half2_rtz(float2 datasize_t offset, half *p);
12507void __ovld vstorea_half3_rtz(float3 datasize_t offset, half *p);
12508void __ovld vstorea_half4_rtz(float4 datasize_t offset, half *p);
12509void __ovld vstorea_half8_rtz(float8 datasize_t offset, half *p);
12510void __ovld vstorea_half16_rtz(float16 datasize_t offset, half *p);
12511
12512void __ovld vstorea_half_rtp(float datasize_t offset, half *p);
12513void __ovld vstorea_half2_rtp(float2 datasize_t offset, half *p);
12514void __ovld vstorea_half3_rtp(float3 datasize_t offset, half *p);
12515void __ovld vstorea_half4_rtp(float4 datasize_t offset, half *p);
12516void __ovld vstorea_half8_rtp(float8 datasize_t offset, half *p);
12517void __ovld vstorea_half16_rtp(float16 datasize_t offset, half *p);
12518
12519void __ovld vstorea_half_rtn(float datasize_t offset, half *p);
12520void __ovld vstorea_half2_rtn(float2 datasize_t offset, half *p);
12521void __ovld vstorea_half3_rtn(float3 datasize_t offset, half *p);
12522void __ovld vstorea_half4_rtn(float4 datasize_t offset, half *p);
12523void __ovld vstorea_half8_rtn(float8 datasize_t offset, half *p);
12524void __ovld vstorea_half16_rtn(float16 datasize_t offset, half *p);
12525
12526#ifdef cl_khr_fp64
12527void __ovld vstorea_half(double data, size_t offset, half *p);
12528void __ovld vstorea_half2(double2 data, size_t offset, half *p);
12529void __ovld vstorea_half3(double3 data, size_t offset, half *p);
12530void __ovld vstorea_half4(double4 data, size_t offset, half *p);
12531void __ovld vstorea_half8(double8 data, size_t offset, half *p);
12532void __ovld vstorea_half16(double16 data, size_t offset, half *p);
12533
12534void __ovld vstorea_half_rte(double data, size_t offset, half *p);
12535void __ovld vstorea_half2_rte(double2 data, size_t offset, half *p);
12536void __ovld vstorea_half3_rte(double3 data, size_t offset, half *p);
12537void __ovld vstorea_half4_rte(double4 data, size_t offset, half *p);
12538void __ovld vstorea_half8_rte(double8 data, size_t offset, half *p);
12539void __ovld vstorea_half16_rte(double16 data, size_t offset, half *p);
12540
12541void __ovld vstorea_half_rtz(double data, size_t offset, half *p);
12542void __ovld vstorea_half2_rtz(double2 data, size_t offset, half *p);
12543void __ovld vstorea_half3_rtz(double3 data, size_t offset, half *p);
12544void __ovld vstorea_half4_rtz(double4 data, size_t offset, half *p);
12545void __ovld vstorea_half8_rtz(double8 data, size_t offset, half *p);
12546void __ovld vstorea_half16_rtz(double16 data, size_t offset, half *p);
12547
12548void __ovld vstorea_half_rtp(double data, size_t offset, half *p);
12549void __ovld vstorea_half2_rtp(double2 data, size_t offset, half *p);
12550void __ovld vstorea_half3_rtp(double3 data, size_t offset, half *p);
12551void __ovld vstorea_half4_rtp(double4 data, size_t offset, half *p);
12552void __ovld vstorea_half8_rtp(double8 data, size_t offset, half *p);
12553void __ovld vstorea_half16_rtp(double16 data, size_t offset, half *p);
12554
12555void __ovld vstorea_half_rtn(double data, size_t offset, half *p);
12556void __ovld vstorea_half2_rtn(double2 data, size_t offset, half *p);
12557void __ovld vstorea_half3_rtn(double3 data, size_t offset, half *p);
12558void __ovld vstorea_half4_rtn(double4 data, size_t offset, half *p);
12559void __ovld vstorea_half8_rtn(double8 data, size_t offset, half *p);
12560void __ovld vstorea_half16_rtn(double16 data, size_t offset, half *p);
12561#endif //cl_khr_fp64
12562
12563#else
12564void __ovld vstorea_half(float data, size_t offset, __global half *p);
12565void __ovld vstorea_half2(float2 data, size_t offset, __global half *p);
12566void __ovld vstorea_half3(float3 data, size_t offset, __global half *p);
12567void __ovld vstorea_half4(float4 data, size_t offset, __global half *p);
12568void __ovld vstorea_half8(float8 data, size_t offset, __global half *p);
12569void __ovld vstorea_half16(float16 data, size_t offset, __global half *p);
12570
12571void __ovld vstorea_half_rte(float data, size_t offset, __global half *p);
12572void __ovld vstorea_half2_rte(float2 data, size_t offset, __global half *p);
12573void __ovld vstorea_half3_rte(float3 data, size_t offset, __global half *p);
12574void __ovld vstorea_half4_rte(float4 data, size_t offset, __global half *p);
12575void __ovld vstorea_half8_rte(float8 data, size_t offset, __global half *p);
12576void __ovld vstorea_half16_rte(float16 data, size_t offset, __global half *p);
12577
12578void __ovld vstorea_half_rtz(float data, size_t offset, __global half *p);
12579void __ovld vstorea_half2_rtz(float2 data, size_t offset, __global half *p);
12580void __ovld vstorea_half3_rtz(float3 data, size_t offset, __global half *p);
12581void __ovld vstorea_half4_rtz(float4 data, size_t offset, __global half *p);
12582void __ovld vstorea_half8_rtz(float8 data, size_t offset, __global half *p);
12583void __ovld vstorea_half16_rtz(float16 data, size_t offset, __global half *p);
12584
12585void __ovld vstorea_half_rtp(float data, size_t offset, __global half *p);
12586void __ovld vstorea_half2_rtp(float2 data, size_t offset, __global half *p);
12587void __ovld vstorea_half3_rtp(float3 data, size_t offset, __global half *p);
12588void __ovld vstorea_half4_rtp(float4 data, size_t offset, __global half *p);
12589void __ovld vstorea_half8_rtp(float8 data, size_t offset, __global half *p);
12590void __ovld vstorea_half16_rtp(float16 data, size_t offset, __global half *p);
12591
12592void __ovld vstorea_half_rtn(float data, size_t offset, __global half *p);
12593void __ovld vstorea_half2_rtn(float2 data, size_t offset, __global half *p);
12594void __ovld vstorea_half3_rtn(float3 data, size_t offset, __global half *p);
12595void __ovld vstorea_half4_rtn(float4 data, size_t offset, __global half *p);
12596void __ovld vstorea_half8_rtn(float8 data, size_t offset, __global half *p);
12597void __ovld vstorea_half16_rtn(float16 data, size_t offset, __global half *p);
12598
12599void __ovld vstorea_half(float data, size_t offset, __local half *p);
12600void __ovld vstorea_half2(float2 data, size_t offset, __local half *p);
12601void __ovld vstorea_half3(float3 data, size_t offset, __local half *p);
12602void __ovld vstorea_half4(float4 data, size_t offset, __local half *p);
12603void __ovld vstorea_half8(float8 data, size_t offset, __local half *p);
12604void __ovld vstorea_half16(float16 data, size_t offset, __local half *p);
12605
12606void __ovld vstorea_half_rte(float data, size_t offset, __local half *p);
12607void __ovld vstorea_half2_rte(float2 data, size_t offset, __local half *p);
12608void __ovld vstorea_half3_rte(float3 data, size_t offset, __local half *p);
12609void __ovld vstorea_half4_rte(float4 data, size_t offset, __local half *p);
12610void __ovld vstorea_half8_rte(float8 data, size_t offset, __local half *p);
12611void __ovld vstorea_half16_rte(float16 data, size_t offset, __local half *p);
12612
12613void __ovld vstorea_half_rtz(float data, size_t offset, __local half *p);
12614void __ovld vstorea_half2_rtz(float2 data, size_t offset, __local half *p);
12615void __ovld vstorea_half3_rtz(float3 data, size_t offset, __local half *p);
12616void __ovld vstorea_half4_rtz(float4 data, size_t offset, __local half *p);
12617void __ovld vstorea_half8_rtz(float8 data, size_t offset, __local half *p);
12618void __ovld vstorea_half16_rtz(float16 data, size_t offset, __local half *p);
12619
12620void __ovld vstorea_half_rtp(float data, size_t offset, __local half *p);
12621void __ovld vstorea_half2_rtp(float2 data, size_t offset, __local half *p);
12622void __ovld vstorea_half3_rtp(float3 data, size_t offset, __local half *p);
12623void __ovld vstorea_half4_rtp(float4 data, size_t offset, __local half *p);
12624void __ovld vstorea_half8_rtp(float8 data, size_t offset, __local half *p);
12625void __ovld vstorea_half16_rtp(float16 data, size_t offset, __local half *p);
12626
12627void __ovld vstorea_half_rtn(float data, size_t offset, __local half *p);
12628void __ovld vstorea_half2_rtn(float2 data, size_t offset, __local half *p);
12629void __ovld vstorea_half3_rtn(float3 data, size_t offset, __local half *p);
12630void __ovld vstorea_half4_rtn(float4 data, size_t offset, __local half *p);
12631void __ovld vstorea_half8_rtn(float8 data, size_t offset, __local half *p);
12632void __ovld vstorea_half16_rtn(float16 data, size_t offset, __local half *p);
12633
12634void __ovld vstorea_half(float data, size_t offset, __private half *p);
12635void __ovld vstorea_half2(float2 data, size_t offset, __private half *p);
12636void __ovld vstorea_half3(float3 data, size_t offset, __private half *p);
12637void __ovld vstorea_half4(float4 data, size_t offset, __private half *p);
12638void __ovld vstorea_half8(float8 data, size_t offset, __private half *p);
12639void __ovld vstorea_half16(float16 data, size_t offset, __private half *p);
12640
12641void __ovld vstorea_half_rte(float data, size_t offset, __private half *p);
12642void __ovld vstorea_half2_rte(float2 data, size_t offset, __private half *p);
12643void __ovld vstorea_half3_rte(float3 data, size_t offset, __private half *p);
12644void __ovld vstorea_half4_rte(float4 data, size_t offset, __private half *p);
12645void __ovld vstorea_half8_rte(float8 data, size_t offset, __private half *p);
12646void __ovld vstorea_half16_rte(float16 data, size_t offset, __private half *p);
12647
12648void __ovld vstorea_half_rtz(float data, size_t offset, __private half *p);
12649void __ovld vstorea_half2_rtz(float2 data, size_t offset, __private half *p);
12650void __ovld vstorea_half3_rtz(float3 data, size_t offset, __private half *p);
12651void __ovld vstorea_half4_rtz(float4 data, size_t offset, __private half *p);
12652void __ovld vstorea_half8_rtz(float8 data, size_t offset, __private half *p);
12653void __ovld vstorea_half16_rtz(float16 data, size_t offset, __private half *p);
12654
12655void __ovld vstorea_half_rtp(float data, size_t offset, __private half *p);
12656void __ovld vstorea_half2_rtp(float2 data, size_t offset, __private half *p);
12657void __ovld vstorea_half3_rtp(float3 data, size_t offset, __private half *p);
12658void __ovld vstorea_half4_rtp(float4 data, size_t offset, __private half *p);
12659void __ovld vstorea_half8_rtp(float8 data, size_t offset, __private half *p);
12660void __ovld vstorea_half16_rtp(float16 data, size_t offset, __private half *p);
12661
12662void __ovld vstorea_half_rtn(float data, size_t offset, __private half *p);
12663void __ovld vstorea_half2_rtn(float2 data, size_t offset, __private half *p);
12664void __ovld vstorea_half3_rtn(float3 data, size_t offset, __private half *p);
12665void __ovld vstorea_half4_rtn(float4 data, size_t offset, __private half *p);
12666void __ovld vstorea_half8_rtn(float8 data, size_t offset, __private half *p);
12667void __ovld vstorea_half16_rtn(float16 data, size_t offset, __private half *p);
12668
12669#ifdef cl_khr_fp64
12670void __ovld vstorea_half(double data, size_t offset, __global half *p);
12671void __ovld vstorea_half2(double2 data, size_t offset, __global half *p);
12672void __ovld vstorea_half3(double3 data, size_t offset, __global half *p);
12673void __ovld vstorea_half4(double4 data, size_t offset, __global half *p);
12674void __ovld vstorea_half8(double8 data, size_t offset, __global half *p);
12675void __ovld vstorea_half16(double16 data, size_t offset, __global half *p);
12676
12677void __ovld vstorea_half_rte(double data, size_t offset, __global half *p);
12678void __ovld vstorea_half2_rte(double2 data, size_t offset, __global half *p);
12679void __ovld vstorea_half3_rte(double3 data, size_t offset, __global half *p);
12680void __ovld vstorea_half4_rte(double4 data, size_t offset, __global half *p);
12681void __ovld vstorea_half8_rte(double8 data, size_t offset, __global half *p);
12682void __ovld vstorea_half16_rte(double16 data, size_t offset, __global half *p);
12683
12684void __ovld vstorea_half_rtz(double data, size_t offset, __global half *p);
12685void __ovld vstorea_half2_rtz(double2 data, size_t offset, __global half *p);
12686void __ovld vstorea_half3_rtz(double3 data, size_t offset, __global half *p);
12687void __ovld vstorea_half4_rtz(double4 data, size_t offset, __global half *p);
12688void __ovld vstorea_half8_rtz(double8 data, size_t offset, __global half *p);
12689void __ovld vstorea_half16_rtz(double16 data, size_t offset, __global half *p);
12690
12691void __ovld vstorea_half_rtp(double data, size_t offset, __global half *p);
12692void __ovld vstorea_half2_rtp(double2 data, size_t offset, __global half *p);
12693void __ovld vstorea_half3_rtp(double3 data, size_t offset, __global half *p);
12694void __ovld vstorea_half4_rtp(double4 data, size_t offset, __global half *p);
12695void __ovld vstorea_half8_rtp(double8 data, size_t offset, __global half *p);
12696void __ovld vstorea_half16_rtp(double16 data, size_t offset, __global half *p);
12697
12698void __ovld vstorea_half_rtn(double data, size_t offset, __global half *p);
12699void __ovld vstorea_half2_rtn(double2 data, size_t offset, __global half *p);
12700void __ovld vstorea_half3_rtn(double3 data, size_t offset, __global half *p);
12701void __ovld vstorea_half4_rtn(double4 data, size_t offset, __global half *p);
12702void __ovld vstorea_half8_rtn(double8 data, size_t offset, __global half *p);
12703void __ovld vstorea_half16_rtn(double16 data, size_t offset, __global half *p);
12704
12705void __ovld vstorea_half(double data, size_t offset, __local half *p);
12706void __ovld vstorea_half2(double2 data, size_t offset, __local half *p);
12707void __ovld vstorea_half3(double3 data, size_t offset, __local half *p);
12708void __ovld vstorea_half4(double4 data, size_t offset, __local half *p);
12709void __ovld vstorea_half8(double8 data, size_t offset, __local half *p);
12710void __ovld vstorea_half16(double16 data, size_t offset, __local half *p);
12711
12712void __ovld vstorea_half_rte(double data, size_t offset, __local half *p);
12713void __ovld vstorea_half2_rte(double2 data, size_t offset, __local half *p);
12714void __ovld vstorea_half3_rte(double3 data, size_t offset, __local half *p);
12715void __ovld vstorea_half4_rte(double4 data, size_t offset, __local half *p);
12716void __ovld vstorea_half8_rte(double8 data, size_t offset, __local half *p);
12717void __ovld vstorea_half16_rte(double16 data, size_t offset, __local half *p);
12718
12719void __ovld vstorea_half_rtz(double data, size_t offset, __local half *p);
12720void __ovld vstorea_half2_rtz(double2 data, size_t offset, __local half *p);
12721void __ovld vstorea_half3_rtz(double3 data, size_t offset, __local half *p);
12722void __ovld vstorea_half4_rtz(double4 data, size_t offset, __local half *p);
12723void __ovld vstorea_half8_rtz(double8 data, size_t offset, __local half *p);
12724void __ovld vstorea_half16_rtz(double16 data, size_t offset, __local half *p);
12725
12726void __ovld vstorea_half_rtp(double data, size_t offset, __local half *p);
12727void __ovld vstorea_half2_rtp(double2 data, size_t offset, __local half *p);
12728void __ovld vstorea_half3_rtp(double3 data, size_t offset, __local half *p);
12729void __ovld vstorea_half4_rtp(double4 data, size_t offset, __local half *p);
12730void __ovld vstorea_half8_rtp(double8 data, size_t offset, __local half *p);
12731void __ovld vstorea_half16_rtp(double16 data, size_t offset, __local half *p);
12732
12733void __ovld vstorea_half_rtn(double data, size_t offset, __local half *p);
12734void __ovld vstorea_half2_rtn(double2 data, size_t offset, __local half *p);
12735void __ovld vstorea_half3_rtn(double3 data, size_t offset, __local half *p);
12736void __ovld vstorea_half4_rtn(double4 data, size_t offset, __local half *p);
12737void __ovld vstorea_half8_rtn(double8 data, size_t offset, __local half *p);
12738void __ovld vstorea_half16_rtn(double16 data, size_t offset, __local half *p);
12739
12740void __ovld vstorea_half(double data, size_t offset, __private half *p);
12741void __ovld vstorea_half2(double2 data, size_t offset, __private half *p);
12742void __ovld vstorea_half3(double3 data, size_t offset, __private half *p);
12743void __ovld vstorea_half4(double4 data, size_t offset, __private half *p);
12744void __ovld vstorea_half8(double8 data, size_t offset, __private half *p);
12745void __ovld vstorea_half16(double16 data, size_t offset, __private half *p);
12746
12747void __ovld vstorea_half_rte(double data, size_t offset, __private half *p);
12748void __ovld vstorea_half2_rte(double2 data, size_t offset, __private half *p);
12749void __ovld vstorea_half3_rte(double3 data, size_t offset, __private half *p);
12750void __ovld vstorea_half4_rte(double4 data, size_t offset, __private half *p);
12751void __ovld vstorea_half8_rte(double8 data, size_t offset, __private half *p);
12752void __ovld vstorea_half16_rte(double16 data, size_t offset, __private half *p);
12753
12754void __ovld vstorea_half_rtz(double data, size_t offset, __private half *p);
12755void __ovld vstorea_half2_rtz(double2 data, size_t offset, __private half *p);
12756void __ovld vstorea_half3_rtz(double3 data, size_t offset, __private half *p);
12757void __ovld vstorea_half4_rtz(double4 data, size_t offset, __private half *p);
12758void __ovld vstorea_half8_rtz(double8 data, size_t offset, __private half *p);
12759void __ovld vstorea_half16_rtz(double16 data, size_t offset, __private half *p);
12760
12761void __ovld vstorea_half_rtp(double data, size_t offset, __private half *p);
12762void __ovld vstorea_half2_rtp(double2 data, size_t offset, __private half *p);
12763void __ovld vstorea_half3_rtp(double3 data, size_t offset, __private half *p);
12764void __ovld vstorea_half4_rtp(double4 data, size_t offset, __private half *p);
12765void __ovld vstorea_half8_rtp(double8 data, size_t offset, __private half *p);
12766void __ovld vstorea_half16_rtp(double16 data, size_t offset, __private half *p);
12767
12768void __ovld vstorea_half_rtn(double data, size_t offset, __private half *p);
12769void __ovld vstorea_half2_rtn(double2 data,size_t offset, __private half *p);
12770void __ovld vstorea_half3_rtn(double3 data,size_t offset, __private half *p);
12771void __ovld vstorea_half4_rtn(double4 data,size_t offset, __private half *p);
12772void __ovld vstorea_half8_rtn(double8 data,size_t offset, __private half *p);
12773void __ovld vstorea_half16_rtn(double16 data,size_t offset, __private half *p);
12774#endif //cl_khr_fp64
12775#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
12776
12777// OpenCL v1.1 s6.11.8, v1.2 s6.12.8, v2.0 s6.13.8 - Synchronization Functions
12778
12779// Flag type and values for barrier, mem_fence, read_mem_fence, write_mem_fence
12780typedef uint cl_mem_fence_flags;
12781
12782/**
12783 * Queue a memory fence to ensure correct
12784 * ordering of memory operations to local memory
12785 */
12786#define CLK_LOCAL_MEM_FENCE    0x01
12787
12788/**
12789 * Queue a memory fence to ensure correct
12790 * ordering of memory operations to global memory
12791 */
12792#define CLK_GLOBAL_MEM_FENCE   0x02
12793
12794#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
12795/**
12796 * Queue a memory fence to ensure correct ordering of memory
12797 * operations between work-items of a work-group to
12798 * image memory.
12799 */
12800#define CLK_IMAGE_MEM_FENCE  0x04
12801#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
12802
12803/**
12804 * All work-items in a work-group executing the kernel
12805 * on a processor must execute this function before any
12806 * are allowed to continue execution beyond the barrier.
12807 * This function must be encountered by all work-items in
12808 * a work-group executing the kernel.
12809 * If barrier is inside a conditional statement, then all
12810 * work-items must enter the conditional if any work-item
12811 * enters the conditional statement and executes the
12812 * barrier.
12813 * If barrer is inside a loop, all work-items must execute
12814 * the barrier for each iteration of the loop before any are
12815 * allowed to continue execution beyond the barrier.
12816 * The barrier function also queues a memory fence
12817 * (reads and writes) to ensure correct ordering of
12818 * memory operations to local or global memory.
12819 * The flags argument specifies the memory address space
12820 * and can be set to a combination of the following literal
12821 * values.
12822 * CLK_LOCAL_MEM_FENCE - The barrier function
12823 * will either flush any variables stored in local memory
12824 * or queue a memory fence to ensure correct ordering of
12825 * memory operations to local memory.
12826 * CLK_GLOBAL_MEM_FENCE - The barrier function
12827 * will queue a memory fence to ensure correct ordering
12828 * of memory operations to global memory. This can be
12829 * useful when work-items, for example, write to buffer or
12830 * image objects and then want to read the updated data.
12831 */
12832
12833void __ovld __conv barrier(cl_mem_fence_flags flags);
12834
12835#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
12836
12837typedef enum memory_scope {
12838  memory_scope_work_item = __OPENCL_MEMORY_SCOPE_WORK_ITEM,
12839  memory_scope_work_group = __OPENCL_MEMORY_SCOPE_WORK_GROUP,
12840  memory_scope_device = __OPENCL_MEMORY_SCOPE_DEVICE,
12841  memory_scope_all_svm_devices = __OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES,
12842#if defined(cl_intel_subgroups) || defined(cl_khr_subgroups)
12843  memory_scope_sub_group = __OPENCL_MEMORY_SCOPE_SUB_GROUP
12844#endif
12845memory_scope;
12846
12847void __ovld __conv work_group_barrier(cl_mem_fence_flags flagsmemory_scope scope);
12848void __ovld __conv work_group_barrier(cl_mem_fence_flags flags);
12849#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
12850
12851// OpenCL v1.1 s6.11.9, v1.2 s6.12.9 - Explicit Memory Fence Functions
12852
12853/**
12854 * Orders loads and stores of a work-item
12855 * executing a kernel. This means that loads
12856 * and stores preceding the mem_fence will
12857 * be committed to memory before any loads
12858 * and stores following the mem_fence.
12859 * The flags argument specifies the memory
12860 * address space and can be set to a
12861 * combination of the following literal
12862 * values:
12863 * CLK_LOCAL_MEM_FENCE
12864 * CLK_GLOBAL_MEM_FENCE.
12865 */
12866void __ovld mem_fence(cl_mem_fence_flags flags);
12867
12868/**
12869 * Read memory barrier that orders only
12870 * loads.
12871 * The flags argument specifies the memory
12872 * address space and can be set to a
12873 * combination of the following literal
12874 * values:
12875 * CLK_LOCAL_MEM_FENCE
12876 * CLK_GLOBAL_MEM_FENCE.
12877 */
12878void __ovld read_mem_fence(cl_mem_fence_flags flags);
12879
12880/**
12881 * Write memory barrier that orders only
12882 * stores.
12883 * The flags argument specifies the memory
12884 * address space and can be set to a
12885 * combination of the following literal
12886 * values:
12887 * CLK_LOCAL_MEM_FENCE
12888 * CLK_GLOBAL_MEM_FENCE.
12889 */
12890void __ovld write_mem_fence(cl_mem_fence_flags flags);
12891
12892// OpenCL v2.0 s6.13.9 - Address Space Qualifier Functions
12893
12894#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
12895cl_mem_fence_flags __ovld get_fence(const void *ptr);
12896cl_mem_fence_flags __ovld get_fence(void *ptr);
12897
12898/**
12899 * Builtin functions to_global, to_local, and to_private need to be declared as Clang builtin functions
12900 * and checked in Sema since they should be declared as
12901 *   addr gentype* to_addr (gentype*);
12902 * where gentype is builtin type or user defined type.
12903 */
12904
12905#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
12906
12907// 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
12908
12909/**
12910 * event_t async_work_group_copy (
12911 * __global gentype *dst,
12912 * const __local gentype *src,
12913 * size_t num_elements,
12914 * event_t event)
12915 * Perform an async copy of num_elements
12916 * gentype elements from src to dst. The async
12917 * copy is performed by all work-items in a workgroup
12918 * and this built-in function must therefore
12919 * be encountered by all work-items in a workgroup
12920 * executing the kernel with the same
12921 * argument values; otherwise the results are
12922 * undefined.
12923 * Returns an event object that can be used by
12924 * wait_group_events to wait for the async copy
12925 * to finish. The event argument can also be used
12926 * to associate the async_work_group_copy with
12927 * a previous async copy allowing an event to be
12928 * shared by multiple async copies; otherwise event
12929 * should be zero.
12930 * If event argument is non-zero, the event object
12931 * supplied in event argument will be returned.
12932 * This function does not perform any implicit
12933 * synchronization of source data such as using a
12934 * barrier before performing the copy.
12935 */
12936event_t __ovld async_work_group_copy(__local char *dst, const __global char *src, size_t num_elements, event_t event);
12937event_t __ovld async_work_group_copy(__local uchar *dst, const __global uchar *src, size_t num_elements, event_t event);
12938event_t __ovld async_work_group_copy(__local short *dst, const __global short *src, size_t num_elements, event_t event);
12939event_t __ovld async_work_group_copy(__local ushort *dst, const __global ushort *src, size_t num_elements, event_t event);
12940event_t __ovld async_work_group_copy(__local int *dst, const __global int *src, size_t num_elements, event_t event);
12941event_t __ovld async_work_group_copy(__local uint *dst, const __global uint *src, size_t num_elements, event_t event);
12942event_t __ovld async_work_group_copy(__local long *dst, const __global long *src, size_t num_elements, event_t event);
12943event_t __ovld async_work_group_copy(__local ulong *dst, const __global ulong *src, size_t num_elements, event_t event);
12944event_t __ovld async_work_group_copy(__local float *dst, const __global float *src, size_t num_elements, event_t event);
12945event_t __ovld async_work_group_copy(__local char2 *dst, const __global char2 *src, size_t num_elements, event_t event);
12946event_t __ovld async_work_group_copy(__local uchar2 *dst, const __global uchar2 *src, size_t num_elements, event_t event);
12947event_t __ovld async_work_group_copy(__local short2 *dst, const __global short2 *src, size_t num_elements, event_t event);
12948event_t __ovld async_work_group_copy(__local ushort2 *dst, const __global ushort2 *src, size_t num_elements, event_t event);
12949event_t __ovld async_work_group_copy(__local int2 *dst, const __global int2 *src, size_t num_elements, event_t event);
12950event_t __ovld async_work_group_copy(__local uint2 *dst, const __global uint2 *src, size_t num_elements, event_t event);
12951event_t __ovld async_work_group_copy(__local long2 *dst, const __global long2 *src, size_t num_elements, event_t event);
12952event_t __ovld async_work_group_copy(__local ulong2 *dst, const __global ulong2 *src, size_t num_elements, event_t event);
12953event_t __ovld async_work_group_copy(__local float2 *dst, const __global float2 *src, size_t num_elements, event_t event);
12954event_t __ovld async_work_group_copy(__local char3 *dst, const __global char3 *src, size_t num_elements, event_t event);
12955event_t __ovld async_work_group_copy(__local uchar3 *dst, const __global uchar3 *src, size_t num_elements, event_t event);
12956event_t __ovld async_work_group_copy(__local short3 *dst, const __global short3 *src, size_t num_elements, event_t event);
12957event_t __ovld async_work_group_copy(__local ushort3 *dst, const __global ushort3 *src, size_t num_elements, event_t event);
12958event_t __ovld async_work_group_copy(__local int3 *dst, const __global int3 *src, size_t num_elements, event_t event);
12959event_t __ovld async_work_group_copy(__local uint3 *dst, const __global uint3 *src, size_t num_elements, event_t event);
12960event_t __ovld async_work_group_copy(__local long3 *dst, const __global long3 *src, size_t num_elements, event_t event);
12961event_t __ovld async_work_group_copy(__local ulong3 *dst, const __global ulong3 *src, size_t num_elements, event_t event);
12962event_t __ovld async_work_group_copy(__local float3 *dst, const __global float3 *src, size_t num_elements, event_t event);
12963event_t __ovld async_work_group_copy(__local char4 *dst, const __global char4 *src, size_t num_elements, event_t event);
12964event_t __ovld async_work_group_copy(__local uchar4 *dst, const __global uchar4 *src, size_t num_elements, event_t event);
12965event_t __ovld async_work_group_copy(__local short4 *dst, const __global short4 *src, size_t num_elements, event_t event);
12966event_t __ovld async_work_group_copy(__local ushort4 *dst, const __global ushort4 *src, size_t num_elements, event_t event);
12967event_t __ovld async_work_group_copy(__local int4 *dst, const __global int4 *src, size_t num_elements, event_t event);
12968event_t __ovld async_work_group_copy(__local uint4 *dst, const __global uint4 *src, size_t num_elements, event_t event);
12969event_t __ovld async_work_group_copy(__local long4 *dst, const __global long4 *src, size_t num_elements, event_t event);
12970event_t __ovld async_work_group_copy(__local ulong4 *dst, const __global ulong4 *src, size_t num_elements, event_t event);
12971event_t __ovld async_work_group_copy(__local float4 *dst, const __global float4 *src, size_t num_elements, event_t event);
12972event_t __ovld async_work_group_copy(__local char8 *dst, const __global char8 *src, size_t num_elements, event_t event);
12973event_t __ovld async_work_group_copy(__local uchar8 *dst, const __global uchar8 *src, size_t num_elements, event_t event);
12974event_t __ovld async_work_group_copy(__local short8 *dst, const __global short8 *src, size_t num_elements, event_t event);
12975event_t __ovld async_work_group_copy(__local ushort8 *dst, const __global ushort8 *src, size_t num_elements, event_t event);
12976event_t __ovld async_work_group_copy(__local int8 *dst, const __global int8 *src, size_t num_elements, event_t event);
12977event_t __ovld async_work_group_copy(__local uint8 *dst, const __global uint8 *src, size_t num_elements, event_t event);
12978event_t __ovld async_work_group_copy(__local long8 *dst, const __global long8 *src, size_t num_elements, event_t event);
12979event_t __ovld async_work_group_copy(__local ulong8 *dst, const __global ulong8 *src, size_t num_elements, event_t event);
12980event_t __ovld async_work_group_copy(__local float8 *dst, const __global float8 *src, size_t num_elements, event_t event);
12981event_t __ovld async_work_group_copy(__local char16 *dst, const __global char16 *src, size_t num_elements, event_t event);
12982event_t __ovld async_work_group_copy(__local uchar16 *dst, const __global uchar16 *src, size_t num_elements, event_t event);
12983event_t __ovld async_work_group_copy(__local short16 *dst, const __global short16 *src, size_t num_elements, event_t event);
12984event_t __ovld async_work_group_copy(__local ushort16 *dst, const __global ushort16 *src, size_t num_elements, event_t event);
12985event_t __ovld async_work_group_copy(__local int16 *dst, const __global int16 *src, size_t num_elements, event_t event);
12986event_t __ovld async_work_group_copy(__local uint16 *dst, const __global uint16 *src, size_t num_elements, event_t event);
12987event_t __ovld async_work_group_copy(__local long16 *dst, const __global long16 *src, size_t num_elements, event_t event);
12988event_t __ovld async_work_group_copy(__local ulong16 *dst, const __global ulong16 *src, size_t num_elements, event_t event);
12989event_t __ovld async_work_group_copy(__local float16 *dst, const __global float16 *src, size_t num_elements, event_t event);
12990event_t __ovld async_work_group_copy(__global char *dst, const __local char *src, size_t num_elements, event_t event);
12991event_t __ovld async_work_group_copy(__global uchar *dst, const __local uchar *src, size_t num_elements, event_t event);
12992event_t __ovld async_work_group_copy(__global short *dst, const __local short *src, size_t num_elements, event_t event);
12993event_t __ovld async_work_group_copy(__global ushort *dst, const __local ushort *src, size_t num_elements, event_t event);
12994event_t __ovld async_work_group_copy(__global int *dst, const __local int *src, size_t num_elements, event_t event);
12995event_t __ovld async_work_group_copy(__global uint *dst, const __local uint *src, size_t num_elements, event_t event);
12996event_t __ovld async_work_group_copy(__global long *dst, const __local long *src, size_t num_elements, event_t event);
12997event_t __ovld async_work_group_copy(__global ulong *dst, const __local ulong *src, size_t num_elements, event_t event);
12998event_t __ovld async_work_group_copy(__global float *dst, const __local float *src, size_t num_elements, event_t event);
12999event_t __ovld async_work_group_copy(__global char2 *dst, const __local char2 *src, size_t num_elements, event_t event);
13000event_t __ovld async_work_group_copy(__global uchar2 *dst, const __local uchar2 *src, size_t num_elements, event_t event);
13001event_t __ovld async_work_group_copy(__global short2 *dst, const __local short2 *src, size_t num_elements, event_t event);
13002event_t __ovld async_work_group_copy(__global ushort2 *dst, const __local ushort2 *src, size_t num_elements, event_t event);
13003event_t __ovld async_work_group_copy(__global int2 *dst, const __local int2 *src, size_t num_elements, event_t event);
13004event_t __ovld async_work_group_copy(__global uint2 *dst, const __local uint2 *src, size_t num_elements, event_t event);
13005event_t __ovld async_work_group_copy(__global long2 *dst, const __local long2 *src, size_t num_elements, event_t event);
13006event_t __ovld async_work_group_copy(__global ulong2 *dst, const __local ulong2 *src, size_t num_elements, event_t event);
13007event_t __ovld async_work_group_copy(__global float2 *dst, const __local float2 *src, size_t num_elements, event_t event);
13008event_t __ovld async_work_group_copy(__global char3 *dst, const __local char3 *src, size_t num_elements, event_t event);
13009event_t __ovld async_work_group_copy(__global uchar3 *dst, const __local uchar3 *src, size_t num_elements, event_t event);
13010event_t __ovld async_work_group_copy(__global short3 *dst, const __local short3 *src, size_t num_elements, event_t event);
13011event_t __ovld async_work_group_copy(__global ushort3 *dst, const __local ushort3 *src, size_t num_elements, event_t event);
13012event_t __ovld async_work_group_copy(__global int3 *dst, const __local int3 *src, size_t num_elements, event_t event);
13013event_t __ovld async_work_group_copy(__global uint3 *dst, const __local uint3 *src, size_t num_elements, event_t event);
13014event_t __ovld async_work_group_copy(__global long3 *dst, const __local long3 *src, size_t num_elements, event_t event);
13015event_t __ovld async_work_group_copy(__global ulong3 *dst, const __local ulong3 *src, size_t num_elements, event_t event);
13016event_t __ovld async_work_group_copy(__global float3 *dst, const __local float3 *src, size_t num_elements, event_t event);
13017event_t __ovld async_work_group_copy(__global char4 *dst, const __local char4 *src, size_t num_elements, event_t event);
13018event_t __ovld async_work_group_copy(__global uchar4 *dst, const __local uchar4 *src, size_t num_elements, event_t event);
13019event_t __ovld async_work_group_copy(__global short4 *dst, const __local short4 *src, size_t num_elements, event_t event);
13020event_t __ovld async_work_group_copy(__global ushort4 *dst, const __local ushort4 *src, size_t num_elements, event_t event);
13021event_t __ovld async_work_group_copy(__global int4 *dst, const __local int4 *src, size_t num_elements, event_t event);
13022event_t __ovld async_work_group_copy(__global uint4 *dst, const __local uint4 *src, size_t num_elements, event_t event);
13023event_t __ovld async_work_group_copy(__global long4 *dst, const __local long4 *src, size_t num_elements, event_t event);
13024event_t __ovld async_work_group_copy(__global ulong4 *dst, const __local ulong4 *src, size_t num_elements, event_t event);
13025event_t __ovld async_work_group_copy(__global float4 *dst, const __local float4 *src, size_t num_elements, event_t event);
13026event_t __ovld async_work_group_copy(__global char8 *dst, const __local char8 *src, size_t num_elements, event_t event);
13027event_t __ovld async_work_group_copy(__global uchar8 *dst, const __local uchar8 *src, size_t num_elements, event_t event);
13028event_t __ovld async_work_group_copy(__global short8 *dst, const __local short8 *src, size_t num_elements, event_t event);
13029event_t __ovld async_work_group_copy(__global ushort8 *dst, const __local ushort8 *src, size_t num_elements, event_t event);
13030event_t __ovld async_work_group_copy(__global int8 *dst, const __local int8 *src, size_t num_elements, event_t event);
13031event_t __ovld async_work_group_copy(__global uint8 *dst, const __local uint8 *src, size_t num_elements, event_t event);
13032event_t __ovld async_work_group_copy(__global long8 *dst, const __local long8 *src, size_t num_elements, event_t event);
13033event_t __ovld async_work_group_copy(__global ulong8 *dst, const __local ulong8 *src, size_t num_elements, event_t event);
13034event_t __ovld async_work_group_copy(__global float8 *dst, const __local float8 *src, size_t num_elements, event_t event);
13035event_t __ovld async_work_group_copy(__global char16 *dst, const __local char16 *src, size_t num_elements, event_t event);
13036event_t __ovld async_work_group_copy(__global uchar16 *dst, const __local uchar16 *src, size_t num_elements, event_t event);
13037event_t __ovld async_work_group_copy(__global short16 *dst, const __local short16 *src, size_t num_elements, event_t event);
13038event_t __ovld async_work_group_copy(__global ushort16 *dst, const __local ushort16 *src, size_t num_elements, event_t event);
13039event_t __ovld async_work_group_copy(__global int16 *dst, const __local int16 *src, size_t num_elements, event_t event);
13040event_t __ovld async_work_group_copy(__global uint16 *dst, const __local uint16 *src, size_t num_elements, event_t event);
13041event_t __ovld async_work_group_copy(__global long16 *dst, const __local long16 *src, size_t num_elements, event_t event);
13042event_t __ovld async_work_group_copy(__global ulong16 *dst, const __local ulong16 *src, size_t num_elements, event_t event);
13043event_t __ovld async_work_group_copy(__global float16 *dst, const __local float16 *src, size_t num_elements, event_t event);
13044#ifdef cl_khr_fp64
13045event_t __ovld async_work_group_copy(__local double *dst, const __global double *src, size_t num_elements, event_t event);
13046event_t __ovld async_work_group_copy(__local double2 *dst, const __global double2 *src, size_t num_elements, event_t event);
13047event_t __ovld async_work_group_copy(__local double3 *dst, const __global double3 *src, size_t num_elements, event_t event);
13048event_t __ovld async_work_group_copy(__local double4 *dst, const __global double4 *src, size_t num_elements, event_t event);
13049event_t __ovld async_work_group_copy(__local double8 *dst, const __global double8 *src, size_t num_elements, event_t event);
13050event_t __ovld async_work_group_copy(__local double16 *dst, const __global double16 *src, size_t num_elements, event_t event);
13051event_t __ovld async_work_group_copy(__global double *dst, const __local double *src, size_t num_elements, event_t event);
13052event_t __ovld async_work_group_copy(__global double2 *dst, const __local double2 *src, size_t num_elements, event_t event);
13053event_t __ovld async_work_group_copy(__global double3 *dst, const __local double3 *src, size_t num_elements, event_t event);
13054event_t __ovld async_work_group_copy(__global double4 *dst, const __local double4 *src, size_t num_elements, event_t event);
13055event_t __ovld async_work_group_copy(__global double8 *dst, const __local double8 *src, size_t num_elements, event_t event);
13056event_t __ovld async_work_group_copy(__global double16 *dst, const __local double16 *src, size_t num_elements, event_t event);
13057#endif //cl_khr_fp64
13058#ifdef cl_khr_fp16
13059event_t __ovld async_work_group_copy(__local half *dst, const __global half *src, size_t num_elements, event_t event);
13060event_t __ovld async_work_group_copy(__local half2 *dst, const __global half2 *src, size_t num_elements, event_t event);
13061event_t __ovld async_work_group_copy(__local half3 *dst, const __global half3 *src, size_t num_elements, event_t event);
13062event_t __ovld async_work_group_copy(__local half4 *dst, const __global half4 *src, size_t num_elements, event_t event);
13063event_t __ovld async_work_group_copy(__local half8 *dst, const __global half8 *src, size_t num_elements, event_t event);
13064event_t __ovld async_work_group_copy(__local half16 *dst, const __global half16 *src, size_t num_elements, event_t event);
13065event_t __ovld async_work_group_copy(__global half *dst, const __local half *src, size_t num_elements, event_t event);
13066event_t __ovld async_work_group_copy(__global half2 *dst, const __local half2 *src, size_t num_elements, event_t event);
13067event_t __ovld async_work_group_copy(__global half3 *dst, const __local half3 *src, size_t num_elements, event_t event);
13068event_t __ovld async_work_group_copy(__global half4 *dst, const __local half4 *src, size_t num_elements, event_t event);
13069event_t __ovld async_work_group_copy(__global half8 *dst, const __local half8 *src, size_t num_elements, event_t event);
13070event_t __ovld async_work_group_copy(__global half16 *dst, const __local half16 *src, size_t num_elements, event_t event);
13071#endif //cl_khr_fp16
13072
13073/**
13074 * Perform an async gather of num_elements
13075 * gentype elements from src to dst. The
13076 * src_stride is the stride in elements for each
13077 * gentype element read from src. The dst_stride
13078 * is the stride in elements for each gentype
13079 * element written to dst. The async gather is
13080 * performed by all work-items in a work-group.
13081 * This built-in function must therefore be
13082 * encountered by all work-items in a work-group
13083 * executing the kernel with the same argument
13084 * values; otherwise the results are undefined.
13085 * Returns an event object that can be used by
13086 * wait_group_events to wait for the async copy
13087 * to finish. The event argument can also be used
13088 * to associate the
13089 * async_work_group_strided_copy with a
13090 * previous async copy allowing an event to be
13091 * shared by multiple async copies; otherwise event
13092 * should be zero.
13093 * If event argument is non-zero, the event object
13094 * supplied in event argument will be returned.
13095 * This function does not perform any implicit
13096 * synchronization of source data such as using a
13097 * barrier before performing the copy.
13098 */
13099event_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);
13100event_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);
13101event_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);
13102event_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);
13103event_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);
13104event_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);
13105event_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);
13106event_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);
13107event_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);
13108event_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);
13109event_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);
13110event_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);
13111event_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);
13112event_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);
13113event_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);
13114event_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);
13115event_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);
13116event_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);
13117event_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);
13118event_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);
13119event_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);
13120event_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);
13121event_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);
13122event_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);
13123event_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);
13124event_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);
13125event_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);
13126event_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);
13127event_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);
13128event_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);
13129event_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);
13130event_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);
13131event_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);
13132event_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);
13133event_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);
13134event_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);
13135event_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);
13136event_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);
13137event_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);
13138event_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);
13139event_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);
13140event_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);
13141event_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);
13142event_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);
13143event_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);
13144event_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);
13145event_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);
13146event_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);
13147event_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);
13148event_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);
13149event_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);
13150event_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);
13151event_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);
13152event_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);
13153event_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);
13154event_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);
13155event_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);
13156event_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);
13157event_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);
13158event_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);
13159event_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);
13160event_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);
13161event_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);
13162event_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);
13163event_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);
13164event_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);
13165event_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);
13166event_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);
13167event_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);
13168event_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);
13169event_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);
13170event_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);
13171event_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);
13172event_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);
13173event_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);
13174event_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);
13175event_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);
13176event_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);
13177event_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);
13178event_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);
13179event_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);
13180event_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);
13181event_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);
13182event_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);
13183event_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);
13184event_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);
13185event_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);
13186event_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);
13187event_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);
13188event_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);
13189event_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);
13190event_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);
13191event_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);
13192event_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);
13193event_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);
13194event_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);
13195event_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);
13196event_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);
13197event_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);
13198event_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);
13199event_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);
13200event_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);
13201event_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);
13202event_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);
13203event_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);
13204event_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);
13205event_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);
13206event_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);
13207#ifdef cl_khr_fp64
13208event_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);
13209event_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);
13210event_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);
13211event_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);
13212event_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);
13213event_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);
13214event_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);
13215event_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);
13216event_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);
13217event_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);
13218event_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);
13219event_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);
13220#endif //cl_khr_fp64
13221#ifdef cl_khr_fp16
13222event_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);
13223event_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);
13224event_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);
13225event_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);
13226event_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);
13227event_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);
13228event_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);
13229event_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);
13230event_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);
13231event_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);
13232event_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);
13233event_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);
13234#endif //cl_khr_fp16
13235
13236/**
13237 * Wait for events that identify the
13238 * async_work_group_copy operations to
13239 * complete. The event objects specified in
13240 * event_list will be released after the wait is
13241 * performed.
13242 * This function must be encountered by all workitems
13243 * in a work-group executing the kernel with
13244 * the same num_events and event objects specified
13245 * in event_list; otherwise the results are undefined.
13246 */
13247void __ovld wait_group_events(int num_events, event_t *event_list);
13248
13249/**
13250 * Prefetch num_elements * sizeof(gentype)
13251 * bytes into the global cache. The prefetch
13252 * instruction is applied to a work-item in a workgroup
13253 * and does not affect the functional
13254 * behavior of the kernel.
13255 */
13256void __ovld prefetch(const __global char *psize_t num_elements);
13257void __ovld prefetch(const __global uchar *p, size_t num_elements);
13258void __ovld prefetch(const __global short *psize_t num_elements);
13259void __ovld prefetch(const __global ushort *p, size_t num_elements);
13260void __ovld prefetch(const __global int *psize_t num_elements);
13261void __ovld prefetch(const __global uint *p, size_t num_elements);
13262void __ovld prefetch(const __global long *psize_t num_elements);
13263void __ovld prefetch(const __global ulong *p, size_t num_elements);
13264void __ovld prefetch(const __global float *psize_t num_elements);
13265void __ovld prefetch(const __global char2 *p, size_t num_elements);
13266void __ovld prefetch(const __global uchar2 *p, size_t num_elements);
13267void __ovld prefetch(const __global short2 *p, size_t num_elements);
13268void __ovld prefetch(const __global ushort2 *p, size_t num_elements);
13269void __ovld prefetch(const __global int2 *p, size_t num_elements);
13270void __ovld prefetch(const __global uint2 *p, size_t num_elements);
13271void __ovld prefetch(const __global long2 *p, size_t num_elements);
13272void __ovld prefetch(const __global ulong2 *p, size_t num_elements);
13273void __ovld prefetch(const __global float2 *p, size_t num_elements);
13274void __ovld prefetch(const __global char3 *p, size_t num_elements);
13275void __ovld prefetch(const __global uchar3 *p, size_t num_elements);
13276void __ovld prefetch(const __global short3 *p, size_t num_elements);
13277void __ovld prefetch(const __global ushort3 *p, size_t num_elements);
13278void __ovld prefetch(const __global int3 *p, size_t num_elements);
13279void __ovld prefetch(const __global uint3 *p, size_t num_elements);
13280void __ovld prefetch(const __global long3 *p, size_t num_elements);
13281void __ovld prefetch(const __global ulong3 *p, size_t num_elements);
13282void __ovld prefetch(const __global float3 *p, size_t num_elements);
13283void __ovld prefetch(const __global char4 *p, size_t num_elements);
13284void __ovld prefetch(const __global uchar4 *p, size_t num_elements);
13285void __ovld prefetch(const __global short4 *p, size_t num_elements);
13286void __ovld prefetch(const __global ushort4 *p, size_t num_elements);
13287void __ovld prefetch(const __global int4 *p, size_t num_elements);
13288void __ovld prefetch(const __global uint4 *p, size_t num_elements);
13289void __ovld prefetch(const __global long4 *p, size_t num_elements);
13290void __ovld prefetch(const __global ulong4 *p, size_t num_elements);
13291void __ovld prefetch(const __global float4 *p, size_t num_elements);
13292void __ovld prefetch(const __global char8 *p, size_t num_elements);
13293void __ovld prefetch(const __global uchar8 *p, size_t num_elements);
13294void __ovld prefetch(const __global short8 *p, size_t num_elements);
13295void __ovld prefetch(const __global ushort8 *p, size_t num_elements);
13296void __ovld prefetch(const __global int8 *p, size_t num_elements);
13297void __ovld prefetch(const __global uint8 *p, size_t num_elements);
13298void __ovld prefetch(const __global long8 *p, size_t num_elements);
13299void __ovld prefetch(const __global ulong8 *p, size_t num_elements);
13300void __ovld prefetch(const __global float8 *p, size_t num_elements);
13301void __ovld prefetch(const __global char16 *p, size_t num_elements);
13302void __ovld prefetch(const __global uchar16 *p, size_t num_elements);
13303void __ovld prefetch(const __global short16 *p, size_t num_elements);
13304void __ovld prefetch(const __global ushort16 *p, size_t num_elements);
13305void __ovld prefetch(const __global int16 *p, size_t num_elements);
13306void __ovld prefetch(const __global uint16 *p, size_t num_elements);
13307void __ovld prefetch(const __global long16 *p, size_t num_elements);
13308void __ovld prefetch(const __global ulong16 *p, size_t num_elements);
13309void __ovld prefetch(const __global float16 *p, size_t num_elements);
13310#ifdef cl_khr_fp64
13311void __ovld prefetch(const __global double *p, size_t num_elements);
13312void __ovld prefetch(const __global double2 *p, size_t num_elements);
13313void __ovld prefetch(const __global double3 *p, size_t num_elements);
13314void __ovld prefetch(const __global double4 *p, size_t num_elements);
13315void __ovld prefetch(const __global double8 *p, size_t num_elements);
13316void __ovld prefetch(const __global double16 *p, size_t num_elements);
13317#endif //cl_khr_fp64
13318#ifdef cl_khr_fp16
13319void __ovld prefetch(const __global half *p, size_t num_elements);
13320void __ovld prefetch(const __global half2 *p, size_t num_elements);
13321void __ovld prefetch(const __global half3 *p, size_t num_elements);
13322void __ovld prefetch(const __global half4 *p, size_t num_elements);
13323void __ovld prefetch(const __global half8 *p, size_t num_elements);
13324void __ovld prefetch(const __global half16 *p, size_t num_elements);
13325#endif // cl_khr_fp16
13326
13327// OpenCL v1.1 s6.11.1, v1.2 s6.12.11 - Atomic Functions
13328
13329#if defined(cl_khr_int64_base_atomics) && defined(cl_khr_int64_extended_atomics)
13330#pragma OPENCL EXTENSION cl_khr_int64_base_atomics : enable
13331#pragma OPENCL EXTENSION cl_khr_int64_extended_atomics : enable
13332#endif
13333/**
13334 * Read the 32-bit value (referred to as old)
13335 * stored at location pointed by p. Compute
13336 * (old + val) and store result at location
13337 * pointed by p. The function returns old.
13338 */
13339int __ovld atomic_add(volatile __global int *pint val);
13340unsigned int __ovld atomic_add(volatile __global unsigned int *punsigned int val);
13341int __ovld atomic_add(volatile __local int *pint val);
13342unsigned int __ovld atomic_add(volatile __local unsigned int *punsigned int val);
13343
13344#if defined(cl_khr_global_int32_base_atomics)
13345int __ovld atom_add(volatile __global int *p, int val);
13346unsigned int __ovld atom_add(volatile __global unsigned int *p, unsigned int val);
13347#endif
13348#if defined(cl_khr_local_int32_base_atomics)
13349int __ovld atom_add(volatile __local int *p, int val);
13350unsigned int __ovld atom_add(volatile __local unsigned int *p, unsigned int val);
13351#endif
13352
13353#if defined(cl_khr_int64_base_atomics)
13354long __ovld atom_add(volatile __global long *p, long val);
13355unsigned long __ovld atom_add(volatile __global unsigned long *p, unsigned long val);
13356long __ovld atom_add(volatile __local long *p, long val);
13357unsigned long __ovld atom_add(volatile __local unsigned long *p, unsigned long val);
13358#endif
13359
13360/**
13361 * Read the 32-bit value (referred to as old) stored at location pointed by p.
13362 * Compute (old - val) and store result at location pointed by p. The function
13363 * returns old.
13364 */
13365int __ovld atomic_sub(volatile __global int *pint val);
13366unsigned int __ovld atomic_sub(volatile __global unsigned int *punsigned int val);
13367int __ovld atomic_sub(volatile __local int *pint val);
13368unsigned int __ovld atomic_sub(volatile __local unsigned int *punsigned int val);
13369
13370#if defined(cl_khr_global_int32_base_atomics)
13371int __ovld atom_sub(volatile __global int *p, int val);
13372unsigned int __ovld atom_sub(volatile __global unsigned int *p, unsigned int val);
13373#endif
13374#if defined(cl_khr_local_int32_base_atomics)
13375int __ovld atom_sub(volatile __local int *p, int val);
13376unsigned int __ovld atom_sub(volatile __local unsigned int *p, unsigned int val);
13377#endif
13378
13379#if defined(cl_khr_int64_base_atomics)
13380long __ovld atom_sub(volatile __global long *p, long val);
13381unsigned long __ovld atom_sub(volatile __global unsigned long *p, unsigned long val);
13382long __ovld atom_sub(volatile __local long *p, long val);
13383unsigned long __ovld atom_sub(volatile __local unsigned long *p, unsigned long val);
13384#endif
13385
13386/**
13387 * Swaps the old value stored at location p
13388 * with new value given by val. Returns old
13389 * value.
13390 */
13391int __ovld atomic_xchg(volatile __global int *pint val);
13392unsigned int __ovld atomic_xchg(volatile __global unsigned int *punsigned int val);
13393int __ovld atomic_xchg(volatile __local int *pint val);
13394unsigned int __ovld atomic_xchg(volatile __local unsigned int *punsigned int val);
13395float __ovld atomic_xchg(volatile __global float *pfloat val);
13396float __ovld atomic_xchg(volatile __local float *pfloat val);
13397
13398#if defined(cl_khr_global_int32_base_atomics)
13399int __ovld atom_xchg(volatile __global int *p, int val);
13400unsigned int __ovld atom_xchg(volatile __global unsigned int *p, unsigned int val);
13401#endif
13402#if defined(cl_khr_local_int32_base_atomics)
13403int __ovld atom_xchg(volatile __local int *p, int val);
13404unsigned int __ovld atom_xchg(volatile __local unsigned int *p, unsigned int val);
13405#endif
13406
13407#if defined(cl_khr_int64_base_atomics)
13408long __ovld atom_xchg(volatile __global long *p, long val);
13409long __ovld atom_xchg(volatile __local long *p, long val);
13410unsigned long __ovld atom_xchg(volatile __global unsigned long *p, unsigned long val);
13411unsigned long __ovld atom_xchg(volatile __local unsigned long *p, unsigned long val);
13412#endif
13413
13414/**
13415 * Read the 32-bit value (referred to as old)
13416 * stored at location pointed by p. Compute
13417 * (old + 1) and store result at location
13418 * pointed by p. The function returns old.
13419 */
13420int __ovld atomic_inc(volatile __global int *p);
13421unsigned int __ovld atomic_inc(volatile __global unsigned int *p);
13422int __ovld atomic_inc(volatile __local int *p);
13423unsigned int __ovld atomic_inc(volatile __local unsigned int *p);
13424
13425#if defined(cl_khr_global_int32_base_atomics)
13426int __ovld atom_inc(volatile __global int *p);
13427unsigned int __ovld atom_inc(volatile __global unsigned int *p);
13428#endif
13429#if defined(cl_khr_local_int32_base_atomics)
13430int __ovld atom_inc(volatile __local int *p);
13431unsigned int __ovld atom_inc(volatile __local unsigned int *p);
13432#endif
13433
13434#if defined(cl_khr_int64_base_atomics)
13435long __ovld atom_inc(volatile __global long *p);
13436unsigned long __ovld atom_inc(volatile __global unsigned long *p);
13437long __ovld atom_inc(volatile __local long *p);
13438unsigned long __ovld atom_inc(volatile __local unsigned long *p);
13439#endif
13440
13441/**
13442 * Read the 32-bit value (referred to as old)
13443 * stored at location pointed by p. Compute
13444 * (old - 1) and store result at location
13445 * pointed by p. The function returns old.
13446 */
13447int __ovld atomic_dec(volatile __global int *p);
13448unsigned int __ovld atomic_dec(volatile __global unsigned int *p);
13449int __ovld atomic_dec(volatile __local int *p);
13450unsigned int __ovld atomic_dec(volatile __local unsigned int *p);
13451
13452#if defined(cl_khr_global_int32_base_atomics)
13453int __ovld atom_dec(volatile __global int *p);
13454unsigned int __ovld atom_dec(volatile __global unsigned int *p);
13455#endif
13456#if defined(cl_khr_local_int32_base_atomics)
13457int __ovld atom_dec(volatile __local int *p);
13458unsigned int __ovld atom_dec(volatile __local unsigned int *p);
13459#endif
13460
13461#if defined(cl_khr_int64_base_atomics)
13462long __ovld atom_dec(volatile __global long *p);
13463unsigned long __ovld atom_dec(volatile __global unsigned long *p);
13464long __ovld atom_dec(volatile __local long *p);
13465unsigned long __ovld atom_dec(volatile __local unsigned long *p);
13466#endif
13467
13468/**
13469 * Read the 32-bit value (referred to as old)
13470 * stored at location pointed by p. Compute
13471 * (old == cmp) ? val : old and store result at
13472 * location pointed by p. The function
13473 * returns old.
13474 */
13475int __ovld atomic_cmpxchg(volatile __global int *pint cmpint val);
13476unsigned int __ovld atomic_cmpxchg(volatile __global unsigned int *punsigned int cmpunsigned int val);
13477int __ovld atomic_cmpxchg(volatile __local int *pint cmpint val);
13478unsigned int __ovld atomic_cmpxchg(volatile __local unsigned int *punsigned int cmpunsigned int val);
13479
13480#if defined(cl_khr_global_int32_base_atomics)
13481int __ovld atom_cmpxchg(volatile __global int *p, int cmp, int val);
13482unsigned int __ovld atom_cmpxchg(volatile __global unsigned int *p, unsigned int cmp, unsigned int val);
13483#endif
13484#if defined(cl_khr_local_int32_base_atomics)
13485int __ovld atom_cmpxchg(volatile __local int *p, int cmp, int val);
13486unsigned int __ovld atom_cmpxchg(volatile __local unsigned int *p, unsigned int cmp, unsigned int val);
13487#endif
13488
13489#if defined(cl_khr_int64_base_atomics)
13490long __ovld atom_cmpxchg(volatile __global long *p, long cmp, long val);
13491unsigned long __ovld atom_cmpxchg(volatile __global unsigned long *p, unsigned long cmp, unsigned long val);
13492long __ovld atom_cmpxchg(volatile __local long *p, long cmp, long val);
13493unsigned long __ovld atom_cmpxchg(volatile __local unsigned long *p, unsigned long cmp, unsigned long val);
13494#endif
13495
13496/**
13497 * Read the 32-bit value (referred to as old)
13498 * stored at location pointed by p. Compute
13499 * min(old, val) and store minimum value at
13500 * location pointed by p. The function
13501 * returns old.
13502 */
13503int __ovld atomic_min(volatile __global int *pint val);
13504unsigned int __ovld atomic_min(volatile __global unsigned int *punsigned int val);
13505int __ovld atomic_min(volatile __local int *pint val);
13506unsigned int __ovld atomic_min(volatile __local unsigned int *punsigned int val);
13507
13508#if defined(cl_khr_global_int32_extended_atomics)
13509int __ovld atom_min(volatile __global int *p, int val);
13510unsigned int __ovld atom_min(volatile __global unsigned int *p, unsigned int val);
13511#endif
13512#if defined(cl_khr_local_int32_extended_atomics)
13513int __ovld atom_min(volatile __local int *p, int val);
13514unsigned int __ovld atom_min(volatile __local unsigned int *p, unsigned int val);
13515#endif
13516
13517#if defined(cl_khr_int64_extended_atomics)
13518long __ovld atom_min(volatile __global long *p, long val);
13519unsigned long __ovld atom_min(volatile __global unsigned long *p, unsigned long val);
13520long __ovld atom_min(volatile __local long *p, long val);
13521unsigned long __ovld atom_min(volatile __local unsigned long *p, unsigned long val);
13522#endif
13523
13524/**
13525 * Read the 32-bit value (referred to as old)
13526 * stored at location pointed by p. Compute
13527 * max(old, val) and store maximum value at
13528 * location pointed by p. The function
13529 * returns old.
13530 */
13531int __ovld atomic_max(volatile __global int *pint val);
13532unsigned int __ovld atomic_max(volatile __global unsigned int *punsigned int val);
13533int __ovld atomic_max(volatile __local int *pint val);
13534unsigned int __ovld atomic_max(volatile __local unsigned int *punsigned int val);
13535
13536#if defined(cl_khr_global_int32_extended_atomics)
13537int __ovld atom_max(volatile __global int *p, int val);
13538unsigned int __ovld atom_max(volatile __global unsigned int *p, unsigned int val);
13539#endif
13540#if defined(cl_khr_local_int32_extended_atomics)
13541int __ovld atom_max(volatile __local int *p, int val);
13542unsigned int __ovld atom_max(volatile __local unsigned int *p, unsigned int val);
13543#endif
13544
13545#if defined(cl_khr_int64_extended_atomics)
13546long __ovld atom_max(volatile __global long *p, long val);
13547unsigned long __ovld atom_max(volatile __global unsigned long *p, unsigned long val);
13548long __ovld atom_max(volatile __local long *p, long val);
13549unsigned long __ovld atom_max(volatile __local unsigned long *p, unsigned long val);
13550#endif
13551
13552/**
13553 * Read the 32-bit value (referred to as old)
13554 * stored at location pointed by p. Compute
13555 * (old & val) and store result at location
13556 * pointed by p. The function returns old.
13557 */
13558int __ovld atomic_and(volatile __global int *pint val);
13559unsigned int __ovld atomic_and(volatile __global unsigned int *punsigned int val);
13560int __ovld atomic_and(volatile __local int *pint val);
13561unsigned int __ovld atomic_and(volatile __local unsigned int *punsigned int val);
13562
13563#if defined(cl_khr_global_int32_extended_atomics)
13564int __ovld atom_and(volatile __global int *p, int val);
13565unsigned int __ovld atom_and(volatile __global unsigned int *p, unsigned int val);
13566#endif
13567#if defined(cl_khr_local_int32_extended_atomics)
13568int __ovld atom_and(volatile __local int *p, int val);
13569unsigned int __ovld atom_and(volatile __local unsigned int *p, unsigned int val);
13570#endif
13571
13572#if defined(cl_khr_int64_extended_atomics)
13573long __ovld atom_and(volatile __global long *p, long val);
13574unsigned long __ovld atom_and(volatile __global unsigned long *p, unsigned long val);
13575long __ovld atom_and(volatile __local long *p, long val);
13576unsigned long __ovld atom_and(volatile __local unsigned long *p, unsigned long val);
13577#endif
13578
13579/**
13580 * Read the 32-bit value (referred to as old)
13581 * stored at location pointed by p. Compute
13582 * (old | val) and store result at location
13583 * pointed by p. The function returns old.
13584 */
13585int __ovld atomic_or(volatile __global int *pint val);
13586unsigned int __ovld atomic_or(volatile __global unsigned int *punsigned int val);
13587int __ovld atomic_or(volatile __local int *pint val);
13588unsigned int __ovld atomic_or(volatile __local unsigned int *punsigned int val);
13589
13590#if defined(cl_khr_global_int32_extended_atomics)
13591int __ovld atom_or(volatile __global int *p, int val);
13592unsigned int __ovld atom_or(volatile __global unsigned int *p, unsigned int val);
13593#endif
13594#if defined(cl_khr_local_int32_extended_atomics)
13595int __ovld atom_or(volatile __local int *p, int val);
13596unsigned int __ovld atom_or(volatile __local unsigned int *p, unsigned int val);
13597#endif
13598
13599#if defined(cl_khr_int64_extended_atomics)
13600long __ovld atom_or(volatile __global long *p, long val);
13601unsigned long __ovld atom_or(volatile __global unsigned long *p, unsigned long val);
13602long __ovld atom_or(volatile __local long *p, long val);
13603unsigned long __ovld atom_or(volatile __local unsigned long *p, unsigned long val);
13604#endif
13605
13606/**
13607 * Read the 32-bit value (referred to as old)
13608 * stored at location pointed by p. Compute
13609 * (old ^ val) and store result at location
13610 * pointed by p. The function returns old.
13611 */
13612int __ovld atomic_xor(volatile __global int *pint val);
13613unsigned int __ovld atomic_xor(volatile __global unsigned int *punsigned int val);
13614int __ovld atomic_xor(volatile __local int *pint val);
13615unsigned int __ovld atomic_xor(volatile __local unsigned int *punsigned int val);
13616
13617#if defined(cl_khr_global_int32_extended_atomics)
13618int __ovld atom_xor(volatile __global int *p, int val);
13619unsigned int __ovld atom_xor(volatile __global unsigned int *p, unsigned int val);
13620#endif
13621#if defined(cl_khr_local_int32_extended_atomics)
13622int __ovld atom_xor(volatile __local int *p, int val);
13623unsigned int __ovld atom_xor(volatile __local unsigned int *p, unsigned int val);
13624#endif
13625
13626#if defined(cl_khr_int64_extended_atomics)
13627long __ovld atom_xor(volatile __global long *p, long val);
13628unsigned long __ovld atom_xor(volatile __global unsigned long *p, unsigned long val);
13629long __ovld atom_xor(volatile __local long *p, long val);
13630unsigned long __ovld atom_xor(volatile __local unsigned long *p, unsigned long val);
13631#endif
13632
13633#if defined(cl_khr_int64_base_atomics) && defined(cl_khr_int64_extended_atomics)
13634#pragma OPENCL EXTENSION cl_khr_int64_base_atomics : disable
13635#pragma OPENCL EXTENSION cl_khr_int64_extended_atomics : disable
13636#endif
13637
13638// OpenCL v2.0 s6.13.11 - Atomics Functions
13639
13640#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
13641#ifndef ATOMIC_VAR_INIT
13642#define ATOMIC_VAR_INIT(x) (x)
13643#endif //ATOMIC_VAR_INIT
13644#define ATOMIC_FLAG_INIT 0
13645
13646// enum values aligned with what clang uses in EmitAtomicExpr()
13647typedef enum memory_order
13648{
13649  memory_order_relaxed = __ATOMIC_RELAXED,
13650  memory_order_acquire = __ATOMIC_ACQUIRE,
13651  memory_order_release = __ATOMIC_RELEASE,
13652  memory_order_acq_rel = __ATOMIC_ACQ_REL,
13653  memory_order_seq_cst = __ATOMIC_SEQ_CST
13654memory_order;
13655
13656// double atomics support requires extensions cl_khr_int64_base_atomics and cl_khr_int64_extended_atomics
13657#if defined(cl_khr_int64_base_atomics) && defined(cl_khr_int64_extended_atomics)
13658#pragma OPENCL EXTENSION cl_khr_int64_base_atomics : enable
13659#pragma OPENCL EXTENSION cl_khr_int64_extended_atomics : enable
13660#endif
13661
13662// atomic_init()
13663void __ovld atomic_init(volatile atomic_int *objectint value);
13664void __ovld atomic_init(volatile atomic_uint *objectuint value);
13665void __ovld atomic_init(volatile atomic_float *objectfloat value);
13666#if defined(cl_khr_int64_base_atomics) && defined(cl_khr_int64_extended_atomics)
13667void __ovld atomic_init(volatile atomic_long *object, long value);
13668void __ovld atomic_init(volatile atomic_ulong *object, ulong value);
13669#ifdef cl_khr_fp64
13670void __ovld atomic_init(volatile atomic_double *object, double value);
13671#endif //cl_khr_fp64
13672#endif
13673
13674// atomic_work_item_fence()
13675void __ovld atomic_work_item_fence(cl_mem_fence_flags flagsmemory_order ordermemory_scope scope);
13676
13677// atomic_fetch()
13678
13679int __ovld atomic_fetch_add(volatile atomic_int *objectint operand);
13680int __ovld atomic_fetch_add_explicit(volatile atomic_int *objectint operandmemory_order order);
13681int __ovld atomic_fetch_add_explicit(volatile atomic_int *objectint operandmemory_order ordermemory_scope scope);
13682uint __ovld atomic_fetch_add(volatile atomic_uint *objectuint operand);
13683uint __ovld atomic_fetch_add_explicit(volatile atomic_uint *objectuint operandmemory_order order);
13684uint __ovld atomic_fetch_add_explicit(volatile atomic_uint *objectuint operandmemory_order ordermemory_scope scope);
13685int __ovld atomic_fetch_sub(volatile atomic_int *objectint operand);
13686int __ovld atomic_fetch_sub_explicit(volatile atomic_int *objectint operandmemory_order order);
13687int __ovld atomic_fetch_sub_explicit(volatile atomic_int *objectint operandmemory_order ordermemory_scope scope);
13688uint __ovld atomic_fetch_sub(volatile atomic_uint *objectuint operand);
13689uint __ovld atomic_fetch_sub_explicit(volatile atomic_uint *objectuint operandmemory_order order);
13690uint __ovld atomic_fetch_sub_explicit(volatile atomic_uint *objectuint operandmemory_order ordermemory_scope scope);
13691int __ovld atomic_fetch_or(volatile atomic_int *objectint operand);
13692int __ovld atomic_fetch_or_explicit(volatile atomic_int *objectint operandmemory_order order);
13693int __ovld atomic_fetch_or_explicit(volatile atomic_int *objectint operandmemory_order ordermemory_scope scope);
13694uint __ovld atomic_fetch_or(volatile atomic_uint *objectuint operand);
13695uint __ovld atomic_fetch_or_explicit(volatile atomic_uint *objectuint operandmemory_order order);
13696uint __ovld atomic_fetch_or_explicit(volatile atomic_uint *objectuint operandmemory_order ordermemory_scope scope);
13697int __ovld atomic_fetch_xor(volatile atomic_int *objectint operand);
13698int __ovld atomic_fetch_xor_explicit(volatile atomic_int *objectint operandmemory_order order);
13699int __ovld atomic_fetch_xor_explicit(volatile atomic_int *objectint operandmemory_order ordermemory_scope scope);
13700uint __ovld atomic_fetch_xor(volatile atomic_uint *objectuint operand);
13701uint __ovld atomic_fetch_xor_explicit(volatile atomic_uint *objectuint operandmemory_order order);
13702uint __ovld atomic_fetch_xor_explicit(volatile atomic_uint *objectuint operandmemory_order ordermemory_scope scope);
13703int __ovld atomic_fetch_and(volatile atomic_int *objectint operand);
13704int __ovld atomic_fetch_and_explicit(volatile atomic_int *objectint operandmemory_order order);
13705int __ovld atomic_fetch_and_explicit(volatile atomic_int *objectint operandmemory_order ordermemory_scope scope);
13706uint __ovld atomic_fetch_and(volatile atomic_uint *objectuint operand);
13707uint __ovld atomic_fetch_and_explicit(volatile atomic_uint *objectuint operandmemory_order order);
13708uint __ovld atomic_fetch_and_explicit(volatile atomic_uint *objectuint operandmemory_order ordermemory_scope scope);
13709int __ovld atomic_fetch_min(volatile atomic_int *objectint operand);
13710int __ovld atomic_fetch_min_explicit(volatile atomic_int *objectint operandmemory_order order);
13711int __ovld atomic_fetch_min_explicit(volatile atomic_int *objectint operandmemory_order ordermemory_scope scope);
13712uint __ovld atomic_fetch_min(volatile atomic_uint *objectuint operand);
13713uint __ovld atomic_fetch_min_explicit(volatile atomic_uint *objectuint operandmemory_order order);
13714uint __ovld atomic_fetch_min_explicit(volatile atomic_uint *objectuint operandmemory_order ordermemory_scope scope);
13715uint __ovld atomic_fetch_min(volatile atomic_uint *objectint operand);
13716uint __ovld atomic_fetch_min_explicit(volatile atomic_uint *objectint operandmemory_order order);
13717uint __ovld atomic_fetch_min_explicit(volatile atomic_uint *objectint operandmemory_order ordermemory_scope scope);
13718int __ovld atomic_fetch_max(volatile atomic_int *objectint operand);
13719int __ovld atomic_fetch_max_explicit(volatile atomic_int *objectint operandmemory_order order);
13720int __ovld atomic_fetch_max_explicit(volatile atomic_int *objectint operandmemory_order ordermemory_scope scope);
13721uint __ovld atomic_fetch_max(volatile atomic_uint *objectuint operand);
13722uint __ovld atomic_fetch_max_explicit(volatile atomic_uint *objectuint operandmemory_order order);
13723uint __ovld atomic_fetch_max_explicit(volatile atomic_uint *objectuint operandmemory_order ordermemory_scope scope);
13724uint __ovld atomic_fetch_max(volatile atomic_uint *objectint operand);
13725uint __ovld atomic_fetch_max_explicit(volatile atomic_uint *objectint operandmemory_order order);
13726uint __ovld atomic_fetch_max_explicit(volatile atomic_uint *objectint operandmemory_order ordermemory_scope scope);
13727
13728#if defined(cl_khr_int64_base_atomics) && defined(cl_khr_int64_extended_atomics)
13729long __ovld atomic_fetch_add(volatile atomic_long *object, long operand);
13730long __ovld atomic_fetch_add_explicit(volatile atomic_long *object, long operand, memory_order order);
13731long __ovld atomic_fetch_add_explicit(volatile atomic_long *object, long operand, memory_order order, memory_scope scope);
13732ulong __ovld atomic_fetch_add(volatile atomic_ulong *object, ulong operand);
13733ulong __ovld atomic_fetch_add_explicit(volatile atomic_ulong *object, ulong operand, memory_order order);
13734ulong __ovld atomic_fetch_add_explicit(volatile atomic_ulong *object, ulong operand, memory_order order, memory_scope scope);
13735long __ovld atomic_fetch_sub(volatile atomic_long *object, long operand);
13736long __ovld atomic_fetch_sub_explicit(volatile atomic_long *object, long operand, memory_order order);
13737long __ovld atomic_fetch_sub_explicit(volatile atomic_long *object, long operand, memory_order order, memory_scope scope);
13738ulong __ovld atomic_fetch_sub(volatile atomic_ulong *object, ulong operand);
13739ulong __ovld atomic_fetch_sub_explicit(volatile atomic_ulong *object, ulong operand, memory_order order);
13740ulong __ovld atomic_fetch_sub_explicit(volatile atomic_ulong *object, ulong operand, memory_order order, memory_scope scope);
13741long __ovld atomic_fetch_or(volatile atomic_long *object, long operand);
13742long __ovld atomic_fetch_or_explicit(volatile atomic_long *object, long operand, memory_order order);
13743long __ovld atomic_fetch_or_explicit(volatile atomic_long *object, long operand, memory_order order, memory_scope scope);
13744ulong __ovld atomic_fetch_or(volatile atomic_ulong *object, ulong operand);
13745ulong __ovld atomic_fetch_or_explicit(volatile atomic_ulong *object, ulong operand, memory_order order);
13746ulong __ovld atomic_fetch_or_explicit(volatile atomic_ulong *object, ulong operand, memory_order order, memory_scope scope);
13747long __ovld atomic_fetch_xor(volatile atomic_long *object, long operand);
13748long __ovld atomic_fetch_xor_explicit(volatile atomic_long *object, long operand, memory_order order);
13749long __ovld atomic_fetch_xor_explicit(volatile atomic_long *object, long operand, memory_order order, memory_scope scope);
13750ulong __ovld atomic_fetch_xor(volatile atomic_ulong *object, ulong operand);
13751ulong __ovld atomic_fetch_xor_explicit(volatile atomic_ulong *object, ulong operand, memory_order order);
13752ulong __ovld atomic_fetch_xor_explicit(volatile atomic_ulong *object, ulong operand, memory_order order, memory_scope scope);
13753long __ovld atomic_fetch_and(volatile atomic_long *object, long operand);
13754long __ovld atomic_fetch_and_explicit(volatile atomic_long *object, long operand, memory_order order);
13755long __ovld atomic_fetch_and_explicit(volatile atomic_long *object, long operand, memory_order order, memory_scope scope);
13756ulong __ovld atomic_fetch_and(volatile atomic_ulong *object, ulong operand);
13757ulong __ovld atomic_fetch_and_explicit(volatile atomic_ulong *object, ulong operand, memory_order order);
13758ulong __ovld atomic_fetch_and_explicit(volatile atomic_ulong *object, ulong operand, memory_order order, memory_scope scope);
13759long __ovld atomic_fetch_min(volatile atomic_long *object, long operand);
13760long __ovld atomic_fetch_min_explicit(volatile atomic_long *object, long operand, memory_order order);
13761long __ovld atomic_fetch_min_explicit(volatile atomic_long *object, long operand, memory_order order, memory_scope scope);
13762ulong __ovld atomic_fetch_min(volatile atomic_ulong *object, ulong operand);
13763ulong __ovld atomic_fetch_min_explicit(volatile atomic_ulong *object, ulong operand, memory_order order);
13764ulong __ovld atomic_fetch_min_explicit(volatile atomic_ulong *object, ulong operand, memory_order order, memory_scope scope);
13765ulong __ovld atomic_fetch_min(volatile atomic_ulong *object, long operand);
13766ulong __ovld atomic_fetch_min_explicit(volatile atomic_ulong *object, long operand, memory_order order);
13767ulong __ovld atomic_fetch_min_explicit(volatile atomic_ulong *object, long operand, memory_order order, memory_scope scope);
13768long __ovld atomic_fetch_max(volatile atomic_long *object, long operand);
13769long __ovld atomic_fetch_max_explicit(volatile atomic_long *object, long operand, memory_order order);
13770long __ovld atomic_fetch_max_explicit(volatile atomic_long *object, long operand, memory_order order, memory_scope scope);
13771ulong __ovld atomic_fetch_max(volatile atomic_ulong *object, ulong operand);
13772ulong __ovld atomic_fetch_max_explicit(volatile atomic_ulong *object, ulong operand, memory_order order);
13773ulong __ovld atomic_fetch_max_explicit(volatile atomic_ulong *object, ulong operand, memory_order order, memory_scope scope);
13774ulong __ovld atomic_fetch_max(volatile atomic_ulong *object, long operand);
13775ulong __ovld atomic_fetch_max_explicit(volatile atomic_ulong *object, long operand, memory_order order);
13776ulong __ovld atomic_fetch_max_explicit(volatile atomic_ulong *object, long operand, memory_order order, memory_scope scope);
13777#endif //defined(cl_khr_int64_base_atomics) && defined(cl_khr_int64_extended_atomics)
13778
13779// OpenCL v2.0 s6.13.11.7.5:
13780// add/sub: atomic type argument can be uintptr_t/intptr_t, value type argument can be ptrdiff_t.
13781// or/xor/and/min/max: atomic type argument can be intptr_t/uintptr_t, value type argument can be intptr_t/uintptr_t.
13782
13783#if defined(cl_khr_int64_base_atomics) && defined(cl_khr_int64_extended_atomics)
13784uintptr_t __ovld atomic_fetch_add(volatile atomic_uintptr_t *object, ptrdiff_t operand);
13785uintptr_t __ovld atomic_fetch_add_explicit(volatile atomic_uintptr_t *object, ptrdiff_t operand, memory_order order);
13786uintptr_t __ovld atomic_fetch_add_explicit(volatile atomic_uintptr_t *object, ptrdiff_t operand, memory_order order, memory_scope scope);
13787uintptr_t __ovld atomic_fetch_sub(volatile atomic_uintptr_t *object, ptrdiff_t operand);
13788uintptr_t __ovld atomic_fetch_sub_explicit(volatile atomic_uintptr_t *object, ptrdiff_t operand, memory_order order);
13789uintptr_t __ovld atomic_fetch_sub_explicit(volatile atomic_uintptr_t *object, ptrdiff_t operand, memory_order order, memory_scope scope);
13790
13791uintptr_t __ovld atomic_fetch_or(volatile atomic_uintptr_t *object, intptr_t operand);
13792uintptr_t __ovld atomic_fetch_or_explicit(volatile atomic_uintptr_t *object, intptr_t operand, memory_order order);
13793uintptr_t __ovld atomic_fetch_or_explicit(volatile atomic_uintptr_t *object, intptr_t operand, memory_order order, memory_scope scope);
13794uintptr_t __ovld atomic_fetch_xor(volatile atomic_uintptr_t *object, intptr_t operand);
13795uintptr_t __ovld atomic_fetch_xor_explicit(volatile atomic_uintptr_t *object, intptr_t operand, memory_order order);
13796uintptr_t __ovld atomic_fetch_xor_explicit(volatile atomic_uintptr_t *object, intptr_t operand, memory_order order, memory_scope scope);
13797uintptr_t __ovld atomic_fetch_and(volatile atomic_uintptr_t *object, intptr_t operand);
13798uintptr_t __ovld atomic_fetch_and_explicit(volatile atomic_uintptr_t *object, intptr_t operand, memory_order order);
13799uintptr_t __ovld atomic_fetch_and_explicit(volatile atomic_uintptr_t *object, intptr_t operand, memory_order order, memory_scope scope);
13800uintptr_t __ovld atomic_fetch_min(volatile atomic_uintptr_t *object, intptr_t opermax);
13801uintptr_t __ovld atomic_fetch_min_explicit(volatile atomic_uintptr_t *object, intptr_t opermax, memory_order minder);
13802uintptr_t __ovld atomic_fetch_min_explicit(volatile atomic_uintptr_t *object, intptr_t opermax, memory_order minder, memory_scope scope);
13803uintptr_t __ovld atomic_fetch_max(volatile atomic_uintptr_t *object, intptr_t opermax);
13804uintptr_t __ovld atomic_fetch_max_explicit(volatile atomic_uintptr_t *object, intptr_t opermax, memory_order minder);
13805uintptr_t __ovld atomic_fetch_max_explicit(volatile atomic_uintptr_t *object, intptr_t opermax, memory_order minder, memory_scope scope);
13806
13807intptr_t __ovld atomic_fetch_or(volatile atomic_intptr_t *object, uintptr_t operand);
13808intptr_t __ovld atomic_fetch_or_explicit(volatile atomic_intptr_t *object, uintptr_t operand, memory_order order);
13809intptr_t __ovld atomic_fetch_or_explicit(volatile atomic_intptr_t *object, uintptr_t operand, memory_order order, memory_scope scope);
13810intptr_t __ovld atomic_fetch_xor(volatile atomic_intptr_t *object, uintptr_t operand);
13811intptr_t __ovld atomic_fetch_xor_explicit(volatile atomic_intptr_t *object, uintptr_t operand, memory_order order);
13812intptr_t __ovld atomic_fetch_xor_explicit(volatile atomic_intptr_t *object, uintptr_t operand, memory_order order, memory_scope scope);
13813intptr_t __ovld atomic_fetch_and(volatile atomic_intptr_t *object, uintptr_t operand);
13814intptr_t __ovld atomic_fetch_and_explicit(volatile atomic_intptr_t *object, uintptr_t operand, memory_order order);
13815intptr_t __ovld atomic_fetch_and_explicit(volatile atomic_intptr_t *object, uintptr_t operand, memory_order order, memory_scope scope);
13816intptr_t __ovld atomic_fetch_min(volatile atomic_intptr_t *object, uintptr_t opermax);
13817intptr_t __ovld atomic_fetch_min_explicit(volatile atomic_intptr_t *object, uintptr_t opermax, memory_order minder);
13818intptr_t __ovld atomic_fetch_min_explicit(volatile atomic_intptr_t *object, uintptr_t opermax, memory_order minder, memory_scope scope);
13819intptr_t __ovld atomic_fetch_max(volatile atomic_intptr_t *object, uintptr_t opermax);
13820intptr_t __ovld atomic_fetch_max_explicit(volatile atomic_intptr_t *object, uintptr_t opermax, memory_order minder);
13821intptr_t __ovld atomic_fetch_max_explicit(volatile atomic_intptr_t *object, uintptr_t opermax, memory_order minder, memory_scope scope);
13822#endif
13823
13824// atomic_store()
13825
13826void __ovld atomic_store(volatile atomic_int *objectint desired);
13827void __ovld atomic_store_explicit(volatile atomic_int *objectint desiredmemory_order order);
13828void __ovld atomic_store_explicit(volatile atomic_int *objectint desiredmemory_order ordermemory_scope scope);
13829void __ovld atomic_store(volatile atomic_uint *objectuint desired);
13830void __ovld atomic_store_explicit(volatile atomic_uint *objectuint desiredmemory_order order);
13831void __ovld atomic_store_explicit(volatile atomic_uint *objectuint desiredmemory_order ordermemory_scope scope);
13832void __ovld atomic_store(volatile atomic_float *objectfloat desired);
13833void __ovld atomic_store_explicit(volatile atomic_float *objectfloat desiredmemory_order order);
13834void __ovld atomic_store_explicit(volatile atomic_float *objectfloat desiredmemory_order ordermemory_scope scope);
13835#if defined(cl_khr_int64_base_atomics) && defined(cl_khr_int64_extended_atomics)
13836#ifdef cl_khr_fp64
13837void __ovld atomic_store(volatile atomic_double *object, double desired);
13838void __ovld atomic_store_explicit(volatile atomic_double *object, double desired, memory_order order);
13839void __ovld atomic_store_explicit(volatile atomic_double *object, double desired, memory_order order, memory_scope scope);
13840#endif //cl_khr_fp64
13841void __ovld atomic_store(volatile atomic_long *object, long desired);
13842void __ovld atomic_store_explicit(volatile atomic_long *object, long desired, memory_order order);
13843void __ovld atomic_store_explicit(volatile atomic_long *object, long desired, memory_order order, memory_scope scope);
13844void __ovld atomic_store(volatile atomic_ulong *object, ulong desired);
13845void __ovld atomic_store_explicit(volatile atomic_ulong *object, ulong desired, memory_order order);
13846void __ovld atomic_store_explicit(volatile atomic_ulong *object, ulong desired, memory_order order, memory_scope scope);
13847#endif
13848
13849// atomic_load()
13850
13851int __ovld atomic_load(volatile atomic_int *object);
13852int __ovld atomic_load_explicit(volatile atomic_int *objectmemory_order order);
13853int __ovld atomic_load_explicit(volatile atomic_int *objectmemory_order ordermemory_scope scope);
13854uint __ovld atomic_load(volatile atomic_uint *object);
13855uint __ovld atomic_load_explicit(volatile atomic_uint *objectmemory_order order);
13856uint __ovld atomic_load_explicit(volatile atomic_uint *objectmemory_order ordermemory_scope scope);
13857float __ovld atomic_load(volatile atomic_float *object);
13858float __ovld atomic_load_explicit(volatile atomic_float *objectmemory_order order);
13859float __ovld atomic_load_explicit(volatile atomic_float *objectmemory_order ordermemory_scope scope);
13860#if defined(cl_khr_int64_base_atomics) && defined(cl_khr_int64_extended_atomics)
13861#ifdef cl_khr_fp64
13862double __ovld atomic_load(volatile atomic_double *object);
13863double __ovld atomic_load_explicit(volatile atomic_double *object, memory_order order);
13864double __ovld atomic_load_explicit(volatile atomic_double *object, memory_order order, memory_scope scope);
13865#endif //cl_khr_fp64
13866long __ovld atomic_load(volatile atomic_long *object);
13867long __ovld atomic_load_explicit(volatile atomic_long *object, memory_order order);
13868long __ovld atomic_load_explicit(volatile atomic_long *object, memory_order order, memory_scope scope);
13869ulong __ovld atomic_load(volatile atomic_ulong *object);
13870ulong __ovld atomic_load_explicit(volatile atomic_ulong *object, memory_order order);
13871ulong __ovld atomic_load_explicit(volatile atomic_ulong *object, memory_order order, memory_scope scope);
13872#endif
13873
13874// atomic_exchange()
13875
13876int __ovld atomic_exchange(volatile atomic_int *objectint desired);
13877int __ovld atomic_exchange_explicit(volatile atomic_int *objectint desiredmemory_order order);
13878int __ovld atomic_exchange_explicit(volatile atomic_int *objectint desiredmemory_order ordermemory_scope scope);
13879uint __ovld atomic_exchange(volatile atomic_uint *objectuint desired);
13880uint __ovld atomic_exchange_explicit(volatile atomic_uint *objectuint desiredmemory_order order);
13881uint __ovld atomic_exchange_explicit(volatile atomic_uint *objectuint desiredmemory_order ordermemory_scope scope);
13882float __ovld atomic_exchange(volatile atomic_float *objectfloat desired);
13883float __ovld atomic_exchange_explicit(volatile atomic_float *objectfloat desiredmemory_order order);
13884float __ovld atomic_exchange_explicit(volatile atomic_float *objectfloat desiredmemory_order ordermemory_scope scope);
13885#if defined(cl_khr_int64_base_atomics) && defined(cl_khr_int64_extended_atomics)
13886#ifdef cl_khr_fp64
13887double __ovld atomic_exchange(volatile atomic_double *object, double desired);
13888double __ovld atomic_exchange_explicit(volatile atomic_double *object, double desired, memory_order order);
13889double __ovld atomic_exchange_explicit(volatile atomic_double *object, double desired, memory_order order, memory_scope scope);
13890#endif //cl_khr_fp64
13891long __ovld atomic_exchange(volatile atomic_long *object, long desired);
13892long __ovld atomic_exchange_explicit(volatile atomic_long *object, long desired, memory_order order);
13893long __ovld atomic_exchange_explicit(volatile atomic_long *object, long desired, memory_order order, memory_scope scope);
13894ulong __ovld atomic_exchange(volatile atomic_ulong *object, ulong desired);
13895ulong __ovld atomic_exchange_explicit(volatile atomic_ulong *object, ulong desired, memory_order order);
13896ulong __ovld atomic_exchange_explicit(volatile atomic_ulong *object, ulong desired, memory_order order, memory_scope scope);
13897#endif
13898
13899// atomic_compare_exchange_strong() and atomic_compare_exchange_weak()
13900
13901bool __ovld atomic_compare_exchange_strong(volatile atomic_int *object, int *expected, int desired);
13902bool __ovld atomic_compare_exchange_strong_explicit(volatile atomic_int *object, int *expected,
13903                                                                                 int desired, memory_order success, memory_order failure);
13904bool __ovld atomic_compare_exchange_strong_explicit(volatile atomic_int *object, int *expected,
13905                                                                                 int desired, memory_order success, memory_order failure, memory_scope scope);
13906bool __ovld atomic_compare_exchange_strong(volatile atomic_uint *object, uint *expected, uint desired);
13907bool __ovld atomic_compare_exchange_strong_explicit(volatile atomic_uint *object, uint *expected,
13908                                                                                 uint desired, memory_order success, memory_order failure);
13909bool __ovld atomic_compare_exchange_strong_explicit(volatile atomic_uint *object, uint *expected,
13910                                                                                 uint desired, memory_order success, memory_order failure, memory_scope scope);
13911bool __ovld atomic_compare_exchange_weak(volatile atomic_int *object, int *expected, int desired);
13912bool __ovld atomic_compare_exchange_weak_explicit(volatile atomic_int *object, int *expected,
13913                                                                                 int desired, memory_order success, memory_order failure);
13914bool __ovld atomic_compare_exchange_weak_explicit(volatile atomic_int *object, int *expected,
13915                                                                                 int desired, memory_order success, memory_order failure, memory_scope scope);
13916bool __ovld atomic_compare_exchange_weak(volatile atomic_uint *object, uint *expected, uint desired);
13917bool __ovld atomic_compare_exchange_weak_explicit(volatile atomic_uint *object, uint *expected,
13918                                                                                 uint desired, memory_order success, memory_order failure);
13919bool __ovld atomic_compare_exchange_weak_explicit(volatile atomic_uint *object, uint *expected,
13920                                                                                 uint desired, memory_order success, memory_order failure, memory_scope scope);
13921bool __ovld atomic_compare_exchange_strong(volatile atomic_float *object, float *expected, float desired);
13922bool __ovld atomic_compare_exchange_strong_explicit(volatile atomic_float *object, float *expected,
13923                                                                                 float desired, memory_order success, memory_order failure);
13924bool __ovld atomic_compare_exchange_strong_explicit(volatile atomic_float *object, float *expected,
13925                                                                                 float desired, memory_order success, memory_order failure, memory_scope scope);
13926bool __ovld atomic_compare_exchange_weak(volatile atomic_float *object, float *expected, float desired);
13927bool __ovld atomic_compare_exchange_weak_explicit(volatile atomic_float *object, float *expected,
13928                                                                                 float desired, memory_order success, memory_order failure);
13929bool __ovld atomic_compare_exchange_weak_explicit(volatile atomic_float *object, float *expected,
13930                                                                                 float desired, memory_order success, memory_order failure, memory_scope scope);
13931#if defined(cl_khr_int64_base_atomics) && defined(cl_khr_int64_extended_atomics)
13932#ifdef cl_khr_fp64
13933bool __ovld atomic_compare_exchange_strong(volatile atomic_double *object, double *expected, double desired);
13934bool __ovld atomic_compare_exchange_strong_explicit(volatile atomic_double *object, double *expected,
13935                                                                                 double desired, memory_order success, memory_order failure);
13936bool __ovld atomic_compare_exchange_strong_explicit(volatile atomic_double *object, double *expected,
13937                                                                                 double desired, memory_order success, memory_order failure, memory_scope scope);
13938bool __ovld atomic_compare_exchange_weak(volatile atomic_double *object, double *expected, double desired);
13939bool __ovld atomic_compare_exchange_weak_explicit(volatile atomic_double *object, double *expected,
13940                                                                                 double desired, memory_order success, memory_order failure);
13941bool __ovld atomic_compare_exchange_weak_explicit(volatile atomic_double *object, double *expected,
13942                                                                                 double desired, memory_order success, memory_order failure, memory_scope scope);
13943#endif //cl_khr_fp64
13944bool __ovld atomic_compare_exchange_strong(volatile atomic_long *object, long *expected, long desired);
13945bool __ovld atomic_compare_exchange_strong_explicit(volatile atomic_long *object, long *expected,
13946                                                                                 long desired, memory_order success, memory_order failure);
13947bool __ovld atomic_compare_exchange_strong_explicit(volatile atomic_long *object, long *expected,
13948                                                                                 long desired, memory_order success, memory_order failure, memory_scope scope);
13949bool __ovld atomic_compare_exchange_weak(volatile atomic_long *object, long *expected, long desired);
13950bool __ovld atomic_compare_exchange_weak_explicit(volatile atomic_long *object, long *expected,
13951                                                                                 long desired, memory_order success, memory_order failure);
13952bool __ovld atomic_compare_exchange_weak_explicit(volatile atomic_long *object, long *expected,
13953                                                                                 long desired, memory_order success, memory_order failure, memory_scope scope);
13954bool __ovld atomic_compare_exchange_strong(volatile atomic_ulong *object, ulong *expected, ulong desired);
13955bool __ovld atomic_compare_exchange_strong_explicit(volatile atomic_ulong *object, ulong *expected,
13956                                                                                 ulong desired, memory_order success, memory_order failure);
13957bool __ovld atomic_compare_exchange_strong_explicit(volatile atomic_ulong *object, ulong *expected,
13958                                                                                 ulong desired, memory_order success, memory_order failure, memory_scope scope);
13959bool __ovld atomic_compare_exchange_weak(volatile atomic_ulong *object, ulong *expected, ulong desired);
13960bool __ovld atomic_compare_exchange_weak_explicit(volatile atomic_ulong *object, ulong *expected,
13961                                                                                 ulong desired, memory_order success, memory_order failure);
13962bool __ovld atomic_compare_exchange_weak_explicit(volatile atomic_ulong *object, ulong *expected,
13963                                                                                 ulong desired, memory_order success, memory_order failure, memory_scope scope);
13964#endif
13965
13966// atomic_flag_test_and_set() and atomic_flag_clear()
13967
13968bool __ovld atomic_flag_test_and_set(volatile atomic_flag *object);
13969bool __ovld atomic_flag_test_and_set_explicit(volatile atomic_flag *object, memory_order order);
13970bool __ovld atomic_flag_test_and_set_explicit(volatile atomic_flag *object, memory_order order, memory_scope scope);
13971void __ovld atomic_flag_clear(volatile atomic_flag *object);
13972void __ovld atomic_flag_clear_explicit(volatile atomic_flag *objectmemory_order order);
13973void __ovld atomic_flag_clear_explicit(volatile atomic_flag *objectmemory_order ordermemory_scope scope);
13974
13975#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
13976
13977// OpenCL v1.1 s6.11.12, v1.2 s6.12.12, v2.0 s6.13.12 - Miscellaneous Vector Functions
13978
13979/**
13980 * The shuffle and shuffle2 built-in functions construct
13981 * a permutation of elements from one or two input
13982 * vectors respectively that are of the same type,
13983 * returning a vector with the same element type as the
13984 * input and length that is the same as the shuffle mask.
13985 * The size of each element in the mask must match the
13986 * size of each element in the result. For shuffle, only
13987 * the ilogb(2m-1) least significant bits of each mask
13988 * element are considered. For shuffle2, only the
13989 * ilogb(2m-1)+1 least significant bits of each mask
13990 * element are considered. Other bits in the mask shall
13991 * be ignored.
13992 * The elements of the input vectors are numbered from
13993 * left to right across one or both of the vectors. For this
13994 * purpose, the number of elements in a vector is given
13995 * by vec_step(gentypem). The shuffle mask operand
13996 * specifies, for each element of the result vector, which
13997 * element of the one or two input vectors the result
13998 * element gets.
13999 * Examples:
14000 * uint4 mask = (uint4)(3, 2,
14001 * 1, 0);
14002 * float4 a;
14003 * float4 r = shuffle(a, mask);
14004 * // r.s0123 = a.wzyx
14005 * uint8 mask = (uint8)(0, 1, 2, 3,
14006 * 4, 5, 6, 7);
14007 * float4 a, b;
14008 * float8 r = shuffle2(a, b, mask);
14009 * // r.s0123 = a.xyzw
14010 * // r.s4567 = b.xyzw
14011 * uint4 mask;
14012 * float8 a;
14013 * float4 b;
14014 * b = shuffle(a, mask);
14015 * Examples that are not valid are:
14016 * uint8 mask;
14017 * short16 a;
14018 * short8 b;
14019 * b = shuffle(a, mask); <- not valid
14020 */
14021char2 __ovld __cnfn shuffle(char2 xuchar2 mask);
14022char2 __ovld __cnfn shuffle(char4 xuchar2 mask);
14023char2 __ovld __cnfn shuffle(char8 xuchar2 mask);
14024char2 __ovld __cnfn shuffle(char16 xuchar2 mask);
14025
14026uchar2 __ovld __cnfn shuffle(uchar2 xuchar2 mask);
14027uchar2 __ovld __cnfn shuffle(uchar4 xuchar2 mask);
14028uchar2 __ovld __cnfn shuffle(uchar8 xuchar2 mask);
14029uchar2 __ovld __cnfn shuffle(uchar16 xuchar2 mask);
14030
14031short2 __ovld __cnfn shuffle(short2 xushort2 mask);
14032short2 __ovld __cnfn shuffle(short4 xushort2 mask);
14033short2 __ovld __cnfn shuffle(short8 xushort2 mask);
14034short2 __ovld __cnfn shuffle(short16 xushort2 mask);
14035
14036ushort2 __ovld __cnfn shuffle(ushort2 xushort2 mask);
14037ushort2 __ovld __cnfn shuffle(ushort4 xushort2 mask);
14038ushort2 __ovld __cnfn shuffle(ushort8 xushort2 mask);
14039ushort2 __ovld __cnfn shuffle(ushort16 xushort2 mask);
14040
14041int2 __ovld __cnfn shuffle(int2 xuint2 mask);
14042int2 __ovld __cnfn shuffle(int4 xuint2 mask);
14043int2 __ovld __cnfn shuffle(int8 xuint2 mask);
14044int2 __ovld __cnfn shuffle(int16 xuint2 mask);
14045
14046uint2 __ovld __cnfn shuffle(uint2 xuint2 mask);
14047uint2 __ovld __cnfn shuffle(uint4 xuint2 mask);
14048uint2 __ovld __cnfn shuffle(uint8 xuint2 mask);
14049uint2 __ovld __cnfn shuffle(uint16 xuint2 mask);
14050
14051long2 __ovld __cnfn shuffle(long2 xulong2 mask);
14052long2 __ovld __cnfn shuffle(long4 xulong2 mask);
14053long2 __ovld __cnfn shuffle(long8 xulong2 mask);
14054long2 __ovld __cnfn shuffle(long16 xulong2 mask);
14055
14056ulong2 __ovld __cnfn shuffle(ulong2 xulong2 mask);
14057ulong2 __ovld __cnfn shuffle(ulong4 xulong2 mask);
14058ulong2 __ovld __cnfn shuffle(ulong8 xulong2 mask);
14059ulong2 __ovld __cnfn shuffle(ulong16 xulong2 mask);
14060
14061float2 __ovld __cnfn shuffle(float2 xuint2 mask);
14062float2 __ovld __cnfn shuffle(float4 xuint2 mask);
14063float2 __ovld __cnfn shuffle(float8 xuint2 mask);
14064float2 __ovld __cnfn shuffle(float16 xuint2 mask);
14065
14066char4 __ovld __cnfn shuffle(char2 xuchar4 mask);
14067char4 __ovld __cnfn shuffle(char4 xuchar4 mask);
14068char4 __ovld __cnfn shuffle(char8 xuchar4 mask);
14069char4 __ovld __cnfn shuffle(char16 xuchar4 mask);
14070
14071uchar4 __ovld __cnfn shuffle(uchar2 xuchar4 mask);
14072uchar4 __ovld __cnfn shuffle(uchar4 xuchar4 mask);
14073uchar4 __ovld __cnfn shuffle(uchar8 xuchar4 mask);
14074uchar4 __ovld __cnfn shuffle(uchar16 xuchar4 mask);
14075
14076short4 __ovld __cnfn shuffle(short2 xushort4 mask);
14077short4 __ovld __cnfn shuffle(short4 xushort4 mask);
14078short4 __ovld __cnfn shuffle(short8 xushort4 mask);
14079short4 __ovld __cnfn shuffle(short16 xushort4 mask);
14080
14081ushort4 __ovld __cnfn shuffle(ushort2 xushort4 mask);
14082ushort4 __ovld __cnfn shuffle(ushort4 xushort4 mask);
14083ushort4 __ovld __cnfn shuffle(ushort8 xushort4 mask);
14084ushort4 __ovld __cnfn shuffle(ushort16 xushort4 mask);
14085
14086int4 __ovld __cnfn shuffle(int2 xuint4 mask);
14087int4 __ovld __cnfn shuffle(int4 xuint4 mask);
14088int4 __ovld __cnfn shuffle(int8 xuint4 mask);
14089int4 __ovld __cnfn shuffle(int16 xuint4 mask);
14090
14091uint4 __ovld __cnfn shuffle(uint2 xuint4 mask);
14092uint4 __ovld __cnfn shuffle(uint4 xuint4 mask);
14093uint4 __ovld __cnfn shuffle(uint8 xuint4 mask);
14094uint4 __ovld __cnfn shuffle(uint16 xuint4 mask);
14095
14096long4 __ovld __cnfn shuffle(long2 xulong4 mask);
14097long4 __ovld __cnfn shuffle(long4 xulong4 mask);
14098long4 __ovld __cnfn shuffle(long8 xulong4 mask);
14099long4 __ovld __cnfn shuffle(long16 xulong4 mask);
14100
14101ulong4 __ovld __cnfn shuffle(ulong2 xulong4 mask);
14102ulong4 __ovld __cnfn shuffle(ulong4 xulong4 mask);
14103ulong4 __ovld __cnfn shuffle(ulong8 xulong4 mask);
14104ulong4 __ovld __cnfn shuffle(ulong16 xulong4 mask);
14105
14106float4 __ovld __cnfn shuffle(float2 xuint4 mask);
14107float4 __ovld __cnfn shuffle(float4 xuint4 mask);
14108float4 __ovld __cnfn shuffle(float8 xuint4 mask);
14109float4 __ovld __cnfn shuffle(float16 xuint4 mask);
14110
14111char8 __ovld __cnfn shuffle(char2 xuchar8 mask);
14112char8 __ovld __cnfn shuffle(char4 xuchar8 mask);
14113char8 __ovld __cnfn shuffle(char8 xuchar8 mask);
14114char8 __ovld __cnfn shuffle(char16 xuchar8 mask);
14115
14116uchar8 __ovld __cnfn shuffle(uchar2 xuchar8 mask);
14117uchar8 __ovld __cnfn shuffle(uchar4 xuchar8 mask);
14118uchar8 __ovld __cnfn shuffle(uchar8 xuchar8 mask);
14119uchar8 __ovld __cnfn shuffle(uchar16 xuchar8 mask);
14120
14121short8 __ovld __cnfn shuffle(short2 xushort8 mask);
14122short8 __ovld __cnfn shuffle(short4 xushort8 mask);
14123short8 __ovld __cnfn shuffle(short8 xushort8 mask);
14124short8 __ovld __cnfn shuffle(short16 xushort8 mask);
14125
14126ushort8 __ovld __cnfn shuffle(ushort2 xushort8 mask);
14127ushort8 __ovld __cnfn shuffle(ushort4 xushort8 mask);
14128ushort8 __ovld __cnfn shuffle(ushort8 xushort8 mask);
14129ushort8 __ovld __cnfn shuffle(ushort16 xushort8 mask);
14130
14131int8 __ovld __cnfn shuffle(int2 xuint8 mask);
14132int8 __ovld __cnfn shuffle(int4 xuint8 mask);
14133int8 __ovld __cnfn shuffle(int8 xuint8 mask);
14134int8 __ovld __cnfn shuffle(int16 xuint8 mask);
14135
14136uint8 __ovld __cnfn shuffle(uint2 xuint8 mask);
14137uint8 __ovld __cnfn shuffle(uint4 xuint8 mask);
14138uint8 __ovld __cnfn shuffle(uint8 xuint8 mask);
14139uint8 __ovld __cnfn shuffle(uint16 xuint8 mask);
14140
14141long8 __ovld __cnfn shuffle(long2 xulong8 mask);
14142long8 __ovld __cnfn shuffle(long4 xulong8 mask);
14143long8 __ovld __cnfn shuffle(long8 xulong8 mask);
14144long8 __ovld __cnfn shuffle(long16 xulong8 mask);
14145
14146ulong8 __ovld __cnfn shuffle(ulong2 xulong8 mask);
14147ulong8 __ovld __cnfn shuffle(ulong4 xulong8 mask);
14148ulong8 __ovld __cnfn shuffle(ulong8 xulong8 mask);
14149ulong8 __ovld __cnfn shuffle(ulong16 xulong8 mask);
14150
14151float8 __ovld __cnfn shuffle(float2 xuint8 mask);
14152float8 __ovld __cnfn shuffle(float4 xuint8 mask);
14153float8 __ovld __cnfn shuffle(float8 xuint8 mask);
14154float8 __ovld __cnfn shuffle(float16 xuint8 mask);
14155
14156char16 __ovld __cnfn shuffle(char2 xuchar16 mask);
14157char16 __ovld __cnfn shuffle(char4 xuchar16 mask);
14158char16 __ovld __cnfn shuffle(char8 xuchar16 mask);
14159char16 __ovld __cnfn shuffle(char16 xuchar16 mask);
14160
14161uchar16 __ovld __cnfn shuffle(uchar2 xuchar16 mask);
14162uchar16 __ovld __cnfn shuffle(uchar4 xuchar16 mask);
14163uchar16 __ovld __cnfn shuffle(uchar8 xuchar16 mask);
14164uchar16 __ovld __cnfn shuffle(uchar16 xuchar16 mask);
14165
14166short16 __ovld __cnfn shuffle(short2 xushort16 mask);
14167short16 __ovld __cnfn shuffle(short4 xushort16 mask);
14168short16 __ovld __cnfn shuffle(short8 xushort16 mask);
14169short16 __ovld __cnfn shuffle(short16 xushort16 mask);
14170
14171ushort16 __ovld __cnfn shuffle(ushort2 xushort16 mask);
14172ushort16 __ovld __cnfn shuffle(ushort4 xushort16 mask);
14173ushort16 __ovld __cnfn shuffle(ushort8 xushort16 mask);
14174ushort16 __ovld __cnfn shuffle(ushort16 xushort16 mask);
14175
14176int16 __ovld __cnfn shuffle(int2 xuint16 mask);
14177int16 __ovld __cnfn shuffle(int4 xuint16 mask);
14178int16 __ovld __cnfn shuffle(int8 xuint16 mask);
14179int16 __ovld __cnfn shuffle(int16 xuint16 mask);
14180
14181uint16 __ovld __cnfn shuffle(uint2 xuint16 mask);
14182uint16 __ovld __cnfn shuffle(uint4 xuint16 mask);
14183uint16 __ovld __cnfn shuffle(uint8 xuint16 mask);
14184uint16 __ovld __cnfn shuffle(uint16 xuint16 mask);
14185
14186long16 __ovld __cnfn shuffle(long2 xulong16 mask);
14187long16 __ovld __cnfn shuffle(long4 xulong16 mask);
14188long16 __ovld __cnfn shuffle(long8 xulong16 mask);
14189long16 __ovld __cnfn shuffle(long16 xulong16 mask);
14190
14191ulong16 __ovld __cnfn shuffle(ulong2 xulong16 mask);
14192ulong16 __ovld __cnfn shuffle(ulong4 xulong16 mask);
14193ulong16 __ovld __cnfn shuffle(ulong8 xulong16 mask);
14194ulong16 __ovld __cnfn shuffle(ulong16 xulong16 mask);
14195
14196float16 __ovld __cnfn shuffle(float2 xuint16 mask);
14197float16 __ovld __cnfn shuffle(float4 xuint16 mask);
14198float16 __ovld __cnfn shuffle(float8 xuint16 mask);
14199float16 __ovld __cnfn shuffle(float16 xuint16 mask);
14200
14201#ifdef cl_khr_fp64
14202double2 __ovld __cnfn shuffle(double2 x, ulong2 mask);
14203double2 __ovld __cnfn shuffle(double4 x, ulong2 mask);
14204double2 __ovld __cnfn shuffle(double8 x, ulong2 mask);
14205double2 __ovld __cnfn shuffle(double16 x, ulong2 mask);
14206
14207double4 __ovld __cnfn shuffle(double2 x, ulong4 mask);
14208double4 __ovld __cnfn shuffle(double4 x, ulong4 mask);
14209double4 __ovld __cnfn shuffle(double8 x, ulong4 mask);
14210double4 __ovld __cnfn shuffle(double16 x, ulong4 mask);
14211
14212double8 __ovld __cnfn shuffle(double2 x, ulong8 mask);
14213double8 __ovld __cnfn shuffle(double4 x, ulong8 mask);
14214double8 __ovld __cnfn shuffle(double8 x, ulong8 mask);
14215double8 __ovld __cnfn shuffle(double16 x, ulong8 mask);
14216
14217double16 __ovld __cnfn shuffle(double2 x, ulong16 mask);
14218double16 __ovld __cnfn shuffle(double4 x, ulong16 mask);
14219double16 __ovld __cnfn shuffle(double8 x, ulong16 mask);
14220double16 __ovld __cnfn shuffle(double16 x, ulong16 mask);
14221#endif //cl_khr_fp64
14222
14223#ifdef cl_khr_fp16
14224half2 __ovld __cnfn shuffle(half2 x, ushort2 mask);
14225half2 __ovld __cnfn shuffle(half4 x, ushort2 mask);
14226half2 __ovld __cnfn shuffle(half8 x, ushort2 mask);
14227half2 __ovld __cnfn shuffle(half16 x, ushort2 mask);
14228
14229half4 __ovld __cnfn shuffle(half2 x, ushort4 mask);
14230half4 __ovld __cnfn shuffle(half4 x, ushort4 mask);
14231half4 __ovld __cnfn shuffle(half8 x, ushort4 mask);
14232half4 __ovld __cnfn shuffle(half16 x, ushort4 mask);
14233
14234half8 __ovld __cnfn shuffle(half2 x, ushort8 mask);
14235half8 __ovld __cnfn shuffle(half4 x, ushort8 mask);
14236half8 __ovld __cnfn shuffle(half8 x, ushort8 mask);
14237half8 __ovld __cnfn shuffle(half16 x, ushort8 mask);
14238
14239half16 __ovld __cnfn shuffle(half2 x, ushort16 mask);
14240half16 __ovld __cnfn shuffle(half4 x, ushort16 mask);
14241half16 __ovld __cnfn shuffle(half8 x, ushort16 mask);
14242half16 __ovld __cnfn shuffle(half16 x, ushort16 mask);
14243#endif //cl_khr_fp16
14244
14245char2 __ovld __cnfn shuffle2(char2 xchar2 yuchar2 mask);
14246char2 __ovld __cnfn shuffle2(char4 xchar4 yuchar2 mask);
14247char2 __ovld __cnfn shuffle2(char8 xchar8 yuchar2 mask);
14248char2 __ovld __cnfn shuffle2(char16 xchar16 yuchar2 mask);
14249
14250uchar2 __ovld __cnfn shuffle2(uchar2 xuchar2 yuchar2 mask);
14251uchar2 __ovld __cnfn shuffle2(uchar4 xuchar4 yuchar2 mask);
14252uchar2 __ovld __cnfn shuffle2(uchar8 xuchar8 yuchar2 mask);
14253uchar2 __ovld __cnfn shuffle2(uchar16 xuchar16 yuchar2 mask);
14254
14255short2 __ovld __cnfn shuffle2(short2 xshort2 yushort2 mask);
14256short2 __ovld __cnfn shuffle2(short4 xshort4 yushort2 mask);
14257short2 __ovld __cnfn shuffle2(short8 xshort8 yushort2 mask);
14258short2 __ovld __cnfn shuffle2(short16 xshort16 yushort2 mask);
14259
14260ushort2 __ovld __cnfn shuffle2(ushort2 xushort2 yushort2 mask);
14261ushort2 __ovld __cnfn shuffle2(ushort4 xushort4 yushort2 mask);
14262ushort2 __ovld __cnfn shuffle2(ushort8 xushort8 yushort2 mask);
14263ushort2 __ovld __cnfn shuffle2(ushort16 xushort16 yushort2 mask);
14264
14265int2 __ovld __cnfn shuffle2(int2 xint2 yuint2 mask);
14266int2 __ovld __cnfn shuffle2(int4 xint4 yuint2 mask);
14267int2 __ovld __cnfn shuffle2(int8 xint8 yuint2 mask);
14268int2 __ovld __cnfn shuffle2(int16 xint16 yuint2 mask);
14269
14270uint2 __ovld __cnfn shuffle2(uint2 xuint2 yuint2 mask);
14271uint2 __ovld __cnfn shuffle2(uint4 xuint4 yuint2 mask);
14272uint2 __ovld __cnfn shuffle2(uint8 xuint8 yuint2 mask);
14273uint2 __ovld __cnfn shuffle2(uint16 xuint16 yuint2 mask);
14274
14275long2 __ovld __cnfn shuffle2(long2 xlong2 yulong2 mask);
14276long2 __ovld __cnfn shuffle2(long4 xlong4 yulong2 mask);
14277long2 __ovld __cnfn shuffle2(long8 xlong8 yulong2 mask);
14278long2 __ovld __cnfn shuffle2(long16 xlong16 yulong2 mask);
14279
14280ulong2 __ovld __cnfn shuffle2(ulong2 xulong2 yulong2 mask);
14281ulong2 __ovld __cnfn shuffle2(ulong4 xulong4 yulong2 mask);
14282ulong2 __ovld __cnfn shuffle2(ulong8 xulong8 yulong2 mask);
14283ulong2 __ovld __cnfn shuffle2(ulong16 xulong16 yulong2 mask);
14284
14285float2 __ovld __cnfn shuffle2(float2 xfloat2 yuint2 mask);
14286float2 __ovld __cnfn shuffle2(float4 xfloat4 yuint2 mask);
14287float2 __ovld __cnfn shuffle2(float8 xfloat8 yuint2 mask);
14288float2 __ovld __cnfn shuffle2(float16 xfloat16 yuint2 mask);
14289
14290char4 __ovld __cnfn shuffle2(char2 xchar2 yuchar4 mask);
14291char4 __ovld __cnfn shuffle2(char4 xchar4 yuchar4 mask);
14292char4 __ovld __cnfn shuffle2(char8 xchar8 yuchar4 mask);
14293char4 __ovld __cnfn shuffle2(char16 xchar16 yuchar4 mask);
14294
14295uchar4 __ovld __cnfn shuffle2(uchar2 xuchar2 yuchar4 mask);
14296uchar4 __ovld __cnfn shuffle2(uchar4 xuchar4 yuchar4 mask);
14297uchar4 __ovld __cnfn shuffle2(uchar8 xuchar8 yuchar4 mask);
14298uchar4 __ovld __cnfn shuffle2(uchar16 xuchar16 yuchar4 mask);
14299
14300short4 __ovld __cnfn shuffle2(short2 xshort2 yushort4 mask);
14301short4 __ovld __cnfn shuffle2(short4 xshort4 yushort4 mask);
14302short4 __ovld __cnfn shuffle2(short8 xshort8 yushort4 mask);
14303short4 __ovld __cnfn shuffle2(short16 xshort16 yushort4 mask);
14304
14305ushort4 __ovld __cnfn shuffle2(ushort2 xushort2 yushort4 mask);
14306ushort4 __ovld __cnfn shuffle2(ushort4 xushort4 yushort4 mask);
14307ushort4 __ovld __cnfn shuffle2(ushort8 xushort8 yushort4 mask);
14308ushort4 __ovld __cnfn shuffle2(ushort16 xushort16 yushort4 mask);
14309
14310int4 __ovld __cnfn shuffle2(int2 xint2 yuint4 mask);
14311int4 __ovld __cnfn shuffle2(int4 xint4 yuint4 mask);
14312int4 __ovld __cnfn shuffle2(int8 xint8 yuint4 mask);
14313int4 __ovld __cnfn shuffle2(int16 xint16 yuint4 mask);
14314
14315uint4 __ovld __cnfn shuffle2(uint2 xuint2 yuint4 mask);
14316uint4 __ovld __cnfn shuffle2(uint4 xuint4 yuint4 mask);
14317uint4 __ovld __cnfn shuffle2(uint8 xuint8 yuint4 mask);
14318uint4 __ovld __cnfn shuffle2(uint16 xuint16 yuint4 mask);
14319
14320long4 __ovld __cnfn shuffle2(long2 xlong2 yulong4 mask);
14321long4 __ovld __cnfn shuffle2(long4 xlong4 yulong4 mask);
14322long4 __ovld __cnfn shuffle2(long8 xlong8 yulong4 mask);
14323long4 __ovld __cnfn shuffle2(long16 xlong16 yulong4 mask);
14324
14325ulong4 __ovld __cnfn shuffle2(ulong2 xulong2 yulong4 mask);
14326ulong4 __ovld __cnfn shuffle2(ulong4 xulong4 yulong4 mask);
14327ulong4 __ovld __cnfn shuffle2(ulong8 xulong8 yulong4 mask);
14328ulong4 __ovld __cnfn shuffle2(ulong16 xulong16 yulong4 mask);
14329
14330float4 __ovld __cnfn shuffle2(float2 xfloat2 yuint4 mask);
14331float4 __ovld __cnfn shuffle2(float4 xfloat4 yuint4 mask);
14332float4 __ovld __cnfn shuffle2(float8 xfloat8 yuint4 mask);
14333float4 __ovld __cnfn shuffle2(float16 xfloat16 yuint4 mask);
14334
14335char8 __ovld __cnfn shuffle2(char2 xchar2 yuchar8 mask);
14336char8 __ovld __cnfn shuffle2(char4 xchar4 yuchar8 mask);
14337char8 __ovld __cnfn shuffle2(char8 xchar8 yuchar8 mask);
14338char8 __ovld __cnfn shuffle2(char16 xchar16 yuchar8 mask);
14339
14340uchar8 __ovld __cnfn shuffle2(uchar2 xuchar2 yuchar8 mask);
14341uchar8 __ovld __cnfn shuffle2(uchar4 xuchar4 yuchar8 mask);
14342uchar8 __ovld __cnfn shuffle2(uchar8 xuchar8 yuchar8 mask);
14343uchar8 __ovld __cnfn shuffle2(uchar16 xuchar16 yuchar8 mask);
14344
14345short8 __ovld __cnfn shuffle2(short2 xshort2 yushort8 mask);
14346short8 __ovld __cnfn shuffle2(short4 xshort4 yushort8 mask);
14347short8 __ovld __cnfn shuffle2(short8 xshort8 yushort8 mask);
14348short8 __ovld __cnfn shuffle2(short16 xshort16 yushort8 mask);
14349
14350ushort8 __ovld __cnfn shuffle2(ushort2 xushort2 yushort8 mask);
14351ushort8 __ovld __cnfn shuffle2(ushort4 xushort4 yushort8 mask);
14352ushort8 __ovld __cnfn shuffle2(ushort8 xushort8 yushort8 mask);
14353ushort8 __ovld __cnfn shuffle2(ushort16 xushort16 yushort8 mask);
14354
14355int8 __ovld __cnfn shuffle2(int2 xint2 yuint8 mask);
14356int8 __ovld __cnfn shuffle2(int4 xint4 yuint8 mask);
14357int8 __ovld __cnfn shuffle2(int8 xint8 yuint8 mask);
14358int8 __ovld __cnfn shuffle2(int16 xint16 yuint8 mask);
14359
14360uint8 __ovld __cnfn shuffle2(uint2 xuint2 yuint8 mask);
14361uint8 __ovld __cnfn shuffle2(uint4 xuint4 yuint8 mask);
14362uint8 __ovld __cnfn shuffle2(uint8 xuint8 yuint8 mask);
14363uint8 __ovld __cnfn shuffle2(uint16 xuint16 yuint8 mask);
14364
14365long8 __ovld __cnfn shuffle2(long2 xlong2 yulong8 mask);
14366long8 __ovld __cnfn shuffle2(long4 xlong4 yulong8 mask);
14367long8 __ovld __cnfn shuffle2(long8 xlong8 yulong8 mask);
14368long8 __ovld __cnfn shuffle2(long16 xlong16 yulong8 mask);
14369
14370ulong8 __ovld __cnfn shuffle2(ulong2 xulong2 yulong8 mask);
14371ulong8 __ovld __cnfn shuffle2(ulong4 xulong4 yulong8 mask);
14372ulong8 __ovld __cnfn shuffle2(ulong8 xulong8 yulong8 mask);
14373ulong8 __ovld __cnfn shuffle2(ulong16 xulong16 yulong8 mask);
14374
14375float8 __ovld __cnfn shuffle2(float2 xfloat2 yuint8 mask);
14376float8 __ovld __cnfn shuffle2(float4 xfloat4 yuint8 mask);
14377float8 __ovld __cnfn shuffle2(float8 xfloat8 yuint8 mask);
14378float8 __ovld __cnfn shuffle2(float16 xfloat16 yuint8 mask);
14379
14380char16 __ovld __cnfn shuffle2(char2 xchar2 yuchar16 mask);
14381char16 __ovld __cnfn shuffle2(char4 xchar4 yuchar16 mask);
14382char16 __ovld __cnfn shuffle2(char8 xchar8 yuchar16 mask);
14383char16 __ovld __cnfn shuffle2(char16 xchar16 yuchar16 mask);
14384
14385uchar16 __ovld __cnfn shuffle2(uchar2 xuchar2 yuchar16 mask);
14386uchar16 __ovld __cnfn shuffle2(uchar4 xuchar4 yuchar16 mask);
14387uchar16 __ovld __cnfn shuffle2(uchar8 xuchar8 yuchar16 mask);
14388uchar16 __ovld __cnfn shuffle2(uchar16 xuchar16 yuchar16 mask);
14389
14390short16 __ovld __cnfn shuffle2(short2 xshort2 yushort16 mask);
14391short16 __ovld __cnfn shuffle2(short4 xshort4 yushort16 mask);
14392short16 __ovld __cnfn shuffle2(short8 xshort8 yushort16 mask);
14393short16 __ovld __cnfn shuffle2(short16 xshort16 yushort16 mask);
14394
14395ushort16 __ovld __cnfn shuffle2(ushort2 xushort2 yushort16 mask);
14396ushort16 __ovld __cnfn shuffle2(ushort4 xushort4 yushort16 mask);
14397ushort16 __ovld __cnfn shuffle2(ushort8 xushort8 yushort16 mask);
14398ushort16 __ovld __cnfn shuffle2(ushort16 xushort16 yushort16 mask);
14399
14400int16 __ovld __cnfn shuffle2(int2 xint2 yuint16 mask);
14401int16 __ovld __cnfn shuffle2(int4 xint4 yuint16 mask);
14402int16 __ovld __cnfn shuffle2(int8 xint8 yuint16 mask);
14403int16 __ovld __cnfn shuffle2(int16 xint16 yuint16 mask);
14404
14405uint16 __ovld __cnfn shuffle2(uint2 xuint2 yuint16 mask);
14406uint16 __ovld __cnfn shuffle2(uint4 xuint4 yuint16 mask);
14407uint16 __ovld __cnfn shuffle2(uint8 xuint8 yuint16 mask);
14408uint16 __ovld __cnfn shuffle2(uint16 xuint16 yuint16 mask);
14409
14410long16 __ovld __cnfn shuffle2(long2 xlong2 yulong16 mask);
14411long16 __ovld __cnfn shuffle2(long4 xlong4 yulong16 mask);
14412long16 __ovld __cnfn shuffle2(long8 xlong8 yulong16 mask);
14413long16 __ovld __cnfn shuffle2(long16 xlong16 yulong16 mask);
14414
14415ulong16 __ovld __cnfn shuffle2(ulong2 xulong2 yulong16 mask);
14416ulong16 __ovld __cnfn shuffle2(ulong4 xulong4 yulong16 mask);
14417ulong16 __ovld __cnfn shuffle2(ulong8 xulong8 yulong16 mask);
14418ulong16 __ovld __cnfn shuffle2(ulong16 xulong16 yulong16 mask);
14419
14420float16 __ovld __cnfn shuffle2(float2 xfloat2 yuint16 mask);
14421float16 __ovld __cnfn shuffle2(float4 xfloat4 yuint16 mask);
14422float16 __ovld __cnfn shuffle2(float8 xfloat8 yuint16 mask);
14423float16 __ovld __cnfn shuffle2(float16 xfloat16 yuint16 mask);
14424
14425#ifdef cl_khr_fp64
14426double2 __ovld __cnfn shuffle2(double2 x, double2 y, ulong2 mask);
14427double2 __ovld __cnfn shuffle2(double4 x, double4 y, ulong2 mask);
14428double2 __ovld __cnfn shuffle2(double8 x, double8 y, ulong2 mask);
14429double2 __ovld __cnfn shuffle2(double16 x, double16 y, ulong2 mask);
14430
14431double4 __ovld __cnfn shuffle2(double2 x, double2 y, ulong4 mask);
14432double4 __ovld __cnfn shuffle2(double4 x, double4 y, ulong4 mask);
14433double4 __ovld __cnfn shuffle2(double8 x, double8 y, ulong4 mask);
14434double4 __ovld __cnfn shuffle2(double16 x, double16 y, ulong4 mask);
14435
14436double8 __ovld __cnfn shuffle2(double2 x, double2 y, ulong8 mask);
14437double8 __ovld __cnfn shuffle2(double4 x, double4 y, ulong8 mask);
14438double8 __ovld __cnfn shuffle2(double8 x, double8 y, ulong8 mask);
14439double8 __ovld __cnfn shuffle2(double16 x, double16 y, ulong8 mask);
14440
14441double16 __ovld __cnfn shuffle2(double2 x, double2 y, ulong16 mask);
14442double16 __ovld __cnfn shuffle2(double4 x, double4 y, ulong16 mask);
14443double16 __ovld __cnfn shuffle2(double8 x, double8 y, ulong16 mask);
14444double16 __ovld __cnfn shuffle2(double16 x, double16 y, ulong16 mask);
14445#endif //cl_khr_fp64
14446
14447#ifdef cl_khr_fp16
14448half2 __ovld __cnfn shuffle2(half2 x, half2 y, ushort2 mask);
14449half2 __ovld __cnfn shuffle2(half4 x, half4 y, ushort2 mask);
14450half2 __ovld __cnfn shuffle2(half8 x, half8 y, ushort2 mask);
14451half2 __ovld __cnfn shuffle2(half16 x, half16 y, ushort2 mask);
14452
14453half4 __ovld __cnfn shuffle2(half2 x, half2 y, ushort4 mask);
14454half4 __ovld __cnfn shuffle2(half4 x, half4 y, ushort4 mask);
14455half4 __ovld __cnfn shuffle2(half8 x, half8 y, ushort4 mask);
14456half4 __ovld __cnfn shuffle2(half16 x, half16 y, ushort4 mask);
14457
14458half8 __ovld __cnfn shuffle2(half2 x, half2 y, ushort8 mask);
14459half8 __ovld __cnfn shuffle2(half4 x, half4 y, ushort8 mask);
14460half8 __ovld __cnfn shuffle2(half8 x, half8 y, ushort8 mask);
14461half8 __ovld __cnfn shuffle2(half16 x, half16 y, ushort8 mask);
14462
14463half16 __ovld __cnfn shuffle2(half2 x, half2 y, ushort16 mask);
14464half16 __ovld __cnfn shuffle2(half4 x, half4 y, ushort16 mask);
14465half16 __ovld __cnfn shuffle2(half8 x, half8 y, ushort16 mask);
14466half16 __ovld __cnfn shuffle2(half16 x, half16 y, ushort16 mask);
14467#endif //cl_khr_fp16
14468
14469#if __OPENCL_C_VERSION__ >= CL_VERSION_1_2
14470// OpenCL v1.2 s6.12.13, v2.0 s6.13.13 - printf
14471
14472int printf(__constant const charst, ...) __attribute__((format(printf, 12)));
14473#endif
14474
14475// OpenCL v1.1 s6.11.3, v1.2 s6.12.14, v2.0 s6.13.14 - Image Read and Write Functions
14476
14477// These values need to match the runtime equivalent
14478//
14479// Addressing Mode.
14480//
14481#define CLK_ADDRESS_NONE                0
14482#define CLK_ADDRESS_CLAMP_TO_EDGE       2
14483#define CLK_ADDRESS_CLAMP               4
14484#define CLK_ADDRESS_REPEAT              6
14485#define CLK_ADDRESS_MIRRORED_REPEAT     8
14486
14487//
14488// Coordination Normalization
14489//
14490#define CLK_NORMALIZED_COORDS_FALSE     0
14491#define CLK_NORMALIZED_COORDS_TRUE      1
14492
14493//
14494// Filtering Mode.
14495//
14496#define CLK_FILTER_NEAREST              0x10
14497#define CLK_FILTER_LINEAR               0x20
14498
14499#ifdef cl_khr_gl_msaa_sharing
14500#pragma OPENCL EXTENSION cl_khr_gl_msaa_sharing : enable
14501#endif //cl_khr_gl_msaa_sharing
14502
14503/**
14504 * Use the coordinate (coord.xy) to do an element lookup in
14505 * the 2D image object specified by image.
14506 *
14507 * Use the coordinate (coord.x, coord.y, coord.z) to do
14508 * an element lookup in the 3D image object specified
14509 * by image. coord.w is ignored.
14510 *
14511 * Use the coordinate (coord.z) to index into the
14512 * 2D image array object specified by image_array
14513 * and (coord.x, coord.y) to do an element lookup in
14514 * the 2D image object specified by image.
14515 *
14516 * Use the coordinate (x) to do an element lookup in
14517 * the 1D image object specified by image.
14518 *
14519 * Use the coordinate (coord.y) to index into the
14520 * 1D image array object specified by image_array
14521 * and (coord.x) to do an element lookup in
14522 * the 1D image object specified by image.
14523 *
14524 * Use the coordinate (cood.xy) and sample to do an
14525 * element lookup in the 2D multi-sample image specified
14526 * by image.
14527 *
14528 * Use coord.xy and sample to do an element
14529 * lookup in the 2D multi-sample image layer
14530 * identified by index coord.z in the 2D multi-sample
14531 * image array specified by image.
14532 *
14533 * For mipmap images, use the mip-level specified by
14534 * the Level-of-Detail (lod) or use gradients for LOD
14535 * computation.
14536 *
14537 * read_imagef returns floating-point values in the
14538 * range [0.0 ... 1.0] for image objects created with
14539 * image_channel_data_type set to one of the predefined
14540 * packed formats or CL_UNORM_INT8, or
14541 * CL_UNORM_INT16.
14542 *
14543 * read_imagef returns floating-point values in the
14544 * range [-1.0 ... 1.0] for image objects created with
14545 * image_channel_data_type set to CL_SNORM_INT8,
14546 * or CL_SNORM_INT16.
14547 *
14548 * read_imagef returns floating-point values for image
14549 * objects created with image_channel_data_type set to
14550 * CL_HALF_FLOAT or CL_FLOAT.
14551 *
14552 * read_imagei and read_imageui return
14553 * unnormalized signed integer and unsigned integer
14554 * values respectively. Each channel will be stored in a
14555 * 32-bit integer.
14556 *
14557 * read_imagei can only be used with image objects
14558 * created with image_channel_data_type set to one of
14559 * the following values:
14560 * CL_SIGNED_INT8,
14561 * CL_SIGNED_INT16 and
14562 * CL_SIGNED_INT32.
14563 * If the image_channel_data_type is not one of the
14564 * above values, the values returned by read_imagei
14565 * are undefined.
14566 *
14567 * read_imageui can only be used with image objects
14568 * created with image_channel_data_type set to one of
14569 * the following values:
14570 * CL_UNSIGNED_INT8,
14571 * CL_UNSIGNED_INT16 and
14572 * CL_UNSIGNED_INT32.
14573 * If the image_channel_data_type is not one of the
14574 * above values, the values returned by read_imageui
14575 * are undefined.
14576 *
14577 * The read_image{i|ui} calls support a nearest filter
14578 * only. The filter_mode specified in sampler
14579 * must be set to CLK_FILTER_NEAREST; otherwise
14580 * the values returned are undefined.
14581
14582 * The read_image{f|i|ui} calls that take
14583 * integer coordinates must use a sampler with
14584 * normalized coordinates set to
14585 * CLK_NORMALIZED_COORDS_FALSE and
14586 * addressing mode set to
14587 * CLK_ADDRESS_CLAMP_TO_EDGE,
14588 * CLK_ADDRESS_CLAMP or CLK_ADDRESS_NONE;
14589 * otherwise the values returned are undefined.
14590 *
14591 * Values returned by read_imagef for image objects
14592 * with image_channel_data_type values not specified
14593 * in the description above are undefined.
14594 */
14595
14596float4 __purefn __ovld read_imagef(read_only image2d_t image, sampler_t sampler, int2 coord);
14597float4 __purefn __ovld read_imagef(read_only image2d_t image, sampler_t sampler, float2 coord);
14598
14599int4 __purefn __ovld read_imagei(read_only image2d_t image, sampler_t sampler, int2 coord);
14600int4 __purefn __ovld read_imagei(read_only image2d_t image, sampler_t sampler, float2 coord);
14601uint4 __purefn __ovld read_imageui(read_only image2d_t image, sampler_t sampler, int2 coord);
14602uint4 __purefn __ovld read_imageui(read_only image2d_t image, sampler_t sampler, float2 coord);
14603
14604float4 __purefn __ovld read_imagef(read_only image3d_t image, sampler_t sampler, int4 coord);
14605float4 __purefn __ovld read_imagef(read_only image3d_t image, sampler_t sampler, float4 coord);
14606
14607int4 __purefn __ovld read_imagei(read_only image3d_t image, sampler_t sampler, int4 coord);
14608int4 __purefn __ovld read_imagei(read_only image3d_t image, sampler_t sampler, float4 coord);
14609uint4 __purefn __ovld read_imageui(read_only image3d_t image, sampler_t sampler, int4 coord);
14610uint4 __purefn __ovld read_imageui(read_only image3d_t image, sampler_t sampler, float4 coord);
14611
14612#if __OPENCL_C_VERSION__ >= CL_VERSION_1_2
14613float4 __purefn __ovld read_imagef(read_only image2d_array_t image_array, sampler_t sampler, int4 coord);
14614float4 __purefn __ovld read_imagef(read_only image2d_array_t image_array, sampler_t sampler, float4 coord);
14615
14616int4 __purefn __ovld read_imagei(read_only image2d_array_t image_array, sampler_t sampler, int4 coord);
14617int4 __purefn __ovld read_imagei(read_only image2d_array_t image_array, sampler_t sampler, float4 coord);
14618uint4 __purefn __ovld read_imageui(read_only image2d_array_t image_array, sampler_t sampler, int4 coord);
14619uint4 __purefn __ovld read_imageui(read_only image2d_array_t image_array, sampler_t sampler, float4 coord);
14620#endif // __OPENCL_C_VERSION__ >= CL_VERSION_1_2
14621
14622float4 __purefn __ovld read_imagef(read_only image1d_t image, sampler_t sampler, int coord);
14623float4 __purefn __ovld read_imagef(read_only image1d_t image, sampler_t sampler, float coord);
14624
14625int4 __purefn __ovld read_imagei(read_only image1d_t image, sampler_t sampler, int coord);
14626int4 __purefn __ovld read_imagei(read_only image1d_t image, sampler_t sampler, float coord);
14627uint4 __purefn __ovld read_imageui(read_only image1d_t image, sampler_t sampler, int coord);
14628uint4 __purefn __ovld read_imageui(read_only image1d_t image, sampler_t sampler, float coord);
14629
14630#if __OPENCL_C_VERSION__ >= CL_VERSION_1_2
14631float4 __purefn __ovld read_imagef(read_only image1d_array_t image_array, sampler_t sampler, int2 coord);
14632float4 __purefn __ovld read_imagef(read_only image1d_array_t image_array, sampler_t sampler, float2 coord);
14633
14634int4 __purefn __ovld read_imagei(read_only image1d_array_t image_array, sampler_t sampler, int2 coord);
14635int4 __purefn __ovld read_imagei(read_only image1d_array_t image_array, sampler_t sampler, float2 coord);
14636uint4 __purefn __ovld read_imageui(read_only image1d_array_t image_array, sampler_t sampler, int2 coord);
14637uint4 __purefn __ovld read_imageui(read_only image1d_array_t image_array, sampler_t sampler, float2 coord);
14638#endif // __OPENCL_C_VERSION__ >= CL_VERSION_1_2
14639
14640#ifdef cl_khr_depth_images
14641float __purefn __ovld read_imagef(read_only image2d_depth_t image, sampler_t sampler, float2 coord);
14642float __purefn __ovld read_imagef(read_only image2d_depth_t image, sampler_t sampler, int2 coord);
14643
14644float __purefn __ovld read_imagef(read_only image2d_array_depth_t image, sampler_t sampler, float4 coord);
14645float __purefn __ovld read_imagef(read_only image2d_array_depth_t image, sampler_t sampler, int4 coord);
14646#endif //cl_khr_depth_images
14647
14648#if defined(cl_khr_gl_msaa_sharing)
14649float4 __purefn __ovld read_imagef(read_only image2d_msaa_t image, int2 coord, int sample);
14650int4 __purefn __ovld read_imagei(read_only image2d_msaa_t image, int2 coord, int sample);
14651uint4 __purefn __ovld read_imageui(read_only image2d_msaa_t image, int2 coord, int sample);
14652
14653float __purefn __ovld read_imagef(read_only image2d_msaa_depth_t image, int2 coord, int sample);
14654
14655float4 __purefn __ovld read_imagef(read_only image2d_array_msaa_t image, int4 coord, int sample);
14656int4 __purefn __ovld read_imagei(read_only image2d_array_msaa_t image, int4 coord, int sample);
14657uint4 __purefn __ovld read_imageui(read_only image2d_array_msaa_t image, int4 coord, int sample);
14658
14659float __purefn __ovld read_imagef(read_only image2d_array_msaa_depth_t image, int4 coord, int sample);
14660#endif //cl_khr_gl_msaa_sharing
14661
14662// OpenCL Extension v2.0 s9.18 - Mipmaps
14663#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
14664#ifdef cl_khr_mipmap_image
14665
14666float4 __purefn __ovld read_imagef(read_only image1d_t image, sampler_t sampler, float coord, float lod);
14667int4 __purefn __ovld read_imagei(read_only image1d_t image, sampler_t sampler, float coord, float lod);
14668uint4 __purefn __ovld read_imageui(read_only image1d_t image, sampler_t sampler, float coord, float lod);
14669
14670float4 __purefn __ovld read_imagef(read_only image1d_array_t image_array, sampler_t sampler, float2 coord, float lod);
14671int4 __purefn __ovld read_imagei(read_only image1d_array_t image_array, sampler_t sampler, float2 coord, float lod);
14672uint4 __purefn __ovld read_imageui(read_only image1d_array_t image_array, sampler_t sampler, float2 coord, float lod);
14673
14674float4 __purefn __ovld read_imagef(read_only image2d_t image, sampler_t sampler, float2 coord, float lod);
14675int4 __purefn __ovld read_imagei(read_only image2d_t image, sampler_t sampler, float2 coord, float lod);
14676uint4 __purefn __ovld read_imageui(read_only image2d_t image, sampler_t sampler, float2 coord, float lod);
14677
14678float __purefn __ovld read_imagef(read_only image2d_depth_t image, sampler_t sampler, float2 coord, float lod);
14679
14680float4 __purefn __ovld read_imagef(read_only image2d_array_t image_array, sampler_t sampler, float4 coord, float lod);
14681int4 __purefn __ovld read_imagei(read_only image2d_array_t image_array, sampler_t sampler, float4 coord, float lod);
14682uint4 __purefn __ovld read_imageui(read_only image2d_array_t image_array, sampler_t sampler, float4 coord, float lod);
14683
14684float __purefn __ovld read_imagef(read_only image2d_array_depth_t image, sampler_t sampler, float4 coord, float lod);
14685
14686float4 __purefn __ovld read_imagef(read_only image3d_t image, sampler_t sampler, float4 coord, float lod);
14687int4 __purefn __ovld read_imagei(read_only image3d_t image, sampler_t sampler, float4 coord, float lod);
14688uint4 __purefn __ovld read_imageui(read_only image3d_t image, sampler_t sampler, float4 coord, float lod);
14689
14690float4 __purefn __ovld read_imagef(read_only image1d_t image, sampler_t sampler, float coord, float gradientX, float gradientY);
14691int4 __purefn __ovld read_imagei(read_only image1d_t image, sampler_t sampler, float coord, float gradientX, float gradientY);
14692uint4 __purefn __ovld read_imageui(read_only image1d_t image, sampler_t sampler, float coord, float gradientX, float gradientY);
14693
14694float4 __purefn __ovld read_imagef(read_only image1d_array_t image_array, sampler_t sampler, float2 coord, float gradientX, float gradientY);
14695int4 __purefn __ovld read_imagei(read_only image1d_array_t image_array, sampler_t sampler, float2 coord, float gradientX, float gradientY);
14696uint4 __purefn __ovld read_imageui(read_only image1d_array_t image_array, sampler_t sampler, float2 coord, float gradientX, float gradientY);
14697
14698float4 __purefn __ovld read_imagef(read_only image2d_t image, sampler_t sampler, float2 coord, float2 gradientX, float2 gradientY);
14699int4 __purefn __ovld read_imagei(read_only image2d_t image, sampler_t sampler, float2 coord, float2 gradientX, float2 gradientY);
14700uint4 __purefn __ovld read_imageui(read_only image2d_t image, sampler_t sampler, float2 coord, float2 gradientX, float2 gradientY);
14701
14702float __purefn __ovld read_imagef(read_only image2d_depth_t image, sampler_t sampler, float2 coord, float2 gradientX, float2 gradientY);
14703
14704float4 __purefn __ovld read_imagef(read_only image2d_array_t image_array, sampler_t sampler, float4 coord, float2 gradientX, float2 gradientY);
14705int4 __purefn __ovld read_imagei(read_only image2d_array_t image_array, sampler_t sampler, float4 coord, float2 gradientX, float2 gradientY);
14706uint4 __purefn __ovld read_imageui(read_only image2d_array_t image_array, sampler_t sampler, float4 coord, float2 gradientX, float2 gradientY);
14707
14708float __purefn __ovld read_imagef(read_only image2d_array_depth_t image, sampler_t sampler, float4 coord, float2 gradientX, float2 gradientY);
14709
14710float4 __purefn __ovld read_imagef(read_only image3d_t image, sampler_t sampler, float4 coord, float4 gradientX, float4 gradientY);
14711int4 __purefn __ovld read_imagei(read_only image3d_t image, sampler_t sampler, float4 coord, float4 gradientX, float4 gradientY);
14712uint4 __purefn __ovld read_imageui(read_only image3d_t image, sampler_t sampler, float4 coord, float4 gradientX, float4 gradientY);
14713
14714float4 __purefn __ovld read_imagef(read_only image1d_t image, sampler_t sampler, float coord, float lod);
14715int4 __purefn __ovld read_imagei(read_only image1d_t image, sampler_t sampler, float coord, float lod);
14716uint4 __purefn __ovld read_imageui(read_only image1d_t image, sampler_t sampler, float coord, float lod);
14717
14718float4 __purefn __ovld read_imagef(read_only image1d_array_t image_array, sampler_t sampler, float2 coord, float lod);
14719int4 __purefn __ovld read_imagei(read_only image1d_array_t image_array, sampler_t sampler, float2 coord, float lod);
14720uint4 __purefn __ovld read_imageui(read_only image1d_array_t image_array, sampler_t sampler, float2 coord, float lod);
14721
14722float4 __purefn __ovld read_imagef(read_only image2d_t image, sampler_t sampler, float2 coord, float lod);
14723int4 __purefn __ovld read_imagei(read_only image2d_t image, sampler_t sampler, float2 coord, float lod);
14724uint4 __purefn __ovld read_imageui(read_only image2d_t image, sampler_t sampler, float2 coord, float lod);
14725
14726float __purefn __ovld read_imagef(read_only image2d_depth_t image, sampler_t sampler, float2 coord, float lod);
14727
14728float4 __purefn __ovld read_imagef(read_only image2d_array_t image_array, sampler_t sampler, float4 coord, float lod);
14729int4 __purefn __ovld read_imagei(read_only image2d_array_t image_array, sampler_t sampler, float4 coord, float lod);
14730uint4 __purefn __ovld read_imageui(read_only image2d_array_t image_array, sampler_t sampler, float4 coord, float lod);
14731
14732float __purefn __ovld read_imagef(read_only image2d_array_depth_t image, sampler_t sampler, float4 coord, float lod);
14733
14734float4 __purefn __ovld read_imagef(read_only image3d_t image, sampler_t sampler, float4 coord, float lod);
14735int4 __purefn __ovld read_imagei(read_only image3d_t image, sampler_t sampler, float4 coord, float lod);
14736uint4 __purefn __ovld read_imageui(read_only image3d_t image, sampler_t sampler, float4 coord, float lod);
14737
14738#endif //cl_khr_mipmap_image
14739#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
14740
14741#if __OPENCL_C_VERSION__ >= CL_VERSION_1_2
14742
14743/**
14744* Sampler-less Image Access
14745*/
14746
14747float4 __purefn __ovld read_imagef(read_only image1d_t image, int coord);
14748int4 __purefn __ovld read_imagei(read_only image1d_t image, int coord);
14749uint4 __purefn __ovld read_imageui(read_only image1d_t image, int coord);
14750
14751float4 __purefn __ovld read_imagef(read_only image1d_buffer_t image, int coord);
14752int4 __purefn __ovld read_imagei(read_only image1d_buffer_t image, int coord);
14753uint4 __purefn __ovld read_imageui(read_only image1d_buffer_t image, int coord);
14754
14755float4 __purefn __ovld read_imagef(read_only image1d_array_t image, int2 coord);
14756int4 __purefn __ovld read_imagei(read_only image1d_array_t image, int2 coord);
14757uint4 __purefn __ovld read_imageui(read_only image1d_array_t image, int2 coord);
14758
14759float4 __purefn __ovld read_imagef(read_only image2d_t image, int2 coord);
14760int4 __purefn __ovld read_imagei(read_only image2d_t image, int2 coord);
14761uint4 __purefn __ovld read_imageui(read_only image2d_t image, int2 coord);
14762
14763float4 __purefn __ovld read_imagef(read_only image2d_array_t image, int4 coord);
14764int4 __purefn __ovld read_imagei(read_only image2d_array_t image, int4 coord);
14765uint4 __purefn __ovld read_imageui(read_only image2d_array_t image, int4 coord);
14766
14767#ifdef cl_khr_depth_images
14768float __purefn __ovld read_imagef(read_only image2d_depth_t image, int2 coord);
14769float __purefn __ovld read_imagef(read_only image2d_array_depth_t image, int4 coord);
14770#endif //cl_khr_depth_images
14771
14772float4 __purefn __ovld read_imagef(read_only image3d_t image, int4 coord);
14773int4 __purefn __ovld read_imagei(read_only image3d_t image, int4 coord);
14774uint4 __purefn __ovld read_imageui(read_only image3d_t image, int4 coord);
14775
14776#endif // __OPENCL_C_VERSION__ >= CL_VERSION_1_2
14777
14778// Image read functions returning half4 type
14779#ifdef cl_khr_fp16
14780half4 __purefn __ovld read_imageh(read_only image1d_t image, sampler_t sampler, int coord);
14781half4 __purefn __ovld read_imageh(read_only image1d_t image, sampler_t sampler, float coord);
14782half4 __purefn __ovld read_imageh(read_only image2d_t image, sampler_t sampler, int2 coord);
14783half4 __purefn __ovld read_imageh(read_only image2d_t image, sampler_t sampler, float2 coord);
14784half4 __purefn __ovld read_imageh(read_only image3d_t image, sampler_t sampler, int4 coord);
14785half4 __purefn __ovld read_imageh(read_only image3d_t image, sampler_t sampler, float4 coord);
14786#if __OPENCL_C_VERSION__ >= CL_VERSION_1_2
14787half4 __purefn __ovld read_imageh(read_only image1d_array_t image, sampler_t sampler, int2 coord);
14788half4 __purefn __ovld read_imageh(read_only image1d_array_t image, sampler_t sampler, float2 coord);
14789half4 __purefn __ovld read_imageh(read_only image2d_array_t image, sampler_t sampler, int4 coord);
14790half4 __purefn __ovld read_imageh(read_only image2d_array_t image, sampler_t sampler, float4 coord);
14791/**
14792 * Sampler-less Image Access
14793 */
14794half4 __purefn __ovld read_imageh(read_only image1d_t image, int coord);
14795half4 __purefn __ovld read_imageh(read_only image2d_t image, int2 coord);
14796half4 __purefn __ovld read_imageh(read_only image3d_t image, int4 coord);
14797half4 __purefn __ovld read_imageh(read_only image1d_array_t image, int2 coord);
14798half4 __purefn __ovld read_imageh(read_only image2d_array_t image, int4 coord);
14799half4 __purefn __ovld read_imageh(read_only image1d_buffer_t image, int coord);
14800#endif // __OPENCL_C_VERSION__ >= CL_VERSION_1_2
14801#endif //cl_khr_fp16
14802
14803// Image read functions for read_write images
14804#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
14805float4 __purefn __ovld read_imagef(read_write image1d_t image, int coord);
14806int4 __purefn __ovld read_imagei(read_write image1d_t image, int coord);
14807uint4 __purefn __ovld read_imageui(read_write image1d_t image, int coord);
14808
14809float4 __purefn __ovld read_imagef(read_write image1d_buffer_t image, int coord);
14810int4 __purefn __ovld read_imagei(read_write image1d_buffer_t image, int coord);
14811uint4 __purefn __ovld read_imageui(read_write image1d_buffer_t image, int coord);
14812
14813float4 __purefn __ovld read_imagef(read_write image1d_array_t image, int2 coord);
14814int4 __purefn __ovld read_imagei(read_write image1d_array_t image, int2 coord);
14815uint4 __purefn __ovld read_imageui(read_write image1d_array_t image, int2 coord);
14816
14817float4 __purefn __ovld read_imagef(read_write image2d_t image, int2 coord);
14818int4 __purefn __ovld read_imagei(read_write image2d_t image, int2 coord);
14819uint4 __purefn __ovld read_imageui(read_write image2d_t image, int2 coord);
14820
14821float4 __purefn __ovld read_imagef(read_write image2d_array_t image, int4 coord);
14822int4 __purefn __ovld read_imagei(read_write image2d_array_t image, int4 coord);
14823uint4 __purefn __ovld read_imageui(read_write image2d_array_t image, int4 coord);
14824
14825float4 __purefn __ovld read_imagef(read_write image3d_t image, int4 coord);
14826int4 __purefn __ovld read_imagei(read_write image3d_t image, int4 coord);
14827uint4 __purefn __ovld read_imageui(read_write image3d_t image, int4 coord);
14828
14829#ifdef cl_khr_depth_images
14830float __purefn __ovld read_imagef(read_write image2d_depth_t image, int2 coord);
14831float __purefn __ovld read_imagef(read_write image2d_array_depth_t image, int4 coord);
14832#endif //cl_khr_depth_images
14833
14834#if cl_khr_gl_msaa_sharing
14835float4 __purefn __ovld read_imagef(read_write image2d_msaa_t image, int2 coord, int sample);
14836int4 __purefn __ovld read_imagei(read_write image2d_msaa_t image, int2 coord, int sample);
14837uint4 __purefn __ovld read_imageui(read_write image2d_msaa_t image, int2 coord, int sample);
14838
14839float4 __purefn __ovld read_imagef(read_write image2d_array_msaa_t image, int4 coord, int sample);
14840int4 __purefn __ovld read_imagei(read_write image2d_array_msaa_t image, int4 coord, int sample);
14841uint4 __purefn __ovld read_imageui(read_write image2d_array_msaa_t image, int4 coord, int sample);
14842
14843float __purefn __ovld read_imagef(read_write image2d_msaa_depth_t image, int2 coord, int sample);
14844float __purefn __ovld read_imagef(read_write image2d_array_msaa_depth_t image, int4 coord, int sample);
14845#endif //cl_khr_gl_msaa_sharing
14846
14847#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
14848#ifdef cl_khr_mipmap_image
14849float4 __purefn __ovld read_imagef(read_write image1d_t image, sampler_t sampler, float coord, float lod);
14850int4 __purefn __ovld read_imagei(read_write image1d_t image, sampler_t sampler, float coord, float lod);
14851uint4 __purefn __ovld read_imageui(read_write image1d_t image, sampler_t sampler, float coord, float lod);
14852
14853float4 __purefn __ovld read_imagef(read_write image1d_array_t image_array, sampler_t sampler, float2 coord, float lod);
14854int4 __purefn __ovld read_imagei(read_write image1d_array_t image_array, sampler_t sampler, float2 coord, float lod);
14855uint4 __purefn __ovld read_imageui(read_write image1d_array_t image_array, sampler_t sampler, float2 coord, float lod);
14856
14857float4 __purefn __ovld read_imagef(read_write image2d_t image, sampler_t sampler, float2 coord, float lod);
14858int4 __purefn __ovld read_imagei(read_write image2d_t image, sampler_t sampler, float2 coord, float lod);
14859uint4 __purefn __ovld read_imageui(read_write image2d_t image, sampler_t sampler, float2 coord, float lod);
14860
14861float __purefn __ovld read_imagef(read_write image2d_depth_t image, sampler_t sampler, float2 coord, float lod);
14862
14863float4 __purefn __ovld read_imagef(read_write image2d_array_t image_array, sampler_t sampler, float4 coord, float lod);
14864int4 __purefn __ovld read_imagei(read_write image2d_array_t image_array, sampler_t sampler, float4 coord, float lod);
14865uint4 __purefn __ovld read_imageui(read_write image2d_array_t image_array, sampler_t sampler, float4 coord, float lod);
14866
14867float __purefn __ovld read_imagef(read_write image2d_array_depth_t image, sampler_t sampler, float4 coord, float lod);
14868
14869float4 __purefn __ovld read_imagef(read_write image3d_t image, sampler_t sampler, float4 coord, float lod);
14870int4 __purefn __ovld read_imagei(read_write image3d_t image, sampler_t sampler, float4 coord, float lod);
14871uint4 __purefn __ovld read_imageui(read_write image3d_t image, sampler_t sampler, float4 coord, float lod);
14872
14873float4 __purefn __ovld read_imagef(read_write image1d_t image, sampler_t sampler, float coord, float gradientX, float gradientY);
14874int4 __purefn __ovld read_imagei(read_write image1d_t image, sampler_t sampler, float coord, float gradientX, float gradientY);
14875uint4 __purefn __ovld read_imageui(read_write image1d_t image, sampler_t sampler, float coord, float gradientX, float gradientY);
14876
14877float4 __purefn __ovld read_imagef(read_write image1d_array_t image_array, sampler_t sampler, float2 coord, float gradientX, float gradientY);
14878int4 __purefn __ovld read_imagei(read_write image1d_array_t image_array, sampler_t sampler, float2 coord, float gradientX, float gradientY);
14879uint4 __purefn __ovld read_imageui(read_write image1d_array_t image_array, sampler_t sampler, float2 coord, float gradientX, float gradientY);
14880
14881float4 __purefn __ovld read_imagef(read_write image2d_t image, sampler_t sampler, float2 coord, float2 gradientX, float2 gradientY);
14882int4 __purefn __ovld read_imagei(read_write image2d_t image, sampler_t sampler, float2 coord, float2 gradientX, float2 gradientY);
14883uint4 __purefn __ovld read_imageui(read_write image2d_t image, sampler_t sampler, float2 coord, float2 gradientX, float2 gradientY);
14884
14885float __purefn __ovld read_imagef(read_write image2d_depth_t image, sampler_t sampler, float2 coord, float2 gradientX, float2 gradientY);
14886
14887float4 __purefn __ovld read_imagef(read_write image2d_array_t image_array, sampler_t sampler, float4 coord, float2 gradientX, float2 gradientY);
14888int4 __purefn __ovld read_imagei(read_write image2d_array_t image_array, sampler_t sampler, float4 coord, float2 gradientX, float2 gradientY);
14889uint4 __purefn __ovld read_imageui(read_write image2d_array_t image_array, sampler_t sampler, float4 coord, float2 gradientX, float2 gradientY);
14890
14891float __purefn __ovld read_imagef(read_write image2d_array_depth_t image, sampler_t sampler, float4 coord, float2 gradientX, float2 gradientY);
14892
14893float4 __purefn __ovld read_imagef(read_write image3d_t image, sampler_t sampler, float4 coord, float4 gradientX, float4 gradientY);
14894int4 __purefn __ovld read_imagei(read_write image3d_t image, sampler_t sampler, float4 coord, float4 gradientX, float4 gradientY);
14895uint4 __purefn __ovld read_imageui(read_write image3d_t image, sampler_t sampler, float4 coord, float4 gradientX, float4 gradientY);
14896
14897float4 __purefn __ovld read_imagef(read_write image1d_t image, sampler_t sampler, float coord, float lod);
14898int4 __purefn __ovld read_imagei(read_write image1d_t image, sampler_t sampler, float coord, float lod);
14899uint4 __purefn __ovld read_imageui(read_write image1d_t image, sampler_t sampler, float coord, float lod);
14900
14901float4 __purefn __ovld read_imagef(read_write image1d_array_t image_array, sampler_t sampler, float2 coord, float lod);
14902int4 __purefn __ovld read_imagei(read_write image1d_array_t image_array, sampler_t sampler, float2 coord, float lod);
14903uint4 __purefn __ovld read_imageui(read_write image1d_array_t image_array, sampler_t sampler, float2 coord, float lod);
14904
14905float4 __purefn __ovld read_imagef(read_write image2d_t image, sampler_t sampler, float2 coord, float lod);
14906int4 __purefn __ovld read_imagei(read_write image2d_t image, sampler_t sampler, float2 coord, float lod);
14907uint4 __purefn __ovld read_imageui(read_write image2d_t image, sampler_t sampler, float2 coord, float lod);
14908
14909float __purefn __ovld read_imagef(read_write image2d_depth_t image, sampler_t sampler, float2 coord, float lod);
14910
14911float4 __purefn __ovld read_imagef(read_write image2d_array_t image_array, sampler_t sampler, float4 coord, float lod);
14912int4 __purefn __ovld read_imagei(read_write image2d_array_t image_array, sampler_t sampler, float4 coord, float lod);
14913uint4 __purefn __ovld read_imageui(read_write image2d_array_t image_array, sampler_t sampler, float4 coord, float lod);
14914
14915float __purefn __ovld read_imagef(read_write image2d_array_depth_t image, sampler_t sampler, float4 coord, float lod);
14916
14917float4 __purefn __ovld read_imagef(read_write image3d_t image, sampler_t sampler, float4 coord, float lod);
14918int4 __purefn __ovld read_imagei(read_write image3d_t image, sampler_t sampler, float4 coord, float lod);
14919uint4 __purefn __ovld read_imageui(read_write image3d_t image, sampler_t sampler, float4 coord, float lod);
14920#endif //cl_khr_mipmap_image
14921#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
14922
14923// Image read functions returning half4 type
14924#ifdef cl_khr_fp16
14925half4 __purefn __ovld read_imageh(read_write image1d_t image, int coord);
14926half4 __purefn __ovld read_imageh(read_write image2d_t image, int2 coord);
14927half4 __purefn __ovld read_imageh(read_write image3d_t image, int4 coord);
14928half4 __purefn __ovld read_imageh(read_write image1d_array_t image, int2 coord);
14929half4 __purefn __ovld read_imageh(read_write image2d_array_t image, int4 coord);
14930half4 __purefn __ovld read_imageh(read_write image1d_buffer_t image, int coord);
14931#endif //cl_khr_fp16
14932#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
14933
14934/**
14935 * Write color value to location specified by coordinate
14936 * (coord.x, coord.y) in the 2D image object specified by image.
14937 * (coord.x, coord.y) are considered to be unnormalized coordinates
14938 * and must be in the range 0 ... image width - 1, and 0
14939 * ... image height - 1.
14940
14941 * Write color value to location specified by coordinate
14942 * (coord.x, coord.y) in the 2D image object specified by index
14943 * (coord.z) of the 2D image array object image_array.
14944 * (coord.x, coord.y) are considered to be unnormalized
14945 * coordinates and must be in the range 0 ... image width
14946 * - 1.
14947 *
14948 * Write color value to location specified by coordinate
14949 * (coord) in the 1D image (buffer) object specified by image.
14950 * coord is considered to be unnormalized coordinates
14951 * and must be in the range 0 ... image width - 1.
14952 *
14953 * Write color value to location specified by coordinate
14954 * (coord.x) in the 1D image object specified by index
14955 * (coord.y) of the 1D image array object image_array.
14956 * x is considered to be unnormalized coordinates
14957 * and must be in the range 0 ... image width - 1.
14958 *
14959 * Write color value to location specified by coordinate
14960 * (coord.x, coord.y, coord.z) in the 3D image object specified by image.
14961 * coord.x & coord.y are considered to be unnormalized coordinates
14962 * and must be in the range 0 ... image width - 1, and 0
14963 * ... image height - 1.
14964 *
14965 * For mipmap images, use mip-level specified by lod.
14966 *
14967 * Appropriate data format conversion to the specified
14968 * image format is done before writing the color value.
14969 *
14970 * write_imagef can only be used with image objects
14971 * created with image_channel_data_type set to one of
14972 * the pre-defined packed formats or set to
14973 * CL_SNORM_INT8, CL_UNORM_INT8,
14974 * CL_SNORM_INT16, CL_UNORM_INT16,
14975 * CL_HALF_FLOAT or CL_FLOAT. Appropriate data
14976 * format conversion will be done to convert channel
14977 * data from a floating-point value to actual data format
14978 * in which the channels are stored.
14979 *
14980 * write_imagei can only be used with image objects
14981 * created with image_channel_data_type set to one of
14982 * the following values:
14983 * CL_SIGNED_INT8,
14984 * CL_SIGNED_INT16 and
14985 * CL_SIGNED_INT32.
14986 *
14987 * write_imageui can only be used with image objects
14988 * created with image_channel_data_type set to one of
14989 * the following values:
14990 * CL_UNSIGNED_INT8,
14991 * CL_UNSIGNED_INT16 and
14992 * CL_UNSIGNED_INT32.
14993 *
14994 * The behavior of write_imagef, write_imagei and
14995 * write_imageui for image objects created with
14996 * image_channel_data_type values not specified in
14997 * the description above or with (x, y) coordinate
14998 * values that are not in the range (0 ... image width -1,
14999 * 0 ... image height - 1), respectively, is undefined.
15000 */
15001void __ovld write_imagef(write_only image2d_t image, int2 coord, float4 color);
15002void __ovld write_imagei(write_only image2d_t image, int2 coord, int4 color);
15003void __ovld write_imageui(write_only image2d_t image, int2 coord, uint4 color);
15004
15005void __ovld write_imagef(write_only image2d_array_t image_array, int4 coord, float4 color);
15006void __ovld write_imagei(write_only image2d_array_t image_array, int4 coord, int4 color);
15007void __ovld write_imageui(write_only image2d_array_t image_array, int4 coord, uint4 color);
15008
15009void __ovld write_imagef(write_only image1d_t image, int coord, float4 color);
15010void __ovld write_imagei(write_only image1d_t image, int coord, int4 color);
15011void __ovld write_imageui(write_only image1d_t image, int coord, uint4 color);
15012
15013void __ovld write_imagef(write_only image1d_buffer_t image, int coord, float4 color);
15014void __ovld write_imagei(write_only image1d_buffer_t image, int coord, int4 color);
15015void __ovld write_imageui(write_only image1d_buffer_t image, int coord, uint4 color);
15016
15017void __ovld write_imagef(write_only image1d_array_t image_array, int2 coord, float4 color);
15018void __ovld write_imagei(write_only image1d_array_t image_array, int2 coord, int4 color);
15019void __ovld write_imageui(write_only image1d_array_t image_array, int2 coord, uint4 color);
15020
15021#ifdef cl_khr_3d_image_writes
15022void __ovld write_imagef(write_only image3d_t image, int4 coord, float4 color);
15023void __ovld write_imagei(write_only image3d_t image, int4 coord, int4 color);
15024void __ovld write_imageui(write_only image3d_t image, int4 coord, uint4 color);
15025#endif
15026
15027#ifdef cl_khr_depth_images
15028void __ovld write_imagef(write_only image2d_depth_t image, int2 coord, float color);
15029void __ovld write_imagef(write_only image2d_array_depth_t image, int4 coord, float color);
15030#endif //cl_khr_depth_images
15031
15032// OpenCL Extension v2.0 s9.18 - Mipmaps
15033#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15034#ifdef cl_khr_mipmap_image
15035void __ovld write_imagef(write_only image1d_t image, int coord, int lod, float4 color);
15036void __ovld write_imagei(write_only image1d_t image, int coord, int lod, int4 color);
15037void __ovld write_imageui(write_only image1d_t image, int coord, int lod, uint4 color);
15038
15039void __ovld write_imagef(write_only image1d_array_t image_array, int2 coord, int lod, float4 color);
15040void __ovld write_imagei(write_only image1d_array_t image_array, int2 coord, int lod, int4 color);
15041void __ovld write_imageui(write_only image1d_array_t image_array, int2 coord, int lod, uint4 color);
15042
15043void __ovld write_imagef(write_only image2d_t image, int2 coord, int lod, float4 color);
15044void __ovld write_imagei(write_only image2d_t image, int2 coord, int lod, int4 color);
15045void __ovld write_imageui(write_only image2d_t image, int2 coord, int lod, uint4 color);
15046
15047void __ovld write_imagef(write_only image2d_array_t image_array, int4 coord, int lod, float4 color);
15048void __ovld write_imagei(write_only image2d_array_t image_array, int4 coord, int lod, int4 color);
15049void __ovld write_imageui(write_only image2d_array_t image_array, int4 coord, int lod, uint4 color);
15050
15051void __ovld write_imagef(write_only image2d_depth_t image, int2 coord, int lod, float color);
15052void __ovld write_imagef(write_only image2d_array_depth_t image, int4 coord, int lod, float color);
15053
15054#ifdef cl_khr_3d_image_writes
15055void __ovld write_imagef(write_only image3d_t image, int4 coord, int lod, float4 color);
15056void __ovld write_imagei(write_only image3d_t image, int4 coord, int lod, int4 color);
15057void __ovld write_imageui(write_only image3d_t image, int4 coord, int lod, uint4 color);
15058#endif
15059#endif //cl_khr_mipmap_image
15060#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15061
15062// Image write functions for half4 type
15063#ifdef cl_khr_fp16
15064void __ovld write_imageh(write_only image1d_t image, int coord, half4 color);
15065void __ovld write_imageh(write_only image2d_t image, int2 coord, half4 color);
15066#ifdef cl_khr_3d_image_writes
15067void __ovld write_imageh(write_only image3d_t image, int4 coord, half4 color);
15068#endif
15069void __ovld write_imageh(write_only image1d_array_t image, int2 coord, half4 color);
15070void __ovld write_imageh(write_only image2d_array_t image, int4 coord, half4 color);
15071void __ovld write_imageh(write_only image1d_buffer_t image, int coord, half4 color);
15072#endif //cl_khr_fp16
15073
15074// Image write functions for read_write images
15075#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15076void __ovld write_imagef(read_write image2d_t image, int2 coord, float4 color);
15077void __ovld write_imagei(read_write image2d_t image, int2 coord, int4 color);
15078void __ovld write_imageui(read_write image2d_t image, int2 coord, uint4 color);
15079
15080void __ovld write_imagef(read_write image2d_array_t image_array, int4 coord, float4 color);
15081void __ovld write_imagei(read_write image2d_array_t image_array, int4 coord, int4 color);
15082void __ovld write_imageui(read_write image2d_array_t image_array, int4 coord, uint4 color);
15083
15084void __ovld write_imagef(read_write image1d_t image, int coord, float4 color);
15085void __ovld write_imagei(read_write image1d_t image, int coord, int4 color);
15086void __ovld write_imageui(read_write image1d_t image, int coord, uint4 color);
15087
15088void __ovld write_imagef(read_write image1d_buffer_t image, int coord, float4 color);
15089void __ovld write_imagei(read_write image1d_buffer_t image, int coord, int4 color);
15090void __ovld write_imageui(read_write image1d_buffer_t image, int coord, uint4 color);
15091
15092void __ovld write_imagef(read_write image1d_array_t image_array, int2 coord, float4 color);
15093void __ovld write_imagei(read_write image1d_array_t image_array, int2 coord, int4 color);
15094void __ovld write_imageui(read_write image1d_array_t image_array, int2 coord, uint4 color);
15095
15096#ifdef cl_khr_3d_image_writes
15097void __ovld write_imagef(read_write image3d_t image, int4 coord, float4 color);
15098void __ovld write_imagei(read_write image3d_t image, int4 coord, int4 color);
15099void __ovld write_imageui(read_write image3d_t image, int4 coord, uint4 color);
15100#endif
15101
15102#ifdef cl_khr_depth_images
15103void __ovld write_imagef(read_write image2d_depth_t image, int2 coord, float color);
15104void __ovld write_imagef(read_write image2d_array_depth_t image, int4 coord, float color);
15105#endif //cl_khr_depth_images
15106
15107#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15108#ifdef cl_khr_mipmap_image
15109void __ovld write_imagef(read_write image1d_t image, int coord, int lod, float4 color);
15110void __ovld write_imagei(read_write image1d_t image, int coord, int lod, int4 color);
15111void __ovld write_imageui(read_write image1d_t image, int coord, int lod, uint4 color);
15112
15113void __ovld write_imagef(read_write image1d_array_t image_array, int2 coord, int lod, float4 color);
15114void __ovld write_imagei(read_write image1d_array_t image_array, int2 coord, int lod, int4 color);
15115void __ovld write_imageui(read_write image1d_array_t image_array, int2 coord, int lod, uint4 color);
15116
15117void __ovld write_imagef(read_write image2d_t image, int2 coord, int lod, float4 color);
15118void __ovld write_imagei(read_write image2d_t image, int2 coord, int lod, int4 color);
15119void __ovld write_imageui(read_write image2d_t image, int2 coord, int lod, uint4 color);
15120
15121void __ovld write_imagef(read_write image2d_array_t image_array, int4 coord, int lod, float4 color);
15122void __ovld write_imagei(read_write image2d_array_t image_array, int4 coord, int lod, int4 color);
15123void __ovld write_imageui(read_write image2d_array_t image_array, int4 coord, int lod, uint4 color);
15124
15125void __ovld write_imagef(read_write image2d_depth_t image, int2 coord, int lod, float color);
15126void __ovld write_imagef(read_write image2d_array_depth_t image, int4 coord, int lod, float color);
15127
15128#ifdef cl_khr_3d_image_writes
15129void __ovld write_imagef(read_write image3d_t image, int4 coord, int lod, float4 color);
15130void __ovld write_imagei(read_write image3d_t image, int4 coord, int lod, int4 color);
15131void __ovld write_imageui(read_write image3d_t image, int4 coord, int lod, uint4 color);
15132#endif
15133#endif //cl_khr_mipmap_image
15134#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15135
15136// Image write functions for half4 type
15137#ifdef cl_khr_fp16
15138void __ovld write_imageh(read_write image1d_t image, int coord, half4 color);
15139void __ovld write_imageh(read_write image2d_t image, int2 coord, half4 color);
15140#ifdef cl_khr_3d_image_writes
15141void __ovld write_imageh(read_write image3d_t image, int4 coord, half4 color);
15142#endif
15143void __ovld write_imageh(read_write image1d_array_t image, int2 coord, half4 color);
15144void __ovld write_imageh(read_write image2d_array_t image, int4 coord, half4 color);
15145void __ovld write_imageh(read_write image1d_buffer_t image, int coord, half4 color);
15146#endif //cl_khr_fp16
15147#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15148
15149// Note: In OpenCL v1.0/1.1/1.2, image argument of image query builtin functions does not have
15150// access qualifier, which by default assume read_only access qualifier. Image query builtin
15151// functions with write_only image argument should also be declared.
15152
15153/**
15154 * Return the image width in pixels.
15155 *
15156  */
15157int __ovld __cnfn get_image_width(read_only image1d_t image);
15158int __ovld __cnfn get_image_width(read_only image1d_buffer_t image);
15159int __ovld __cnfn get_image_width(read_only image2d_t image);
15160#ifdef cl_khr_3d_image_writes
15161int __ovld __cnfn get_image_width(read_only image3d_t image);
15162#endif
15163int __ovld __cnfn get_image_width(read_only image1d_array_t image);
15164int __ovld __cnfn get_image_width(read_only image2d_array_t image);
15165#ifdef cl_khr_depth_images
15166int __ovld __cnfn get_image_width(read_only image2d_depth_t image);
15167int __ovld __cnfn get_image_width(read_only image2d_array_depth_t image);
15168#endif //cl_khr_depth_images
15169#if defined(cl_khr_gl_msaa_sharing)
15170int __ovld __cnfn get_image_width(read_only image2d_msaa_t image);
15171int __ovld __cnfn get_image_width(read_only image2d_msaa_depth_t image);
15172int __ovld __cnfn get_image_width(read_only image2d_array_msaa_t image);
15173int __ovld __cnfn get_image_width(read_only image2d_array_msaa_depth_t image);
15174#endif //cl_khr_gl_msaa_sharing
15175
15176int __ovld __cnfn get_image_width(write_only image1d_t image);
15177int __ovld __cnfn get_image_width(write_only image1d_buffer_t image);
15178int __ovld __cnfn get_image_width(write_only image2d_t image);
15179#ifdef cl_khr_3d_image_writes
15180int __ovld __cnfn get_image_width(write_only image3d_t image);
15181#endif
15182int __ovld __cnfn get_image_width(write_only image1d_array_t image);
15183int __ovld __cnfn get_image_width(write_only image2d_array_t image);
15184#ifdef cl_khr_depth_images
15185int __ovld __cnfn get_image_width(write_only image2d_depth_t image);
15186int __ovld __cnfn get_image_width(write_only image2d_array_depth_t image);
15187#endif //cl_khr_depth_images
15188#if defined(cl_khr_gl_msaa_sharing)
15189int __ovld __cnfn get_image_width(write_only image2d_msaa_t image);
15190int __ovld __cnfn get_image_width(write_only image2d_msaa_depth_t image);
15191int __ovld __cnfn get_image_width(write_only image2d_array_msaa_t image);
15192int __ovld __cnfn get_image_width(write_only image2d_array_msaa_depth_t image);
15193#endif //cl_khr_gl_msaa_sharing
15194
15195#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15196int __ovld __cnfn get_image_width(read_write image1d_t image);
15197int __ovld __cnfn get_image_width(read_write image1d_buffer_t image);
15198int __ovld __cnfn get_image_width(read_write image2d_t image);
15199int __ovld __cnfn get_image_width(read_write image3d_t image);
15200int __ovld __cnfn get_image_width(read_write image1d_array_t image);
15201int __ovld __cnfn get_image_width(read_write image2d_array_t image);
15202#ifdef cl_khr_depth_images
15203int __ovld __cnfn get_image_width(read_write image2d_depth_t image);
15204int __ovld __cnfn get_image_width(read_write image2d_array_depth_t image);
15205#endif //cl_khr_depth_images
15206#if defined(cl_khr_gl_msaa_sharing)
15207int __ovld __cnfn get_image_width(read_write image2d_msaa_t image);
15208int __ovld __cnfn get_image_width(read_write image2d_msaa_depth_t image);
15209int __ovld __cnfn get_image_width(read_write image2d_array_msaa_t image);
15210int __ovld __cnfn get_image_width(read_write image2d_array_msaa_depth_t image);
15211#endif //cl_khr_gl_msaa_sharing
15212#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15213
15214/**
15215 * Return the image height in pixels.
15216 */
15217int __ovld __cnfn get_image_height(read_only image2d_t image);
15218int __ovld __cnfn get_image_height(read_only image3d_t image);
15219int __ovld __cnfn get_image_height(read_only image2d_array_t image);
15220#ifdef cl_khr_depth_images
15221int __ovld __cnfn get_image_height(read_only image2d_depth_t image);
15222int __ovld __cnfn get_image_height(read_only image2d_array_depth_t image);
15223#endif //cl_khr_depth_images
15224#if defined(cl_khr_gl_msaa_sharing)
15225int __ovld __cnfn get_image_height(read_only image2d_msaa_t image);
15226int __ovld __cnfn get_image_height(read_only image2d_msaa_depth_t image);
15227int __ovld __cnfn get_image_height(read_only image2d_array_msaa_t image);
15228int __ovld __cnfn get_image_height(read_only image2d_array_msaa_depth_t image);
15229#endif //cl_khr_gl_msaa_sharing
15230
15231int __ovld __cnfn get_image_height(write_only image2d_t image);
15232#ifdef cl_khr_3d_image_writes
15233int __ovld __cnfn get_image_height(write_only image3d_t image);
15234#endif
15235int __ovld __cnfn get_image_height(write_only image2d_array_t image);
15236#ifdef cl_khr_depth_images
15237int __ovld __cnfn get_image_height(write_only image2d_depth_t image);
15238int __ovld __cnfn get_image_height(write_only image2d_array_depth_t image);
15239#endif //cl_khr_depth_images
15240#if defined(cl_khr_gl_msaa_sharing)
15241int __ovld __cnfn get_image_height(write_only image2d_msaa_t image);
15242int __ovld __cnfn get_image_height(write_only image2d_msaa_depth_t image);
15243int __ovld __cnfn get_image_height(write_only image2d_array_msaa_t image);
15244int __ovld __cnfn get_image_height(write_only image2d_array_msaa_depth_t image);
15245#endif //cl_khr_gl_msaa_sharing
15246
15247#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15248int __ovld __cnfn get_image_height(read_write image2d_t image);
15249int __ovld __cnfn get_image_height(read_write image3d_t image);
15250int __ovld __cnfn get_image_height(read_write image2d_array_t image);
15251#ifdef cl_khr_depth_images
15252int __ovld __cnfn get_image_height(read_write image2d_depth_t image);
15253int __ovld __cnfn get_image_height(read_write image2d_array_depth_t image);
15254#endif //cl_khr_depth_images
15255#if defined(cl_khr_gl_msaa_sharing)
15256int __ovld __cnfn get_image_height(read_write image2d_msaa_t image);
15257int __ovld __cnfn get_image_height(read_write image2d_msaa_depth_t image);
15258int __ovld __cnfn get_image_height(read_write image2d_array_msaa_t image);
15259int __ovld __cnfn get_image_height(read_write image2d_array_msaa_depth_t image);
15260#endif //cl_khr_gl_msaa_sharing
15261#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15262
15263/**
15264 * Return the image depth in pixels.
15265 */
15266int __ovld __cnfn get_image_depth(read_only image3d_t image);
15267
15268#ifdef cl_khr_3d_image_writes
15269int __ovld __cnfn get_image_depth(write_only image3d_t image);
15270#endif
15271
15272#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15273int __ovld __cnfn get_image_depth(read_write image3d_t image);
15274#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15275
15276// OpenCL Extension v2.0 s9.18 - Mipmaps
15277#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15278#ifdef cl_khr_mipmap_image
15279/**
15280 * Return the image miplevels.
15281 */
15282
15283int __ovld get_image_num_mip_levels(read_only image1d_t image);
15284int __ovld get_image_num_mip_levels(read_only image2d_t image);
15285int __ovld get_image_num_mip_levels(read_only image3d_t image);
15286
15287int __ovld get_image_num_mip_levels(write_only image1d_t image);
15288int __ovld get_image_num_mip_levels(write_only image2d_t image);
15289#ifdef cl_khr_3d_image_writes
15290int __ovld get_image_num_mip_levels(write_only image3d_t image);
15291#endif
15292
15293int __ovld get_image_num_mip_levels(read_write image1d_t image);
15294int __ovld get_image_num_mip_levels(read_write image2d_t image);
15295int __ovld get_image_num_mip_levels(read_write image3d_t image);
15296
15297int __ovld get_image_num_mip_levels(read_only image1d_array_t image);
15298int __ovld get_image_num_mip_levels(read_only image2d_array_t image);
15299int __ovld get_image_num_mip_levels(read_only image2d_array_depth_t image);
15300int __ovld get_image_num_mip_levels(read_only image2d_depth_t image);
15301
15302int __ovld get_image_num_mip_levels(write_only image1d_array_t image);
15303int __ovld get_image_num_mip_levels(write_only image2d_array_t image);
15304int __ovld get_image_num_mip_levels(write_only image2d_array_depth_t image);
15305int __ovld get_image_num_mip_levels(write_only image2d_depth_t image);
15306
15307int __ovld get_image_num_mip_levels(read_write image1d_array_t image);
15308int __ovld get_image_num_mip_levels(read_write image2d_array_t image);
15309int __ovld get_image_num_mip_levels(read_write image2d_array_depth_t image);
15310int __ovld get_image_num_mip_levels(read_write image2d_depth_t image);
15311
15312#endif //cl_khr_mipmap_image
15313#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15314
15315/**
15316 * Return the channel data type. Valid values are:
15317 * CLK_SNORM_INT8
15318 * CLK_SNORM_INT16
15319 * CLK_UNORM_INT8
15320 * CLK_UNORM_INT16
15321 * CLK_UNORM_SHORT_565
15322 * CLK_UNORM_SHORT_555
15323 * CLK_UNORM_SHORT_101010
15324 * CLK_SIGNED_INT8
15325 * CLK_SIGNED_INT16
15326 * CLK_SIGNED_INT32
15327 * CLK_UNSIGNED_INT8
15328 * CLK_UNSIGNED_INT16
15329 * CLK_UNSIGNED_INT32
15330 * CLK_HALF_FLOAT
15331 * CLK_FLOAT
15332 */
15333
15334//
15335// Channel Datatype.
15336//
15337#define CLK_SNORM_INT8        0x10D0
15338#define CLK_SNORM_INT16       0x10D1
15339#define CLK_UNORM_INT8        0x10D2
15340#define CLK_UNORM_INT16       0x10D3
15341#define CLK_UNORM_SHORT_565   0x10D4
15342#define CLK_UNORM_SHORT_555   0x10D5
15343#define CLK_UNORM_INT_101010  0x10D6
15344#define CLK_SIGNED_INT8       0x10D7
15345#define CLK_SIGNED_INT16      0x10D8
15346#define CLK_SIGNED_INT32      0x10D9
15347#define CLK_UNSIGNED_INT8     0x10DA
15348#define CLK_UNSIGNED_INT16    0x10DB
15349#define CLK_UNSIGNED_INT32    0x10DC
15350#define CLK_HALF_FLOAT        0x10DD
15351#define CLK_FLOAT             0x10DE
15352#define CLK_UNORM_INT24       0x10DF
15353
15354int __ovld __cnfn get_image_channel_data_type(read_only image1d_t image);
15355int __ovld __cnfn get_image_channel_data_type(read_only image1d_buffer_t image);
15356int __ovld __cnfn get_image_channel_data_type(read_only image2d_t image);
15357int __ovld __cnfn get_image_channel_data_type(read_only image3d_t image);
15358int __ovld __cnfn get_image_channel_data_type(read_only image1d_array_t image);
15359int __ovld __cnfn get_image_channel_data_type(read_only image2d_array_t image);
15360#ifdef cl_khr_depth_images
15361int __ovld __cnfn get_image_channel_data_type(read_only image2d_depth_t image);
15362int __ovld __cnfn get_image_channel_data_type(read_only image2d_array_depth_t image);
15363#endif //cl_khr_depth_images
15364#if defined(cl_khr_gl_msaa_sharing)
15365int __ovld __cnfn get_image_channel_data_type(read_only image2d_msaa_t image);
15366int __ovld __cnfn get_image_channel_data_type(read_only image2d_msaa_depth_t image);
15367int __ovld __cnfn get_image_channel_data_type(read_only image2d_array_msaa_t image);
15368int __ovld __cnfn get_image_channel_data_type(read_only image2d_array_msaa_depth_t image);
15369#endif //cl_khr_gl_msaa_sharing
15370
15371int __ovld __cnfn get_image_channel_data_type(write_only image1d_t image);
15372int __ovld __cnfn get_image_channel_data_type(write_only image1d_buffer_t image);
15373int __ovld __cnfn get_image_channel_data_type(write_only image2d_t image);
15374#ifdef cl_khr_3d_image_writes
15375int __ovld __cnfn get_image_channel_data_type(write_only image3d_t image);
15376#endif
15377int __ovld __cnfn get_image_channel_data_type(write_only image1d_array_t image);
15378int __ovld __cnfn get_image_channel_data_type(write_only image2d_array_t image);
15379#ifdef cl_khr_depth_images
15380int __ovld __cnfn get_image_channel_data_type(write_only image2d_depth_t image);
15381int __ovld __cnfn get_image_channel_data_type(write_only image2d_array_depth_t image);
15382#endif //cl_khr_depth_images
15383#if defined(cl_khr_gl_msaa_sharing)
15384int __ovld __cnfn get_image_channel_data_type(write_only image2d_msaa_t image);
15385int __ovld __cnfn get_image_channel_data_type(write_only image2d_msaa_depth_t image);
15386int __ovld __cnfn get_image_channel_data_type(write_only image2d_array_msaa_t image);
15387int __ovld __cnfn get_image_channel_data_type(write_only image2d_array_msaa_depth_t image);
15388#endif //cl_khr_gl_msaa_sharing
15389
15390#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15391int __ovld __cnfn get_image_channel_data_type(read_write image1d_t image);
15392int __ovld __cnfn get_image_channel_data_type(read_write image1d_buffer_t image);
15393int __ovld __cnfn get_image_channel_data_type(read_write image2d_t image);
15394int __ovld __cnfn get_image_channel_data_type(read_write image3d_t image);
15395int __ovld __cnfn get_image_channel_data_type(read_write image1d_array_t image);
15396int __ovld __cnfn get_image_channel_data_type(read_write image2d_array_t image);
15397#ifdef cl_khr_depth_images
15398int __ovld __cnfn get_image_channel_data_type(read_write image2d_depth_t image);
15399int __ovld __cnfn get_image_channel_data_type(read_write image2d_array_depth_t image);
15400#endif //cl_khr_depth_images
15401#if defined(cl_khr_gl_msaa_sharing)
15402int __ovld __cnfn get_image_channel_data_type(read_write image2d_msaa_t image);
15403int __ovld __cnfn get_image_channel_data_type(read_write image2d_msaa_depth_t image);
15404int __ovld __cnfn get_image_channel_data_type(read_write image2d_array_msaa_t image);
15405int __ovld __cnfn get_image_channel_data_type(read_write image2d_array_msaa_depth_t image);
15406#endif //cl_khr_gl_msaa_sharing
15407#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15408
15409/**
15410 * Return the image channel order. Valid values are:
15411 * CLK_A
15412 * CLK_R
15413 * CLK_Rx
15414 * CLK_RG
15415 * CLK_RGx
15416 * CLK_RA
15417 * CLK_RGB
15418 * CLK_RGBx
15419 * CLK_RGBA
15420 * CLK_ARGB
15421 * CLK_BGRA
15422 * CLK_INTENSITY
15423 * CLK_LUMINANCE
15424 */
15425// Channel order, numbering must be aligned with cl_channel_order in cl.h
15426//
15427#define CLK_R         0x10B0
15428#define CLK_A         0x10B1
15429#define CLK_RG        0x10B2
15430#define CLK_RA        0x10B3
15431#define CLK_RGB       0x10B4
15432#define CLK_RGBA      0x10B5
15433#define CLK_BGRA      0x10B6
15434#define CLK_ARGB      0x10B7
15435#define CLK_INTENSITY 0x10B8
15436#define CLK_LUMINANCE 0x10B9
15437#define CLK_Rx                0x10BA
15438#define CLK_RGx               0x10BB
15439#define CLK_RGBx              0x10BC
15440#define CLK_DEPTH             0x10BD
15441#define CLK_DEPTH_STENCIL     0x10BE
15442#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15443#define CLK_sRGB              0x10BF
15444#define CLK_sRGBx             0x10C0
15445#define CLK_sRGBA             0x10C1
15446#define CLK_sBGRA             0x10C2
15447#define CLK_ABGR              0x10C3
15448#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15449
15450int __ovld __cnfn get_image_channel_order(read_only image1d_t image);
15451int __ovld __cnfn get_image_channel_order(read_only image1d_buffer_t image);
15452int __ovld __cnfn get_image_channel_order(read_only image2d_t image);
15453int __ovld __cnfn get_image_channel_order(read_only image3d_t image);
15454int __ovld __cnfn get_image_channel_order(read_only image1d_array_t image);
15455int __ovld __cnfn get_image_channel_order(read_only image2d_array_t image);
15456#ifdef cl_khr_depth_images
15457int __ovld __cnfn get_image_channel_order(read_only image2d_depth_t image);
15458int __ovld __cnfn get_image_channel_order(read_only image2d_array_depth_t image);
15459#endif //cl_khr_depth_images
15460#if defined(cl_khr_gl_msaa_sharing)
15461int __ovld __cnfn get_image_channel_order(read_only image2d_msaa_t image);
15462int __ovld __cnfn get_image_channel_order(read_only image2d_msaa_depth_t image);
15463int __ovld __cnfn get_image_channel_order(read_only image2d_array_msaa_t image);
15464int __ovld __cnfn get_image_channel_order(read_only image2d_array_msaa_depth_t image);
15465#endif //cl_khr_gl_msaa_sharing
15466
15467int __ovld __cnfn get_image_channel_order(write_only image1d_t image);
15468int __ovld __cnfn get_image_channel_order(write_only image1d_buffer_t image);
15469int __ovld __cnfn get_image_channel_order(write_only image2d_t image);
15470#ifdef cl_khr_3d_image_writes
15471int __ovld __cnfn get_image_channel_order(write_only image3d_t image);
15472#endif
15473int __ovld __cnfn get_image_channel_order(write_only image1d_array_t image);
15474int __ovld __cnfn get_image_channel_order(write_only image2d_array_t image);
15475#ifdef cl_khr_depth_images
15476int __ovld __cnfn get_image_channel_order(write_only image2d_depth_t image);
15477int __ovld __cnfn get_image_channel_order(write_only image2d_array_depth_t image);
15478#endif //cl_khr_depth_images
15479#if defined(cl_khr_gl_msaa_sharing)
15480int __ovld __cnfn get_image_channel_order(write_only image2d_msaa_t image);
15481int __ovld __cnfn get_image_channel_order(write_only image2d_msaa_depth_t image);
15482int __ovld __cnfn get_image_channel_order(write_only image2d_array_msaa_t image);
15483int __ovld __cnfn get_image_channel_order(write_only image2d_array_msaa_depth_t image);
15484#endif //cl_khr_gl_msaa_sharing
15485
15486#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15487int __ovld __cnfn get_image_channel_order(read_write image1d_t image);
15488int __ovld __cnfn get_image_channel_order(read_write image1d_buffer_t image);
15489int __ovld __cnfn get_image_channel_order(read_write image2d_t image);
15490int __ovld __cnfn get_image_channel_order(read_write image3d_t image);
15491int __ovld __cnfn get_image_channel_order(read_write image1d_array_t image);
15492int __ovld __cnfn get_image_channel_order(read_write image2d_array_t image);
15493#ifdef cl_khr_depth_images
15494int __ovld __cnfn get_image_channel_order(read_write image2d_depth_t image);
15495int __ovld __cnfn get_image_channel_order(read_write image2d_array_depth_t image);
15496#endif //cl_khr_depth_images
15497#if defined(cl_khr_gl_msaa_sharing)
15498int __ovld __cnfn get_image_channel_order(read_write image2d_msaa_t image);
15499int __ovld __cnfn get_image_channel_order(read_write image2d_msaa_depth_t image);
15500int __ovld __cnfn get_image_channel_order(read_write image2d_array_msaa_t image);
15501int __ovld __cnfn get_image_channel_order(read_write image2d_array_msaa_depth_t image);
15502#endif //cl_khr_gl_msaa_sharing
15503#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15504
15505/**
15506 * Return the 2D image width and height as an int2
15507 * type. The width is returned in the x component, and
15508 * the height in the y component.
15509 */
15510int2 __ovld __cnfn get_image_dim(read_only image2d_t image);
15511int2 __ovld __cnfn get_image_dim(read_only image2d_array_t image);
15512#ifdef cl_khr_depth_images
15513int2 __ovld __cnfn get_image_dim(read_only image2d_array_depth_t image);
15514int2 __ovld __cnfn get_image_dim(read_only image2d_depth_t image);
15515#endif //cl_khr_depth_images
15516#if defined(cl_khr_gl_msaa_sharing)
15517int2 __ovld __cnfn get_image_dim(read_only image2d_msaa_t image);
15518int2 __ovld __cnfn get_image_dim(read_only image2d_msaa_depth_t image);
15519int2 __ovld __cnfn get_image_dim(read_only image2d_array_msaa_t image);
15520int2 __ovld __cnfn get_image_dim(read_only image2d_array_msaa_depth_t image);
15521#endif //cl_khr_gl_msaa_sharing
15522
15523int2 __ovld __cnfn get_image_dim(write_only image2d_t image);
15524int2 __ovld __cnfn get_image_dim(write_only image2d_array_t image);
15525#ifdef cl_khr_depth_images
15526int2 __ovld __cnfn get_image_dim(write_only image2d_array_depth_t image);
15527int2 __ovld __cnfn get_image_dim(write_only image2d_depth_t image);
15528#endif //cl_khr_depth_images
15529#if defined(cl_khr_gl_msaa_sharing)
15530int2 __ovld __cnfn get_image_dim(write_only image2d_msaa_t image);
15531int2 __ovld __cnfn get_image_dim(write_only image2d_msaa_depth_t image);
15532int2 __ovld __cnfn get_image_dim(write_only image2d_array_msaa_t image);
15533int2 __ovld __cnfn get_image_dim(write_only image2d_array_msaa_depth_t image);
15534#endif //cl_khr_gl_msaa_sharing
15535
15536#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15537int2 __ovld __cnfn get_image_dim(read_write image2d_t image);
15538int2 __ovld __cnfn get_image_dim(read_write image2d_array_t image);
15539#ifdef cl_khr_depth_images
15540int2 __ovld __cnfn get_image_dim(read_write image2d_array_depth_t image);
15541int2 __ovld __cnfn get_image_dim(read_write image2d_depth_t image);
15542#endif //cl_khr_depth_images
15543#if defined(cl_khr_gl_msaa_sharing)
15544int2 __ovld __cnfn get_image_dim(read_write image2d_msaa_t image);
15545int2 __ovld __cnfn get_image_dim(read_write image2d_msaa_depth_t image);
15546int2 __ovld __cnfn get_image_dim(read_write image2d_array_msaa_t image);
15547int2 __ovld __cnfn get_image_dim(read_write image2d_array_msaa_depth_t image);
15548#endif //cl_khr_gl_msaa_sharing
15549#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15550
15551/**
15552 * Return the 3D image width, height, and depth as an
15553 * int4 type. The width is returned in the x
15554 * component, height in the y component, depth in the z
15555 * component and the w component is 0.
15556 */
15557int4 __ovld __cnfn get_image_dim(read_only image3d_t image);
15558#ifdef cl_khr_3d_image_writes
15559int4 __ovld __cnfn get_image_dim(write_only image3d_t image);
15560#endif
15561#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15562int4 __ovld __cnfn get_image_dim(read_write image3d_t image);
15563#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15564
15565/**
15566 * Return the image array size.
15567 */
15568
15569size_t __ovld __cnfn get_image_array_size(read_only image1d_array_t image_array);
15570size_t __ovld __cnfn get_image_array_size(read_only image2d_array_t image_array);
15571#ifdef cl_khr_depth_images
15572size_t __ovld __cnfn get_image_array_size(read_only image2d_array_depth_t image_array);
15573#endif //cl_khr_depth_images
15574#if defined(cl_khr_gl_msaa_sharing)
15575size_t __ovld __cnfn get_image_array_size(read_only image2d_array_msaa_t image_array);
15576size_t __ovld __cnfn get_image_array_size(read_only image2d_array_msaa_depth_t image_array);
15577#endif //cl_khr_gl_msaa_sharing
15578
15579size_t __ovld __cnfn get_image_array_size(write_only image1d_array_t image_array);
15580size_t __ovld __cnfn get_image_array_size(write_only image2d_array_t image_array);
15581#ifdef cl_khr_depth_images
15582size_t __ovld __cnfn get_image_array_size(write_only image2d_array_depth_t image_array);
15583#endif //cl_khr_depth_images
15584#if defined(cl_khr_gl_msaa_sharing)
15585size_t __ovld __cnfn get_image_array_size(write_only image2d_array_msaa_t image_array);
15586size_t __ovld __cnfn get_image_array_size(write_only image2d_array_msaa_depth_t image_array);
15587#endif //cl_khr_gl_msaa_sharing
15588
15589#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15590size_t __ovld __cnfn get_image_array_size(read_write image1d_array_t image_array);
15591size_t __ovld __cnfn get_image_array_size(read_write image2d_array_t image_array);
15592#ifdef cl_khr_depth_images
15593size_t __ovld __cnfn get_image_array_size(read_write image2d_array_depth_t image_array);
15594#endif //cl_khr_depth_images
15595#if defined(cl_khr_gl_msaa_sharing)
15596size_t __ovld __cnfn get_image_array_size(read_write image2d_array_msaa_t image_array);
15597size_t __ovld __cnfn get_image_array_size(read_write image2d_array_msaa_depth_t image_array);
15598#endif //cl_khr_gl_msaa_sharing
15599#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15600
15601/**
15602* Return the number of samples associated with image
15603*/
15604#if defined(cl_khr_gl_msaa_sharing)
15605int __ovld get_image_num_samples(read_only image2d_msaa_t image);
15606int __ovld get_image_num_samples(read_only image2d_msaa_depth_t image);
15607int __ovld get_image_num_samples(read_only image2d_array_msaa_depth_t image);
15608int __ovld get_image_num_samples(read_only image2d_array_msaa_t image);
15609int __ovld get_image_num_samples(read_only image2d_array_msaa_depth_t image);
15610
15611int __ovld get_image_num_samples(write_only image2d_msaa_t image);
15612int __ovld get_image_num_samples(write_only image2d_msaa_depth_t image);
15613int __ovld get_image_num_samples(write_only image2d_array_msaa_depth_t image);
15614int __ovld get_image_num_samples(write_only image2d_array_msaa_t image);
15615int __ovld get_image_num_samples(write_only image2d_array_msaa_depth_t image);
15616
15617#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15618int __ovld get_image_num_samples(read_write image2d_msaa_t image);
15619int __ovld get_image_num_samples(read_write image2d_msaa_depth_t image);
15620int __ovld get_image_num_samples(read_write image2d_array_msaa_depth_t image);
15621int __ovld get_image_num_samples(read_write image2d_array_msaa_t image);
15622int __ovld get_image_num_samples(read_write image2d_array_msaa_depth_t image);
15623#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15624#endif
15625
15626// OpenCL v2.0 s6.13.15 - Work-group Functions
15627
15628#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15629int __ovld __conv work_group_all(int predicate);
15630int __ovld __conv work_group_any(int predicate);
15631
15632#ifdef cl_khr_fp16
15633half __ovld __conv work_group_broadcast(half a, size_t local_id);
15634half __ovld __conv work_group_broadcast(half a, size_t x, size_t y);
15635half __ovld __conv work_group_broadcast(half a, size_t x, size_t y, size_t z);
15636#endif
15637int __ovld __conv work_group_broadcast(int asize_t local_id);
15638int __ovld __conv work_group_broadcast(int asize_t xsize_t y);
15639int __ovld __conv work_group_broadcast(int asize_t xsize_t ysize_t z);
15640uint __ovld __conv work_group_broadcast(uint asize_t local_id);
15641uint __ovld __conv work_group_broadcast(uint asize_t xsize_t y);
15642uint __ovld __conv work_group_broadcast(uint asize_t xsize_t ysize_t z);
15643long __ovld __conv work_group_broadcast(long asize_t local_id);
15644long __ovld __conv work_group_broadcast(long asize_t xsize_t y);
15645long __ovld __conv work_group_broadcast(long asize_t xsize_t ysize_t z);
15646ulong __ovld __conv work_group_broadcast(ulong asize_t local_id);
15647ulong __ovld __conv work_group_broadcast(ulong asize_t xsize_t y);
15648ulong __ovld __conv work_group_broadcast(ulong asize_t xsize_t ysize_t z);
15649float __ovld __conv work_group_broadcast(float asize_t local_id);
15650float __ovld __conv work_group_broadcast(float asize_t xsize_t y);
15651float __ovld __conv work_group_broadcast(float asize_t xsize_t ysize_t z);
15652#ifdef cl_khr_fp64
15653double __ovld __conv work_group_broadcast(double a, size_t local_id);
15654double __ovld __conv work_group_broadcast(double a, size_t x, size_t y);
15655double __ovld __conv work_group_broadcast(double a, size_t x, size_t y, size_t z);
15656#endif //cl_khr_fp64
15657
15658#ifdef cl_khr_fp16
15659half __ovld __conv work_group_reduce_add(half x);
15660half __ovld __conv work_group_reduce_min(half x);
15661half __ovld __conv work_group_reduce_max(half x);
15662half __ovld __conv work_group_scan_exclusive_add(half x);
15663half __ovld __conv work_group_scan_exclusive_min(half x);
15664half __ovld __conv work_group_scan_exclusive_max(half x);
15665half __ovld __conv work_group_scan_inclusive_add(half x);
15666half __ovld __conv work_group_scan_inclusive_min(half x);
15667half __ovld __conv work_group_scan_inclusive_max(half x);
15668#endif
15669int __ovld __conv work_group_reduce_add(int x);
15670int __ovld __conv work_group_reduce_min(int x);
15671int __ovld __conv work_group_reduce_max(int x);
15672int __ovld __conv work_group_scan_exclusive_add(int x);
15673int __ovld __conv work_group_scan_exclusive_min(int x);
15674int __ovld __conv work_group_scan_exclusive_max(int x);
15675int __ovld __conv work_group_scan_inclusive_add(int x);
15676int __ovld __conv work_group_scan_inclusive_min(int x);
15677int __ovld __conv work_group_scan_inclusive_max(int x);
15678uint __ovld __conv work_group_reduce_add(uint x);
15679uint __ovld __conv work_group_reduce_min(uint x);
15680uint __ovld __conv work_group_reduce_max(uint x);
15681uint __ovld __conv work_group_scan_exclusive_add(uint x);
15682uint __ovld __conv work_group_scan_exclusive_min(uint x);
15683uint __ovld __conv work_group_scan_exclusive_max(uint x);
15684uint __ovld __conv work_group_scan_inclusive_add(uint x);
15685uint __ovld __conv work_group_scan_inclusive_min(uint x);
15686uint __ovld __conv work_group_scan_inclusive_max(uint x);
15687long __ovld __conv work_group_reduce_add(long x);
15688long __ovld __conv work_group_reduce_min(long x);
15689long __ovld __conv work_group_reduce_max(long x);
15690long __ovld __conv work_group_scan_exclusive_add(long x);
15691long __ovld __conv work_group_scan_exclusive_min(long x);
15692long __ovld __conv work_group_scan_exclusive_max(long x);
15693long __ovld __conv work_group_scan_inclusive_add(long x);
15694long __ovld __conv work_group_scan_inclusive_min(long x);
15695long __ovld __conv work_group_scan_inclusive_max(long x);
15696ulong __ovld __conv work_group_reduce_add(ulong x);
15697ulong __ovld __conv work_group_reduce_min(ulong x);
15698ulong __ovld __conv work_group_reduce_max(ulong x);
15699ulong __ovld __conv work_group_scan_exclusive_add(ulong x);
15700ulong __ovld __conv work_group_scan_exclusive_min(ulong x);
15701ulong __ovld __conv work_group_scan_exclusive_max(ulong x);
15702ulong __ovld __conv work_group_scan_inclusive_add(ulong x);
15703ulong __ovld __conv work_group_scan_inclusive_min(ulong x);
15704ulong __ovld __conv work_group_scan_inclusive_max(ulong x);
15705float __ovld __conv work_group_reduce_add(float x);
15706float __ovld __conv work_group_reduce_min(float x);
15707float __ovld __conv work_group_reduce_max(float x);
15708float __ovld __conv work_group_scan_exclusive_add(float x);
15709float __ovld __conv work_group_scan_exclusive_min(float x);
15710float __ovld __conv work_group_scan_exclusive_max(float x);
15711float __ovld __conv work_group_scan_inclusive_add(float x);
15712float __ovld __conv work_group_scan_inclusive_min(float x);
15713float __ovld __conv work_group_scan_inclusive_max(float x);
15714#ifdef cl_khr_fp64
15715double __ovld __conv work_group_reduce_add(double x);
15716double __ovld __conv work_group_reduce_min(double x);
15717double __ovld __conv work_group_reduce_max(double x);
15718double __ovld __conv work_group_scan_exclusive_add(double x);
15719double __ovld __conv work_group_scan_exclusive_min(double x);
15720double __ovld __conv work_group_scan_exclusive_max(double x);
15721double __ovld __conv work_group_scan_inclusive_add(double x);
15722double __ovld __conv work_group_scan_inclusive_min(double x);
15723double __ovld __conv work_group_scan_inclusive_max(double x);
15724#endif //cl_khr_fp64
15725
15726#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15727
15728// OpenCL v2.0 s6.13.16 - Pipe Functions
15729#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15730#define CLK_NULL_RESERVE_ID (__builtin_astype(((void*)(__SIZE_MAX__)), reserve_id_t))
15731bool __ovld is_valid_reserve_id(reserve_id_t reserve_id);
15732#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15733
15734
15735// OpenCL v2.0 s6.13.17 - Enqueue Kernels
15736#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15737
15738#define CL_COMPLETE                                 0x0
15739#define CL_RUNNING                                  0x1
15740#define CL_SUBMITTED                                0x2
15741#define CL_QUEUED                                   0x3
15742
15743#define CLK_SUCCESS                                 0
15744#define CLK_ENQUEUE_FAILURE                         -101
15745#define CLK_INVALID_QUEUE                           -102
15746#define CLK_INVALID_NDRANGE                         -160
15747#define CLK_INVALID_EVENT_WAIT_LIST                 -57
15748#define CLK_DEVICE_QUEUE_FULL                       -161
15749#define CLK_INVALID_ARG_SIZE                        -51
15750#define CLK_EVENT_ALLOCATION_FAILURE                -100
15751#define CLK_OUT_OF_RESOURCES                        -5
15752
15753#define CLK_NULL_QUEUE                              0
15754#define CLK_NULL_EVENT (__builtin_astype(((void*)(__SIZE_MAX__)), clk_event_t))
15755
15756// execution model related definitions
15757#define CLK_ENQUEUE_FLAGS_NO_WAIT                   0x0
15758#define CLK_ENQUEUE_FLAGS_WAIT_KERNEL               0x1
15759#define CLK_ENQUEUE_FLAGS_WAIT_WORK_GROUP           0x2
15760
15761typedef int kernel_enqueue_flags_t;
15762typedef int clk_profiling_info;
15763
15764// Profiling info name (see capture_event_profiling_info)
15765#define CLK_PROFILING_COMMAND_EXEC_TIME 0x1
15766
15767#define MAX_WORK_DIM        3
15768
15769typedef struct {
15770    unsigned int workDimension;
15771    size_t globalWorkOffset[MAX_WORK_DIM];
15772    size_t globalWorkSize[MAX_WORK_DIM];
15773    size_t localWorkSize[MAX_WORK_DIM];
15774ndrange_t;
15775
15776ndrange_t __ovld ndrange_1D(size_t);
15777ndrange_t __ovld ndrange_1D(size_tsize_t);
15778ndrange_t __ovld ndrange_1D(size_tsize_tsize_t);
15779
15780ndrange_t __ovld ndrange_2D(const size_t[2]);
15781ndrange_t __ovld ndrange_2D(const size_t[2], const size_t[2]);
15782ndrange_t __ovld ndrange_2D(const size_t[2], const size_t[2], const size_t[2]);
15783
15784ndrange_t __ovld ndrange_3D(const size_t[3]);
15785ndrange_t __ovld ndrange_3D(const size_t[3], const size_t[3]);
15786ndrange_t __ovld ndrange_3D(const size_t[3], const size_t[3], const size_t[3]);
15787
15788int __ovld enqueue_marker(queue_t, uint, const __private clk_event_t*, __private clk_event_t*);
15789
15790void __ovld retain_event(clk_event_t);
15791
15792void __ovld release_event(clk_event_t);
15793
15794clk_event_t __ovld create_user_event(void);
15795
15796void __ovld set_user_event_status(clk_event_t eint state);
15797
15798bool __ovld is_valid_event (clk_event_t event);
15799
15800void __ovld capture_event_profiling_info(clk_event_t, clk_profiling_info, __global void* value);
15801
15802queue_t __ovld get_default_queue(void);
15803#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15804
15805// OpenCL Extension v2.0 s9.17 - Sub-groups
15806
15807#if defined(cl_intel_subgroups) || defined(cl_khr_subgroups)
15808// Shared Sub Group Functions
15809uint    __ovld get_sub_group_size(void);
15810uint    __ovld get_max_sub_group_size(void);
15811uint    __ovld get_num_sub_groups(void);
15812#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15813uint    __ovld get_enqueued_num_sub_groups(void);
15814#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15815uint    __ovld get_sub_group_id(void);
15816uint    __ovld get_sub_group_local_id(void);
15817
15818void    __ovld __conv sub_group_barrier(cl_mem_fence_flags flags);
15819#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15820void    __ovld __conv sub_group_barrier(cl_mem_fence_flags flags, memory_scope scope);
15821#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15822
15823int     __ovld __conv sub_group_all(int predicate);
15824int     __ovld __conv sub_group_any(int predicate);
15825
15826int     __ovld __conv sub_group_broadcast(int   x, uint sub_group_local_id);
15827uint    __ovld __conv sub_group_broadcast(uint  x, uint sub_group_local_id);
15828long    __ovld __conv sub_group_broadcast(long  x, uint sub_group_local_id);
15829ulong   __ovld __conv sub_group_broadcast(ulong x, uint sub_group_local_id);
15830float   __ovld __conv sub_group_broadcast(float x, uint sub_group_local_id);
15831
15832int     __ovld __conv sub_group_reduce_add(int   x);
15833uint    __ovld __conv sub_group_reduce_add(uint  x);
15834long    __ovld __conv sub_group_reduce_add(long  x);
15835ulong   __ovld __conv sub_group_reduce_add(ulong x);
15836float   __ovld __conv sub_group_reduce_add(float x);
15837int     __ovld __conv sub_group_reduce_min(int   x);
15838uint    __ovld __conv sub_group_reduce_min(uint  x);
15839long    __ovld __conv sub_group_reduce_min(long  x);
15840ulong   __ovld __conv sub_group_reduce_min(ulong x);
15841float   __ovld __conv sub_group_reduce_min(float x);
15842int     __ovld __conv sub_group_reduce_max(int   x);
15843uint    __ovld __conv sub_group_reduce_max(uint  x);
15844long    __ovld __conv sub_group_reduce_max(long  x);
15845ulong   __ovld __conv sub_group_reduce_max(ulong x);
15846float   __ovld __conv sub_group_reduce_max(float x);
15847
15848int     __ovld __conv sub_group_scan_exclusive_add(int   x);
15849uint    __ovld __conv sub_group_scan_exclusive_add(uint  x);
15850long    __ovld __conv sub_group_scan_exclusive_add(long  x);
15851ulong   __ovld __conv sub_group_scan_exclusive_add(ulong x);
15852float   __ovld __conv sub_group_scan_exclusive_add(float x);
15853int     __ovld __conv sub_group_scan_exclusive_min(int   x);
15854uint    __ovld __conv sub_group_scan_exclusive_min(uint  x);
15855long    __ovld __conv sub_group_scan_exclusive_min(long  x);
15856ulong   __ovld __conv sub_group_scan_exclusive_min(ulong x);
15857float   __ovld __conv sub_group_scan_exclusive_min(float x);
15858int     __ovld __conv sub_group_scan_exclusive_max(int   x);
15859uint    __ovld __conv sub_group_scan_exclusive_max(uint  x);
15860long    __ovld __conv sub_group_scan_exclusive_max(long  x);
15861ulong   __ovld __conv sub_group_scan_exclusive_max(ulong x);
15862float   __ovld __conv sub_group_scan_exclusive_max(float x);
15863
15864int     __ovld __conv sub_group_scan_inclusive_add(int   x);
15865uint    __ovld __conv sub_group_scan_inclusive_add(uint  x);
15866long    __ovld __conv sub_group_scan_inclusive_add(long  x);
15867ulong   __ovld __conv sub_group_scan_inclusive_add(ulong x);
15868float   __ovld __conv sub_group_scan_inclusive_add(float x);
15869int     __ovld __conv sub_group_scan_inclusive_min(int   x);
15870uint    __ovld __conv sub_group_scan_inclusive_min(uint  x);
15871long    __ovld __conv sub_group_scan_inclusive_min(long  x);
15872ulong   __ovld __conv sub_group_scan_inclusive_min(ulong x);
15873float   __ovld __conv sub_group_scan_inclusive_min(float x);
15874int     __ovld __conv sub_group_scan_inclusive_max(int   x);
15875uint    __ovld __conv sub_group_scan_inclusive_max(uint  x);
15876long    __ovld __conv sub_group_scan_inclusive_max(long  x);
15877ulong   __ovld __conv sub_group_scan_inclusive_max(ulong x);
15878float   __ovld __conv sub_group_scan_inclusive_max(float x);
15879
15880#ifdef cl_khr_fp16
15881half    __ovld __conv sub_group_broadcast(half x, uint sub_group_local_id);
15882half    __ovld __conv sub_group_reduce_add(half x);
15883half    __ovld __conv sub_group_reduce_min(half x);
15884half    __ovld __conv sub_group_reduce_max(half x);
15885half    __ovld __conv sub_group_scan_exclusive_add(half x);
15886half    __ovld __conv sub_group_scan_exclusive_min(half x);
15887half    __ovld __conv sub_group_scan_exclusive_max(half x);
15888half    __ovld __conv sub_group_scan_inclusive_add(half x);
15889half    __ovld __conv sub_group_scan_inclusive_min(half x);
15890half    __ovld __conv sub_group_scan_inclusive_max(half x);
15891#endif //cl_khr_fp16
15892
15893#ifdef cl_khr_fp64
15894double  __ovld __conv sub_group_broadcast(double x, uint sub_group_local_id);
15895double  __ovld __conv sub_group_reduce_add(double x);
15896double  __ovld __conv sub_group_reduce_min(double x);
15897double  __ovld __conv sub_group_reduce_max(double x);
15898double  __ovld __conv sub_group_scan_exclusive_add(double x);
15899double  __ovld __conv sub_group_scan_exclusive_min(double x);
15900double  __ovld __conv sub_group_scan_exclusive_max(double x);
15901double  __ovld __conv sub_group_scan_inclusive_add(double x);
15902double  __ovld __conv sub_group_scan_inclusive_min(double x);
15903double  __ovld __conv sub_group_scan_inclusive_max(double x);
15904#endif //cl_khr_fp64
15905
15906#endif //cl_khr_subgroups cl_intel_subgroups
15907
15908#if defined(cl_intel_subgroups)
15909// Intel-Specific Sub Group Functions
15910float   __ovld __conv intel_sub_group_shuffle( float  x, uint c );
15911float2  __ovld __conv intel_sub_group_shuffle( float2 x, uint c );
15912float3  __ovld __conv intel_sub_group_shuffle( float3 x, uint c );
15913float4  __ovld __conv intel_sub_group_shuffle( float4 x, uint c );
15914float8  __ovld __conv intel_sub_group_shuffle( float8 x, uint c );
15915float16 __ovld __conv intel_sub_group_shuffle( float16 x, uint c );
15916
15917int     __ovld __conv intel_sub_group_shuffle( int  x, uint c );
15918int2    __ovld __conv intel_sub_group_shuffle( int2 x, uint c );
15919int3    __ovld __conv intel_sub_group_shuffle( int3 x, uint c );
15920int4    __ovld __conv intel_sub_group_shuffle( int4 x, uint c );
15921int8    __ovld __conv intel_sub_group_shuffle( int8 x, uint c );
15922int16   __ovld __conv intel_sub_group_shuffle( int16 x, uint c );
15923
15924uint    __ovld __conv intel_sub_group_shuffle( uint  x, uint c );
15925uint2   __ovld __conv intel_sub_group_shuffle( uint2 x, uint c );
15926uint3   __ovld __conv intel_sub_group_shuffle( uint3 x, uint c );
15927uint4   __ovld __conv intel_sub_group_shuffle( uint4 x, uint c );
15928uint8   __ovld __conv intel_sub_group_shuffle( uint8 x, uint c );
15929uint16  __ovld __conv intel_sub_group_shuffle( uint16 x, uint c );
15930
15931long    __ovld __conv intel_sub_group_shuffle( long x, uint c );
15932ulong   __ovld __conv intel_sub_group_shuffle( ulong x, uint c );
15933
15934float   __ovld __conv intel_sub_group_shuffle_down( float  cur, float  next, uint c );
15935float2  __ovld __conv intel_sub_group_shuffle_down( float2 cur, float2 next, uint c );
15936float3  __ovld __conv intel_sub_group_shuffle_down( float3 cur, float3 next, uint c );
15937float4  __ovld __conv intel_sub_group_shuffle_down( float4 cur, float4 next, uint c );
15938float8  __ovld __conv intel_sub_group_shuffle_down( float8 cur, float8 next, uint c );
15939float16 __ovld __conv intel_sub_group_shuffle_down( float16 cur, float16 next, uint c );
15940
15941int     __ovld __conv intel_sub_group_shuffle_down( int  cur, int  next, uint c );
15942int2    __ovld __conv intel_sub_group_shuffle_down( int2 cur, int2 next, uint c );
15943int3    __ovld __conv intel_sub_group_shuffle_down( int3 cur, int3 next, uint c );
15944int4    __ovld __conv intel_sub_group_shuffle_down( int4 cur, int4 next, uint c );
15945int8    __ovld __conv intel_sub_group_shuffle_down( int8 cur, int8 next, uint c );
15946int16   __ovld __conv intel_sub_group_shuffle_down( int16 cur, int16 next, uint c );
15947
15948uint    __ovld __conv intel_sub_group_shuffle_down( uint  cur, uint  next, uint c );
15949uint2   __ovld __conv intel_sub_group_shuffle_down( uint2 cur, uint2 next, uint c );
15950uint3   __ovld __conv intel_sub_group_shuffle_down( uint3 cur, uint3 next, uint c );
15951uint4   __ovld __conv intel_sub_group_shuffle_down( uint4 cur, uint4 next, uint c );
15952uint8   __ovld __conv intel_sub_group_shuffle_down( uint8 cur, uint8 next, uint c );
15953uint16  __ovld __conv intel_sub_group_shuffle_down( uint16 cur, uint16 next, uint c );
15954
15955long    __ovld __conv intel_sub_group_shuffle_down( long prev, long cur, uint c );
15956ulong   __ovld __conv intel_sub_group_shuffle_down( ulong prev, ulong cur, uint c );
15957
15958float   __ovld __conv intel_sub_group_shuffle_up( float  prev, float  cur, uint c );
15959float2  __ovld __conv intel_sub_group_shuffle_up( float2 prev, float2 cur, uint c );
15960float3  __ovld __conv intel_sub_group_shuffle_up( float3 prev, float3 cur, uint c );
15961float4  __ovld __conv intel_sub_group_shuffle_up( float4 prev, float4 cur, uint c );
15962float8  __ovld __conv intel_sub_group_shuffle_up( float8 prev, float8 cur, uint c );
15963float16 __ovld __conv intel_sub_group_shuffle_up( float16 prev, float16 cur, uint c );
15964
15965int     __ovld __conv intel_sub_group_shuffle_up( int  prev, int  cur, uint c );
15966int2    __ovld __conv intel_sub_group_shuffle_up( int2 prev, int2 cur, uint c );
15967int3    __ovld __conv intel_sub_group_shuffle_up( int3 prev, int3 cur, uint c );
15968int4    __ovld __conv intel_sub_group_shuffle_up( int4 prev, int4 cur, uint c );
15969int8    __ovld __conv intel_sub_group_shuffle_up( int8 prev, int8 cur, uint c );
15970int16   __ovld __conv intel_sub_group_shuffle_up( int16 prev, int16 cur, uint c );
15971
15972uint    __ovld __conv intel_sub_group_shuffle_up( uint  prev, uint  cur, uint c );
15973uint2   __ovld __conv intel_sub_group_shuffle_up( uint2 prev, uint2 cur, uint c );
15974uint3   __ovld __conv intel_sub_group_shuffle_up( uint3 prev, uint3 cur, uint c );
15975uint4   __ovld __conv intel_sub_group_shuffle_up( uint4 prev, uint4 cur, uint c );
15976uint8   __ovld __conv intel_sub_group_shuffle_up( uint8 prev, uint8 cur, uint c );
15977uint16  __ovld __conv intel_sub_group_shuffle_up( uint16 prev, uint16 cur, uint c );
15978
15979long    __ovld __conv intel_sub_group_shuffle_up( long prev, long cur, uint c );
15980ulong   __ovld __conv intel_sub_group_shuffle_up( ulong prev, ulong cur, uint c );
15981
15982float   __ovld __conv intel_sub_group_shuffle_xor( float  x, uint c );
15983float2  __ovld __conv intel_sub_group_shuffle_xor( float2 x, uint c );
15984float3  __ovld __conv intel_sub_group_shuffle_xor( float3 x, uint c );
15985float4  __ovld __conv intel_sub_group_shuffle_xor( float4 x, uint c );
15986float8  __ovld __conv intel_sub_group_shuffle_xor( float8 x, uint c );
15987float16 __ovld __conv intel_sub_group_shuffle_xor( float16 x, uint c );
15988
15989int     __ovld __conv intel_sub_group_shuffle_xor( int  x, uint c );
15990int2    __ovld __conv intel_sub_group_shuffle_xor( int2 x, uint c );
15991int3    __ovld __conv intel_sub_group_shuffle_xor( int3 x, uint c );
15992int4    __ovld __conv intel_sub_group_shuffle_xor( int4 x, uint c );
15993int8    __ovld __conv intel_sub_group_shuffle_xor( int8 x, uint c );
15994int16   __ovld __conv intel_sub_group_shuffle_xor( int16 x, uint c );
15995
15996uint    __ovld __conv intel_sub_group_shuffle_xor( uint  x, uint c );
15997uint2   __ovld __conv intel_sub_group_shuffle_xor( uint2 x, uint c );
15998uint3   __ovld __conv intel_sub_group_shuffle_xor( uint3 x, uint c );
15999uint4   __ovld __conv intel_sub_group_shuffle_xor( uint4 x, uint c );
16000uint8   __ovld __conv intel_sub_group_shuffle_xor( uint8 x, uint c );
16001uint16  __ovld __conv intel_sub_group_shuffle_xor( uint16 x, uint c );
16002
16003long    __ovld __conv intel_sub_group_shuffle_xor( long x, uint c );
16004ulong   __ovld __conv intel_sub_group_shuffle_xor( ulong x, uint c );
16005
16006uint    __ovld __conv intel_sub_group_block_read( read_only image2d_t image, int2 coord );
16007uint2   __ovld __conv intel_sub_group_block_read2( read_only image2d_t image, int2 coord );
16008uint4   __ovld __conv intel_sub_group_block_read4( read_only image2d_t image, int2 coord );
16009uint8   __ovld __conv intel_sub_group_block_read8( read_only image2d_t image, int2 coord );
16010
16011#if (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
16012uint    __ovld __conv intel_sub_group_block_read(read_write image2d_t image, int2 coord);
16013uint2   __ovld __conv intel_sub_group_block_read2(read_write image2d_t image, int2 coord);
16014uint4   __ovld __conv intel_sub_group_block_read4(read_write image2d_t image, int2 coord);
16015uint8   __ovld __conv intel_sub_group_block_read8(read_write image2d_t image, int2 coord);
16016#endif // (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
16017
16018uint    __ovld __conv intel_sub_group_block_read( const __global uint* p );
16019uint2   __ovld __conv intel_sub_group_block_read2( const __global uint* p );
16020uint4   __ovld __conv intel_sub_group_block_read4( const __global uint* p );
16021uint8   __ovld __conv intel_sub_group_block_read8( const __global uint* p );
16022
16023void    __ovld __conv intel_sub_group_block_write(write_only image2d_t image, int2 coord, uint data);
16024void    __ovld __conv intel_sub_group_block_write2(write_only image2d_t image, int2 coord, uint2 data);
16025void    __ovld __conv intel_sub_group_block_write4(write_only image2d_t image, int2 coord, uint4 data);
16026void    __ovld __conv intel_sub_group_block_write8(write_only image2d_t image, int2 coord, uint8 data);
16027
16028#if (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
16029void    __ovld __conv intel_sub_group_block_write(read_write image2d_t image, int2 coord, uint data);
16030void    __ovld __conv intel_sub_group_block_write2(read_write image2d_t image, int2 coord, uint2 data);
16031void    __ovld __conv intel_sub_group_block_write4(read_write image2d_t image, int2 coord, uint4 data);
16032void    __ovld __conv intel_sub_group_block_write8(read_write image2d_t image, int2 coord, uint8 data);
16033#endif // (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
16034
16035void    __ovld __conv intel_sub_group_block_write( __global uint* p, uint data );
16036void    __ovld __conv intel_sub_group_block_write2( __global uint* p, uint2 data );
16037void    __ovld __conv intel_sub_group_block_write4( __global uint* p, uint4 data );
16038void    __ovld __conv intel_sub_group_block_write8( __global uint* p, uint8 data );
16039
16040#ifdef cl_khr_fp16
16041half    __ovld __conv intel_sub_group_shuffle( half x, uint c );
16042half    __ovld __conv intel_sub_group_shuffle_down( half prev, half cur, uint c );
16043half    __ovld __conv intel_sub_group_shuffle_up( half prev, half cur, uint c );
16044half    __ovld __conv intel_sub_group_shuffle_xor( half x, uint c );
16045#endif
16046
16047#if defined(cl_khr_fp64)
16048double  __ovld __conv intel_sub_group_shuffle( double x, uint c );
16049double  __ovld __conv intel_sub_group_shuffle_down( double prev, double cur, uint c );
16050double  __ovld __conv intel_sub_group_shuffle_up( double prev, double cur, uint c );
16051double  __ovld __conv intel_sub_group_shuffle_xor( double x, uint c );
16052#endif
16053
16054#endif //cl_intel_subgroups
16055
16056#if defined(cl_intel_subgroups_short)
16057short       __ovld __conv intel_sub_group_broadcast( short  x, uint sub_group_local_id );
16058short2      __ovld __conv intel_sub_group_broadcast( short2 x, uint sub_group_local_id );
16059short3      __ovld __conv intel_sub_group_broadcast( short3 x, uint sub_group_local_id );
16060short4      __ovld __conv intel_sub_group_broadcast( short4 x, uint sub_group_local_id );
16061short8      __ovld __conv intel_sub_group_broadcast( short8 x, uint sub_group_local_id );
16062
16063ushort      __ovld __conv intel_sub_group_broadcast( ushort  x, uint sub_group_local_id );
16064ushort2     __ovld __conv intel_sub_group_broadcast( ushort2 x, uint sub_group_local_id );
16065ushort3     __ovld __conv intel_sub_group_broadcast( ushort3 x, uint sub_group_local_id );
16066ushort4     __ovld __conv intel_sub_group_broadcast( ushort4 x, uint sub_group_local_id );
16067ushort8     __ovld __conv intel_sub_group_broadcast( ushort8 x, uint sub_group_local_id );
16068
16069short       __ovld __conv intel_sub_group_shuffle( short   x, uint c );
16070short2      __ovld __conv intel_sub_group_shuffle( short2  x, uint c );
16071short3      __ovld __conv intel_sub_group_shuffle( short3  x, uint c );
16072short4      __ovld __conv intel_sub_group_shuffle( short4  x, uint c );
16073short8      __ovld __conv intel_sub_group_shuffle( short8  x, uint c );
16074short16     __ovld __conv intel_sub_group_shuffle( short16 x, uint c);
16075
16076ushort      __ovld __conv intel_sub_group_shuffle( ushort   x, uint c );
16077ushort2     __ovld __conv intel_sub_group_shuffle( ushort2  x, uint c );
16078ushort3     __ovld __conv intel_sub_group_shuffle( ushort3  x, uint c );
16079ushort4     __ovld __conv intel_sub_group_shuffle( ushort4  x, uint c );
16080ushort8     __ovld __conv intel_sub_group_shuffle( ushort8  x, uint c );
16081ushort16    __ovld __conv intel_sub_group_shuffle( ushort16 x, uint c );
16082
16083short       __ovld __conv intel_sub_group_shuffle_down( short   cur, short   next, uint c );
16084short2      __ovld __conv intel_sub_group_shuffle_down( short2  cur, short2  next, uint c );
16085short3      __ovld __conv intel_sub_group_shuffle_down( short3  cur, short3  next, uint c );
16086short4      __ovld __conv intel_sub_group_shuffle_down( short4  cur, short4  next, uint c );
16087short8      __ovld __conv intel_sub_group_shuffle_down( short8  cur, short8  next, uint c );
16088short16     __ovld __conv intel_sub_group_shuffle_down( short16 cur, short16 next, uint c );
16089
16090ushort      __ovld __conv intel_sub_group_shuffle_down( ushort   cur, ushort   next, uint c );
16091ushort2     __ovld __conv intel_sub_group_shuffle_down( ushort2  cur, ushort2  next, uint c );
16092ushort3     __ovld __conv intel_sub_group_shuffle_down( ushort3  cur, ushort3  next, uint c );
16093ushort4     __ovld __conv intel_sub_group_shuffle_down( ushort4  cur, ushort4  next, uint c );
16094ushort8     __ovld __conv intel_sub_group_shuffle_down( ushort8  cur, ushort8  next, uint c );
16095ushort16    __ovld __conv intel_sub_group_shuffle_down( ushort16 cur, ushort16 next, uint c );
16096
16097short       __ovld __conv intel_sub_group_shuffle_up( short   cur, short   next, uint c );
16098short2      __ovld __conv intel_sub_group_shuffle_up( short2  cur, short2  next, uint c );
16099short3      __ovld __conv intel_sub_group_shuffle_up( short3  cur, short3  next, uint c );
16100short4      __ovld __conv intel_sub_group_shuffle_up( short4  cur, short4  next, uint c );
16101short8      __ovld __conv intel_sub_group_shuffle_up( short8  cur, short8  next, uint c );
16102short16     __ovld __conv intel_sub_group_shuffle_up( short16 cur, short16 next, uint c );
16103
16104ushort      __ovld __conv intel_sub_group_shuffle_up( ushort   cur, ushort   next, uint c );
16105ushort2     __ovld __conv intel_sub_group_shuffle_up( ushort2  cur, ushort2  next, uint c );
16106ushort3     __ovld __conv intel_sub_group_shuffle_up( ushort3  cur, ushort3  next, uint c );
16107ushort4     __ovld __conv intel_sub_group_shuffle_up( ushort4  cur, ushort4  next, uint c );
16108ushort8     __ovld __conv intel_sub_group_shuffle_up( ushort8  cur, ushort8  next, uint c );
16109ushort16    __ovld __conv intel_sub_group_shuffle_up( ushort16 cur, ushort16 next, uint c );
16110
16111short       __ovld __conv intel_sub_group_shuffle_xor( short   x, uint c );
16112short2      __ovld __conv intel_sub_group_shuffle_xor( short2  x, uint c );
16113short3      __ovld __conv intel_sub_group_shuffle_xor( short3  x, uint c );
16114short4      __ovld __conv intel_sub_group_shuffle_xor( short4  x, uint c );
16115short8      __ovld __conv intel_sub_group_shuffle_xor( short8  x, uint c );
16116short16     __ovld __conv intel_sub_group_shuffle_xor( short16 x, uint c );
16117
16118ushort      __ovld __conv intel_sub_group_shuffle_xor( ushort   x, uint c );
16119ushort2     __ovld __conv intel_sub_group_shuffle_xor( ushort2  x, uint c );
16120ushort3     __ovld __conv intel_sub_group_shuffle_xor( ushort3  x, uint c );
16121ushort4     __ovld __conv intel_sub_group_shuffle_xor( ushort4  x, uint c );
16122ushort8     __ovld __conv intel_sub_group_shuffle_xor( ushort8  x, uint c );
16123ushort16    __ovld __conv intel_sub_group_shuffle_xor( ushort16 x, uint c );
16124
16125short       __ovld __conv intel_sub_group_reduce_add( short   x );
16126ushort      __ovld __conv intel_sub_group_reduce_add( ushort  x );
16127short       __ovld __conv intel_sub_group_reduce_min( short   x );
16128ushort      __ovld __conv intel_sub_group_reduce_min( ushort  x );
16129short       __ovld __conv intel_sub_group_reduce_max( short   x );
16130ushort      __ovld __conv intel_sub_group_reduce_max( ushort  x );
16131
16132short       __ovld __conv intel_sub_group_scan_exclusive_add( short   x );
16133ushort      __ovld __conv intel_sub_group_scan_exclusive_add( ushort  x );
16134short       __ovld __conv intel_sub_group_scan_exclusive_min( short   x );
16135ushort      __ovld __conv intel_sub_group_scan_exclusive_min( ushort  x );
16136short       __ovld __conv intel_sub_group_scan_exclusive_max( short   x );
16137ushort      __ovld __conv intel_sub_group_scan_exclusive_max( ushort  x );
16138
16139short       __ovld __conv intel_sub_group_scan_inclusive_add( short   x );
16140ushort      __ovld __conv intel_sub_group_scan_inclusive_add( ushort  x );
16141short       __ovld __conv intel_sub_group_scan_inclusive_min( short   x );
16142ushort      __ovld __conv intel_sub_group_scan_inclusive_min( ushort  x );
16143short       __ovld __conv intel_sub_group_scan_inclusive_max( short   x );
16144ushort      __ovld __conv intel_sub_group_scan_inclusive_max( ushort  x );
16145
16146uint       __ovld __conv intel_sub_group_block_read_ui( read_only image2d_t image, int2 byte_coord );
16147uint2      __ovld __conv intel_sub_group_block_read_ui2( read_only image2d_t image, int2 byte_coord );
16148uint4      __ovld __conv intel_sub_group_block_read_ui4( read_only image2d_t image, int2 byte_coord );
16149uint8      __ovld __conv intel_sub_group_block_read_ui8( read_only image2d_t image, int2 byte_coord );
16150
16151#if (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
16152uint       __ovld __conv intel_sub_group_block_read_ui( read_write image2d_t image, int2 byte_coord );
16153uint2      __ovld __conv intel_sub_group_block_read_ui2( read_write image2d_t image, int2 byte_coord );
16154uint4      __ovld __conv intel_sub_group_block_read_ui4( read_write image2d_t image, int2 byte_coord );
16155uint8      __ovld __conv intel_sub_group_block_read_ui8( read_write image2d_t image, int2 byte_coord );
16156#endif // (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
16157
16158uint       __ovld __conv intel_sub_group_block_read_ui( const __global uint* p );
16159uint2      __ovld __conv intel_sub_group_block_read_ui2( const __global uint* p );
16160uint4      __ovld __conv intel_sub_group_block_read_ui4( const __global uint* p );
16161uint8      __ovld __conv intel_sub_group_block_read_ui8( const __global uint* p );
16162
16163void       __ovld __conv intel_sub_group_block_write_ui( read_only image2d_t image, int2 byte_coord, uint data );
16164void       __ovld __conv intel_sub_group_block_write_ui2( read_only image2d_t image, int2 byte_coord, uint2 data );
16165void       __ovld __conv intel_sub_group_block_write_ui4( read_only image2d_t image, int2 byte_coord, uint4 data );
16166void       __ovld __conv intel_sub_group_block_write_ui8( read_only image2d_t image, int2 byte_coord, uint8 data );
16167
16168#if (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
16169void       __ovld __conv intel_sub_group_block_write_ui( read_write image2d_t image, int2 byte_coord, uint data );
16170void       __ovld __conv intel_sub_group_block_write_ui2( read_write image2d_t image, int2 byte_coord, uint2 data );
16171void       __ovld __conv intel_sub_group_block_write_ui4( read_write image2d_t image, int2 byte_coord, uint4 data );
16172void       __ovld __conv intel_sub_group_block_write_ui8( read_write image2d_t image, int2 byte_coord, uint8 data );
16173#endif // (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
16174
16175void       __ovld __conv intel_sub_group_block_write_ui( __global uint* p, uint data );
16176void       __ovld __conv intel_sub_group_block_write_ui2( __global uint* p, uint2 data );
16177void       __ovld __conv intel_sub_group_block_write_ui4( __global uint* p, uint4 data );
16178void       __ovld __conv intel_sub_group_block_write_ui8( __global uint* p, uint8 data );
16179
16180ushort      __ovld __conv intel_sub_group_block_read_us( read_only image2d_t image, int2 coord );
16181ushort2     __ovld __conv intel_sub_group_block_read_us2( read_only image2d_t image, int2 coord );
16182ushort4     __ovld __conv intel_sub_group_block_read_us4( read_only image2d_t image, int2 coord );
16183ushort8     __ovld __conv intel_sub_group_block_read_us8( read_only image2d_t image, int2 coord );
16184
16185#if (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
16186ushort      __ovld __conv intel_sub_group_block_read_us(read_write image2d_t image, int2 coord);
16187ushort2     __ovld __conv intel_sub_group_block_read_us2(read_write image2d_t image, int2 coord);
16188ushort4     __ovld __conv intel_sub_group_block_read_us4(read_write image2d_t image, int2 coord);
16189ushort8     __ovld __conv intel_sub_group_block_read_us8(read_write image2d_t image, int2 coord);
16190#endif // (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
16191
16192ushort      __ovld __conv intel_sub_group_block_read_us(  const __global ushort* p );
16193ushort2     __ovld __conv intel_sub_group_block_read_us2( const __global ushort* p );
16194ushort4     __ovld __conv intel_sub_group_block_read_us4( const __global ushort* p );
16195ushort8     __ovld __conv intel_sub_group_block_read_us8( const __global ushort* p );
16196
16197void        __ovld __conv intel_sub_group_block_write_us(write_only image2d_t image, int2 coord, ushort  data);
16198void        __ovld __conv intel_sub_group_block_write_us2(write_only image2d_t image, int2 coord, ushort2 data);
16199void        __ovld __conv intel_sub_group_block_write_us4(write_only image2d_t image, int2 coord, ushort4 data);
16200void        __ovld __conv intel_sub_group_block_write_us8(write_only image2d_t image, int2 coord, ushort8 data);
16201
16202#if (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
16203void        __ovld __conv intel_sub_group_block_write_us(read_write image2d_t image, int2 coord, ushort  data);
16204void        __ovld __conv intel_sub_group_block_write_us2(read_write image2d_t image, int2 coord, ushort2 data);
16205void        __ovld __conv intel_sub_group_block_write_us4(read_write image2d_t image, int2 coord, ushort4 data);
16206void        __ovld __conv intel_sub_group_block_write_us8(read_write image2d_t image, int2 coord, ushort8 data);
16207#endif // (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
16208
16209void        __ovld __conv intel_sub_group_block_write_us(  __global ushort* p, ushort  data );
16210void        __ovld __conv intel_sub_group_block_write_us2( __global ushort* p, ushort2 data );
16211void        __ovld __conv intel_sub_group_block_write_us4( __global ushort* p, ushort4 data );
16212void        __ovld __conv intel_sub_group_block_write_us8( __global ushort* p, ushort8 data );
16213#endif // cl_intel_subgroups_short
16214
16215#ifdef cl_intel_device_side_avc_motion_estimation
16216#pragma OPENCL EXTENSION cl_intel_device_side_avc_motion_estimation : begin
16217
16218#define CLK_AVC_ME_MAJOR_16x16_INTEL 0x0
16219#define CLK_AVC_ME_MAJOR_16x8_INTEL 0x1
16220#define CLK_AVC_ME_MAJOR_8x16_INTEL 0x2
16221#define CLK_AVC_ME_MAJOR_8x8_INTEL 0x3
16222
16223#define CLK_AVC_ME_MINOR_8x8_INTEL 0x0
16224#define CLK_AVC_ME_MINOR_8x4_INTEL 0x1
16225#define CLK_AVC_ME_MINOR_4x8_INTEL 0x2
16226#define CLK_AVC_ME_MINOR_4x4_INTEL 0x3
16227
16228#define CLK_AVC_ME_MAJOR_FORWARD_INTEL 0x0
16229#define CLK_AVC_ME_MAJOR_BACKWARD_INTEL 0x1
16230#define CLK_AVC_ME_MAJOR_BIDIRECTIONAL_INTEL 0x2
16231
16232#define CLK_AVC_ME_PARTITION_MASK_ALL_INTEL 0x0
16233#define CLK_AVC_ME_PARTITION_MASK_16x16_INTEL 0x7E
16234#define CLK_AVC_ME_PARTITION_MASK_16x8_INTEL 0x7D
16235#define CLK_AVC_ME_PARTITION_MASK_8x16_INTEL 0x7B
16236#define CLK_AVC_ME_PARTITION_MASK_8x8_INTEL 0x77
16237#define CLK_AVC_ME_PARTITION_MASK_8x4_INTEL 0x6F
16238#define CLK_AVC_ME_PARTITION_MASK_4x8_INTEL 0x5F
16239#define CLK_AVC_ME_PARTITION_MASK_4x4_INTEL 0x3F
16240
16241#define CLK_AVC_ME_SLICE_TYPE_PRED_INTEL 0x0
16242#define CLK_AVC_ME_SLICE_TYPE_BPRED_INTEL 0x1
16243#define CLK_AVC_ME_SLICE_TYPE_INTRA_INTEL 0x2
16244
16245#define CLK_AVC_ME_SEARCH_WINDOW_EXHAUSTIVE_INTEL 0x0
16246#define CLK_AVC_ME_SEARCH_WINDOW_SMALL_INTEL 0x1
16247#define CLK_AVC_ME_SEARCH_WINDOW_TINY_INTEL 0x2
16248#define CLK_AVC_ME_SEARCH_WINDOW_EXTRA_TINY_INTEL 0x3
16249#define CLK_AVC_ME_SEARCH_WINDOW_DIAMOND_INTEL 0x4
16250#define CLK_AVC_ME_SEARCH_WINDOW_LARGE_DIAMOND_INTEL 0x5
16251#define CLK_AVC_ME_SEARCH_WINDOW_RESERVED0_INTEL 0x6
16252#define CLK_AVC_ME_SEARCH_WINDOW_RESERVED1_INTEL 0x7
16253#define CLK_AVC_ME_SEARCH_WINDOW_CUSTOM_INTEL 0x8
16254
16255#define CLK_AVC_ME_SAD_ADJUST_MODE_NONE_INTEL 0x0
16256#define CLK_AVC_ME_SAD_ADJUST_MODE_HAAR_INTEL 0x2
16257
16258#define CLK_AVC_ME_SUBPIXEL_MODE_INTEGER_INTEL 0x0
16259#define CLK_AVC_ME_SUBPIXEL_MODE_HPEL_INTEL 0x1
16260#define CLK_AVC_ME_SUBPIXEL_MODE_QPEL_INTEL 0x3
16261
16262#define CLK_AVC_ME_COST_PRECISION_QPEL_INTEL 0x0
16263#define CLK_AVC_ME_COST_PRECISION_HPEL_INTEL 0x1
16264#define CLK_AVC_ME_COST_PRECISION_PEL_INTEL 0x2
16265#define CLK_AVC_ME_COST_PRECISION_DPEL_INTEL 0x3
16266
16267#define CLK_AVC_ME_BIDIR_WEIGHT_QUARTER_INTEL 0x10
16268#define CLK_AVC_ME_BIDIR_WEIGHT_THIRD_INTEL 0x15
16269#define CLK_AVC_ME_BIDIR_WEIGHT_HALF_INTEL 0x20
16270#define CLK_AVC_ME_BIDIR_WEIGHT_TWO_THIRD_INTEL 0x2B
16271#define CLK_AVC_ME_BIDIR_WEIGHT_THREE_QUARTER_INTEL 0x30
16272
16273#define CLK_AVC_ME_BORDER_REACHED_LEFT_INTEL 0x0
16274#define CLK_AVC_ME_BORDER_REACHED_RIGHT_INTEL 0x2
16275#define CLK_AVC_ME_BORDER_REACHED_TOP_INTEL 0x4
16276#define CLK_AVC_ME_BORDER_REACHED_BOTTOM_INTEL 0x8
16277
16278#define CLK_AVC_ME_INTRA_16x16_INTEL 0x0
16279#define CLK_AVC_ME_INTRA_8x8_INTEL 0x1
16280#define CLK_AVC_ME_INTRA_4x4_INTEL 0x2
16281
16282#define CLK_AVC_ME_SKIP_BLOCK_PARTITION_16x16_INTEL 0x0
16283#define CLK_AVC_ME_SKIP_BLOCK_PARTITION_8x8_INTEL 0x4000
16284
16285#define CLK_AVC_ME_SKIP_BLOCK_16x16_FORWARD_ENABLE_INTEL (0x1 << 24)
16286#define CLK_AVC_ME_SKIP_BLOCK_16x16_BACKWARD_ENABLE_INTEL (0x2 << 24)
16287#define CLK_AVC_ME_SKIP_BLOCK_16x16_DUAL_ENABLE_INTEL (0x3 << 24)
16288#define CLK_AVC_ME_SKIP_BLOCK_8x8_FORWARD_ENABLE_INTEL (0x55 << 24)
16289#define CLK_AVC_ME_SKIP_BLOCK_8x8_BACKWARD_ENABLE_INTEL (0xAA << 24)
16290#define CLK_AVC_ME_SKIP_BLOCK_8x8_DUAL_ENABLE_INTEL (0xFF << 24)
16291#define CLK_AVC_ME_SKIP_BLOCK_8x8_0_FORWARD_ENABLE_INTEL (0x1 << 24)
16292#define CLK_AVC_ME_SKIP_BLOCK_8x8_0_BACKWARD_ENABLE_INTEL (0x2 << 24)
16293#define CLK_AVC_ME_SKIP_BLOCK_8x8_1_FORWARD_ENABLE_INTEL (0x1 << 26)
16294#define CLK_AVC_ME_SKIP_BLOCK_8x8_1_BACKWARD_ENABLE_INTEL (0x2 << 26)
16295#define CLK_AVC_ME_SKIP_BLOCK_8x8_2_FORWARD_ENABLE_INTEL (0x1 << 28)
16296#define CLK_AVC_ME_SKIP_BLOCK_8x8_2_BACKWARD_ENABLE_INTEL (0x2 << 28)
16297#define CLK_AVC_ME_SKIP_BLOCK_8x8_3_FORWARD_ENABLE_INTEL (0x1 << 30)
16298#define CLK_AVC_ME_SKIP_BLOCK_8x8_3_BACKWARD_ENABLE_INTEL (0x2 << 30)
16299
16300#define CLK_AVC_ME_BLOCK_BASED_SKIP_4x4_INTEL 0x00
16301#define CLK_AVC_ME_BLOCK_BASED_SKIP_8x8_INTEL 0x80
16302
16303#define CLK_AVC_ME_INTRA_LUMA_PARTITION_MASK_ALL_INTEL 0x0
16304#define CLK_AVC_ME_INTRA_LUMA_PARTITION_MASK_16x16_INTEL 0x6
16305#define CLK_AVC_ME_INTRA_LUMA_PARTITION_MASK_8x8_INTEL 0x5
16306#define CLK_AVC_ME_INTRA_LUMA_PARTITION_MASK_4x4_INTEL 0x3
16307
16308#define CLK_AVC_ME_INTRA_NEIGHBOR_LEFT_MASK_ENABLE_INTEL 0x60
16309#define CLK_AVC_ME_INTRA_NEIGHBOR_UPPER_MASK_ENABLE_INTEL 0x10
16310#define CLK_AVC_ME_INTRA_NEIGHBOR_UPPER_RIGHT_MASK_ENABLE_INTEL 0x8
16311#define CLK_AVC_ME_INTRA_NEIGHBOR_UPPER_LEFT_MASK_ENABLE_INTEL 0x4
16312
16313#define CLK_AVC_ME_LUMA_PREDICTOR_MODE_VERTICAL_INTEL 0x0
16314#define CLK_AVC_ME_LUMA_PREDICTOR_MODE_HORIZONTAL_INTEL 0x1
16315#define CLK_AVC_ME_LUMA_PREDICTOR_MODE_DC_INTEL 0x2
16316#define CLK_AVC_ME_LUMA_PREDICTOR_MODE_DIAGONAL_DOWN_LEFT_INTEL 0x3
16317#define CLK_AVC_ME_LUMA_PREDICTOR_MODE_DIAGONAL_DOWN_RIGHT_INTEL 0x4
16318#define CLK_AVC_ME_LUMA_PREDICTOR_MODE_PLANE_INTEL 0x4
16319#define CLK_AVC_ME_LUMA_PREDICTOR_MODE_VERTICAL_RIGHT_INTEL 0x5
16320#define CLK_AVC_ME_LUMA_PREDICTOR_MODE_HORIZONTAL_DOWN_INTEL 0x6
16321#define CLK_AVC_ME_LUMA_PREDICTOR_MODE_VERTICAL_LEFT_INTEL 0x7
16322#define CLK_AVC_ME_LUMA_PREDICTOR_MODE_HORIZONTAL_UP_INTEL 0x8
16323#define CLK_AVC_ME_CHROMA_PREDICTOR_MODE_DC_INTEL 0x0
16324#define CLK_AVC_ME_CHROMA_PREDICTOR_MODE_HORIZONTAL_INTEL 0x1
16325#define CLK_AVC_ME_CHROMA_PREDICTOR_MODE_VERTICAL_INTEL 0x2
16326#define CLK_AVC_ME_CHROMA_PREDICTOR_MODE_PLANE_INTEL 0x3
16327
16328#define CLK_AVC_ME_FRAME_FORWARD_INTEL 0x1
16329#define CLK_AVC_ME_FRAME_BACKWARD_INTEL 0x2
16330#define CLK_AVC_ME_FRAME_DUAL_INTEL 0x3
16331
16332#define CLK_AVC_ME_INTERLACED_SCAN_TOP_FIELD_INTEL 0x0
16333#define CLK_AVC_ME_INTERLACED_SCAN_BOTTOM_FIELD_INTEL 0x1
16334
16335#define CLK_AVC_ME_INITIALIZE_INTEL 0x0
16336
16337#define CLK_AVC_IME_PAYLOAD_INITIALIZE_INTEL 0x0
16338#define CLK_AVC_REF_PAYLOAD_INITIALIZE_INTEL 0x0
16339#define CLK_AVC_SIC_PAYLOAD_INITIALIZE_INTEL 0x0
16340
16341#define CLK_AVC_IME_RESULT_INITIALIZE_INTEL 0x0
16342#define CLK_AVC_REF_RESULT_INITIALIZE_INTEL 0x0
16343#define CLK_AVC_SIC_RESULT_INITIALIZE_INTEL 0x0
16344
16345#define CLK_AVC_IME_RESULT_SINGLE_REFERENCE_STREAMOUT_INITIALIZE_INTEL 0x0
16346#define CLK_AVC_IME_RESULT_SINGLE_REFERENCE_STREAMIN_INITIALIZE_INTEL 0x0
16347#define CLK_AVC_IME_RESULT_DUAL_REFERENCE_STREAMOUT_INITIALIZE_INTEL 0x0
16348#define CLK_AVC_IME_RESULT_DUAL_REFERENCE_STREAMIN_INITIALIZE_INTEL 0x0
16349
16350// MCE built-in functions
16351uchar __ovld
16352intel_sub_group_avc_mce_get_default_inter_base_multi_reference_penalty(
16353    uchar slice_type, uchar qp);
16354ulong __ovld intel_sub_group_avc_mce_get_default_inter_shape_penalty(
16355    uchar slice_type, uchar qp);
16356uchar __ovld intel_sub_group_avc_mce_get_default_inter_direction_penalty(
16357    uchar slice_type, uchar qp);
16358uint __ovld intel_sub_group_avc_mce_get_default_intra_luma_shape_penalty(
16359    uchar slice_type, uchar qp);
16360uint2 __ovld
16361intel_sub_group_avc_mce_get_default_inter_motion_vector_cost_table(
16362    uchar slice_type, uchar qp);
16363uchar __ovld intel_sub_group_avc_mce_get_default_intra_luma_mode_penalty(
16364    uchar slice_type, uchar qp);
16365
16366uint2 __ovld intel_sub_group_avc_mce_get_default_high_penalty_cost_table();
16367uint2 __ovld intel_sub_group_avc_mce_get_default_medium_penalty_cost_table();
16368uint2 __ovld intel_sub_group_avc_mce_get_default_low_penalty_cost_table();
16369uint __ovld intel_sub_group_avc_mce_get_default_non_dc_luma_intra_penalty();
16370uchar __ovld
16371intel_sub_group_avc_mce_get_default_intra_chroma_mode_base_penalty();
16372
16373intel_sub_group_avc_mce_payload_t __ovld
16374intel_sub_group_avc_mce_set_inter_base_multi_reference_penalty(
16375    uchar reference_base_penalty, intel_sub_group_avc_mce_payload_t payload);
16376intel_sub_group_avc_mce_payload_t __ovld
16377intel_sub_group_avc_mce_set_inter_shape_penalty(
16378    ulong packed_shape_penalty, intel_sub_group_avc_mce_payload_t payload);
16379intel_sub_group_avc_mce_payload_t __ovld
16380intel_sub_group_avc_mce_set_inter_direction_penalty(
16381    uchar direction_cost, intel_sub_group_avc_mce_payload_t payload);
16382intel_sub_group_avc_mce_payload_t __ovld
16383intel_sub_group_avc_mce_set_motion_vector_cost_function(
16384    ulong packed_cost_center_delta, uint2 packed_cost_table,
16385    uchar cost_precision, intel_sub_group_avc_mce_payload_t payload);
16386intel_sub_group_avc_mce_payload_t __ovld
16387intel_sub_group_avc_mce_set_ac_only_haar(
16388    intel_sub_group_avc_mce_payload_t payload);
16389intel_sub_group_avc_mce_payload_t __ovld
16390intel_sub_group_avc_mce_set_source_interlaced_field_polarity(
16391    uchar src_field_polarity, intel_sub_group_avc_mce_payload_t payload);
16392intel_sub_group_avc_mce_payload_t __ovld
16393intel_sub_group_avc_mce_set_single_reference_interlaced_field_polarity(
16394    uchar ref_field_polarity, intel_sub_group_avc_mce_payload_t payload);
16395intel_sub_group_avc_mce_payload_t __ovld
16396intel_sub_group_avc_mce_set_dual_reference_interlaced_field_polarities(
16397    uchar fwd_ref_field_polarity, uchar bwd_ref_field_polarity,
16398    intel_sub_group_avc_mce_payload_t payload);
16399
16400ulong __ovld intel_sub_group_avc_mce_get_motion_vectors(
16401    intel_sub_group_avc_mce_result_t result);
16402ushort __ovld intel_sub_group_avc_mce_get_inter_distortions(
16403    intel_sub_group_avc_mce_result_t result);
16404ushort __ovld intel_sub_group_avc_mce_get_best_inter_distortion(
16405    intel_sub_group_avc_mce_result_t result);
16406uchar __ovld intel_sub_group_avc_mce_get_inter_major_shape(
16407    intel_sub_group_avc_mce_result_t result);
16408uchar __ovld intel_sub_group_avc_mce_get_inter_minor_shapes(
16409    intel_sub_group_avc_mce_result_t result);
16410uchar __ovld intel_sub_group_avc_mce_get_inter_directions(
16411    intel_sub_group_avc_mce_result_t result);
16412uchar __ovld intel_sub_group_avc_mce_get_inter_motion_vector_count(
16413    intel_sub_group_avc_mce_result_t result);
16414uint __ovld intel_sub_group_avc_mce_get_inter_reference_ids(
16415    intel_sub_group_avc_mce_result_t result);
16416uchar __ovld
16417intel_sub_group_avc_mce_get_inter_reference_interlaced_field_polarities(
16418    uint packed_reference_ids, uint packed_reference_parameter_field_polarities,
16419    intel_sub_group_avc_mce_result_t result);
16420
16421// IME built-in functions
16422intel_sub_group_avc_ime_payload_t __ovld
16423intel_sub_group_avc_ime_initialize(
16424    ushort2 src_coord, uchar partition_mask, uchar sad_adjustment);
16425intel_sub_group_avc_ime_payload_t __ovld
16426intel_sub_group_avc_ime_set_single_reference(
16427    short2 ref_offset, uchar search_window_config,
16428    intel_sub_group_avc_ime_payload_t payload);
16429intel_sub_group_avc_ime_payload_t __ovld
16430intel_sub_group_avc_ime_set_dual_reference(
16431    short2 fwd_ref_offset, short2 bwd_ref_offset, uchar search_window_config,
16432    intel_sub_group_avc_ime_payload_t payload);
16433intel_sub_group_avc_ime_payload_t __ovld
16434intel_sub_group_avc_ime_set_max_motion_vector_count(
16435    uchar max_motion_vector_count, intel_sub_group_avc_ime_payload_t payload);
16436intel_sub_group_avc_ime_payload_t __ovld
16437intel_sub_group_avc_ime_set_unidirectional_mix_disable(
16438    intel_sub_group_avc_ime_payload_t payload);
16439intel_sub_group_avc_ime_payload_t __ovld
16440intel_sub_group_avc_ime_set_early_search_termination_threshold(
16441    uchar threshold, intel_sub_group_avc_ime_payload_t payload);
16442intel_sub_group_avc_ime_payload_t __ovld
16443intel_sub_group_avc_ime_set_weighted_sad(
16444    uint packed_sad_weights, intel_sub_group_avc_ime_payload_t payload);
16445
16446__attribute__((deprecated("If you use the latest Intel driver, please use "
16447                          "intel_sub_group_avc_ime_ref_window_size instead",
16448                          "intel_sub_group_avc_ime_ref_window_size")))
16449ushort2 __ovld
16450intel_sub_group_ime_ref_window_size(uchar search_window_config, char dual_ref);
16451ushort2 __ovld intel_sub_group_avc_ime_ref_window_size(
16452    uchar search_window_config, char dual_ref);
16453short2 __ovld intel_sub_group_avc_ime_adjust_ref_offset(
16454    short2 ref_offset, ushort2 src_coord, ushort2 ref_window_size,
16455    ushort2 image_size);
16456
16457intel_sub_group_avc_ime_result_t __ovld
16458intel_sub_group_avc_ime_evaluate_with_single_reference(
16459    read_only image2d_t src_image, read_only image2d_t ref_image,
16460    sampler_t vme_media_sampler, intel_sub_group_avc_ime_payload_t payload);
16461intel_sub_group_avc_ime_result_t __ovld
16462intel_sub_group_avc_ime_evaluate_with_dual_reference(
16463    read_only image2d_t src_image, read_only image2d_t fwd_ref_image,
16464    read_only image2d_t bwd_ref_image, sampler_t vme_media_sampler,
16465    intel_sub_group_avc_ime_payload_t payload);
16466intel_sub_group_avc_ime_result_single_reference_streamout_t __ovld
16467intel_sub_group_avc_ime_evaluate_with_single_reference_streamout(
16468    read_only image2d_t src_image, read_only image2d_t ref_image,
16469    sampler_t vme_media_sampler, intel_sub_group_avc_ime_payload_t payload);
16470intel_sub_group_avc_ime_result_dual_reference_streamout_t __ovld
16471intel_sub_group_avc_ime_evaluate_with_dual_reference_streamout(
16472    read_only image2d_t src_image, read_only image2d_t fwd_ref_image,
16473    read_only image2d_t bwd_ref_image, sampler_t vme_media_sampler,
16474    intel_sub_group_avc_ime_payload_t payload);
16475intel_sub_group_avc_ime_result_t __ovld
16476intel_sub_group_avc_ime_evaluate_with_single_reference_streamin(
16477    read_only image2d_t src_image, read_only image2d_t ref_image,
16478    sampler_t vme_media_sampler, intel_sub_group_avc_ime_payload_t payload,
16479    intel_sub_group_avc_ime_single_reference_streamin_t streamin_components);
16480intel_sub_group_avc_ime_result_t __ovld
16481intel_sub_group_avc_ime_evaluate_with_dual_reference_streamin(
16482    read_only image2d_t src_image, read_only image2d_t fwd_ref_image,
16483    read_only image2d_t bwd_ref_image, sampler_t vme_media_sampler,
16484    intel_sub_group_avc_ime_payload_t payload,
16485    intel_sub_group_avc_ime_dual_reference_streamin_t streamin_components);
16486intel_sub_group_avc_ime_result_single_reference_streamout_t __ovld
16487intel_sub_group_avc_ime_evaluate_with_single_reference_streaminout(
16488    read_only image2d_t src_image, read_only image2d_t ref_image,
16489    sampler_t vme_media_sampler, intel_sub_group_avc_ime_payload_t payload,
16490    intel_sub_group_avc_ime_single_reference_streamin_t streamin_components);
16491intel_sub_group_avc_ime_result_dual_reference_streamout_t __ovld
16492intel_sub_group_avc_ime_evaluate_with_dual_reference_streaminout(
16493    read_only image2d_t src_image, read_only image2d_t fwd_ref_image,
16494    read_only image2d_t bwd_ref_image, sampler_t vme_media_sampler,
16495    intel_sub_group_avc_ime_payload_t payload,
16496    intel_sub_group_avc_ime_dual_reference_streamin_t streamin_components);
16497
16498intel_sub_group_avc_ime_single_reference_streamin_t __ovld
16499intel_sub_group_avc_ime_get_single_reference_streamin(
16500    intel_sub_group_avc_ime_result_single_reference_streamout_t result);
16501intel_sub_group_avc_ime_dual_reference_streamin_t __ovld
16502intel_sub_group_avc_ime_get_dual_reference_streamin(
16503    intel_sub_group_avc_ime_result_dual_reference_streamout_t result);
16504intel_sub_group_avc_ime_result_t __ovld
16505intel_sub_group_avc_ime_strip_single_reference_streamout(
16506    intel_sub_group_avc_ime_result_single_reference_streamout_t result);
16507intel_sub_group_avc_ime_result_t __ovld
16508intel_sub_group_avc_ime_strip_dual_reference_streamout(
16509    intel_sub_group_avc_ime_result_dual_reference_streamout_t result);
16510
16511uint __ovld intel_sub_group_avc_ime_get_streamout_major_shape_motion_vectors(
16512    intel_sub_group_avc_ime_result_single_reference_streamout_t result,
16513    uchar major_shape);
16514ushort __ovld intel_sub_group_avc_ime_get_streamout_major_shape_distortions(
16515    intel_sub_group_avc_ime_result_single_reference_streamout_t result,
16516    uchar major_shape);
16517uchar __ovld intel_sub_group_avc_ime_get_streamout_major_shape_reference_ids(
16518    intel_sub_group_avc_ime_result_single_reference_streamout_t result,
16519    uchar major_shape);
16520uint __ovld intel_sub_group_avc_ime_get_streamout_major_shape_motion_vectors(
16521    intel_sub_group_avc_ime_result_dual_reference_streamout_t result,
16522    uchar major_shape, uchar direction);
16523ushort __ovld intel_sub_group_avc_ime_get_streamout_major_shape_distortions(
16524    intel_sub_group_avc_ime_result_dual_reference_streamout_t result,
16525    uchar major_shape, uchar direction);
16526uchar __ovld intel_sub_group_avc_ime_get_streamout_major_shape_reference_ids(
16527    intel_sub_group_avc_ime_result_dual_reference_streamout_t result,
16528    uchar major_shape, uchar direction);
16529
16530uchar __ovld intel_sub_group_avc_ime_get_border_reached(
16531    uchar image_select, intel_sub_group_avc_ime_result_t result);
16532uchar __ovld intel_sub_group_avc_ime_get_truncated_search_indication(
16533    intel_sub_group_avc_ime_result_t result);
16534uchar __ovld
16535intel_sub_group_avc_ime_get_unidirectional_early_search_termination(
16536    intel_sub_group_avc_ime_result_t result);
16537uint __ovld intel_sub_group_avc_ime_get_weighting_pattern_minimum_motion_vector(
16538    intel_sub_group_avc_ime_result_t result);
16539ushort __ovld intel_sub_group_avc_ime_get_weighting_pattern_minimum_distortion(
16540    intel_sub_group_avc_ime_result_t result);
16541
16542// REF built-in functions
16543intel_sub_group_avc_ref_payload_t __ovld
16544intel_sub_group_avc_fme_initialize(
16545    ushort2 src_coord, ulong motion_vectors, uchar major_shapes,
16546    uchar minor_shapes, uchar directions, uchar pixel_resolution,
16547    uchar sad_adjustment);
16548intel_sub_group_avc_ref_payload_t __ovld
16549intel_sub_group_avc_bme_initialize(
16550    ushort2 src_coord, ulong motion_vectors, uchar major_shapes,
16551    uchar minor_shapes, uchar directions, uchar pixel_resolution,
16552    uchar bidirectional_weight, uchar sad_adjustment);
16553
16554intel_sub_group_avc_ref_payload_t __ovld
16555intel_sub_group_avc_ref_set_bidirectional_mix_disable(
16556    intel_sub_group_avc_ref_payload_t payload);
16557intel_sub_group_avc_ref_payload_t __ovld
16558intel_sub_group_avc_ref_set_bilinear_filter_enable(
16559    intel_sub_group_avc_ref_payload_t payload);
16560
16561intel_sub_group_avc_ref_result_t __ovld
16562intel_sub_group_avc_ref_evaluate_with_single_reference(
16563    read_only image2d_t src_image, read_only image2d_t ref_image,
16564    sampler_t vme_media_sampler, intel_sub_group_avc_ref_payload_t payload);
16565intel_sub_group_avc_ref_result_t __ovld
16566intel_sub_group_avc_ref_evaluate_with_dual_reference(
16567    read_only image2d_t src_image, read_only image2d_t fwd_ref_image,
16568    read_only image2d_t bwd_ref_image, sampler_t vme_media_sampler,
16569    intel_sub_group_avc_ref_payload_t payload);
16570intel_sub_group_avc_ref_result_t __ovld
16571intel_sub_group_avc_ref_evaluate_with_multi_reference(
16572    read_only image2d_t src_image, uint packed_reference_ids,
16573    sampler_t vme_media_sampler, intel_sub_group_avc_ref_payload_t payload);
16574intel_sub_group_avc_ref_result_t __ovld
16575intel_sub_group_avc_ref_evaluate_with_multi_reference(
16576    read_only image2d_t src_image, uint packed_reference_ids,
16577    uchar packed_reference_field_polarities, sampler_t vme_media_sampler,
16578    intel_sub_group_avc_ref_payload_t payload);
16579
16580// SIC built-in functions
16581intel_sub_group_avc_sic_payload_t __ovld
16582intel_sub_group_avc_sic_initialize(
16583    ushort2 src_coord);
16584intel_sub_group_avc_sic_payload_t __ovld
16585intel_sub_group_avc_sic_configure_skc(
16586    uint skip_block_partition_type, uint skip_motion_vector_mask,
16587    ulong motion_vectors, uchar bidirectional_weight, uchar skip_sad_adjustment,
16588    intel_sub_group_avc_sic_payload_t payload);
16589intel_sub_group_avc_sic_payload_t __ovld
16590intel_sub_group_avc_sic_configure_ipe(
16591    uchar luma_intra_partition_mask, uchar intra_neighbour_availabilty,
16592    uchar left_edge_luma_pixels, uchar upper_left_corner_luma_pixel,
16593    uchar upper_edge_luma_pixels, uchar upper_right_edge_luma_pixels,
16594    uchar intra_sad_adjustment, intel_sub_group_avc_sic_payload_t payload);
16595intel_sub_group_avc_sic_payload_t __ovld
16596intel_sub_group_avc_sic_configure_ipe(
16597    uchar luma_intra_partition_mask, uchar intra_neighbour_availabilty,
16598    uchar left_edge_luma_pixels, uchar upper_left_corner_luma_pixel,
16599    uchar upper_edge_luma_pixels, uchar upper_right_edge_luma_pixels,
16600    ushort left_edge_chroma_pixels, ushort upper_left_corner_chroma_pixel,
16601    ushort upper_edge_chroma_pixels, uchar intra_sad_adjustment,
16602    intel_sub_group_avc_sic_payload_t payload);
16603uint __ovld
16604intel_sub_group_avc_sic_get_motion_vector_mask(
16605    uint skip_block_partition_type, uchar direction);
16606
16607intel_sub_group_avc_sic_payload_t __ovld
16608intel_sub_group_avc_sic_set_intra_luma_shape_penalty(
16609    uint packed_shape_cost, intel_sub_group_avc_sic_payload_t payload);
16610intel_sub_group_avc_sic_payload_t __ovld
16611intel_sub_group_avc_sic_set_intra_luma_mode_cost_function(
16612    uchar luma_mode_penalty, uint luma_packed_neighbor_modes,
16613    uint luma_packed_non_dc_penalty, intel_sub_group_avc_sic_payload_t payload);
16614intel_sub_group_avc_sic_payload_t __ovld
16615intel_sub_group_avc_sic_set_intra_chroma_mode_cost_function(
16616    uchar chroma_mode_penalty, intel_sub_group_avc_sic_payload_t payload);
16617
16618intel_sub_group_avc_sic_payload_t __ovld
16619intel_sub_group_avc_sic_set_skc_bilinear_filter_enable(
16620    intel_sub_group_avc_sic_payload_t payload);
16621intel_sub_group_avc_sic_payload_t __ovld
16622intel_sub_group_avc_sic_set_skc_forward_transform_enable(
16623    ulong packed_sad_coefficients, intel_sub_group_avc_sic_payload_t payload);
16624intel_sub_group_avc_sic_payload_t __ovld
16625intel_sub_group_avc_sic_set_block_based_raw_skip_sad(
16626    uchar block_based_skip_type,
16627    intel_sub_group_avc_sic_payload_t payload);
16628
16629intel_sub_group_avc_sic_result_t __ovld
16630intel_sub_group_avc_sic_evaluate_ipe(
16631    read_only image2d_t src_image, sampler_t vme_media_sampler,
16632    intel_sub_group_avc_sic_payload_t payload);
16633intel_sub_group_avc_sic_result_t __ovld
16634intel_sub_group_avc_sic_evaluate_with_single_reference(
16635    read_only image2d_t src_image, read_only image2d_t ref_image,
16636    sampler_t vme_media_sampler, intel_sub_group_avc_sic_payload_t payload);
16637intel_sub_group_avc_sic_result_t __ovld
16638intel_sub_group_avc_sic_evaluate_with_dual_reference(
16639    read_only image2d_t src_image, read_only image2d_t fwd_ref_image,
16640    read_only image2d_t bwd_ref_image, sampler_t vme_media_sampler,
16641    intel_sub_group_avc_sic_payload_t payload);
16642intel_sub_group_avc_sic_result_t __ovld
16643intel_sub_group_avc_sic_evaluate_with_multi_reference(
16644    read_only image2d_t src_image, uint packed_reference_ids,
16645    sampler_t vme_media_sampler, intel_sub_group_avc_sic_payload_t payload);
16646intel_sub_group_avc_sic_result_t __ovld
16647intel_sub_group_avc_sic_evaluate_with_multi_reference(
16648    read_only image2d_t src_image, uint packed_reference_ids,
16649    uchar packed_reference_field_polarities, sampler_t vme_media_sampler,
16650    intel_sub_group_avc_sic_payload_t payload);
16651
16652uchar __ovld intel_sub_group_avc_sic_get_ipe_luma_shape(
16653    intel_sub_group_avc_sic_result_t result);
16654ushort __ovld intel_sub_group_avc_sic_get_best_ipe_luma_distortion(
16655    intel_sub_group_avc_sic_result_t result);
16656ushort __ovld intel_sub_group_avc_sic_get_best_ipe_chroma_distortion(
16657    intel_sub_group_avc_sic_result_t result);
16658ulong __ovld intel_sub_group_avc_sic_get_packed_ipe_luma_modes(
16659    intel_sub_group_avc_sic_result_t result);
16660uchar __ovld intel_sub_group_avc_sic_get_ipe_chroma_mode(
16661    intel_sub_group_avc_sic_result_t result);
16662uint __ovld intel_sub_group_avc_sic_get_packed_skc_luma_count_threshold(
16663    intel_sub_group_avc_sic_result_t result);
16664ulong __ovld intel_sub_group_avc_sic_get_packed_skc_luma_sum_threshold(
16665    intel_sub_group_avc_sic_result_t result);
16666ushort __ovld intel_sub_group_avc_sic_get_inter_raw_sads(
16667    intel_sub_group_avc_sic_result_t result);
16668
16669// Wrappers
16670intel_sub_group_avc_ime_payload_t __ovld
16671intel_sub_group_avc_ime_set_inter_base_multi_reference_penalty(
16672    uchar reference_base_penalty, intel_sub_group_avc_ime_payload_t payload);
16673intel_sub_group_avc_ref_payload_t __ovld
16674intel_sub_group_avc_ref_set_inter_base_multi_reference_penalty(
16675    uchar reference_base_penalty, intel_sub_group_avc_ref_payload_t payload);
16676intel_sub_group_avc_sic_payload_t __ovld
16677intel_sub_group_avc_sic_set_inter_base_multi_reference_penalty(
16678    uchar reference_base_penalty, intel_sub_group_avc_sic_payload_t payload);
16679
16680intel_sub_group_avc_ime_payload_t __ovld
16681intel_sub_group_avc_ime_set_inter_shape_penalty(
16682    ulong packed_shape_cost, intel_sub_group_avc_ime_payload_t payload);
16683intel_sub_group_avc_ref_payload_t __ovld
16684intel_sub_group_avc_ref_set_inter_shape_penalty(
16685    ulong packed_shape_cost, intel_sub_group_avc_ref_payload_t payload);
16686intel_sub_group_avc_sic_payload_t __ovld
16687intel_sub_group_avc_sic_set_inter_shape_penalty(
16688    ulong packed_shape_cost, intel_sub_group_avc_sic_payload_t payload);
16689
16690intel_sub_group_avc_ime_payload_t __ovld
16691intel_sub_group_avc_ime_set_inter_direction_penalty(
16692    uchar direction_cost, intel_sub_group_avc_ime_payload_t payload);
16693intel_sub_group_avc_ref_payload_t __ovld
16694intel_sub_group_avc_ref_set_inter_direction_penalty(
16695    uchar direction_cost, intel_sub_group_avc_ref_payload_t payload);
16696intel_sub_group_avc_sic_payload_t __ovld
16697intel_sub_group_avc_sic_set_inter_direction_penalty(
16698    uchar direction_cost, intel_sub_group_avc_sic_payload_t payload);
16699
16700intel_sub_group_avc_ime_payload_t __ovld
16701intel_sub_group_avc_ime_set_motion_vector_cost_function(
16702    ulong packed_cost_center_delta, uint2 packed_cost_table,
16703    uchar cost_precision, intel_sub_group_avc_ime_payload_t payload);
16704intel_sub_group_avc_ref_payload_t __ovld
16705intel_sub_group_avc_ref_set_motion_vector_cost_function(
16706    ulong packed_cost_center_delta, uint2 packed_cost_table,
16707    uchar cost_precision, intel_sub_group_avc_ref_payload_t payload);
16708intel_sub_group_avc_sic_payload_t __ovld
16709intel_sub_group_avc_sic_set_motion_vector_cost_function(
16710    ulong packed_cost_center_delta, uint2 packed_cost_table,
16711    uchar cost_precision, intel_sub_group_avc_sic_payload_t payload);
16712
16713intel_sub_group_avc_ime_payload_t __ovld
16714intel_sub_group_avc_ime_set_source_interlaced_field_polarity(
16715    uchar src_field_polarity, intel_sub_group_avc_ime_payload_t payload);
16716intel_sub_group_avc_ref_payload_t __ovld
16717intel_sub_group_avc_ref_set_source_interlaced_field_polarity(
16718    uchar src_field_polarity, intel_sub_group_avc_ref_payload_t payload);
16719intel_sub_group_avc_sic_payload_t __ovld
16720intel_sub_group_avc_sic_set_source_interlaced_field_polarity(
16721    uchar src_field_polarity, intel_sub_group_avc_sic_payload_t payload);
16722
16723intel_sub_group_avc_ime_payload_t __ovld
16724intel_sub_group_avc_ime_set_single_reference_interlaced_field_polarity(
16725    uchar ref_field_polarity, intel_sub_group_avc_ime_payload_t payload);
16726intel_sub_group_avc_ref_payload_t __ovld
16727intel_sub_group_avc_ref_set_single_reference_interlaced_field_polarity(
16728    uchar ref_field_polarity, intel_sub_group_avc_ref_payload_t payload);
16729intel_sub_group_avc_sic_payload_t __ovld
16730intel_sub_group_avc_sic_set_single_reference_interlaced_field_polarity(
16731    uchar ref_field_polarity, intel_sub_group_avc_sic_payload_t payload);
16732intel_sub_group_avc_ime_payload_t __ovld
16733intel_sub_group_avc_ime_set_dual_reference_interlaced_field_polarities(
16734    uchar fwd_ref_field_polarity, uchar bwd_ref_field_polarity,
16735    intel_sub_group_avc_ime_payload_t payload);
16736intel_sub_group_avc_ref_payload_t __ovld
16737intel_sub_group_avc_ref_set_dual_reference_interlaced_field_polarities(
16738    uchar fwd_ref_field_polarity, uchar bwd_ref_field_polarity,
16739    intel_sub_group_avc_ref_payload_t payload);
16740intel_sub_group_avc_sic_payload_t __ovld
16741intel_sub_group_avc_sic_set_dual_reference_interlaced_field_polarities(
16742    uchar fwd_ref_field_polarity, uchar bwd_ref_field_polarity,
16743    intel_sub_group_avc_sic_payload_t payload);
16744
16745intel_sub_group_avc_ime_payload_t __ovld
16746intel_sub_group_avc_ime_set_ac_only_haar(
16747    intel_sub_group_avc_ime_payload_t payload);
16748intel_sub_group_avc_ref_payload_t __ovld
16749intel_sub_group_avc_ref_set_ac_only_haar(
16750    intel_sub_group_avc_ref_payload_t payload);
16751intel_sub_group_avc_sic_payload_t __ovld
16752intel_sub_group_avc_sic_set_ac_only_haar(
16753    intel_sub_group_avc_sic_payload_t payload);
16754
16755ulong __ovld intel_sub_group_avc_ime_get_motion_vectors(
16756    intel_sub_group_avc_ime_result_t result);
16757ulong __ovld intel_sub_group_avc_ref_get_motion_vectors(
16758    intel_sub_group_avc_ref_result_t result);
16759
16760ushort __ovld intel_sub_group_avc_ime_get_inter_distortions(
16761    intel_sub_group_avc_ime_result_t result);
16762ushort __ovld intel_sub_group_avc_ref_get_inter_distortions(
16763    intel_sub_group_avc_ref_result_t result);
16764ushort __ovld intel_sub_group_avc_sic_get_inter_distortions(
16765    intel_sub_group_avc_sic_result_t result);
16766
16767ushort __ovld intel_sub_group_avc_ime_get_best_inter_distortion(
16768    intel_sub_group_avc_ime_result_t result);
16769ushort __ovld intel_sub_group_avc_ref_get_best_inter_distortion(
16770    intel_sub_group_avc_ref_result_t result);
16771
16772uchar __ovld intel_sub_group_avc_ime_get_inter_major_shape(
16773    intel_sub_group_avc_ime_result_t result);
16774uchar __ovld intel_sub_group_avc_ref_get_inter_major_shape(
16775    intel_sub_group_avc_ref_result_t result);
16776uchar __ovld intel_sub_group_avc_ime_get_inter_minor_shapes(
16777    intel_sub_group_avc_ime_result_t result);
16778uchar __ovld intel_sub_group_avc_ref_get_inter_minor_shapes(
16779    intel_sub_group_avc_ref_result_t result);
16780
16781uchar __ovld intel_sub_group_avc_ime_get_inter_directions(
16782    intel_sub_group_avc_ime_result_t result);
16783uchar __ovld intel_sub_group_avc_ref_get_inter_directions(
16784    intel_sub_group_avc_ref_result_t result);
16785
16786uchar __ovld intel_sub_group_avc_ime_get_inter_motion_vector_count(
16787    intel_sub_group_avc_ime_result_t result);
16788uchar __ovld intel_sub_group_avc_ref_get_inter_motion_vector_count(
16789    intel_sub_group_avc_ref_result_t result);
16790
16791uint __ovld intel_sub_group_avc_ime_get_inter_reference_ids(
16792    intel_sub_group_avc_ime_result_t result);
16793uint __ovld intel_sub_group_avc_ref_get_inter_reference_ids(
16794    intel_sub_group_avc_ref_result_t result);
16795
16796uchar __ovld
16797intel_sub_group_avc_ime_get_inter_reference_interlaced_field_polarities(
16798    uint packed_reference_ids, uint packed_reference_parameter_field_polarities,
16799    intel_sub_group_avc_ime_result_t result);
16800uchar __ovld
16801intel_sub_group_avc_ref_get_inter_reference_interlaced_field_polarities(
16802    uint packed_reference_ids, uint packed_reference_parameter_field_polarities,
16803    intel_sub_group_avc_ref_result_t result);
16804
16805// Type conversion functions
16806intel_sub_group_avc_mce_payload_t __ovld
16807intel_sub_group_avc_ime_convert_to_mce_payload(
16808    intel_sub_group_avc_ime_payload_t payload);
16809intel_sub_group_avc_ime_payload_t __ovld
16810intel_sub_group_avc_mce_convert_to_ime_payload(
16811    intel_sub_group_avc_mce_payload_t payload);
16812intel_sub_group_avc_mce_payload_t __ovld
16813intel_sub_group_avc_ref_convert_to_mce_payload(
16814    intel_sub_group_avc_ref_payload_t payload);
16815intel_sub_group_avc_ref_payload_t __ovld
16816intel_sub_group_avc_mce_convert_to_ref_payload(
16817    intel_sub_group_avc_mce_payload_t payload);
16818intel_sub_group_avc_mce_payload_t __ovld
16819intel_sub_group_avc_sic_convert_to_mce_payload(
16820    intel_sub_group_avc_sic_payload_t payload);
16821intel_sub_group_avc_sic_payload_t __ovld
16822intel_sub_group_avc_mce_convert_to_sic_payload(
16823    intel_sub_group_avc_mce_payload_t payload);
16824
16825intel_sub_group_avc_mce_result_t __ovld
16826intel_sub_group_avc_ime_convert_to_mce_result(
16827    intel_sub_group_avc_ime_result_t result);
16828intel_sub_group_avc_ime_result_t __ovld
16829intel_sub_group_avc_mce_convert_to_ime_result(
16830    intel_sub_group_avc_mce_result_t result);
16831intel_sub_group_avc_mce_result_t __ovld
16832intel_sub_group_avc_ref_convert_to_mce_result(
16833    intel_sub_group_avc_ref_result_t result);
16834intel_sub_group_avc_ref_result_t __ovld
16835intel_sub_group_avc_mce_convert_to_ref_result(
16836    intel_sub_group_avc_mce_result_t result);
16837intel_sub_group_avc_mce_result_t __ovld
16838intel_sub_group_avc_sic_convert_to_mce_result(
16839    intel_sub_group_avc_sic_result_t result);
16840intel_sub_group_avc_sic_result_t __ovld
16841intel_sub_group_avc_mce_convert_to_sic_result(
16842    intel_sub_group_avc_mce_result_t result);
16843#pragma OPENCL EXTENSION cl_intel_device_side_avc_motion_estimation : end
16844#endif // cl_intel_device_side_avc_motion_estimation
16845
16846#ifdef cl_amd_media_ops
16847uint __ovld amd_bitalign(uint a, uint b, uint c);
16848uint2 __ovld amd_bitalign(uint2 a, uint2 b, uint2 c);
16849uint3 __ovld amd_bitalign(uint3 a, uint3 b, uint3 c);
16850uint4 __ovld amd_bitalign(uint4 a, uint4 b, uint4 c);
16851uint8 __ovld amd_bitalign(uint8 a, uint8 b, uint8 c);
16852uint16 __ovld amd_bitalign(uint16 a, uint16 b, uint16 c);
16853
16854uint __ovld amd_bytealign(uint a, uint b, uint c);
16855uint2 __ovld amd_bytealign(uint2 a, uint2 b, uint2 c);
16856uint3 __ovld amd_bytealign(uint3 a, uint3 b, uint3 c);
16857uint4 __ovld amd_bytealign(uint4 a, uint4 b, uint4 c);
16858uint8 __ovld amd_bytealign(uint8 a, uint8 b, uint8 c);
16859uint16 __ovld amd_bytealign(uint16 a, uint16 b, uint16 c);
16860
16861uint __ovld amd_lerp(uint a, uint b, uint c);
16862uint2 __ovld amd_lerp(uint2 a, uint2 b, uint2 c);
16863uint3 __ovld amd_lerp(uint3 a, uint3 b, uint3 c);
16864uint4 __ovld amd_lerp(uint4 a, uint4 b, uint4 c);
16865uint8 __ovld amd_lerp(uint8 a, uint8 b, uint8 c);
16866uint16 __ovld amd_lerp(uint16 a, uint16 b, uint16 c);
16867
16868uint __ovld amd_pack(float4 v);
16869
16870uint __ovld amd_sad4(uint4 x, uint4 y, uint z);
16871
16872uint __ovld amd_sadhi(uint a, uint b, uint c);
16873uint2 __ovld amd_sadhi(uint2 a, uint2 b, uint2 c);
16874uint3 __ovld amd_sadhi(uint3 a, uint3 b, uint3 c);
16875uint4 __ovld amd_sadhi(uint4 a, uint4 b, uint4 c);
16876uint8 __ovld amd_sadhi(uint8 a, uint8 b, uint8 c);
16877uint16 __ovld amd_sadhi(uint16 a, uint16 b, uint16 c);
16878
16879uint __ovld amd_sad(uint a, uint b, uint c);
16880uint2 __ovld amd_sad(uint2 a, uint2 b, uint2 c);
16881uint3 __ovld amd_sad(uint3 a, uint3 b, uint3 c);
16882uint4 __ovld amd_sad(uint4 a, uint4 b, uint4 c);
16883uint8 __ovld amd_sad(uint8 a, uint8 b, uint8 c);
16884uint16 __ovld amd_sad(uint16 a, uint16 b, uint16 c);
16885
16886float __ovld amd_unpack0(uint a);
16887float2 __ovld amd_unpack0(uint2 a);
16888float3 __ovld amd_unpack0(uint3 a);
16889float4 __ovld amd_unpack0(uint4 a);
16890float8 __ovld amd_unpack0(uint8 a);
16891float16 __ovld amd_unpack0(uint16 a);
16892
16893float __ovld amd_unpack1(uint a);
16894float2 __ovld amd_unpack1(uint2 a);
16895float3 __ovld amd_unpack1(uint3 a);
16896float4 __ovld amd_unpack1(uint4 a);
16897float8 __ovld amd_unpack1(uint8 a);
16898float16 __ovld amd_unpack1(uint16 a);
16899
16900float __ovld amd_unpack2(uint a);
16901float2 __ovld amd_unpack2(uint2 a);
16902float3 __ovld amd_unpack2(uint3 a);
16903float4 __ovld amd_unpack2(uint4 a);
16904float8 __ovld amd_unpack2(uint8 a);
16905float16 __ovld amd_unpack2(uint16 a);
16906
16907float __ovld amd_unpack3(uint a);
16908float2 __ovld amd_unpack3(uint2 a);
16909float3 __ovld amd_unpack3(uint3 a);
16910float4 __ovld amd_unpack3(uint4 a);
16911float8 __ovld amd_unpack3(uint8 a);
16912float16 __ovld amd_unpack3(uint16 a);
16913#endif // cl_amd_media_ops
16914
16915#ifdef cl_amd_media_ops2
16916int __ovld amd_bfe(int src0, uint src1, uint src2);
16917int2 __ovld amd_bfe(int2 src0, uint2 src1, uint2 src2);
16918int3 __ovld amd_bfe(int3 src0, uint3 src1, uint3 src2);
16919int4 __ovld amd_bfe(int4 src0, uint4 src1, uint4 src2);
16920int8 __ovld amd_bfe(int8 src0, uint8 src1, uint8 src2);
16921int16 __ovld amd_bfe(int16 src0, uint16 src1, uint16 src2);
16922
16923uint __ovld amd_bfe(uint src0, uint src1, uint src2);
16924uint2 __ovld amd_bfe(uint2 src0, uint2 src1, uint2 src2);
16925uint3 __ovld amd_bfe(uint3 src0, uint3 src1, uint3 src2);
16926uint4 __ovld amd_bfe(uint4 src0, uint4 src1, uint4 src2);
16927uint8 __ovld amd_bfe(uint8 src0, uint8 src1, uint8 src2);
16928uint16 __ovld amd_bfe(uint16 src0, uint16 src1, uint16 src2);
16929
16930uint __ovld amd_bfm(uint src0, uint src1);
16931uint2 __ovld amd_bfm(uint2 src0, uint2 src1);
16932uint3 __ovld amd_bfm(uint3 src0, uint3 src1);
16933uint4 __ovld amd_bfm(uint4 src0, uint4 src1);
16934uint8 __ovld amd_bfm(uint8 src0, uint8 src1);
16935uint16 __ovld amd_bfm(uint16 src0, uint16 src1);
16936
16937float __ovld amd_max3(float src0, float src1, float src2);
16938float2 __ovld amd_max3(float2 src0, float2 src1, float2 src2);
16939float3 __ovld amd_max3(float3 src0, float3 src1, float3 src2);
16940float4 __ovld amd_max3(float4 src0, float4 src1, float4 src2);
16941float8 __ovld amd_max3(float8 src0, float8 src1, float8 src2);
16942float16 __ovld amd_max3(float16 src0, float16 src1, float16 src2);
16943
16944int __ovld amd_max3(int src0, int src1, int src2);
16945int2 __ovld amd_max3(int2 src0, int2 src1, int2 src2);
16946int3 __ovld amd_max3(int3 src0, int3 src1, int3 src2);
16947int4 __ovld amd_max3(int4 src0, int4 src1, int4 src2);
16948int8 __ovld amd_max3(int8 src0, int8 src1, int8 src2);
16949int16 __ovld amd_max3(int16 src0, int16 src1, int16 src2);
16950
16951uint __ovld amd_max3(uint src0, uint src1, uint src2);
16952uint2 __ovld amd_max3(uint2 src0, uint2 src1, uint2 src2);
16953uint3 __ovld amd_max3(uint3 src0, uint3 src1, uint3 src2);
16954uint4 __ovld amd_max3(uint4 src0, uint4 src1, uint4 src2);
16955uint8 __ovld amd_max3(uint8 src0, uint8 src1, uint8 src2);
16956uint16 __ovld amd_max3(uint16 src0, uint16 src1, uint16 src2);
16957
16958float __ovld amd_median3(float src0, float src1, float src2);
16959float2 __ovld amd_median3(float2 src0, float2 src1, float2 src2);
16960float3 __ovld amd_median3(float3 src0, float3 src1, float3 src2);
16961float4 __ovld amd_median3(float4 src0, float4 src1, float4 src2);
16962float8 __ovld amd_median3(float8 src0, float8 src1, float8 src2);
16963float16 __ovld amd_median3(float16 src0, float16 src1, float16 src2);
16964
16965int __ovld amd_median3(int src0, int src1, int src2);
16966int2 __ovld amd_median3(int2 src0, int2 src1, int2 src2);
16967int3 __ovld amd_median3(int3 src0, int3 src1, int3 src2);
16968int4 __ovld amd_median3(int4 src0, int4 src1, int4 src2);
16969int8 __ovld amd_median3(int8 src0, int8 src1, int8 src2);
16970int16 __ovld amd_median3(int16 src0, int16 src1, int16 src2);
16971
16972uint __ovld amd_median3(uint src0, uint src1, uint src2);
16973uint2 __ovld amd_median3(uint2 src0, uint2 src1, uint2 src2);
16974uint3 __ovld amd_median3(uint3 src0, uint3 src1, uint3 src2);
16975uint4 __ovld amd_median3(uint4 src0, uint4 src1, uint4 src2);
16976uint8 __ovld amd_median3(uint8 src0, uint8 src1, uint8 src2);
16977uint16 __ovld amd_median3(uint16 src0, uint16 src1, uint16 src2);
16978
16979float __ovld amd_min3(float src0, float src1, float src);
16980float2 __ovld amd_min3(float2 src0, float2 src1, float2 src);
16981float3 __ovld amd_min3(float3 src0, float3 src1, float3 src);
16982float4 __ovld amd_min3(float4 src0, float4 src1, float4 src);
16983float8 __ovld amd_min3(float8 src0, float8 src1, float8 src);
16984float16 __ovld amd_min3(float16 src0, float16 src1, float16 src);
16985
16986int __ovld amd_min3(int src0, int src1, int src2);
16987int2 __ovld amd_min3(int2 src0, int2 src1, int2 src2);
16988int3 __ovld amd_min3(int3 src0, int3 src1, int3 src2);
16989int4 __ovld amd_min3(int4 src0, int4 src1, int4 src2);
16990int8 __ovld amd_min3(int8 src0, int8 src1, int8 src2);
16991int16 __ovld amd_min3(int16 src0, int16 src1, int16 src2);
16992
16993uint __ovld amd_min3(uint src0, uint src1, uint src2);
16994uint2 __ovld amd_min3(uint2 src0, uint2 src1, uint2 src2);
16995uint3 __ovld amd_min3(uint3 src0, uint3 src1, uint3 src2);
16996uint4 __ovld amd_min3(uint4 src0, uint4 src1, uint4 src2);
16997uint8 __ovld amd_min3(uint8 src0, uint8 src1, uint8 src2);
16998uint16 __ovld amd_min3(uint16 src0, uint16 src1, uint16 src2);
16999
17000ulong __ovld amd_mqsad(ulong src0, uint src1, ulong src2);
17001ulong2 __ovld amd_mqsad(ulong2 src0, uint2 src1, ulong2 src2);
17002ulong3 __ovld amd_mqsad(ulong3 src0, uint3 src1, ulong3 src2);
17003ulong4 __ovld amd_mqsad(ulong4 src0, uint4 src1, ulong4 src2);
17004ulong8 __ovld amd_mqsad(ulong8 src0, uint8 src1, ulong8 src2);
17005ulong16 __ovld amd_mqsad(ulong16 src0, uint16 src1, ulong16 src2);
17006
17007ulong __ovld amd_qsad(ulong src0, uint src1, ulong src2);
17008ulong2 __ovld amd_qsad(ulong2 src0, uint2 src1, ulong2 src2);
17009ulong3 __ovld amd_qsad(ulong3 src0, uint3 src1, ulong3 src2);
17010ulong4 __ovld amd_qsad(ulong4 src0, uint4 src1, ulong4 src2);
17011ulong8 __ovld amd_qsad(ulong8 src0, uint8 src1, ulong8 src2);
17012ulong16 __ovld amd_qsad(ulong16 src0, uint16 src1, ulong16 src2);
17013
17014uint __ovld amd_msad(uint src0, uint src1, uint src2);
17015uint2 __ovld amd_msad(uint2 src0, uint2 src1, uint2 src2);
17016uint3 __ovld amd_msad(uint3 src0, uint3 src1, uint3 src2);
17017uint4 __ovld amd_msad(uint4 src0, uint4 src1, uint4 src2);
17018uint8 __ovld amd_msad(uint8 src0, uint8 src1, uint8 src2);
17019uint16 __ovld amd_msad(uint16 src0, uint16 src1, uint16 src2);
17020
17021uint __ovld amd_sadd(uint src0, uint src1, uint src2);
17022uint2 __ovld amd_sadd(uint2 src0, uint2 src1, uint2 src2);
17023uint3 __ovld amd_sadd(uint3 src0, uint3 src1, uint3 src2);
17024uint4 __ovld amd_sadd(uint4 src0, uint4 src1, uint4 src2);
17025uint8 __ovld amd_sadd(uint8 src0, uint8 src1, uint8 src2);
17026uint16 __ovld amd_sadd(uint16 src0, uint16 src1, uint16 src2);
17027
17028uint __ovld amd_sadw(uint src0, uint src1, uint src2);
17029uint2 __ovld amd_sadw(uint2 src0, uint2 src1, uint2 src2);
17030uint3 __ovld amd_sadw(uint3 src0, uint3 src1, uint3 src2);
17031uint4 __ovld amd_sadw(uint4 src0, uint4 src1, uint4 src2);
17032uint8 __ovld amd_sadw(uint8 src0, uint8 src1, uint8 src2);
17033uint16 __ovld amd_sadw(uint16 src0, uint16 src1, uint16 src2);
17034#endif // cl_amd_media_ops2
17035
17036// Disable any extensions we may have enabled previously.
17037#pragma OPENCL EXTENSION all : disable
17038
17039#undef __cnfn
17040#undef __ovld
17041#endif //_OPENCL_H_
17042