#simd #proc-macro #helper #write #compact #target #arch

simd_helpers

编写更紧凑的simd代码的助手

1个不稳定版本

0.1.0 2019年10月6日

#45 in #arch

Download history 23125/week @ 2024-03-14 36419/week @ 2024-03-21 35469/week @ 2024-03-28 35353/week @ 2024-04-04 37225/week @ 2024-04-11 36276/week @ 2024-04-18 43105/week @ 2024-04-25 49848/week @ 2024-05-02 47733/week @ 2024-05-09 48266/week @ 2024-05-16 36667/week @ 2024-05-23 33566/week @ 2024-05-30 34237/week @ 2024-06-06 39596/week @ 2024-06-13 40030/week @ 2024-06-20 36587/week @ 2024-06-27

155,996 每月下载量
32 个crate中(通过 rav1e)使用

MIT 许可

3KB

编写更紧凑的simd代码的助手

已实现

  • cold_for_target_arch 仅对某些架构标记函数为冷
  • cold_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() { ... }

依赖关系

~82KB