You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 11, 2024. It is now read-only.
On 2020-09-24 @recmo wrote in f724670 “Optimize small exponents”:
Test where the tipping point is
(_,0) => "0x01".to_owned(),(a,1) => a.soldity_encode(memory_layout),(a, e)if*e <= 4 => {format!("exp{}({})", e, a.soldity_encode(memory_layout))}// TODO: Test where the tipping point is(a, e) if *e < 16 => {
format!("small_expmod({}, {})",
a.soldity_encode(memory_layout),
e.to_string()