-
Notifications
You must be signed in to change notification settings - Fork 1
/
decl.c
51 lines (43 loc) · 1.9 KB
/
decl.c
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#define TMin LONG_MIN
#define TMax LONG_MAX
#include "btest.h"
#include "bits.h"
test_rec test_set[] = {
{"isZero", (funct_t) isZero, (funct_t) test_isZero, 1, "! ~ & ^ | + << >>", 2, 1,
{{TMin, TMax},{TMin,TMax},{TMin,TMax}}},
{"tmax", (funct_t) tmax, (funct_t) test_tmax, 0, "! ~ & ^ | + << >>", 4, 1,
{{TMin, TMax},{TMin,TMax},{TMin,TMax}}},
{"fitsBits", (funct_t) fitsBits, (funct_t) test_fitsBits, 2,
"! ~ & ^ | + << >>", 15, 2,
{{TMin, TMax},{1,32},{TMin,TMax}}},
{"negate", (funct_t) negate, (funct_t) test_negate, 1,
"! ~ & ^ | + << >>", 5, 2,
{{TMin, TMax},{TMin,TMax},{TMin,TMax}}},
{"addOK", (funct_t) addOK, (funct_t) test_addOK, 2,
"! ~ & ^ | + << >>", 20, 3,
{{TMin, TMax},{TMin,TMax},{TMin,TMax}}},
{"reverseBytes", (funct_t) reverseBytes, (funct_t) test_reverseBytes, 1,
"! ~ & ^ | + << >>", 25, 3,
{{TMin, TMax},{TMin,TMax},{TMin,TMax}}},
{"logicalShift", (funct_t) logicalShift, (funct_t) test_logicalShift,
2, "! ~ & ^ | + << >>", 16, 3,
{{TMin, TMax},{1,31},{TMin,TMax}}},
{"conditional", (funct_t) conditional, (funct_t) test_conditional, 3, "! ~ & ^ | << >>", 16, 3,
{{TMin, TMax},{TMin,TMax},{TMin,TMax}}},
{"sm2tc", (funct_t) sm2tc, (funct_t) test_sm2tc, 1, "! ~ & ^ | + << >>", 15, 4,
{{TMin, TMax},{TMin,TMax},{TMin,TMax}}},
{"bitParity", (funct_t) bitParity, (funct_t) test_bitParity, 1, "! ~ & ^ | + << >>", 20, 4,
{{TMin, TMax},{TMin,TMax},{TMin,TMax}}},
{"isPower2", (funct_t) isPower2, (funct_t) test_isPower2, 1, "! ~ & ^ | + << >>", 60, 4,
{{TMin, TMax},{TMin,TMax},{TMin,TMax}}},
{"bang", (funct_t) bang, (funct_t) test_bang, 1,
"~ & ^ | + << >>", 12, 4,
{{TMin, TMax},{TMin,TMax},{TMin,TMax}}},
{"classLog2", (funct_t) classLog2, (funct_t) test_classLog2, 1, "! ~ & ^ | + << >>", 90, 4,
{{1, TMax},{TMin,TMax},{TMin,TMax}}},
{"", NULL, NULL, 0, "", 0, 0,
{{0, 0},{0,0},{0,0}}}
};