tests: benchmarks: latency_measure: Fix build issue with abs()
We now have a define for abs() in stdlib, so we can remove the version implemented in the test. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
b452e1bbbb
commit
9a87b8535e
|
@ -12,15 +12,10 @@
|
|||
*/
|
||||
|
||||
#include <zephyr.h>
|
||||
#include <stdlib.h>
|
||||
#include <timestamp.h> /* reading time */
|
||||
#include "utils.h" /* PRINT () and other macros */
|
||||
|
||||
/* <stdlib.h> is not supported */
|
||||
static int abs(int i)
|
||||
{
|
||||
return (i >= 0) ? i : -i;
|
||||
}
|
||||
|
||||
/* context switch enough time so our measurement is precise */
|
||||
#define NB_OF_YIELD 1000
|
||||
|
||||
|
|
Loading…
Reference in a new issue