#simd #proc-macro #write

macro simd_helpers

Helpers to write more compact simd code

1 unstable release

0.1.0 Oct 6, 2019

#262 in #simd

Download history 48123/week @ 2024-07-22 46955/week @ 2024-07-29 50467/week @ 2024-08-05 52513/week @ 2024-08-12 52562/week @ 2024-08-19 51641/week @ 2024-08-26 51757/week @ 2024-09-02 60621/week @ 2024-09-09 58286/week @ 2024-09-16 66514/week @ 2024-09-23 63998/week @ 2024-09-30 66694/week @ 2024-10-07 72680/week @ 2024-10-14 68228/week @ 2024-10-21 75144/week @ 2024-10-28 76475/week @ 2024-11-04

299,033 downloads per month
Used in 75 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

~77KB