removes unnecessary and non-portable type casts

pull/19/head
johan-uden 8 years ago committed by Martin Günther
parent 1b43c4f5d5
commit 06eff37277

@ -5840,12 +5840,13 @@ void arm_rfft_fast_f32(
uint32_t blockSize) uint32_t blockSize)
{ {
uint32_t i = 0U; uint32_t i = 0U;
int32_t rOffset, dst_end; int32_t rOffset;
int32_t* dst_end;
/* Copy the value of Index pointer that points /* Copy the value of Index pointer that points
* to the current location from where the input samples to be read */ * to the current location from where the input samples to be read */
rOffset = *readOffset; rOffset = *readOffset;
dst_end = (int32_t) (dst_base + dst_length); dst_end = dst_base + dst_length;
/* Loop over the blockSize */ /* Loop over the blockSize */
i = blockSize; i = blockSize;
@ -5858,7 +5859,7 @@ void arm_rfft_fast_f32(
/* Update the input pointer */ /* Update the input pointer */
dst += dstInc; dst += dstInc;
if (dst == (int32_t *) dst_end) if (dst == dst_end)
{ {
dst = dst_base; dst = dst_base;
} }
@ -5939,13 +5940,14 @@ void arm_rfft_fast_f32(
uint32_t blockSize) uint32_t blockSize)
{ {
uint32_t i = 0; uint32_t i = 0;
int32_t rOffset, dst_end; int32_t rOffset;
q15_t* dst_end;
/* Copy the value of Index pointer that points /* Copy the value of Index pointer that points
* to the current location from where the input samples to be read */ * to the current location from where the input samples to be read */
rOffset = *readOffset; rOffset = *readOffset;
dst_end = (int32_t) (dst_base + dst_length); dst_end = dst_base + dst_length;
/* Loop over the blockSize */ /* Loop over the blockSize */
i = blockSize; i = blockSize;
@ -5958,7 +5960,7 @@ void arm_rfft_fast_f32(
/* Update the input pointer */ /* Update the input pointer */
dst += dstInc; dst += dstInc;
if (dst == (q15_t *) dst_end) if (dst == dst_end)
{ {
dst = dst_base; dst = dst_base;
} }
@ -6039,13 +6041,14 @@ void arm_rfft_fast_f32(
uint32_t blockSize) uint32_t blockSize)
{ {
uint32_t i = 0; uint32_t i = 0;
int32_t rOffset, dst_end; int32_t rOffset;
q7_t* dst_end;
/* Copy the value of Index pointer that points /* Copy the value of Index pointer that points
* to the current location from where the input samples to be read */ * to the current location from where the input samples to be read */
rOffset = *readOffset; rOffset = *readOffset;
dst_end = (int32_t) (dst_base + dst_length); dst_end = dst_base + dst_length;
/* Loop over the blockSize */ /* Loop over the blockSize */
i = blockSize; i = blockSize;
@ -6058,7 +6061,7 @@ void arm_rfft_fast_f32(
/* Update the input pointer */ /* Update the input pointer */
dst += dstInc; dst += dstInc;
if (dst == (q7_t *) dst_end) if (dst == dst_end)
{ {
dst = dst_base; dst = dst_base;
} }

Loading…
Cancel
Save