Skip to content

Commit

Permalink
feat(core): improve I256 implementation (#2180)
Browse files Browse the repository at this point in the history
* feat(core): improve I256 implementation

* chore: reorganize impls

* chore: update docs, add attributes, use Self

* fix: signum

* chore: use inline(always), update implementations

* fix: use usize for shifting, add more shift ops

* feat: make arithmetic ops generic to match U256

* chore: clippy

* chore: return
  • Loading branch information
DaniPopes committed Feb 24, 2023
1 parent 48dc4b1 commit 7e12f3b
Show file tree
Hide file tree
Showing 3 changed files with 920 additions and 639 deletions.
1 change: 1 addition & 0 deletions ethers-core/src/abi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ impl_abi_type_tuple!(19, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S
impl_abi_type_tuple!(20, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T);
impl_abi_type_tuple!(21, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U);

#[allow(clippy::extra_unused_type_parameters)]
#[cfg(test)]
mod tests {
use super::*;
Expand Down

0 comments on commit 7e12f3b

Please sign in to comment.