#proc-macro #simd

macro simd_helpers

Helpers to write more compact simd code

1 unstable release

0.1.0 Oct 6, 2019

#1712 in Procedural macros

Download history 4505/week @ 2022-10-03 5838/week @ 2022-10-10 5695/week @ 2022-10-17 5029/week @ 2022-10-24 5792/week @ 2022-10-31 4767/week @ 2022-11-07 3956/week @ 2022-11-14 2888/week @ 2022-11-21 4974/week @ 2022-11-28 5343/week @ 2022-12-05 4325/week @ 2022-12-12 3809/week @ 2022-12-19 3206/week @ 2022-12-26 4428/week @ 2023-01-02 5213/week @ 2023-01-09 3734/week @ 2023-01-16

17,185 downloads per month
Used in 13 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

~100KB