1 unstable release

0.1.0 Oct 6, 2019

#9 in #cold

Download history 75443/week @ 2024-11-15 75343/week @ 2024-11-22 80789/week @ 2024-11-29 82628/week @ 2024-12-06 78382/week @ 2024-12-13 54832/week @ 2024-12-20 52187/week @ 2024-12-27 78249/week @ 2025-01-03 108894/week @ 2025-01-10 86016/week @ 2025-01-17 94861/week @ 2025-01-24 100333/week @ 2025-01-31 109210/week @ 2025-02-07 107209/week @ 2025-02-14 126984/week @ 2025-02-21 100277/week @ 2025-02-28

461,166 downloads per month
Used in 90 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

~73KB