Home
last modified time | relevance | path

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

12345

/external/eigen/Eigen/src/Core/arch/CUDA/
DPacketMath.h21 template<> struct is_arithmetic<float4> { enum { value = true }; };
26 typedef float4 type;
27 typedef float4 half;
85 template<> struct unpacket_traits<float4> { typedef float type; enum {size=4, alignment=Aligned16…
88 template<> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE float4 pset1<float4>(const float& from) {
96 template<> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE float4 plset<float4>(const float& a) {
103 template<> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE float4 padd<float4>(const float4& a, const float4&…
110 template<> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE float4 psub<float4>(const float4& a, const float4&…
117 template<> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE float4 pnegate(const float4& a) {
124 template<> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE float4 pconj(const float4& a) { return a; }
[all …]
DMathFunctions.h22 float4 plog<float4>(const float4& a)
35 float4 plog1p<float4>(const float4& a)
47 float4 pexp<float4>(const float4& a)
60 float4 psqrt<float4>(const float4& a)
73 float4 prsqrt<float4>(const float4& a)
/external/eigen/unsupported/Eigen/src/SpecialFunctions/arch/CUDA/
DCudaSpecialFunctions.h23 float4 plgamma<float4>(const float4& a)
36 float4 pdigamma<float4>(const float4& a)
50 float4 pzeta<float4>(const float4& x, const float4& q)
64 float4 ppolygamma<float4>(const float4& n, const float4& x)
78 float4 perf<float4>(const float4& a)
91 float4 perfc<float4>(const float4& a)
106 float4 pigamma<float4>(const float4& a, const float4& x)
124 float4 pigammac<float4>(const float4& a, const float4& x)
142 float4 pbetainc<float4>(const float4& a, const float4& b, const float4& x)
/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…
/external/swiftshader/src/Shader/
DConstants.hpp31 float4 uvWeight[17];
32 float4 uvStart[17];
78 float4 sampleX[4][16];
79 float4 sampleY[4][16];
80 float4 weight[16];
86 float4 X[4];
87 float4 Y[4];
99 float4 unscaleByte;
100 float4 unscaleSByte;
101 float4 unscaleShort;
[all …]
DConstants.cpp113 static const float4 uvWeight[17] = in Constants()
134 static const float4 uvStart[17] = in Constants()
308 static const float4 X[4] = {{-0.3125f, -0.3125f, -0.3125f, -0.3125f}, in Constants()
313 static const float4 Y[4] = {{-0.1250f, -0.1250f, -0.1250f, -0.1250f}, in Constants()
341 static const float4 unscaleByte = {1.0f / 0xFF, 1.0f / 0xFF, 1.0f / 0xFF, 1.0f / 0xFF}; in Constants()
342 static const float4 unscaleSByte = {1.0f / 0x7F, 1.0f / 0x7F, 1.0f / 0x7F, 1.0f / 0x7F}; in Constants()
343 static const float4 unscaleShort = {1.0f / 0x7FFF, 1.0f / 0x7FFF, 1.0f / 0x7FFF, 1.0f / 0x7FFF}; in Constants()
344 static const float4 unscaleUShort = {1.0f / 0xFFFF, 1.0f / 0xFFFF, 1.0f / 0xFFFF, 1.0f / 0xFFFF}; in Constants()
345 …static const float4 unscaleInt = {1.0f / 0x7FFFFFFF, 1.0f / 0x7FFFFFFF, 1.0f / 0x7FFFFFFF, 1.0f / … in Constants()
346 …static const float4 unscaleUInt = {1.0f / 0xFFFFFFFF, 1.0f / 0xFFFFFFFF, 1.0f / 0xFFFFFFFF, 1.0f /… in Constants()
[all …]
/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()
/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()
63 vec4 = (float4){ 1,2,3,4 }; in test()
/external/clang/test/CodeGenCXX/
Dvector-splat-conversion.cpp21 typedef __attribute__((__ext_vector_type__(4))) float float4; typedef
31 float4 floatsT = (float4)true; in BoolConversion()
33 float4 floatsF = (float4)false; in BoolConversion()
44 constexpr float4 cFloatsT = (float4)true; in BoolConversion()
46 constexpr float4 cFloatsF = (float4)false; in BoolConversion()
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/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)));
/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/swiftshader/src/OpenGL/compiler/
DInitialize.cpp30 TType *float4 = new TType(EbtFloat, 4); in InsertBuiltInFunctions() local
119 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpModf, float4, "modf", float4, outFloat4); in InsertBuiltInFunctions()
172 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpOuterProduct, mat4, "outerProduct", float4, float4); in InsertBuiltInFunctions()
175 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpOuterProduct, mat2x4, "outerProduct", float4, float2); in InsertBuiltInFunctions()
176 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpOuterProduct, mat4x2, "outerProduct", float2, float4); in InsertBuiltInFunctions()
177 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpOuterProduct, mat3x4, "outerProduct", float4, float3); in InsertBuiltInFunctions()
178 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpOuterProduct, mat4x3, "outerProduct", float3, float4); in InsertBuiltInFunctions()
239 symbolTable.insertBuiltIn(ESSL1_BUILTINS, float4, "texture2D", sampler2D, float2); in InsertBuiltInFunctions()
240 symbolTable.insertBuiltIn(ESSL1_BUILTINS, float4, "texture2DProj", sampler2D, float3); in InsertBuiltInFunctions()
241 symbolTable.insertBuiltIn(ESSL1_BUILTINS, float4, "texture2DProj", sampler2D, float4); in InsertBuiltInFunctions()
[all …]
/external/swiftshader/src/Renderer/
DVertexProcessor.hpp153 float4 transformT[12][4];
154 float4 cameraTransformT[12][4];
155 float4 normalTransformT[12][4];
156 float4 textureTransform[8][4];
158 float4 lightPosition[8];
159 float4 lightAmbient[8];
160 float4 lightSpecular[8];
161 float4 lightDiffuse[8];
162 float4 attenuationConstant[8];
163 float4 attenuationLinear[8];
[all …]
DPolygon.hpp24 Polygon(const float4 *P0, const float4 *P1, const float4 *P2) in Polygon()
35 Polygon(const float4 *P, int n) in Polygon()
47 float4 B[16]; // Buffer for clipped vertices
48 const float4 *P[16][16]; // Pointers to clipped polygon's vertices
DClipper.cpp32 unsigned int Clipper::computeClipFlags(const float4 &v) in computeClipFlags()
85 const float4 **V = polygon.P[polygon.i]; in clipNear()
86 const float4 **T = polygon.P[polygon.i + 1]; in clipNear()
123 const float4 **V = polygon.P[polygon.i]; in clipFar()
124 const float4 **T = polygon.P[polygon.i + 1]; in clipFar()
161 const float4 **V = polygon.P[polygon.i]; in clipLeft()
162 const float4 **T = polygon.P[polygon.i + 1]; in clipLeft()
199 const float4 **V = polygon.P[polygon.i]; in clipRight()
200 const float4 **T = polygon.P[polygon.i + 1]; in clipRight()
237 const float4 **V = polygon.P[polygon.i]; in clipTop()
[all …]
DPrimitive.hpp32 float4 A;
33 float4 B;
34 float4 C;
42 float4 xQuad;
43 float4 yQuad;
DSampler.hpp28 float4 fWidth;
29 float4 fHeight;
30 float4 fDepth;
48 float4 widthHeightLOD;
49 float4 widthLOD;
50 float4 heightLOD;
51 float4 depthLOD;
54 float4 borderColorF[4];
DRenderer.hpp130float4 c[VERTEX_UNIFORM_VECTORS + 1]; // One extra for indices out of range, c[VERTEX_UNIFORM_VE…
144 float4 c[FRAGMENT_UNIFORM_VECTORS];
175 float4 Wx16;
176 float4 Hx16;
177 float4 X0x16;
178 float4 Y0x16;
179 float4 XXXX;
180 float4 YYYY;
181 float4 halfPixelX;
182 float4 halfPixelY;
[all …]
/external/swiftshader/src/Common/
DTypes.hpp102 ALIGN(16, struct float4
119 bool operator!=(const float4 &rhs)
124 bool operator==(const float4 &rhs)
130 inline float4 vector(float x, float y, float z, float w) in vector()
132 float4 v; in vector()
142 inline float4 replicate(float f) in replicate()
144 float4 v; in replicate()

12345