AdamNiederer / AdamNiederer/faster

u64x8 iterator by zero-extending each byte in a [u8] slice

オープン
#59 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
1.6k
フォーク
52
PR マージ指標
30日以内にマージされた PR はありません

説明

```rust
vec![0u8; 100000].iter().map(|&x| {
x as u64 * x as u64
}).sum::();
```
is essentially what I'd like to use this crate to SIMD-accelerate.

The issue I'm bumping into is reading the slice as `u8x8` such that I can then use [`>::from`](https://rust-lang-nursery.github.io/packed_simd/packed_simd/type.u8x8.html#impl-From%3Cu8x8%3E-7) to cast it.

What is the best way to do this currently?

Related to #8, #32 and #46.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。