Lines Matching refs:half
4 constant float f = 1.0h; // expected-error{{half precision constant requires cl_khr_fp16}}
6 half half_disabled(half *p, // expected-error{{declaring function return value of type 'half' is no…
7 … half h) // expected-error{{declaring function parameter of type 'half' is not allowed}}
9 half a[2]; // expected-error{{declaring variable of type 'half [2]' is not allowed}}
10 half b; // expected-error{{declaring variable of type 'half' is not allowed}}
11 *p; // expected-error{{loading directly from pointer to type 'half' is not allowed}}
12 p[1]; // expected-error{{loading directly from pointer to type 'half' is not allowed}}
15 b = (half) c; // expected-error{{casting to type 'half' is not allowed}}
16 c = (float) 1.0h; // expected-error{{half precision constant requires cl_khr_fp16}}
17 b = 1.0h; // expected-error{{half precision constant requires cl_khr_fp16}}
19 half *allowed = &p[1];
20 half *allowed2 = &*p;
21 half *allowed3 = p + 1;
28 constant half a = 1.0h;
29 half half_enabled(half *p, half h)
31 half a[2];
32 half b;
37 b = (half) c;
41 half *allowed = &p[1];
42 half *allowed2 = &*p;
43 half *allowed3 = p + 1;