Remove references to VisualDSP.

VisualDSP is not supported.  Furthermore, with the removal of the VisualDSP
comment, there is no longer any justification for the custom BENCH_MIN() macro.
Thus, it is simply replaced with min()--defined in "util.h".

Change-Id: I3c08add1fc9fcd98c388b843c5849fc71fa84fd3
Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
This commit is contained in:
Peter Mitsis 2015-04-15 11:03:48 -04:00 committed by Anas Nashif
commit 44c5409140
2 changed files with 2 additions and 31 deletions

View file

@ -97,21 +97,6 @@
(uint32_t)((1000000 * (uint64_t)putsize) / puttime[2]));
#endif /* FLOAT */
/*
* The VisualDSP doesn't generate an appropriate code for
* the C internal operator
*/
static int BENCH_MIN (int a, int b)
{
if (a < b)
return a;
else
return b;
}
/* #define BENCH_MIN(a,b) ((a < b) ? a : b) */
/*
* Function prototypes.
*/
@ -248,7 +233,7 @@ int pipeput (
for (i = 0; _1_TO_N == option || (i < count); i++)
{
int sizexferd = 0;
int size2xfer = BENCH_MIN (size, size2xfer_total - sizexferd_total);
int size2xfer = min(size, size2xfer_total - sizexferd_total);
int ret;
ret = task_pipe_put_wait (pipe, data_bench, size2xfer,

View file

@ -35,20 +35,6 @@
#ifdef PIPE_BENCH
/*
* The VisualDSP doesn't generate an appropriate
* code for the C internal operator
*/
static int BENCH_MIN (int a, int b)
{
if (a < b)
return a;
else
return b;
}
/* #define BENCH_MIN(a,b) ((a < b) ? a : b) */
/*
* Function prototypes.
*/
@ -144,7 +130,7 @@ int pipeget (
for (i = 0; _1_TO_N == option || (i < count); i++)
{
int sizexferd = 0;
int size2xfer = BENCH_MIN (size, size2xfer_total - sizexferd_total);
int size2xfer = min(size, size2xfer_total - sizexferd_total);
int ret;
ret = task_pipe_get_wait (pipe, data_recv, size2xfer,