https://github.com/lu-zero/simd_helpers
helper proc macros to reduce the boilerplate need to write simd code in rust
https://github.com/lu-zero/simd_helpers
proc-macro rust simd
Last synced: 10 months ago
JSON representation
helper proc macros to reduce the boilerplate need to write simd code in rust
- Host: GitHub
- URL: https://github.com/lu-zero/simd_helpers
- Owner: lu-zero
- License: mit
- Created: 2019-10-06T16:06:44.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-07T05:58:59.000Z (about 6 years ago)
- Last Synced: 2024-05-02T00:16:42.805Z (over 1 year ago)
- Topics: proc-macro, rust, simd
- Language: Rust
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Helpers to write more compact simd code
## Implemented so far
- [x] `cold_for_target_arch` mark a function cold for certain arches only
- [ ] `cold_for_target_feature`
## Example
``` toml
[dependencies]
simd_helpers = "0.1"
```
``` rust
use simd_helpers::cold_for_target_arch;
// On arm and power it is the main, impl for x86_64 there is a asm-optimized variant
#[cold_for_target_arch("x86_64")]
fn fallback_simple_impl() { ... }
```