Crates.io | simd_helpers |
lib.rs | simd_helpers |
version | 0.1.0 |
source | src |
created_at | 2019-10-06 16:08:31.640539 |
updated_at | 2019-10-06 16:08:31.640539 |
description | Helpers to write more compact simd code |
homepage | |
repository | https://github.com/lu-zero/simd_helpers |
max_upload_size | |
id | 170391 |
size | 2,500 |
cold_for_target_arch
mark a function cold for certain arches onlycold_for_target_feature
[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() { ... }