rostl_sort/
utils.rs

1//! Some generic utils that should probably be in another module
2
3/// Syntactic sugar for `arr.cswap(i,i,a[i]>a[j])`
4#[macro_export]
5macro_rules! CSWAP {
6  ($arr:expr, $i:expr, $j:expr) => {
7    $arr.cswap($i, $j, $arr[$i] > $arr[$j]);
8  };
9}