1 unstable release

0.1.0 Oct 6, 2019

#45 in #arch

Download history 23125/week @ 2024-03-14 36419/week @ 2024-03-21 35469/week @ 2024-03-28 35353/week @ 2024-04-04 37225/week @ 2024-04-11 36276/week @ 2024-04-18 43105/week @ 2024-04-25 49848/week @ 2024-05-02 47733/week @ 2024-05-09 48266/week @ 2024-05-16 36667/week @ 2024-05-23 33566/week @ 2024-05-30 34237/week @ 2024-06-06 39596/week @ 2024-06-13 40030/week @ 2024-06-20 36587/week @ 2024-06-27

155,996 downloads per month
Used in 32 crates (via rav1e)

MIT license

3KB

Helpers to write more compact simd code

Implemented so far

  • cold_for_target_arch mark a function cold for certain arches only
  • cold_for_target_feature

Example

[dependencies]
simd_helpers = "0.1"
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() { ... }

Dependencies

~82KB