]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ti-machine-learning/ti-machine-learning.git/blobdiff - src/common/util/timlUtilVectorMaxIndexFloat.c
1. Enable network state write/read
[ti-machine-learning/ti-machine-learning.git] / src / common / util / timlUtilVectorMaxIndexFloat.c
index 4bb5ed121a962b106a04cb81b8f4221d7f5affcd..e9dd9e3300599add5d6927c6771cdba3a23e6ed5 100644 (file)
  ******************************************************************************/\r
 \r
 #include "../api/timl.h"\r
-#ifdef TIML_ALT\r
+#ifdef TIML_CPU_ALT\r
 #include "../../alt/timlAlt.h"\r
+#elif defined TIML_ARM_DSP\r
+#include "../../dsp/timlDSP.h"\r
 #endif\r
 \r
 \r
@@ -60,7 +62,6 @@
 \r
 int timlUtilVectorMaxIndexFloat(float *x, int n, int inc)\r
 {\r
-#ifdef TIML_CPU\r
    int   i;\r
    int   index = 0;\r
    float max   = -FLT_MAX;\r
@@ -70,9 +71,5 @@ int timlUtilVectorMaxIndexFloat(float *x, int n, int inc)
          index = i;\r
       }\r
    }\r
-\r
    return index;\r
-#elif defined TIML_ALT\r
-   return timlUtilFloatMaxIndexAlt(x, n, inc);\r
-#endif\r
 }\r