sn-tex: Fix indentation (remove tabs).
[sort-networks.git] / src / sn-merge.c
index f9d0440..2014d1f 100644 (file)
@@ -78,18 +78,6 @@ static int read_options (int argc, char **argv) /* {{{ */
   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;
@@ -123,16 +111,6 @@ int main (int argc, char **argv)
     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