-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
97fad15
commit 367f425
Showing
5 changed files
with
38 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,3 @@ | ||
use template::RdxSortTemplate; | ||
|
||
impl RdxSortTemplate for char { | ||
#[inline] | ||
fn cfg_nbuckets() -> usize { | ||
<u32 as RdxSortTemplate>::cfg_nbuckets() | ||
} | ||
|
||
#[inline] | ||
fn cfg_nrounds() -> usize { | ||
<u32 as RdxSortTemplate>::cfg_nrounds() | ||
} | ||
|
||
#[inline] | ||
fn get_bucket(&self, round: usize) -> usize { | ||
(*self as u32).get_bucket(round) | ||
} | ||
|
||
#[inline] | ||
fn reverse(round: usize, bucket: usize) -> bool { | ||
<u32 as RdxSortTemplate>::reverse(round, bucket) | ||
} | ||
} | ||
rdxsort_template_alias!(char = u32); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters