"TMS320C55x DSP Library DSPLIB Programmer's Reference"
"TMS320C55x DSP Library DSPLIB Programmer's Reference"
"TMS320C55x DSP Library DSPLIB Programmer's Reference"
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
q15toflnxoflagNumber of elements of input vectors.nx ≥ 4Overflow flag. If oflag = 1, a 32-bit overflow has occurred. If oflag = 0, a 32-bit overflow has not occurred.DescriptionThis function calculates the power (sum of products) of a vector.Algorithm Power = 0 for (i 0; i nx; i ) power x(i)*x(I)Overflow Handling MethodologyNo scaling implemented for overflow handlingSpecial Requirements noneImplementation Notes noneExampleBenchmarksSee examples/power subdirectory(preliminary)Cycles † Core: nx – 1Overhead: 12Code size(in bytes)54† Assumes all data is in on-chip dual-access RAM and that there is no bus conflict due to twiddletable reads and instruction fetches (provided linker command file reflects those conditions).q15toflFunctionQ15 to Floating-point Conversionushort q15tofl (DATA *x, float *r, ushort nx)(defined in q152fl.asm)Argumentsx[nx]r[nx]nxPointer to Q15 input vector of size nx.Pointer to floating-point output data vector of size nxcontaining the floating-point equivalent of vector x.Length of input and output data vectorsDescriptionConverts the Q15 stored in vector x to IEEE floating-point numbers stored invector r.4-80