1 unstable release

0.1.0 Oct 6, 2019

#9 in #cold

Download history 38912/week @ 2024-05-22 33182/week @ 2024-05-29 33574/week @ 2024-06-05 39060/week @ 2024-06-12 40264/week @ 2024-06-19 42444/week @ 2024-06-26 42094/week @ 2024-07-03 43646/week @ 2024-07-10 42949/week @ 2024-07-17 47771/week @ 2024-07-24 47646/week @ 2024-07-31 52892/week @ 2024-08-07 52446/week @ 2024-08-14 51540/week @ 2024-08-21 51211/week @ 2024-08-28 45560/week @ 2024-09-04

209,607 downloads per month
Used in 36 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

~79KB