Commit fc6da815 authored by Christophe Favergeon's avatar Christophe Favergeon
Browse files

Correct build issues related to issue #197

Problem with f16
Implicit conversions from float to int
parent 60a6ec10
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -141,18 +141,19 @@ ARM_DSP_ATTRIBUTE void arm_dtw_path_f32(const arm_matrix_instance_f32 *pDTW,

  /* Reverse the path */
  int16_t *fh,*sh;
  int16_t itemp;
  fh = pPath;
  sh = pPath + 2* (*pathLength)-2;
  int halfLength = (*pathLength)>>1;
  for(int i = 0; i< halfLength; i++)
  {
     temp = fh[0];
     itemp = fh[0];
     fh[0] = sh[0];
     sh[0] = temp;
     sh[0] = itemp;

     temp = fh[1];
     itemp = fh[1];
     fh[1] = sh[1];
     sh[1] = temp;
     sh[1] = itemp;

     fh += 2;
     sh -= 2;
+1 −1
Original line number Diff line number Diff line
@@ -135,7 +135,7 @@ ARM_DSP_ATTRIBUTE arm_status arm_atan2_f16(float16_t y,float16_t x,float16_t *re
        }
        else
        {
            if (signbit(y))
            if (signbit((float)y))
            {
               *result= -(_Float16)PIF16;
            }
+7 −5
Original line number Diff line number Diff line
@@ -28,11 +28,7 @@

#include "dsp/transform_functions_f16.h"

void arm_bitreversal_f16(
float16_t * pSrc,
uint16_t fftSize,
uint16_t bitRevFactor,
const uint16_t * pBitRevTab);


/*
* @brief  In-place bit reversal function.
@@ -44,6 +40,12 @@ const uint16_t * pBitRevTab);

#if defined(ARM_FLOAT16_SUPPORTED)

void arm_bitreversal_f16(
float16_t * pSrc,
uint16_t fftSize,
uint16_t bitRevFactor,
const uint16_t * pBitRevTab);

ARM_DSP_ATTRIBUTE void arm_bitreversal_f16(
float16_t * pSrc,
uint16_t fftSize,
+3 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ default:
      C:
        - -Wsign-compare 
        - -Wdouble-promotion 
        - -Wfloat-conversion 
        - -DNDEBUG 
        - -Wall 
        - -Wextra  
@@ -55,6 +56,7 @@ default:
      C:
        - -Wsign-compare 
        - -Wdouble-promotion 
        - -Wfloat-conversion 
        - -DNDEBUG 
        - -Wall 
        - -Wextra  
@@ -102,6 +104,7 @@ default:
      C:
         - -Wsign-compare 
         - -Wdouble-promotion 
         - -Wfloat-conversion 
         - -DNDEBUG 
         - -Wall 
         - -Wextra  
+9 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ default:
      C:
        - -Wsign-compare 
        - -Wdouble-promotion 
        - -Wfloat-conversion 
        - -DNDEBUG 
        - -Wall 
        - -Wextra  
@@ -30,6 +31,8 @@ default:
      CPP:
        - -fno-rtti 
        - -fno-exceptions
        - -Wdouble-promotion 
        - -Wfloat-conversion 
        - -DNDEBUG 
        - -Wall 
        - -Wextra  
@@ -53,6 +56,7 @@ default:
      C:
        - -Wsign-compare 
        - -Wdouble-promotion 
        - -Wfloat-conversion 
        - -DNDEBUG 
        - -Wall 
        - -Wextra 
@@ -73,6 +77,8 @@ default:
      CPP:
        - -fno-rtti 
        - -fno-exceptions
        - -Wdouble-promotion 
        - -Wfloat-conversion 
        - -DNDEBUG 
        - -Wall 
        - -Wextra  
@@ -100,6 +106,7 @@ default:
      C:
         - -Wsign-compare 
         - -Wdouble-promotion 
         - -Wfloat-conversion 
         - -DNDEBUG 
         - -Wall 
         - -Wextra  
@@ -122,6 +129,8 @@ default:
      CPP:
        - -fno-rtti 
        - -fno-exceptions
        - -Wdouble-promotion 
        - -Wfloat-conversion 
        - -DNDEBUG 
        - -Wall 
        - -Wextra