Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add backend for 32 bit targets with wide multiplication?

オープン
#133 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
rust, wasm
領域
cryptography

調査の方向性

まず、polyval で使用されている既存の 32 ビット soft backend を調査し、次に WASM32 と RISC-V が wide multiplication をどのように提供しているかを比較します。提案された実装に必要な backend の境界と target 条件を特定し、結果として得られる backend が polyval の動作を維持しつつ、wide multiplication を備えた target のサポートを向上させることを確認します。

索引モデルが issue の本文から書いたものです。

説明

Currently polyval (and thus crates built on top of it) uses 32-bit soft backend which was written with targets without wide multiplication in mind. However, this code can be quite inefficient for targets which do support wide multiplication, such as:

  • WASM32: u32s can be extended to 64 bits and multiplied using i64.mul.
  • RISC-V: wide multiplication is implemented by combining MULHU and MUL operations (hardware may fuse them later into a single instruction).

Also it may be worth to add a soft backend for 64-bit targets without wide multiplication? Though right now I can't name a target for which it could be useful.

主要言語
Rust
スター
39
フォーク
23
平均マージ
1時間 57分
マージ済み PR(30日)
2

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

RustCrypto/universal-hashes のほかの issue

RustCrypto/universal-hashes の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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