]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - apps/c55x-benchmarks.git/blobdiff - dsplib_benchmarks/maxvec/t4.h
directory structure 3-29-16
[apps/c55x-benchmarks.git] / dsplib_benchmarks / maxvec / t4.h
diff --git a/dsplib_benchmarks/maxvec/t4.h b/dsplib_benchmarks/maxvec/t4.h
new file mode 100644 (file)
index 0000000..1deee2f
--- /dev/null
@@ -0,0 +1,63 @@
+/*\r
+ * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/ \r
+ * \r
+ * \r
+ *  Redistribution and use in source and binary forms, with or without \r
+ *  modification, are permitted provided that the following conditions \r
+ *  are met:\r
+ *\r
+ *    Redistributions of source code must retain the above copyright \r
+ *    notice, this list of conditions and the following disclaimer.\r
+ *\r
+ *    Redistributions in binary form must reproduce the above copyright\r
+ *    notice, this list of conditions and the following disclaimer in the \r
+ *    documentation and/or other materials provided with the   \r
+ *    distribution.\r
+ *\r
+ *    Neither the name of Texas Instruments Incorporated nor the names of\r
+ *    its contributors may be used to endorse or promote products derived\r
+ *    from this software without specific prior written permission.\r
+ *\r
+ *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \r
+ *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT \r
+ *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\r
+ *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT \r
+ *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, \r
+ *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT \r
+ *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+ *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\r
+ *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT \r
+ *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE \r
+ *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+ *\r
+*/\r
+\r
+/* This is a test for maxvec: rmdn */\r
+#define NX 16\r
+#define FNAME "t4"\r
+#define MAXERROR 0\r
+\r
+DATA x[NX] ={\r
+30720,\r
+28672,\r
+26624,\r
+24576,\r
+22528,\r
+20480,\r
+18432,\r
+16384,\r
+14336,\r
+12288,\r
+10240,\r
+8192,\r
+6144,\r
+4096,\r
+2048,\r
+0,\r
+};\r
+\r
+DATA r_testval = 30720;\r
+DATA r_testidx = 0;\r
+\r
+DATA r_val;\r
+DATA r_idx;\r