simd_helpers 0.1.0

Helpers to write more compact simd code
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 2.81 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 239.12 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • lu-zero/simd_helpers
    0 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • lu-zero

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() { ... }