summaryrefslogtreecommitdiffstats
path: root/test/performance_index.c
blob: e31ec98a53c4ca029f4c810356df77d83a1dd3da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stddef.h>
#include "ts.h"

bool ts_test_performance_index( void )
{
    fp_t const x0[] = { 10, 20, 30, 40, 50 };
    fp_t const x1[] = { 11, 22, 33, 44, 55 };
    fp_t const x2[] = { 9, 18, 28, 38, 48 };
    fp_t const x3[] = { 12, 21, 31, 41, 51 };
    fp_t const e0[] = { 20, 5, 3.333333, 2.5, 2 };

    fp_t const * const x[] = { x0, x1, x2, x3 };
    fp_t const * const e[1] = { e0 };

    return ts_test(ts_performance_index, ts_performance_index_offset, x, e, sizeof( x0 ) / sizeof( *x0 ), (ts_constant_t *)NULL, &ts_performance_index_p);
}