Home
last modified time | relevance | path

Searched refs:float4 (Results 1 – 25 of 125) sorted by relevance

12345

/external/clang/test/SemaOpenCL/
Dvector_literals_const.cl18 typedef float float4 __attribute((ext_vector_type(4)));
20 __constant float4 f_1_1_1_1 = (float4)(1,2,3,4);
21 __constant float4 f_2_1_1 = (float4)((float2)(1,2),3,4);
22 __constant float4 f_1_2_1 = (float4)(1,(float2)(2,3),4);
23 __constant float4 f_1_1_2 = (float4)(1,2,(float2)(3,4));
24 __constant float4 f_2_2 = (float4)((float2)(1,2),(float2)(3,4));
25 __constant float4 f_3_1 = (float4)((float3)(1,2,3),4);
26 __constant float4 f_1_3 = (float4)(1,(float3)(2,3,4));
Dvector_literals_invalid.cl3 typedef __attribute__(( ext_vector_type(4) )) float float4;
11 ((float4)(1.0f))++; // expected-error{{cannot increment value of type 'float4'}}
12 …int8 d = (int8)(a,(float4)(1)); // expected-error{{initializing 'int' with an expression of incomp…
Dinvalid-logical-ops-1.2.cl4 typedef __attribute__((ext_vector_type(4))) float float4;
24 float4 f4 = (float4)(0, 0, 0, 0);
27 float4 f4baf = f4 & 0.0f; // expected-error {{invalid operands}}
28 float4 f4bof = f4 | 0.0f; // expected-error {{invalid operands}}
29 float4 f4bxf = f4 ^ 0.0f; // expected-error {{invalid operands}}
/external/clang/test/CodeGen/
Dext-vector.c3 typedef __attribute__(( ext_vector_type(4) )) float float4; typedef
9 float4 foo = (float4){ 1.0, 2.0, 3.0, 4.0 };
12 const float4 bar = (float4){ 1.0, 2.0, 3.0, __builtin_inff() };
16 float4 test1(float4 V) { in test1()
21 float4 vec4, vec4_2;
41 void test3(float4 *out) { in test3()
42 *out = ((float4) {1.0f, 2.0f, 3.0f, 4.0f }); in test3()
48 void test4(float4 *out) { in test4()
53 *out = ((float4) {a,b,c,d}); in test4()
62 void test5(float4 *out) { in test5()
[all …]
Dbuiltinshufflevector2.c3 typedef float float4 __attribute__((ext_vector_type(4))); typedef
7 void clang_shufflevector_v_v( float4* A, float4 x, uint4 mask ) { in clang_shufflevector_v_v()
31 void clang_shufflevector_v_v_c( float4* A, float4 x, float4 y) { in clang_shufflevector_v_v_c()
38 void clang_shufflevector_v_v_undef( float4* A, float4 x, float4 y) { in clang_shufflevector_v_v_undef()
D2010-02-18-Dbg-VectorType.c2 typedef float float4 __attribute__((vector_size(16))); typedef
5 volatile float4 x = (float4) { 0.0f, 1.0f, 2.0f, 3.0f }; in main()
/external/clang/test/Sema/
Dvector-init.c4 typedef float float4 __attribute__((vector_size(16))); typedef
6 float4 foo = (float4){ 1.0, 2.0, 3.0, 4.0 };
8 float4 foo2 = (float4){ 1.0, 2.0, 3.0, 4.0 , 5.0 }; // expected-warning{{excess elements in vector …
10 float4 array[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0};
11 int array_sizecheck[(sizeof(array) / sizeof(float4)) == 3 ? 1 : -1];
13 float4 array2[2] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0,
16 float4 array3[2] = { {1.0, 2.0, 3.0}, 5.0, 6.0, 7.0, 8.0,
34 int test2[sizeof(float3) == sizeof(float4) ? 1 : -1];
Dext_vector_components.c5 typedef __attribute__(( ext_vector_type(4) )) float float4; typedef
8 static float4 vec4_0 = (float4)0.5f;
13 float4 vec4, vec4_2, *vec4p; in test()
35 vec4 = (float4){ 1,2,3,4 }; in test()
Dext_vector_casts.c7 typedef __attribute__(( ext_vector_type(4) )) float float4; typedef
16 float4 vec4, vec4_2; in test()
27 vec4 = (float4)5.0f; in test()
28 vec4 = (float4)5; in test()
29 vec4 = (float4)vec4_3; in test()
40 …vec4 = (float4)vec2; // expected-error {{invalid conversion between ext-vector type 'float4' (vect… in test()
Dtypedef-retain.c3 typedef float float4 __attribute__((vector_size(16))); typedef
7 void test1(float4 a, int4 *result, int i) { in test1()
11 void test2(float4 a, int4p result, int i) { in test2()
/external/clang/test/CodeGenOpenCL/
Dlogical-ops.cl7 typedef float float4 __attribute((ext_vector_type(4)));
11 kernel void floatops(global int4 *out, global float4 *fout) {
13 out[0] = (float4)(1, 1, 1, 1) && 1.0f;
15 out[1] = (float4)(0, 0, 0, 0) && (float4)(0, 0, 0, 0);
18 out[2] = (float4)(0, 0, 0, 0) || (float4)(1, 1, 1, 1);
20 out[3] = (float4)(0, 0, 0, 0) || 0.0f;
23 out[4] = !(float4)(0, 0, 0, 0);
25 out[5] = !(float4)(1, 2, 3, 4);
27 out[6] = !(float4)(0, 1, 0, 1);
29 fout[0] = (float4)(!0.0f);
[all …]
Dext-vector-shuffle.cl6 typedef __attribute__(( ext_vector_type(4) )) float float4;
8 float2 test1(float4 V) {
12 float4 test2(float4 V) {
17 float4 test3(float4 V1, float4 V2) { return (float4)(V1.zw, V2.xy); }
Dvector_literals_nested.cl12 typedef float float4 __attribute((ext_vector_type(4)));
14 void ftest1(float4 *p) {
15 *p = (float4)(1.1f, 1.2f, ((float2)(1.3f, 1.4f)));
19 float4 ftest2(float4 *p) {
20 *p = (float4)(1.1f, 1.2f, ((float2)(1.3f)));
Dfpmath.cl3 typedef __attribute__(( ext_vector_type(4) )) float float4;
11 float4 spvectordiv(float4 a, float4 b) {
/external/llvm/test/CodeGen/ARM/
Dinline-diagnostics.ll3 %struct.float4 = type { float, float, float, float }
7 %c1 = alloca %struct.float4, align 4
8 %c2 = alloca %struct.float4, align 4
9 %c3 = alloca %struct.float4, align 4
10 …l.f32 ${2:q}, ${0:q}, ${1:q}", "=*r,=*r,*w"(%struct.float4* %c1, %struct.float4* %c2, %struct.floa…
11 %x = getelementptr inbounds %struct.float4, %struct.float4* %c3, i32 0, i32 0
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/LinearMath/
DbtVector3.cpp36 typedef float float4 __attribute__ ((vector_size(16))); typedef
38 #define float4 __m128 macro
53 const float4 *vertices = (const float4*) vv; in _maxdot_large()
55 float4 dotMax = btAssign128( -BT_INFINITY, -BT_INFINITY, -BT_INFINITY, -BT_INFINITY ); in _maxdot_large()
56 float4 vvec = _mm_loadu_ps( vec ); in _maxdot_large()
57 float4 vHi = btCastiTo128f(_mm_shuffle_epi32( btCastfTo128i( vvec), 0xaa )); /// zzzz in _maxdot_large()
58 float4 vLo = _mm_movelh_ps( vvec, vvec ); /// xyxy in _maxdot_large()
63 float4 stack_array[ STACK_ARRAY_COUNT ]; in _maxdot_large()
70 float4 max; in _maxdot_large()
78 float4 v0 = vertices[0]; in _maxdot_large()
[all …]
/external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d11tex/
Dd3d11tex.hlsl34 float4 position : POSITION;
40 float4 position : SV_POSITION;
42 float4 factors : FACTORS;
55 float4 ps(VS2PS input) : SV_TARGET
57 float4 a0 = tex0.Sample(samp0, input.texcoord);
58 float4 a1 = tex0.Sample(samp1, input.texcoord);
59 float4 a = a0 * input.factors.z + a1 * input.factors.x;
61 float4 b0 = tex1.Sample(samp0, input.texcoord);
62 float4 b1 = tex1.Sample(samp1, input.texcoord);
63 float4 b = b0 * input.factors.z + b1 * input.factors.x;
/external/opencv3/modules/cudalegacy/src/cuda/
Dccomponetns.cu136 …__host__ __device__ __forceinline__ InInterval(const float4& _lo, const float4& _hi) : lo((E)(-_lo… in InInterval()
150 __host__ __device__ __forceinline__ InInterval(const float4& _lo, const float4& _hi) in InInterval()
166 __host__ __device__ __forceinline__ InInterval(const float4& _lo, const float4& _hi) in InInterval()
208 …void computeEdges(const PtrStepSzb& image, PtrStepSzb edges, const float4& lo, const float4& hi, c… in computeEdges()
223 …Edges<uchar> (const PtrStepSzb& image, PtrStepSzb edges, const float4& lo, const float4& hi, cuda…
224 …Edges<uchar3> (const PtrStepSzb& image, PtrStepSzb edges, const float4& lo, const float4& hi, cuda…
225 …Edges<uchar4> (const PtrStepSzb& image, PtrStepSzb edges, const float4& lo, const float4& hi, cuda…
226 …Edges<ushort> (const PtrStepSzb& image, PtrStepSzb edges, const float4& lo, const float4& hi, cuda…
227 …Edges<ushort3>(const PtrStepSzb& image, PtrStepSzb edges, const float4& lo, const float4& hi, cuda…
228 …Edges<ushort4>(const PtrStepSzb& image, PtrStepSzb edges, const float4& lo, const float4& hi, cuda…
[all …]
/external/clang/test/CodeGenCXX/
D2007-05-03-VectorInit.cpp6 typedef v4sf float4; typedef
8 static float4 splat4(float a) in splat4()
10 float4 tmp = {a,a,a,a}; in splat4()
14 float4 foo(float a) in foo()
/external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d11gears/
Dd3d11gears.hlsl31 float4 light;
32 float4 diffuse;
33 float4 specular;
39 float4 position : POSITION;
45 float4 position : SV_POSITION;
56 result.position = mul((float4x4)proj, float4(view, 1));
64 float4 ps(VS2PS input) : SV_TARGET
/external/ImageMagick/MagickCore/
Daccelerate-kernels-private.h378 inline float getBlueF4(float4 p) { return p.x; }
379 inline void setBlueF4(float4* p, float value) { (*p).x = value; }
383 inline float getGreenF4(float4 p) { return p.y; }
384 inline void setGreenF4(float4* p, float value) { (*p).y = value; }
388 inline float getRedF4(float4 p) { return p.z; }
389 inline void setRedF4(float4* p, float value) { (*p).z = value; }
393 inline float getAlphaF4(float4 p) { return p.w; }
394 inline void setAlphaF4(float4* p, float value) { (*p).w = value; }
416 inline float4 ReadAllChannels(const __global CLQuantum *image, const unsigned int number_channels,
421 float4 pixel;
[all …]
/external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d11tri/
Dd3d11tri.hlsl29 float4 position : POSITION;
30 float4 color : COLOR;
35 float4 position : SV_POSITION;
36 float4 color : COLOR;
47 float4 ps(VS2PS input) : SV_TARGET
/external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d10tri/
Dd3d10tri.hlsl29 float4 position : POSITION;
30 float4 color : COLOR;
35 float4 position : SV_POSITION;
36 float4 color : COLOR;
47 float4 ps(VS2PS input) : SV_TARGET
/external/opencv3/modules/cudaarithm/src/cuda/
Dadd_scalar.cu107 …char2, float, float2>, addScalarImpl<uchar3, float, float3>, addScalarImpl<uchar4, float, float4>}, in addScalar()
116 …l<char2, float, float2>, addScalarImpl<char3, float, float3>, addScalarImpl<char4, float, float4>}, in addScalar()
125 …rt2, float, float2>, addScalarImpl<ushort3, float, float3>, addScalarImpl<ushort4, float, float4>}, in addScalar()
134 …hort2, float, float2>, addScalarImpl<short3, float, float3>, addScalarImpl<short4, float, float4>}, in addScalar()
143 …Impl<int2, float, float2>, addScalarImpl<int3, float, float3>, addScalarImpl<int4, float, float4>}, in addScalar()
152 …loat2, float, float2>, addScalarImpl<float3, float, float3>, addScalarImpl<float4, float, float4>}, in addScalar()
153 …, double, double2>, addScalarImpl<float3, double, double3>, addScalarImpl<float4, double, double4>} in addScalar()
Dmul_scalar.cu104 …char2, float, float2>, mulScalarImpl<uchar3, float, float3>, mulScalarImpl<uchar4, float, float4>}, in mulScalar()
113 …l<char2, float, float2>, mulScalarImpl<char3, float, float3>, mulScalarImpl<char4, float, float4>}, in mulScalar()
122 …rt2, float, float2>, mulScalarImpl<ushort3, float, float3>, mulScalarImpl<ushort4, float, float4>}, in mulScalar()
131 …hort2, float, float2>, mulScalarImpl<short3, float, float3>, mulScalarImpl<short4, float, float4>}, in mulScalar()
140 …Impl<int2, float, float2>, mulScalarImpl<int3, float, float3>, mulScalarImpl<int4, float, float4>}, in mulScalar()
149 …loat2, float, float2>, mulScalarImpl<float3, float, float3>, mulScalarImpl<float4, float, float4>}, in mulScalar()
150 …, double, double2>, mulScalarImpl<float3, double, double3>, mulScalarImpl<float4, double, double4>} in mulScalar()

12345