#proc-macro #simd

simd_helpers

Helpers to write more compact simd code

1 unstable release

0.1.0 Oct 6, 2019

#329 in Hardware support

Download history 1698/week @ 2021-08-11 1766/week @ 2021-08-18 2518/week @ 2021-08-25 2495/week @ 2021-09-01 2123/week @ 2021-09-08 2311/week @ 2021-09-15 2006/week @ 2021-09-22 3315/week @ 2021-09-29 2754/week @ 2021-10-06 2659/week @ 2021-10-13 2500/week @ 2021-10-20 3810/week @ 2021-10-27 3904/week @ 2021-11-03 3553/week @ 2021-11-10 5809/week @ 2021-11-17 2322/week @ 2021-11-24

16,263 downloads per month
Used in 12 crates (via rav1e)

MIT license

2KB

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

~110KB

]