-
Notifications
You must be signed in to change notification settings - Fork 0
/
decl.c
30 lines (27 loc) · 986 Bytes
/
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
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#define TMin INT_MIN
#define TMax INT_MAX
#include "btest.h"
#include "bits.h"
test_rec test_set[] = {
{"bitAnd", (funct_t) bitAnd, (funct_t) test_bitAnd, 2, "| ~", 8, 1,
{{TMin, TMax},{TMin,TMax},{TMin,TMax}}},
{"fitsBits", (funct_t) fitsBits, (funct_t) test_fitsBits, 2,
"! ~ & ^ | + << >>", 15, 2,
{{TMin, TMax},{1,32},{TMin,TMax}}},
{"isPositive", (funct_t) isPositive, (funct_t) test_isPositive, 1,
"! ~ & ^ | + << >>", 8, 3,
{{TMin, TMax},{TMin,TMax},{TMin,TMax}}},
{"greatestBitPos", (funct_t) greatestBitPos, (funct_t) test_greatestBitPos, 1, "! ~ & ^ | + << >>", 70, 4,
{{TMin, TMax},{TMin,TMax},{TMin,TMax}}},
{"float_neg", (funct_t) float_neg, (funct_t) test_float_neg, 1,
"$", 10, 2,
{{1, 1},{1,1},{1,1}}},
{"float_twice", (funct_t) float_twice, (funct_t) test_float_twice, 1,
"$", 30, 4,
{{1, 1},{1,1},{1,1}}},
{"", NULL, NULL, 0, "", 0, 0,
{{0, 0},{0,0},{0,0}}}
};