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:
parent
eeeb3215f0
commit
44c5409140
2 changed files with 2 additions and 31 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue