0xMiden / 0xMiden/air-script

Convert consts to field elements from u32 if possible

未關閉
#131 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
codegen
主要語言
Rust
星號
96
分支
39
PR 合併指標
30 天內沒有已合併 PR

描述

If we know that a constant value is smaller than u32 we should try to use conversions from u32. For example: E::from(2_u32) instead of E::from(2_u64) as we may come up with a more efficient reduction for smaller values later on.

_Originally posted by @bobbinth in https://github.com/0xPolygonMiden/air-script/pull/58#discussion_r1022350246_

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。