simd_helpers

Crates.iosimd_helpers
lib.rssimd_helpers
version0.1.0
sourcesrc
created_at2019-10-06 16:08:31.640539
updated_at2019-10-06 16:08:31.640539
descriptionHelpers to write more compact simd code
homepage
repositoryhttps://github.com/lu-zero/simd_helpers
max_upload_size
id170391
size2,500
Luca Barbato (lu-zero)

documentation

README

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() { ... }
Commit count: 3

cargo fmt