![]() |
Sorting Network Search
Backtracking for Small Sorting Networks
|
Useful definitions. More...
Go to the source code of this file.
Macros | |
#define | MAXINPUTS 12 |
Maximum width, that is, number of inputs. More... | |
#define | MAXDEPTH 7 |
Maximum depth. More... | |
#define | odd(n) ((n) & 1) |
Oddness test. More... | |
#define | xor(i, j) (((i) && (j)) || !((i) || (j))) |
Exclusive-or. More... | |
#define | oddfloor(n) (odd(n)?(n):((n)-1)) |
If even, round down to make odd. More... | |
#define | evenfloor(n) (odd(n)?(n)-1:((n))) |
If odd, round down to make even. More... | |
#define | evenceil(n) (odd(n)?((n)+1):(n)) |
If odd, round up to make even. More... | |