simd_helpers 0.1.0

Helpers to write more compact simd code
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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() { ... }
```