1 unstable release

0.1.0 Oct 6, 2019

#44 in #arch

Download history 5776/week @ 2023-11-25 4406/week @ 2023-12-02 4119/week @ 2023-12-09 4413/week @ 2023-12-16 2606/week @ 2023-12-23 4420/week @ 2023-12-30 5915/week @ 2024-01-06 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 5499/week @ 2024-03-02 4882/week @ 2024-03-09

21,667 downloads per month
Used in 22 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

~84KB