/external/fec/ |
dotprod.h | 14 signed short *coeffs[8]; member in struct:dotprod
|
dotprod_port.c | 12 signed short *coeffs; member in struct:dotprod 16 void *initdp_port(signed short coeffs[],int len){ 27 dp->coeffs = (signed short *)calloc(len,sizeof(signed short)); 29 dp->coeffs[j] = coeffs[j]; 38 if(dp->coeffs != NULL) 39 free(dp->coeffs); 53 corr += (long)a[i] * dp->coeffs[i];
|
dotprod.c | 9 void *initdp_port(signed short coeffs[],int len); 14 void *initdp_mmx(signed short coeffs[],int len); 15 void *initdp_sse2(signed short coeffs[],int len); 23 void *initdp_av(signed short coeffs[],int len); 29 void *initdp(signed short coeffs[],int len){ 35 return initdp_port(coeffs,len); 39 return initdp_mmx(coeffs,len); 41 return initdp_sse2(coeffs,len); 46 return initdp_av(coeffs,len);
|
dotprod_sse2.c | 18 signed short *coeffs[8]; member in struct:dotprod 24 void *initdp_sse2(signed short coeffs[],int len){ 39 posix_memalign((void **)&dp->coeffs[i],16,blksize); 40 memset(dp->coeffs[i],0,blksize); 42 dp->coeffs[i][j+i] = coeffs[j]; 54 if(dp->coeffs[i] != NULL) 55 free(dp->coeffs[i]); 71 return dotprod_sse2_assist(ar,dp->coeffs[al],(dp->len+al-1)/8+1);
|
dotprod_mmx.c | 17 signed short *coeffs[4]; member in struct:dotprod 22 void *initdp_mmx(signed short coeffs[],int len){ 35 dp->coeffs[i] = (signed short *)calloc(1+(len+i-1)/4, 38 dp->coeffs[i][j+i] = coeffs[j]; 50 if(dp->coeffs[i] != NULL) 51 free(dp->coeffs[i]); 73 * index into dp->coeffs[] and the number of 0 words padded onto 79 return dotprod_mmx_assist(ar,dp->coeffs[al],(dp->len+al-1)/4+1);
|
dotprod_av.c | 15 signed short *coeffs[8]; member in struct:dotprod 19 void *initdp_av(signed short coeffs[],int len){ 33 dp->coeffs[i] = calloc(1+(len+i-1)/8,sizeof(vector signed short)); 35 dp->coeffs[i][j+i] = coeffs[j]; 47 if(dp->coeffs[i] != NULL) 48 free(dp->coeffs[i]); 68 d = (vector signed short *)dp->coeffs[al];
|
dtest.c | 26 short coeffs[512]; local 70 memset(coeffs,0,sizeof(coeffs)); 77 coeffs[i] = gv; 83 dp_simd = initdp(coeffs,ntaps); 84 dp_port = initdp_port(coeffs,ntaps);
|
/cts/tests/tests/rscpp/src/android/cts/rscpp/ |
RSConvolveTest.java | 34 native boolean convolveTest(String path, int X, int Y, byte[] input, byte[] output, float[] coeffs, boolean is3x3); 37 float[] coeffs = new float[9]; local 38 coeffs[0] = .5f; 39 coeffs[1] = .35f; 40 coeffs[2] = .1f; 41 coeffs[3] = 1.f; 42 coeffs[4] = 1.f; 43 coeffs[5] = 1.f; 44 coeffs[6] = .1f; 45 coeffs[7] = .35f 66 convolveTest(this.getContext().getCacheDir().toString(), X, Y, byteAlloc, nativeByteAlloc, coeffs, true); local 76 float[] coeffs = new float[25]; local 123 convolveTest(this.getContext().getCacheDir().toString(), X, Y, byteAlloc, nativeByteAlloc, coeffs, false); local [all...] |
RSColorMatrixTest.java | 34 native boolean colorMatrixTest(String path, int X, int Y, byte[] input, byte[] output, float[] coeffs, int optionFlag); 43 float[] coeffs = new float[9]; local 44 coeffs[0] = 1.f; 45 coeffs[1] = 0.3f; 46 coeffs[2] = 0.7f; 47 coeffs[3] = 0.2f; 48 coeffs[4] = 1.f; 49 coeffs[5] = -0.1f; 50 coeffs[6] = -0.5f; 51 coeffs[7] = 0.2f 67 colorMatrixTest(this.getContext().getCacheDir().toString(), X, Y, byteAlloc, nativeByteAlloc, coeffs, 0); local 83 float[] coeffs = new float[9]; local 97 colorMatrixTest(this.getContext().getCacheDir().toString(), X, Y, byteAlloc, nativeByteAlloc, coeffs, 1); local 114 float[] coeffs = new float[16]; local 132 colorMatrixTest(this.getContext().getCacheDir().toString(), X, Y, byteAlloc, nativeByteAlloc, coeffs, 2); local 149 float[] coeffs = new float[9]; local 163 colorMatrixTest(this.getContext().getCacheDir().toString(), X, Y, byteAlloc, nativeByteAlloc, coeffs, 3); local 180 float[] coeffs = new float[9]; local 194 colorMatrixTest(this.getContext().getCacheDir().toString(), X, Y, byteAlloc, nativeByteAlloc, coeffs, 4); local [all...] |
/external/skia/src/core/ |
SkColorSpacePriv.h | 98 static inline bool is_valid_transfer_fn(const SkColorSpaceTransferFn& coeffs) { 99 if (SkScalarIsNaN(coeffs.fA) || SkScalarIsNaN(coeffs.fB) || 100 SkScalarIsNaN(coeffs.fC) || SkScalarIsNaN(coeffs.fD) || 101 SkScalarIsNaN(coeffs.fE) || SkScalarIsNaN(coeffs.fF) || 102 SkScalarIsNaN(coeffs.fG)) 107 if (!is_zero_to_one(coeffs.fD)) { 111 if (coeffs.fD == 0.0f) [all...] |
SkColorSpace_XYZ.cpp | 62 bool SkColorSpace_XYZ::onIsNumericalTransferFn(SkColorSpaceTransferFn* coeffs) const { 63 if (named_to_parametric(coeffs, fGammaNamed)) { 73 value_to_parametric(coeffs, fGammas->data(0).fValue); 78 *coeffs = fGammas->params(0);
|
/external/skqp/src/core/ |
SkColorSpacePriv.h | 98 static inline bool is_valid_transfer_fn(const SkColorSpaceTransferFn& coeffs) { 99 if (SkScalarIsNaN(coeffs.fA) || SkScalarIsNaN(coeffs.fB) || 100 SkScalarIsNaN(coeffs.fC) || SkScalarIsNaN(coeffs.fD) || 101 SkScalarIsNaN(coeffs.fE) || SkScalarIsNaN(coeffs.fF) || 102 SkScalarIsNaN(coeffs.fG)) 107 if (!is_zero_to_one(coeffs.fD)) { 111 if (coeffs.fD == 0.0f) [all...] |
/external/eigen/Eigen/src/Geometry/ |
Hyperplane.h | 57 : m_coeffs(other.coeffs()) 176 EIGEN_DEVICE_FUNC inline const Coefficients& coeffs() const { return m_coeffs; } function in class:Eigen::Hyperplane 181 EIGEN_DEVICE_FUNC inline Coefficients& coeffs() { return m_coeffs; } function in class:Eigen::Hyperplane 192 Scalar det = coeffs().coeff(0) * other.coeffs().coeff(1) - coeffs().coeff(1) * other.coeffs().coeff(0); 197 if(numext::abs(coeffs().coeff(1))>numext::abs(coeffs().coeff(0))) 198 return VectorType(coeffs().coeff(1), -coeffs().coeff(2)/coeffs().coeff(1)-coeffs().coeff(0)) [all...] |
Quaternion.h | 61 EIGEN_DEVICE_FUNC inline Scalar x() const { return this->derived().coeffs().coeff(0); } 63 EIGEN_DEVICE_FUNC inline Scalar y() const { return this->derived().coeffs().coeff(1); } 65 EIGEN_DEVICE_FUNC inline Scalar z() const { return this->derived().coeffs().coeff(2); } 67 EIGEN_DEVICE_FUNC inline Scalar w() const { return this->derived().coeffs().coeff(3); } 70 EIGEN_DEVICE_FUNC inline Scalar& x() { return this->derived().coeffs().coeffRef(0); } 72 EIGEN_DEVICE_FUNC inline Scalar& y() { return this->derived().coeffs().coeffRef(1); } 74 EIGEN_DEVICE_FUNC inline Scalar& z() { return this->derived().coeffs().coeffRef(2); } 76 EIGEN_DEVICE_FUNC inline Scalar& w() { return this->derived().coeffs().coeffRef(3); } 79 EIGEN_DEVICE_FUNC inline const VectorBlock<const Coefficients,3> vec() const { return coeffs().template head<3>(); } 82 EIGEN_DEVICE_FUNC inline VectorBlock<Coefficients,3> vec() { return coeffs().template head<3>(); 85 EIGEN_DEVICE_FUNC inline const typename internal::traits<Derived>::Coefficients& coeffs() const { return derived().coeffs(); } function in class:Eigen::QuaternionBase 88 EIGEN_DEVICE_FUNC inline typename internal::traits<Derived>::Coefficients& coeffs() { return derived().coeffs(); } function in class:Eigen::QuaternionBase 279 EIGEN_DEVICE_FUNC inline Coefficients& coeffs() { return m_coeffs;} function in class:Eigen::Quaternion 280 EIGEN_DEVICE_FUNC inline const Coefficients& coeffs() const { return m_coeffs;} function in class:Eigen::Quaternion 362 EIGEN_DEVICE_FUNC inline const Coefficients& coeffs() const { return m_coeffs;} function in class:Eigen::Map 399 EIGEN_DEVICE_FUNC inline Coefficients& coeffs() { return m_coeffs; } function in class:Eigen::Map 400 EIGEN_DEVICE_FUNC inline const Coefficients& coeffs() const { return m_coeffs; } function in class:Eigen::Map [all...] |
/external/eigen/doc/snippets/ |
SparseMatrix_coeffs.cpp | 7 cout << "it has " << A.nonZeros() << " stored non zero coefficients that are: " << A.coeffs().transpose() << endl; 8 A.coeffs() += 10;
|
/external/webp/src/dsp/ |
cost.c | 337 const int v = abs(res->coeffs[n]); 344 const int v = abs(res->coeffs[n]); 357 static void SetResidualCoeffs_C(const int16_t* const coeffs, 361 assert(res->first == 0 || coeffs[0] == 0); 363 if (coeffs[n]) { 368 res->coeffs = coeffs;
|
cost_mips32.c | 30 const int16_t* res_coeffs = res->coeffs; 86 const int v = abs(res->coeffs[n]); 99 static void SetResidualCoeffs_MIPS32(const int16_t* const coeffs, 101 const int16_t* p_coeffs = (int16_t*)coeffs; 103 assert(res->first == 0 || coeffs[0] == 0); 137 res->coeffs = coeffs;
|
cost_sse2.c | 25 static void SetResidualCoeffs_SSE2(const int16_t* const coeffs, 27 const __m128i c0 = _mm_loadu_si128((const __m128i*)(coeffs + 0)); 28 const __m128i c1 = _mm_loadu_si128((const __m128i*)(coeffs + 8)); 35 // out least significant bits according to res->first, since coeffs[0] is 0 40 assert(res->first == 0 || coeffs[0] == 0); 42 res->coeffs = coeffs; 66 const __m128i c0 = _mm_loadu_si128((const __m128i*)&res->coeffs[0]); 67 const __m128i c1 = _mm_loadu_si128((const __m128i*)&res->coeffs[8]);
|
/external/eigen/bench/ |
quat_slerp.cpp | 13 return Q((a.coeffs() * (1.0-t) + b.coeffs() * t).normalized()); 41 return Q(scale0 * a.coeffs() + scale1 * b.coeffs()); 72 return Q(scale0 * a.coeffs() + scale1 * b.coeffs()); 92 theta = /*M_PI -*/ Scalar(2)*std::asin( (a.coeffs()+b.coeffs()).norm()/2 ); 94 theta = Scalar(2)*std::asin( (a.coeffs()-b.coeffs()).norm()/2 ) [all...] |
/external/libvpx/libvpx/vpx_dsp/x86/ |
highbd_quantize_intrin_sse2.c | 49 __m128i coeffs, cmp1, cmp2; local 51 coeffs = _mm_load_si128((const __m128i *)(coeff_ptr + i * 4)); 52 cmp1 = _mm_cmplt_epi32(coeffs, zbins[i != 0]); 53 cmp2 = _mm_cmpgt_epi32(coeffs, nzbins[i != 0]); 64 __m128i coeffs, coeffs_sign, tmp1, tmp2; local 69 coeffs = _mm_load_si128((const __m128i *)(coeff_ptr + i * 4)); 70 coeffs_sign = _mm_srai_epi32(coeffs, 31); 71 coeffs = _mm_sub_epi32(_mm_xor_si128(coeffs, coeffs_sign), coeffs_sign); 72 tmp1 = _mm_cmpgt_epi32(coeffs, zbins[i != 0]) 125 __m128i coeffs, cmp1, cmp2; local [all...] |
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/ |
backend.h | 47 void CalcSampleBarycentrics(const BarycentricCoeffs& coeffs, SWR_PS_CONTEXT &psContext); 400 INLINE void CalcCentroidBarycentrics(const BarycentricCoeffs& coeffs, SWR_PS_CONTEXT &psContext, 404 psContext.vI.centroid = vplaneps(coeffs.vIa, coeffs.vIb, coeffs.vIc, psContext.vX.centroid, psContext.vY.centroid); 405 psContext.vJ.centroid = vplaneps(coeffs.vJa, coeffs.vJb, coeffs.vJc, psContext.vX.centroid, psContext.vY.centroid); 406 psContext.vI.centroid = _simd_mul_ps(psContext.vI.centroid, coeffs.vRecipDet); 407 psContext.vJ.centroid = _simd_mul_ps(psContext.vJ.centroid, coeffs.vRecipDet) [all...] |
/external/eigen/test/ |
geo_quaternion.cpp | 73 VERIFY_IS_APPROX(Quaternionx(Quaternionx::Identity()).coeffs(), q2.coeffs()); 74 q1.coeffs().setRandom(); 75 VERIFY_IS_APPROX(q1.coeffs(), (q1*q2).coeffs()); 88 if((q1.coeffs()-q2.coeffs()).norm() > 10*largeEps) 172 q2.coeffs() = -q1.coeffs(); 210 VERIFY_IS_APPROX(q1.coeffs(), q2.coeffs()) [all...] |
/external/skia/tools/fonts/ |
generate_fir_coeff.py | 63 coeffs = [] 81 coeffs.append(coverage * target_sum) 91 # The coeffs add up to too much. 96 # The coeffs add up to too little. 103 for coeff, coeff_rounded in zip(coeffs, coeffs_rounded)] 124 delta, coeff_pkg[i].index, coeffs[coeff_pkg[i].index]) 132 print sum(coeffs), hex(sum(coeffs_rounded))
|
/external/skqp/tools/ |
generate_fir_coeff.py | 55 coeffs = [] 71 coeffs.append(coverage * target_sum) 81 # The coeffs add up to too much. Subtract 1 from the ones which were rounded up the most. 85 # The coeffs add up to too little. Add 1 to the ones which were rounded down the most. 91 for coeff, coeff_rounded in zip(coeffs, coeffs_rounded)] 111 print "Adding %d to index %d to force round %f." % (delta, coeff_pkg[i].index, coeffs[coeff_pkg[i].index]) 118 print sum(coeffs), hex(sum(coeffs_rounded))
|
/external/eigen/Eigen/src/Core/ |
BandMatrix.h | 60 inline const CoefficientsType& coeffs() const { return derived().coeffs(); } function in class:Eigen::internal::BandMatrixBase 63 inline CoefficientsType& coeffs() { return derived().coeffs(); } function in class:Eigen::internal::BandMatrixBase 72 Index len = coeffs().rows(); 76 len = (std::min)(rows(),std::max<Index>(0,coeffs().rows() - (supers()-i))); 79 len = std::max<Index>(0,coeffs().rows() - (i + 1 - rows() + subs())); 80 return Block<CoefficientsType,Dynamic,1>(coeffs(), start, i, len, 1); 85 { return Block<CoefficientsType,1,SizeAtCompileTime>(coeffs(),supers(),0,1,(std::min)(rows(),cols())); } 89 { return Block<const CoefficientsType,1,SizeAtCompileTime>(coeffs(),supers(),0,1,(std::min)(rows(),cols())); 225 inline const CoefficientsType& coeffs() const { return m_coeffs; } function in class:Eigen::internal::BandMatrix 226 inline CoefficientsType& coeffs() { return m_coeffs; } function in class:Eigen::internal::BandMatrix 289 inline const CoefficientsType& coeffs() const { return m_coeffs; } function in class:Eigen::internal::BandMatrixWrapper [all...] |