return (0);
} /* }}} int read_options */
-static _Bool is_power_of_two (int n)
-{
- if (n < 1)
- return (0);
- else if ((n == 1) || (n == 2))
- return (1);
- else if ((n % 2) != 0)
- return (0);
- else
- return (is_power_of_two (n >> 1));
-} /* _Bool is_power_of_two */
-
int main (int argc, char **argv)
{
sn_network_t *n0;
exit (EXIT_FAILURE);
}
- if (use_bitonic
- && ((SN_NETWORK_INPUT_NUM (n0) != SN_NETWORK_INPUT_NUM (n1))
- || !is_power_of_two (SN_NETWORK_INPUT_NUM (n0))))
- {
- fprintf (stderr, "Using the bitonic merge is currently only possible "
- "if the number of inputs of both networks is identical and a "
- "power of two\n");
- exit (EXIT_FAILURE);
- }
-
if (use_bitonic)
n = sn_network_combine_bitonic_merge (n0, n1);
else