1
// Note: This file has been automatically generated. Do not modify.
4
#define POCL_FRACT_MIN 0x1.fffffffffffffp-1
5
#define POCL_FRACT_MIN_F 0x1.fffffep-1f
7
// If double precision is not supported, then define
8
// single-precision (dummy) values to avoid compiler warnings
9
// for double precision values
14
# define M_PI_2 M_PI_2_F
16
# define LONG_MAX INT_MAX
18
# define LONG_MIN INT_MIN
19
# undef POCL_FRACT_MIN
20
# define POCL_FRACT_MIN POCL_FRACT_MIN_F
23
// step: ['VF', 'VF'] -> VF
26
// Implement step directly
27
__attribute__((__overloadable__))
28
float _cl_step(float x0, float x1)
30
typedef int kscalar_t;
31
typedef float scalar_t;
32
typedef int ivector_t;
33
typedef int jvector_t;
34
typedef int kvector_t;
35
typedef float vector_t;
36
#define convert_ivector_t convert_int
37
#define convert_jvector_t convert_int
38
#define convert_kvector_t convert_int
39
#define convert_vector_t convert_float
40
return x1<x0 ? (vector_t)(scalar_t)0.0f : (vector_t)(scalar_t)1.0f;
41
#undef convert_ivector_t
42
#undef convert_jvector_t
43
#undef convert_kvector_t
44
#undef convert_vector_t
48
// Implement step directly
49
__attribute__((__overloadable__))
50
float2 _cl_step(float2 x0, float2 x1)
52
typedef int kscalar_t;
53
typedef float scalar_t;
54
typedef int2 ivector_t;
55
typedef int2 jvector_t;
56
typedef int2 kvector_t;
57
typedef float2 vector_t;
58
#define convert_ivector_t convert_int2
59
#define convert_jvector_t convert_int2
60
#define convert_kvector_t convert_int2
61
#define convert_vector_t convert_float2
62
return x1<x0 ? (vector_t)(scalar_t)0.0f : (vector_t)(scalar_t)1.0f;
63
#undef convert_ivector_t
64
#undef convert_jvector_t
65
#undef convert_kvector_t
66
#undef convert_vector_t
70
// Implement step directly
71
__attribute__((__overloadable__))
72
float3 _cl_step(float3 x0, float3 x1)
74
typedef int kscalar_t;
75
typedef float scalar_t;
76
typedef int3 ivector_t;
77
typedef int3 jvector_t;
78
typedef int3 kvector_t;
79
typedef float3 vector_t;
80
#define convert_ivector_t convert_int3
81
#define convert_jvector_t convert_int3
82
#define convert_kvector_t convert_int3
83
#define convert_vector_t convert_float3
84
return x1<x0 ? (vector_t)(scalar_t)0.0f : (vector_t)(scalar_t)1.0f;
85
#undef convert_ivector_t
86
#undef convert_jvector_t
87
#undef convert_kvector_t
88
#undef convert_vector_t
92
// Implement step directly
93
__attribute__((__overloadable__))
94
float4 _cl_step(float4 x0, float4 x1)
96
typedef int kscalar_t;
97
typedef float scalar_t;
98
typedef int4 ivector_t;
99
typedef int4 jvector_t;
100
typedef int4 kvector_t;
101
typedef float4 vector_t;
102
#define convert_ivector_t convert_int4
103
#define convert_jvector_t convert_int4
104
#define convert_kvector_t convert_int4
105
#define convert_vector_t convert_float4
106
return x1<x0 ? (vector_t)(scalar_t)0.0f : (vector_t)(scalar_t)1.0f;
107
#undef convert_ivector_t
108
#undef convert_jvector_t
109
#undef convert_kvector_t
110
#undef convert_vector_t
114
// Implement step directly
115
__attribute__((__overloadable__))
116
float8 _cl_step(float8 x0, float8 x1)
118
typedef int kscalar_t;
119
typedef float scalar_t;
120
typedef int8 ivector_t;
121
typedef int8 jvector_t;
122
typedef int8 kvector_t;
123
typedef float8 vector_t;
124
#define convert_ivector_t convert_int8
125
#define convert_jvector_t convert_int8
126
#define convert_kvector_t convert_int8
127
#define convert_vector_t convert_float8
128
return x1<x0 ? (vector_t)(scalar_t)0.0f : (vector_t)(scalar_t)1.0f;
129
#undef convert_ivector_t
130
#undef convert_jvector_t
131
#undef convert_kvector_t
132
#undef convert_vector_t
136
// Implement step directly
137
__attribute__((__overloadable__))
138
float16 _cl_step(float16 x0, float16 x1)
140
typedef int kscalar_t;
141
typedef float scalar_t;
142
typedef int16 ivector_t;
143
typedef int16 jvector_t;
144
typedef int16 kvector_t;
145
typedef float16 vector_t;
146
#define convert_ivector_t convert_int16
147
#define convert_jvector_t convert_int16
148
#define convert_kvector_t convert_int16
149
#define convert_vector_t convert_float16
150
return x1<x0 ? (vector_t)(scalar_t)0.0f : (vector_t)(scalar_t)1.0f;
151
#undef convert_ivector_t
152
#undef convert_jvector_t
153
#undef convert_kvector_t
154
#undef convert_vector_t
160
// Implement step directly
161
__attribute__((__overloadable__))
162
double _cl_step(double x0, double x1)
164
typedef int kscalar_t;
165
typedef double scalar_t;
166
typedef long ivector_t;
167
typedef int jvector_t;
168
typedef int kvector_t;
169
typedef double vector_t;
170
#define convert_ivector_t convert_long
171
#define convert_jvector_t convert_int
172
#define convert_kvector_t convert_int
173
#define convert_vector_t convert_double
174
return x1<x0 ? (vector_t)(scalar_t)0.0f : (vector_t)(scalar_t)1.0f;
175
#undef convert_ivector_t
176
#undef convert_jvector_t
177
#undef convert_kvector_t
178
#undef convert_vector_t
182
// Implement step directly
183
__attribute__((__overloadable__))
184
double2 _cl_step(double2 x0, double2 x1)
186
typedef long kscalar_t;
187
typedef double scalar_t;
188
typedef long2 ivector_t;
189
typedef long2 jvector_t;
190
typedef int2 kvector_t;
191
typedef double2 vector_t;
192
#define convert_ivector_t convert_long2
193
#define convert_jvector_t convert_long2
194
#define convert_kvector_t convert_int2
195
#define convert_vector_t convert_double2
196
return x1<x0 ? (vector_t)(scalar_t)0.0f : (vector_t)(scalar_t)1.0f;
197
#undef convert_ivector_t
198
#undef convert_jvector_t
199
#undef convert_kvector_t
200
#undef convert_vector_t
204
// Implement step directly
205
__attribute__((__overloadable__))
206
double3 _cl_step(double3 x0, double3 x1)
208
typedef long kscalar_t;
209
typedef double scalar_t;
210
typedef long3 ivector_t;
211
typedef long3 jvector_t;
212
typedef int3 kvector_t;
213
typedef double3 vector_t;
214
#define convert_ivector_t convert_long3
215
#define convert_jvector_t convert_long3
216
#define convert_kvector_t convert_int3
217
#define convert_vector_t convert_double3
218
return x1<x0 ? (vector_t)(scalar_t)0.0f : (vector_t)(scalar_t)1.0f;
219
#undef convert_ivector_t
220
#undef convert_jvector_t
221
#undef convert_kvector_t
222
#undef convert_vector_t
226
// Implement step directly
227
__attribute__((__overloadable__))
228
double4 _cl_step(double4 x0, double4 x1)
230
typedef long kscalar_t;
231
typedef double scalar_t;
232
typedef long4 ivector_t;
233
typedef long4 jvector_t;
234
typedef int4 kvector_t;
235
typedef double4 vector_t;
236
#define convert_ivector_t convert_long4
237
#define convert_jvector_t convert_long4
238
#define convert_kvector_t convert_int4
239
#define convert_vector_t convert_double4
240
return x1<x0 ? (vector_t)(scalar_t)0.0f : (vector_t)(scalar_t)1.0f;
241
#undef convert_ivector_t
242
#undef convert_jvector_t
243
#undef convert_kvector_t
244
#undef convert_vector_t
248
// Implement step directly
249
__attribute__((__overloadable__))
250
double8 _cl_step(double8 x0, double8 x1)
252
typedef long kscalar_t;
253
typedef double scalar_t;
254
typedef long8 ivector_t;
255
typedef long8 jvector_t;
256
typedef int8 kvector_t;
257
typedef double8 vector_t;
258
#define convert_ivector_t convert_long8
259
#define convert_jvector_t convert_long8
260
#define convert_kvector_t convert_int8
261
#define convert_vector_t convert_double8
262
return x1<x0 ? (vector_t)(scalar_t)0.0f : (vector_t)(scalar_t)1.0f;
263
#undef convert_ivector_t
264
#undef convert_jvector_t
265
#undef convert_kvector_t
266
#undef convert_vector_t
270
// Implement step directly
271
__attribute__((__overloadable__))
272
double16 _cl_step(double16 x0, double16 x1)
274
typedef long kscalar_t;
275
typedef double scalar_t;
276
typedef long16 ivector_t;
277
typedef long16 jvector_t;
278
typedef int16 kvector_t;
279
typedef double16 vector_t;
280
#define convert_ivector_t convert_long16
281
#define convert_jvector_t convert_long16
282
#define convert_kvector_t convert_int16
283
#define convert_vector_t convert_double16
284
return x1<x0 ? (vector_t)(scalar_t)0.0f : (vector_t)(scalar_t)1.0f;
285
#undef convert_ivector_t
286
#undef convert_jvector_t
287
#undef convert_kvector_t
288
#undef convert_vector_t
291
#endif // #ifdef cl_khr_fp64
295
// step: ['SF', 'VF'] -> VF
298
// Implement step directly
299
__attribute__((__overloadable__))
300
float2 _cl_step(float x0, float2 x1)
302
typedef int kscalar_t;
303
typedef float scalar_t;
304
typedef int2 ivector_t;
305
typedef int2 jvector_t;
306
typedef int2 kvector_t;
307
typedef float2 vector_t;
308
#define convert_ivector_t convert_int2
309
#define convert_jvector_t convert_int2
310
#define convert_kvector_t convert_int2
311
#define convert_vector_t convert_float2
312
return x1<x0 ? (vector_t)(scalar_t)0.0f : (vector_t)(scalar_t)1.0f;
313
#undef convert_ivector_t
314
#undef convert_jvector_t
315
#undef convert_kvector_t
316
#undef convert_vector_t
320
// Implement step directly
321
__attribute__((__overloadable__))
322
float3 _cl_step(float x0, float3 x1)
324
typedef int kscalar_t;
325
typedef float scalar_t;
326
typedef int3 ivector_t;
327
typedef int3 jvector_t;
328
typedef int3 kvector_t;
329
typedef float3 vector_t;
330
#define convert_ivector_t convert_int3
331
#define convert_jvector_t convert_int3
332
#define convert_kvector_t convert_int3
333
#define convert_vector_t convert_float3
334
return x1<x0 ? (vector_t)(scalar_t)0.0f : (vector_t)(scalar_t)1.0f;
335
#undef convert_ivector_t
336
#undef convert_jvector_t
337
#undef convert_kvector_t
338
#undef convert_vector_t
342
// Implement step directly
343
__attribute__((__overloadable__))
344
float4 _cl_step(float x0, float4 x1)
346
typedef int kscalar_t;
347
typedef float scalar_t;
348
typedef int4 ivector_t;
349
typedef int4 jvector_t;
350
typedef int4 kvector_t;
351
typedef float4 vector_t;
352
#define convert_ivector_t convert_int4
353
#define convert_jvector_t convert_int4
354
#define convert_kvector_t convert_int4
355
#define convert_vector_t convert_float4
356
return x1<x0 ? (vector_t)(scalar_t)0.0f : (vector_t)(scalar_t)1.0f;
357
#undef convert_ivector_t
358
#undef convert_jvector_t
359
#undef convert_kvector_t
360
#undef convert_vector_t
364
// Implement step directly
365
__attribute__((__overloadable__))
366
float8 _cl_step(float x0, float8 x1)
368
typedef int kscalar_t;
369
typedef float scalar_t;
370
typedef int8 ivector_t;
371
typedef int8 jvector_t;
372
typedef int8 kvector_t;
373
typedef float8 vector_t;
374
#define convert_ivector_t convert_int8
375
#define convert_jvector_t convert_int8
376
#define convert_kvector_t convert_int8
377
#define convert_vector_t convert_float8
378
return x1<x0 ? (vector_t)(scalar_t)0.0f : (vector_t)(scalar_t)1.0f;
379
#undef convert_ivector_t
380
#undef convert_jvector_t
381
#undef convert_kvector_t
382
#undef convert_vector_t
386
// Implement step directly
387
__attribute__((__overloadable__))
388
float16 _cl_step(float x0, float16 x1)
390
typedef int kscalar_t;
391
typedef float scalar_t;
392
typedef int16 ivector_t;
393
typedef int16 jvector_t;
394
typedef int16 kvector_t;
395
typedef float16 vector_t;
396
#define convert_ivector_t convert_int16
397
#define convert_jvector_t convert_int16
398
#define convert_kvector_t convert_int16
399
#define convert_vector_t convert_float16
400
return x1<x0 ? (vector_t)(scalar_t)0.0f : (vector_t)(scalar_t)1.0f;
401
#undef convert_ivector_t
402
#undef convert_jvector_t
403
#undef convert_kvector_t
404
#undef convert_vector_t
410
// Implement step directly
411
__attribute__((__overloadable__))
412
double2 _cl_step(double x0, double2 x1)
414
typedef long kscalar_t;
415
typedef double scalar_t;
416
typedef long2 ivector_t;
417
typedef long2 jvector_t;
418
typedef int2 kvector_t;
419
typedef double2 vector_t;
420
#define convert_ivector_t convert_long2
421
#define convert_jvector_t convert_long2
422
#define convert_kvector_t convert_int2
423
#define convert_vector_t convert_double2
424
return x1<x0 ? (vector_t)(scalar_t)0.0f : (vector_t)(scalar_t)1.0f;
425
#undef convert_ivector_t
426
#undef convert_jvector_t
427
#undef convert_kvector_t
428
#undef convert_vector_t
432
// Implement step directly
433
__attribute__((__overloadable__))
434
double3 _cl_step(double x0, double3 x1)
436
typedef long kscalar_t;
437
typedef double scalar_t;
438
typedef long3 ivector_t;
439
typedef long3 jvector_t;
440
typedef int3 kvector_t;
441
typedef double3 vector_t;
442
#define convert_ivector_t convert_long3
443
#define convert_jvector_t convert_long3
444
#define convert_kvector_t convert_int3
445
#define convert_vector_t convert_double3
446
return x1<x0 ? (vector_t)(scalar_t)0.0f : (vector_t)(scalar_t)1.0f;
447
#undef convert_ivector_t
448
#undef convert_jvector_t
449
#undef convert_kvector_t
450
#undef convert_vector_t
454
// Implement step directly
455
__attribute__((__overloadable__))
456
double4 _cl_step(double x0, double4 x1)
458
typedef long kscalar_t;
459
typedef double scalar_t;
460
typedef long4 ivector_t;
461
typedef long4 jvector_t;
462
typedef int4 kvector_t;
463
typedef double4 vector_t;
464
#define convert_ivector_t convert_long4
465
#define convert_jvector_t convert_long4
466
#define convert_kvector_t convert_int4
467
#define convert_vector_t convert_double4
468
return x1<x0 ? (vector_t)(scalar_t)0.0f : (vector_t)(scalar_t)1.0f;
469
#undef convert_ivector_t
470
#undef convert_jvector_t
471
#undef convert_kvector_t
472
#undef convert_vector_t
476
// Implement step directly
477
__attribute__((__overloadable__))
478
double8 _cl_step(double x0, double8 x1)
480
typedef long kscalar_t;
481
typedef double scalar_t;
482
typedef long8 ivector_t;
483
typedef long8 jvector_t;
484
typedef int8 kvector_t;
485
typedef double8 vector_t;
486
#define convert_ivector_t convert_long8
487
#define convert_jvector_t convert_long8
488
#define convert_kvector_t convert_int8
489
#define convert_vector_t convert_double8
490
return x1<x0 ? (vector_t)(scalar_t)0.0f : (vector_t)(scalar_t)1.0f;
491
#undef convert_ivector_t
492
#undef convert_jvector_t
493
#undef convert_kvector_t
494
#undef convert_vector_t
498
// Implement step directly
499
__attribute__((__overloadable__))
500
double16 _cl_step(double x0, double16 x1)
502
typedef long kscalar_t;
503
typedef double scalar_t;
504
typedef long16 ivector_t;
505
typedef long16 jvector_t;
506
typedef int16 kvector_t;
507
typedef double16 vector_t;
508
#define convert_ivector_t convert_long16
509
#define convert_jvector_t convert_long16
510
#define convert_kvector_t convert_int16
511
#define convert_vector_t convert_double16
512
return x1<x0 ? (vector_t)(scalar_t)0.0f : (vector_t)(scalar_t)1.0f;
513
#undef convert_ivector_t
514
#undef convert_jvector_t
515
#undef convert_kvector_t
516
#undef convert_vector_t
519
#endif // #ifdef cl_khr_fp64