/cmsis-dsp-3.7.0-3.6.0/Source/MatrixFunctions/ |
D | arm_mat_mult_q7.c | 65 q7_t const *pInB = (q7_t const *)pSrcB->pData; /* input data matrix pointer B */ in arm_mat_mult_q7_2x2_mve() 66 q7_t *pInA = pSrcA->pData; /* input data matrix pointer A */ in arm_mat_mult_q7_2x2_mve() 67 q7_t *pOut = pDst->pData; /* output data matrix pointer */ in arm_mat_mult_q7_2x2_mve() 69 q7_t *pInA0 = pInA; in arm_mat_mult_q7_2x2_mve() 70 q7_t *pInA1 = pInA0 + MATRIX_DIM; in arm_mat_mult_q7_2x2_mve() 87 pOut[0 * MATRIX_DIM] = (q7_t) __SSAT(acc0 >> 7, 8); in arm_mat_mult_q7_2x2_mve() 88 pOut[1 * MATRIX_DIM] = (q7_t) __SSAT(acc1 >> 7, 8); in arm_mat_mult_q7_2x2_mve() 99 pOut[0 * MATRIX_DIM] = (q7_t) __SSAT(acc0 >> 7, 8); in arm_mat_mult_q7_2x2_mve() 100 pOut[1 * MATRIX_DIM] = (q7_t) __SSAT(acc1 >> 7, 8); in arm_mat_mult_q7_2x2_mve() 114 q7_t const *pInB = (q7_t const *)pSrcB->pData; /* input data matrix pointer B */ in arm_mat_mult_q7_3x3_mve() [all …]
|
D | arm_mat_vec_mult_q7.c | 55 const q7_t *pSrcVec, in arm_mat_vec_mult_q7() 56 q7_t *pDstVec) in arm_mat_vec_mult_q7() 58 const q7_t *pMatSrc = pSrcMat->pData; in arm_mat_vec_mult_q7() 59 const q7_t *pMat0, *pMat1; in arm_mat_vec_mult_q7() 62 q7_t *px; in arm_mat_vec_mult_q7() 74 q7_t const *pMat0Vec, *pMat1Vec, *pMat2Vec, *pMat3Vec, *pVec; in arm_mat_vec_mult_q7() 75 const q7_t *pMat2, *pMat3; in arm_mat_vec_mult_q7() 76 q7_t const *pSrcVecPtr = pSrcVec; in arm_mat_vec_mult_q7() 160 q7_t const *pMat0Vec, *pMat1Vec, *pVec; in arm_mat_vec_mult_q7() 161 q7_t const *pSrcVecPtr = pSrcVec; in arm_mat_vec_mult_q7() [all …]
|
/cmsis-dsp-3.7.0-3.6.0/Source/BasicMathFunctions/ |
D | arm_abs_q7.c | 58 const q7_t * pSrc, in arm_abs_q7() 59 q7_t * pDst, in arm_abs_q7() 99 const q7_t * pSrc, in arm_abs_q7() 100 q7_t * pDst, in arm_abs_q7() 104 q7_t in; /* Temporary input variable */ in arm_abs_q7() 118 *pDst++ = (in > 0) ? in : (q7_t)__QSUB8(0, in); in arm_abs_q7() 120 *pDst++ = (in > 0) ? in : ((in == (q7_t) 0x80) ? (q7_t) 0x7f : -in); in arm_abs_q7() 125 *pDst++ = (in > 0) ? in : (q7_t)__QSUB8(0, in); in arm_abs_q7() 127 *pDst++ = (in > 0) ? in : ((in == (q7_t) 0x80) ? (q7_t) 0x7f : -in); in arm_abs_q7() 132 *pDst++ = (in > 0) ? in : (q7_t)__QSUB8(0, in); in arm_abs_q7() [all …]
|
D | arm_negate_q7.c | 55 const q7_t * pSrc, in arm_negate_q7() 56 q7_t * pDst, in arm_negate_q7() 96 const q7_t * pSrc, in arm_negate_q7() 97 q7_t * pDst, in arm_negate_q7() 101 q7_t in; /* Temporary input variable */ in arm_negate_q7() 122 *pDst++ = (in == (q7_t) 0x80) ? (q7_t) 0x7f : -in; in arm_negate_q7() 125 *pDst++ = (in == (q7_t) 0x80) ? (q7_t) 0x7f : -in; in arm_negate_q7() 128 *pDst++ = (in == (q7_t) 0x80) ? (q7_t) 0x7f : -in; in arm_negate_q7() 131 *pDst++ = (in == (q7_t) 0x80) ? (q7_t) 0x7f : -in; in arm_negate_q7() 156 *pDst++ = (q7_t) __QSUB8(0, in); in arm_negate_q7() [all …]
|
D | arm_mult_q7.c | 56 const q7_t * pSrcA, in arm_mult_q7() 57 const q7_t * pSrcB, in arm_mult_q7() 58 q7_t * pDst, in arm_mult_q7() 101 const q7_t * pSrcA, in arm_mult_q7() 102 const q7_t * pSrcB, in arm_mult_q7() 103 q7_t * pDst, in arm_mult_q7() 111 q7_t out1, out2, out3, out4; /* Temporary output variables */ in arm_mult_q7() 123 out1 = (q7_t) __SSAT((((q15_t) (*pSrcA++) * (*pSrcB++)) >> 7), 8); in arm_mult_q7() 124 out2 = (q7_t) __SSAT((((q15_t) (*pSrcA++) * (*pSrcB++)) >> 7), 8); in arm_mult_q7() 125 out3 = (q7_t) __SSAT((((q15_t) (*pSrcA++) * (*pSrcB++)) >> 7), 8); in arm_mult_q7() [all …]
|
D | arm_scale_q7.c | 58 const q7_t * pSrc, in arm_scale_q7() 59 q7_t scaleFract, in arm_scale_q7() 61 q7_t * pDst, in arm_scale_q7() 123 const q7_t * pSrc, in arm_scale_q7() 124 q7_t scaleFract, in arm_scale_q7() 126 q7_t * pDst, in arm_scale_q7() 135 q7_t in1, in2, in3, in4; /* Temporary input variables */ in arm_scale_q7() 136 q7_t out1, out2, out3, out4; /* Temporary output variables */ in arm_scale_q7() 154 out1 = (q7_t) (__SSAT(((in1) * scaleFract) >> kShift, 8)); in arm_scale_q7() 155 out2 = (q7_t) (__SSAT(((in2) * scaleFract) >> kShift, 8)); in arm_scale_q7() [all …]
|
D | arm_add_q7.c | 58 const q7_t * pSrcA, in arm_add_q7() 59 const q7_t * pSrcB, in arm_add_q7() 60 q7_t * pDst, in arm_add_q7() 103 const q7_t * pSrcA, in arm_add_q7() 104 const q7_t * pSrcB, in arm_add_q7() 105 q7_t * pDst, in arm_add_q7() 123 *pDst++ = (q7_t) __SSAT ((q15_t) *pSrcA++ + *pSrcB++, 8); in arm_add_q7() 124 *pDst++ = (q7_t) __SSAT ((q15_t) *pSrcA++ + *pSrcB++, 8); in arm_add_q7() 125 *pDst++ = (q7_t) __SSAT ((q15_t) *pSrcA++ + *pSrcB++, 8); in arm_add_q7() 126 *pDst++ = (q7_t) __SSAT ((q15_t) *pSrcA++ + *pSrcB++, 8); in arm_add_q7() [all …]
|
D | arm_offset_q7.c | 56 const q7_t * pSrc, in arm_offset_q7() 57 q7_t offset, in arm_offset_q7() 58 q7_t * pDst, in arm_offset_q7() 98 const q7_t * pSrc, in arm_offset_q7() 99 q7_t offset, in arm_offset_q7() 100 q7_t * pDst, in arm_offset_q7() 125 *pDst++ = (q7_t) __SSAT((q15_t) *pSrc++ + offset, 8); in arm_offset_q7() 126 *pDst++ = (q7_t) __SSAT((q15_t) *pSrc++ + offset, 8); in arm_offset_q7() 127 *pDst++ = (q7_t) __SSAT((q15_t) *pSrc++ + offset, 8); in arm_offset_q7() 128 *pDst++ = (q7_t) __SSAT((q15_t) *pSrc++ + offset, 8); in arm_offset_q7() [all …]
|
D | arm_sub_q7.c | 56 const q7_t * pSrcA, in arm_sub_q7() 57 const q7_t * pSrcB, in arm_sub_q7() 58 q7_t * pDst, in arm_sub_q7() 101 const q7_t * pSrcA, in arm_sub_q7() 102 const q7_t * pSrcB, in arm_sub_q7() 103 q7_t * pDst, in arm_sub_q7() 121 *pDst++ = (q7_t) __SSAT((q15_t) *pSrcA++ - *pSrcB++, 8); in arm_sub_q7() 122 *pDst++ = (q7_t) __SSAT((q15_t) *pSrcA++ - *pSrcB++, 8); in arm_sub_q7() 123 *pDst++ = (q7_t) __SSAT((q15_t) *pSrcA++ - *pSrcB++, 8); in arm_sub_q7() 124 *pDst++ = (q7_t) __SSAT((q15_t) *pSrcA++ - *pSrcB++, 8); in arm_sub_q7() [all …]
|
/cmsis-dsp-3.7.0-3.6.0/Source/FilteringFunctions/ |
D | arm_fir_q7.c | 60 const q7_t *pSmp = &pSample[j]; \ 68 *pOutput++ = (q7_t) __SSAT((acc[j] >> 7U), 8); \ 73 q7_t *pState = S->pState; /* State pointer */ \ 74 const q7_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ \ 75 q7_t *pStateCur; /* Points to the current sample of the state */ \ 76 const q7_t *pSamples; /* Temporary pointer to the sample buffer */ \ 77 q7_t *pOutput; /* Temporary pointer to the output buffer */ \ 78 const q7_t *pTempSrc; /* Temporary pointer to the source data */ \ 79 q7_t *pTempDest; /* Temporary pointer to the destination buffer */\ 144 const q7_t * __restrict pSrc, in arm_fir_q7_49_64_mve() [all …]
|
D | arm_conv_q7.c | 64 const q7_t * pSrcA, in arm_conv_q7() 66 const q7_t * pSrcB, in arm_conv_q7() 68 q7_t * pDst) in arm_conv_q7() 70 const q7_t *pIn1 = pSrcA; /* inputA pointer */ in arm_conv_q7() 71 const q7_t *pIn2 = pSrcB; /* inputB pointer */ in arm_conv_q7() 75 const q7_t *pX; in arm_conv_q7() 76 const q7_t *pY; in arm_conv_q7() 77 const q7_t *pA; in arm_conv_q7() 78 const q7_t *pB; in arm_conv_q7() 119 *pDst++ = (q7_t) acc0; in arm_conv_q7() [all …]
|
D | arm_correlate_q7.c | 68 const q7_t * pSrcA, in arm_correlate_q7() 70 const q7_t * pSrcB, in arm_correlate_q7() 72 q7_t * pDst) in arm_correlate_q7() 74 const q7_t *pIn1 = pSrcA; /* inputA pointer */ in arm_correlate_q7() 75 const q7_t *pIn2 = pSrcB + (srcBLen - 1U); /* inputB pointer */ in arm_correlate_q7() 76 const q7_t *pX, *pY; in arm_correlate_q7() 77 const q7_t *pA, *pB; in arm_correlate_q7() 145 *pDst = (q7_t) acc0; in arm_correlate_q7() 147 *pDst = (q7_t) acc1; in arm_correlate_q7() 160 *pDst = (q7_t) acc; in arm_correlate_q7() [all …]
|
D | arm_fir_sparse_q7.c | 60 const q7_t * pSrc, in arm_fir_sparse_q7() 61 q7_t * pDst, in arm_fir_sparse_q7() 62 q7_t * pScratchIn, in arm_fir_sparse_q7() 66 q7_t *pState = S->pState; /* State pointer */ in arm_fir_sparse_q7() 67 const q7_t *pCoeffs = S->pCoeffs; /* Coefficient pointer */ in arm_fir_sparse_q7() 68 q7_t *px; /* Scratch buffer pointer */ in arm_fir_sparse_q7() 69 q7_t *py = pState; /* Temporary pointers for state buffer */ in arm_fir_sparse_q7() 70 q7_t *pb = pScratchIn; /* Temporary pointers for scratch buffer */ in arm_fir_sparse_q7() 71 q7_t *pOut = pDst; /* Destination pointer */ in arm_fir_sparse_q7() 79 q7_t coeff = *pCoeffs++; /* Read the coefficient value */ in arm_fir_sparse_q7() [all …]
|
/cmsis-dsp-3.7.0-3.6.0/Source/StatisticsFunctions/ |
D | arm_absmin_no_idx_q7.c | 55 const q7_t * pSrc, in arm_absmin_no_idx_q7() 57 q7_t * pResult) in arm_absmin_no_idx_q7() 61 q7_t const *pSrcVec; in arm_absmin_no_idx_q7() 63 q7_t minValue = Q7_ABSMAX; in arm_absmin_no_idx_q7() 67 pSrcVec = (q7_t const *) pSrc; in arm_absmin_no_idx_q7() 108 const q7_t * pSrc, in arm_absmin_no_idx_q7() 110 q7_t * pResult) in arm_absmin_no_idx_q7() 112 … q7_t cur_absmin, out; /* Temporary variables to store the output value. */\ in arm_absmin_no_idx_q7() 118 …out = (out > 0) ? out : (q7_t)__QSUB8(0, out); … in arm_absmin_no_idx_q7() 127 …cur_absmin = (cur_absmin > 0) ? cur_absmin : (q7_t)__QSUB8(0, cur_absmin); … in arm_absmin_no_idx_q7() [all …]
|
D | arm_absmax_no_idx_q7.c | 56 const q7_t * pSrc, in arm_absmax_no_idx_q7() 58 q7_t * pResult) in arm_absmax_no_idx_q7() 62 q7_t const *pSrcVec; in arm_absmax_no_idx_q7() 67 pSrcVec = (q7_t const *) pSrc; in arm_absmax_no_idx_q7() 92 const q7_t * pSrc, in arm_absmax_no_idx_q7() 94 q7_t * pResult) in arm_absmax_no_idx_q7() 96 … q7_t cur_absmax, out; /* Temporary variables to store the output value. */\ in arm_absmax_no_idx_q7() 102 …out = (out > 0) ? out : (q7_t)__QSUB8(0, out); … in arm_absmax_no_idx_q7() 112 …cur_absmax = (cur_absmax > 0) ? cur_absmax : (q7_t)__QSUB8(0, cur_absmax); … in arm_absmax_no_idx_q7() 121 …cur_absmax = (cur_absmax > 0) ? cur_absmax : (q7_t)__QSUB8(0, cur_absmax); … in arm_absmax_no_idx_q7() [all …]
|
D | arm_absmin_q7.c | 56 const q7_t *pSrc, in arm_small_blk_absmin_q7() 58 q7_t *pResult, in arm_small_blk_absmin_q7() 63 q7_t const *pSrcVec; in arm_small_blk_absmin_q7() 65 q7_t minValue = Q7_ABSMAX; in arm_small_blk_absmin_q7() 76 pSrcVec = (q7_t const *) pSrc; in arm_small_blk_absmin_q7() 135 const q7_t * pSrc, in arm_absmin_q7() 137 q7_t * pResult, in arm_absmin_q7() 149 q7_t curBlkExtr = Q7_MAX; in arm_absmin_q7() 157 const q7_t *curSrc = pSrc; in arm_absmin_q7() 191 const q7_t * pSrc, in arm_absmin_q7() [all …]
|
D | arm_absmax_q7.c | 61 const q7_t * pSrc, in arm_small_blk_absmax_q7() 63 q7_t * pResult, in arm_small_blk_absmax_q7() 68 q7_t maxValue = Q7_ABSMIN; in arm_small_blk_absmax_q7() 112 const q7_t * pSrc, in arm_absmax_q7() 114 q7_t * pResult, in arm_absmax_q7() 126 q7_t curBlkExtr = Q7_MIN; in arm_absmax_q7() 134 const q7_t *curSrc = pSrc; in arm_absmax_q7() 167 const q7_t * pSrc, in arm_absmax_q7() 169 q7_t * pResult, in arm_absmax_q7() 172 … q7_t cur_absmax, out; /* Temporary variables to store the output value. */\ in arm_absmax_q7() [all …]
|
D | arm_mse_q7.c | 56 const q7_t * pSrcA, in arm_mse_q7() 57 const q7_t * pSrcB, in arm_mse_q7() 59 q7_t * pResult) in arm_mse_q7() 104 *pResult = (q7_t) __SSAT((q15_t) (sum / blockSize)>>5, 8); in arm_mse_q7() 108 const q7_t * pSrcA, in arm_mse_q7() 109 const q7_t * pSrcB, in arm_mse_q7() 111 q7_t * pResult) in arm_mse_q7() 115 … q7_t inA,inB; /* Temporary variable to store input value */ in arm_mse_q7() 127 inA = (q7_t) __SSAT((q15_t) inA - (q15_t)inB, 8); in arm_mse_q7() 132 inA = (q7_t) __SSAT((q15_t) inA - (q15_t)inB, 8); in arm_mse_q7() [all …]
|
/cmsis-dsp-3.7.0-3.6.0/Include/dsp/ |
D | basic_math_functions.h | 54 const q7_t * pSrcA, 55 const q7_t * pSrcB, 56 q7_t * pDst, 156 const q7_t * pSrcA, 157 const q7_t * pSrcB, 158 q7_t * pDst, 228 const q7_t * pSrcA, 229 const q7_t * pSrcB, 230 q7_t * pDst, 301 const q7_t * pSrc, [all …]
|
D | statistics_functions.h | 204 const q7_t * pSrc, 216 const q7_t * pSrc, 218 q7_t * pResult); 410 const q7_t * pSrc, 412 q7_t * pResult, 423 const q7_t * pSrc, 425 q7_t * pResult, 435 const q7_t * pSrc, 437 q7_t * pResult); 600 const q7_t * pSrc, [all …]
|
/cmsis-dsp-3.7.0-3.6.0/Testing/Source/Tests/ |
D | UnaryTestsQ7.cpp | 14 #define ABS_ERROR_Q7 ((q7_t)2) 22 static void checkInnerTail(q7_t *b) in checkInnerTail() 44 const q7_t *inp1=input1.ptr(); \ 45 const q7_t *inp2=input2.ptr(); \ 47 q7_t *ap=a.ptr(); \ 48 q7_t *bp=b.ptr(); \ 50 q7_t *outp=output.ptr(); \ 57 const q7_t *inp1=input1.ptr(); \ 59 q7_t *ap=a.ptr(); \ 61 q7_t *outp=output.ptr(); \ [all …]
|
D | StatsTestsQ7.cpp | 17 #define ABS_ERROR_Q7 ((q7_t)20) 20 #define ABS_ERROR_Q7_MSE ((q7_t)6) 26 const q7_t *inp = inputA.ptr(); in test_max_q7() 28 q7_t result; in test_max_q7() 31 q7_t *refp = ref.ptr(); in test_max_q7() 34 q7_t *outp = output.ptr(); in test_max_q7() 52 const q7_t *inp = inputA.ptr(); in test_max_no_idx_q7() 54 q7_t result; in test_max_no_idx_q7() 56 q7_t *refp = ref.ptr(); in test_max_no_idx_q7() 58 q7_t *outp = output.ptr(); in test_max_no_idx_q7() [all …]
|
D | FIRQ7.cpp | 7 #define ABS_ERROR_Q7 ((q7_t)2) 10 static __ALIGNED(8) q7_t coeffArray[32]; 13 static void checkInnerTail(q7_t *b) in checkInnerTail() 29 q7_t *statep = state.ptr(); in test_fir_q7() 30 const q7_t *orgcoefsp = coefs.ptr(); in test_fir_q7() 32 const q7_t *coefsp; in test_fir_q7() 33 const q7_t *inputp = inputs.ptr(); in test_fir_q7() 34 q7_t *outp = output.ptr(); in test_fir_q7() 61 memset(coeffArray,127,32*sizeof(q7_t)); in test_fir_q7() 68 memset(coeffArray,0,round*sizeof(q7_t)); in test_fir_q7() [all …]
|
/cmsis-dsp-3.7.0-3.6.0/Testing/Include/Benchmarks/ |
D | FIRQ7.h | 14 Client::Pattern<q7_t> coefs; 15 Client::Pattern<q7_t> samples; 16 Client::Pattern<q7_t> refs; 18 Client::LocalPattern<q7_t> output; 19 Client::LocalPattern<q7_t> error; 20 Client::LocalPattern<q7_t> state; 27 const q7_t *pSrc; 28 const q7_t *pCoefs; 29 q7_t *pDst; 30 const q7_t *pRef; [all …]
|
D | StatsQ7.h | 15 Client::Pattern<q7_t> inputA; 16 Client::Pattern<q7_t> inputB; 18 Client::LocalPattern<q7_t> output; 20 Client::LocalPattern<q7_t> tmp; 22 q7_t *inap; 23 q7_t *inbp; 24 q7_t *outp; 25 q7_t *tmpp;
|