Home
last modified time | relevance | path

Searched refs:float2 (Results 1 – 25 of 78) sorted by relevance

1234

/external/opencv3/modules/cudaarithm/src/cuda/
Dmul_spectrums.cu64 __device__ __forceinline__ float real(const float2& val) in real()
69 __device__ __forceinline__ float imag(const float2& val) in imag()
74 __device__ __forceinline__ float2 cmul(const float2& a, const float2& b) in cmul()
80 __device__ __forceinline__ float2 conj(const float2& a) in conj()
85 struct comlex_mul : binary_function<float2, float2, float2>
87 __device__ __forceinline__ float2 operator ()(const float2& a, const float2& b) const in operator ()()
93 struct comlex_mul_conj : binary_function<float2, float2, float2>
95 __device__ __forceinline__ float2 operator ()(const float2& a, const float2& b) const in operator ()()
101 struct comlex_mul_scale : binary_function<float2, float2, float2>
105 __device__ __forceinline__ float2 operator ()(const float2& a, const float2& b) const in operator ()()
[all …]
Dadd_scalar.cu107 …{addScalarImpl<uchar, float, float>, addScalarImpl<uchar2, float, float2>, addScalarImpl<uchar3, f… in addScalar()
116 …{addScalarImpl<schar, float, float>, addScalarImpl<char2, float, float2>, addScalarImpl<char3, flo… in addScalar()
125 …{addScalarImpl<ushort, float, float>, addScalarImpl<ushort2, float, float2>, addScalarImpl<ushort3… in addScalar()
134 …{addScalarImpl<short, float, float>, addScalarImpl<short2, float, float2>, addScalarImpl<short3, f… in addScalar()
143 …{addScalarImpl<int, float, float>, addScalarImpl<int2, float, float2>, addScalarImpl<int3, float, … in addScalar()
152 …{addScalarImpl<float, float, float>, addScalarImpl<float2, float, float2>, addScalarImpl<float3, f… in addScalar()
153 …{addScalarImpl<float, double, double>, addScalarImpl<float2, double, double2>, addScalarImpl<float… in addScalar()
Dmul_scalar.cu104 …{mulScalarImpl<uchar, float, float>, mulScalarImpl<uchar2, float, float2>, mulScalarImpl<uchar3, f… in mulScalar()
113 …{mulScalarImpl<schar, float, float>, mulScalarImpl<char2, float, float2>, mulScalarImpl<char3, flo… in mulScalar()
122 …{mulScalarImpl<ushort, float, float>, mulScalarImpl<ushort2, float, float2>, mulScalarImpl<ushort3… in mulScalar()
131 …{mulScalarImpl<short, float, float>, mulScalarImpl<short2, float, float2>, mulScalarImpl<short3, f… in mulScalar()
140 …{mulScalarImpl<int, float, float>, mulScalarImpl<int2, float, float2>, mulScalarImpl<int3, float, … in mulScalar()
149 …{mulScalarImpl<float, float, float>, mulScalarImpl<float2, float, float2>, mulScalarImpl<float3, f… in mulScalar()
150 …{mulScalarImpl<float, double, double>, mulScalarImpl<float2, double, double2>, mulScalarImpl<float… in mulScalar()
Dsub_scalar.cu130 …{subScalarImpl<uchar, float, float>, subScalarImpl<uchar2, float, float2>, subScalarImpl<uchar3, f… in subScalar()
139 …{subScalarImpl<schar, float, float>, subScalarImpl<char2, float, float2>, subScalarImpl<char3, flo… in subScalar()
148 …{subScalarImpl<ushort, float, float>, subScalarImpl<ushort2, float, float2>, subScalarImpl<ushort3… in subScalar()
157 …{subScalarImpl<short, float, float>, subScalarImpl<short2, float, float2>, subScalarImpl<short3, f… in subScalar()
166 …{subScalarImpl<int, float, float>, subScalarImpl<int2, float, float2>, subScalarImpl<int3, float, … in subScalar()
175 …{subScalarImpl<float, float, float>, subScalarImpl<float2, float, float2>, subScalarImpl<float3, f… in subScalar()
176 …{subScalarImpl<float, double, double>, subScalarImpl<float2, double, double2>, subScalarImpl<float… in subScalar()
/external/opencv3/modules/core/src/opencl/
Dmulspectrums.cl46 inline float2 cmulf(float2 a, float2 b)
48 return (float2)(mad(a.x, b.x, - a.y * b.y), mad(a.x, b.y, a.y * b.x));
51 inline float2 conjf(float2 a)
53 return (float2)(a.x, - a.y);
66 int src1_index = mad24(y0, src1_step, mad24(x, (int)sizeof(float2), src1_offset));
67 int src2_index = mad24(y0, src2_step, mad24(x, (int)sizeof(float2), src2_offset));
68 int dst_index = mad24(y0, dst_step, mad24(x, (int)sizeof(float2), dst_offset));
73 float2 src0 = *(__global const float2 *)(src1ptr + src1_index);
74 float2 src1 = *(__global const float2 *)(src2ptr + src2_index);
75 __global float2 * dst = (__global float2 *)(dstptr + dst_index);
[all …]
/external/clang/test/SemaOpenCL/
Dcond.cl11 typedef float float2 __attribute__((ext_vector_type(2)));
45 float2 ptest06(int2 C, float X, float Y)
51 float2 ptest07(int2 C, int X, float Y)
57 float2 ptest08(int2 C, int X, float2 Y)
63 float2 ptest09(float2 A, float2 B, float2 C, float2 D)
85 float2 ntest04(int2 C, int2 X, float2 Y)
87 …conversions between vector types ('int2' (vector of 2 'int' values) and 'float2' (vector of 2 'flo…
90 float2 ntest05(int2 C, int2 X, float Y)
105 float2 ntest08(float2 C, float2 X, float2 Y)
107 …return C ? X : Y; // expected-error {{used type 'float2' (vector of 2 'float' values) where floati…
Dvector_literals_const.cl16 typedef float float2 __attribute((ext_vector_type(2)));
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));
Dshifts.cl10 typedef __attribute__((ext_vector_type(2))) float float2;
55 float2 ntest03(float2 c, char s) {
56 …return c << s; // expected-error {{used type 'float2' (vector of 2 'float' values) where integer i…
/external/llvm/test/ExecutionEngine/
Dtest-interp-vec-setcond-fp.ll7 %float2 = fadd <3 x float> <float 0.0, float 0.0, float 0.0>, <float 0.0, float 0.0, float 0.0>
8 %test49 = fcmp oeq <3 x float> %float1, %float2
9 %test50 = fcmp oge <3 x float> %float1, %float2
10 %test51 = fcmp ogt <3 x float> %float1, %float2
11 %test52 = fcmp ole <3 x float> %float1, %float2
12 %test53 = fcmp olt <3 x float> %float1, %float2
13 %test54 = fcmp une <3 x float> %float1, %float2
/external/llvm/test/ExecutionEngine/MCJIT/
Dtest-setcond-fp.ll8 %float2 = fadd float 0.000000e+00, 0.000000e+00 ; <float> [#uses=6]
9 %test49 = fcmp oeq float %float1, %float2 ; <i1> [#uses=0]
10 %test50 = fcmp oge float %float1, %float2 ; <i1> [#uses=0]
11 %test51 = fcmp ogt float %float1, %float2 ; <i1> [#uses=0]
12 %test52 = fcmp ole float %float1, %float2 ; <i1> [#uses=0]
13 %test53 = fcmp olt float %float1, %float2 ; <i1> [#uses=0]
14 %test54 = fcmp une float %float1, %float2 ; <i1> [#uses=0]
/external/llvm/test/ExecutionEngine/OrcMCJIT/
Dtest-setcond-fp.ll8 %float2 = fadd float 0.000000e+00, 0.000000e+00 ; <float> [#uses=6]
9 %test49 = fcmp oeq float %float1, %float2 ; <i1> [#uses=0]
10 %test50 = fcmp oge float %float1, %float2 ; <i1> [#uses=0]
11 %test51 = fcmp ogt float %float1, %float2 ; <i1> [#uses=0]
12 %test52 = fcmp ole float %float1, %float2 ; <i1> [#uses=0]
13 %test53 = fcmp olt float %float1, %float2 ; <i1> [#uses=0]
14 %test54 = fcmp une float %float1, %float2 ; <i1> [#uses=0]
/external/clang/test/Sema/
Dext_vector_components.c3 typedef __attribute__(( ext_vector_type(2) )) float float2; typedef
11 float2 vec2, vec2_2; in test()
44 float2 lo(float3 x) { return x.lo; } in lo()
45 float2 hi(float3 x) { return x.hi; } in hi()
46 float2 ev(float3 x) { return x.even; } in ev()
47 float2 od(float3 x) { return x.odd; } in od()
Dext_vector_casts.c3 typedef __attribute__(( ext_vector_type(2) )) float float2; typedef
14 float2 vec2; in test()
54 typedef __attribute__(( ext_vector_type(2) )) float2 vecfloat2; // expected-error{{invalid vector e…
56 void inc(float2 f2) { in inc()
99 float2 vf = f; in splats()
/external/opencv3/modules/cudaimgproc/src/cuda/
Dgeneralized_hough.cu388 static __device__ float2* p1_pos(int n) in p1_pos()
390 return (float2*)(c_templFeatures.p1_pos_data + n * c_templFeatures.p1_pos_step); in p1_pos()
396 static __device__ float2* p2_pos(int n) in p2_pos()
398 return (float2*)(c_templFeatures.p2_pos_data + n * c_templFeatures.p2_pos_step); in p2_pos()
406 static __device__ float2* r1(int n) in r1()
408 return (float2*)(c_templFeatures.r1_data + n * c_templFeatures.r1_step); in r1()
410 static __device__ float2* r2(int n) in r2()
412 return (float2*)(c_templFeatures.r2_data + n * c_templFeatures.r2_step); in r2()
417 static __device__ float2* p1_pos(int n) in p1_pos()
419 return (float2*)(c_imageFeatures.p1_pos_data + n * c_imageFeatures.p1_pos_step); in p1_pos()
[all …]
Dgftt.cu59 …template <class Mask> __global__ void findCorners(float threshold, const Mask mask, float2* corner… in findCorners()
94 …int findCorners_gpu(PtrStepSzf eig, float threshold, PtrStepSzb mask, float2* corners, int max_cou… in findCorners_gpu()
124 __device__ __forceinline__ bool operator()(float2 a, float2 b) const in operator ()()
131 void sortCorners_gpu(PtrStepSzf eig, float2* corners, int count) in sortCorners_gpu()
135 thrust::device_ptr<float2> ptr(corners); in sortCorners_gpu()
/external/opencv3/modules/superres/src/opencl/
Dsuperres_btvl1.cl65 …int forwardMotion_index = mad24(forwardMotion_step, y, (int)sizeof(float2) * x + forwardMotion_off…
66 …int backwardMotion_index = mad24(backwardMotion_step, y, (int)sizeof(float2) * x + backwardMotion_…
67 … int forwardMap_index = mad24(forwardMap_step, y, (int)sizeof(float2) * x + forwardMap_offset);
68 … int backwardMap_index = mad24(backwardMap_step, y, (int)sizeof(float2) * x + backwardMap_offset);
70 float2 forwardMotion = *(__global const float2 *)(forwardMotionPtr + forwardMotion_index);
71float2 backwardMotion = *(__global const float2 *)(backwardMotionPtr + backwardMotion_index);
72 __global float2 * forwardMap = (__global float2 *)(forwardMapPtr + forwardMap_index);
73 __global float2 * backwardMap = (__global float2 *)(backwardMapPtr + backwardMap_index);
75 float2 basePoint = (float2)(x, y);
/external/opencv3/modules/cudaoptflow/src/cuda/
Dpyrlk.cu121 …__global__ void sparseKernel(const float2* prevPts, float2* nextPts, uchar* status, float* err, co… in sparseKernel()
135 float2 prevPt = prevPts[blockIdx.x]; in sparseKernel()
221 float2 nextPt = nextPts[blockIdx.x]; in sparseKernel()
270 float2 delta; in sparseKernel()
313 …void sparse_caller(int rows, int cols, const float2* prevPts, float2* nextPts, uchar* status, floa… in sparse_caller()
408 float2 nextPt; in denseKernel()
442 float2 delta; in denseKernel()
487 …void sparse1(PtrStepSzf I, PtrStepSzf J, const float2* prevPts, float2* nextPts, uchar* status, fl… in sparse1()
490 …typedef void (*func_t)(int rows, int cols, const float2* prevPts, float2* nextPts, uchar* status, … in sparse1()
509 …void sparse4(PtrStepSz<float4> I, PtrStepSz<float4> J, const float2* prevPts, float2* nextPts, uch… in sparse4()
[all …]
/external/opencv3/modules/imgproc/src/opencl/
Dhough_lines.cl151 __global float2* lines = (__global float2*)(lines_ptr + lines_offset);
168 lines[index] = (float2)(radius, angle);
211 float2 p0 = (float2)(cosa * radius, sina * radius);
212 float2 dir = (float2)(-sina, cosa);
214float2 pb[4] = { (float2)(-1, -1), (float2)(-1, -1), (float2)(-1, -1), (float2)(-1, -1) };
266 float2 line_end[2];
/external/clang/test/SemaCXX/
Derr_init_conversion_failed.cpp39 typedef float float2 __attribute__((ext_vector_type(2))); typedef
42 void test14(const float2 in, const float2 out) { in test14()
/external/llvm/test/CodeGen/SystemZ/
Dframe-15.ll45 %float2 = load float , float *%ptr2
47 %double2 = fpext float %float2 to double
72 %float2 = load float , float *%ptr2
74 %double2 = fpext float %float2 to double
99 %float2 = load float , float *%ptr2
101 %double2 = fpext float %float2 to double
126 %float2 = load float , float *%ptr2
128 %double2 = fpext float %float2 to double
153 %float2 = load float , float *%ptr2
155 %double2 = fpext float %float2 to double
[all …]
/external/opencv3/modules/cudev/include/opencv2/cudev/ptr2d/
Dwarping.hpp63 typedef float2 value_type;
68 __device__ __forceinline__ float2 operator ()(float y, float x) const in operator ()()
109 typedef float2 value_type;
114 __device__ __forceinline__ float2 operator ()(float y, float x) const in operator ()()
/external/clang/test/CodeGenOpenCL/
Dext-vector-shuffle.cl5 typedef __attribute__(( ext_vector_type(2) )) float float2;
8 float2 test1(float4 V) {
13 float2 W = V.ww;
Dvector_literals_nested.cl11 typedef float float2 __attribute((ext_vector_type(2)));
15 *p = (float4)(1.1f, 1.2f, ((float2)(1.3f, 1.4f)));
20 *p = (float4)(1.1f, 1.2f, ((float2)(1.3f)));
/external/llvm/test/CodeGen/NVPTX/
Dparam-align.ll19 ;;; Need 4-byte alignment on float2* passed byval
20 %struct.float2 = type { float, float }
21 define ptx_device void @t3(%struct.float2* byval %x) {
/external/opencv3/modules/videostab/src/cuda/
Dglobal_motion.cu57 thrust::device_ptr<float2> dpoints0((float2*)points0); in compactPoints()
58 thrust::device_ptr<float2> dpoints1((float2*)points1); in compactPoints()

1234