-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.hpp
More file actions
28 lines (22 loc) · 702 Bytes
/
test.hpp
File metadata and controls
28 lines (22 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2013, Andrew Ross
// Distributable under the GNU LGPL v2.1 , see COPYING for details
#ifndef _TEST_HPP
#define _TEST_HPP
#include <vector>
#include <stdexcept>
#include <cmath>
#include <cstdio>
#include <cstring>
#include "vecgen.hpp"
using namespace std;
struct test_rec {
const char *name; bool (*fn)();
test_rec(const char *n, bool(*f)());
};
#define TEST(N) bool(N)(); const static test_rec t_##N(#N, N); bool(N)()
string optstring();
void vecgen_run(vecgen &vg, float *consts, float *in, float *out, void **mems);
void vecgen_run_no_gen(vecgen &vg, float *consts, float *in, float *out, void **mems);
extern bool log_execution;
extern bool avxmode;
#endif // _TEST_HPP