Texas Instruments TMS320C64X Programmer's Reference Manual page 117

Dsp little-endian dsp library
Hide thumbs Also See for TMS320C64X:
Table of Contents

Advertisement

DSP_q15tofl
Function
Arguments
Description
Algorithm
Special Requirements nx must be a multiple of 2.
Implementation Notes
Benchmarks
Q15 to Float Conversion
void DSP_q15tofl (short *x, float *r, int nx)
x[nx]
Pointer to Q.15 input vector of size nx.
r[nx]
Pointer to floating-point output data vector of size nx containing
the floating-point equivalent of vector x.
nx
Length of input and output data vectors. Must be multiple of 2.
Converts the values stored in vector x[ ] in Q.15 format to IEEE floating point
numbers in output vector r[ ].
This is the C equivalent of the assembly code without restrictions. Note that
the assembly code is hand optimized and restrictions may apply.
void DSP_q15tofl(short *x, float *r, int nx)
{
int i;
for (i=0;i<nx;i++)
r[i] = (float) x[i] / 0x8000;
}
-
Bank Conflicts: No bank conflicts occur.
-
Interruptibility: The code is interrupt-tolerant but not interruptible.
-
Loop is unrolled twice
Cycles
2 * nx + 14
Codesize
184 bytes
DSP_q15tofl
C64x+ DSPLIB Reference
4-89

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tms320c64x+

Table of Contents