https://github.com/lapin0t/static-sort
compile-time sorting networks in rust
https://github.com/lapin0t/static-sort
Last synced: 7 months ago
JSON representation
compile-time sorting networks in rust
- Host: GitHub
- URL: https://github.com/lapin0t/static-sort
- Owner: Lapin0t
- Created: 2018-04-10T01:41:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-10T12:19:23.000Z (over 7 years ago)
- Last Synced: 2025-01-14T18:04:56.600Z (9 months ago)
- Language: Rust
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Some fun with procedural macros. Should implement fast static (short) length
array sorting. Eg `static_sort!(bose_nelson, 20, my_array);`. The code
generated is simply a sequence of compare/swap with fixed indexes. The
compiler should optimize these to conditional move instructions if possible.