1 unstable release

0.1.0 Oct 6, 2019

#48 in #arch

Download history 5427/week @ 2024-01-13 6486/week @ 2024-01-20 5292/week @ 2024-01-27 5385/week @ 2024-02-03 5960/week @ 2024-02-10 5760/week @ 2024-02-17 4776/week @ 2024-02-24 4951/week @ 2024-03-02 11809/week @ 2024-03-09 26351/week @ 2024-03-16 39339/week @ 2024-03-23 35702/week @ 2024-03-30 35226/week @ 2024-04-06 37568/week @ 2024-04-13 37152/week @ 2024-04-20 40439/week @ 2024-04-27

155,787 downloads per month
Used in 26 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

~85KB