Skip to content

Feat/add u256 - #30

Open
aritkulova wants to merge 16 commits into
devfrom
feat/add-u256
Open

Feat/add u256#30
aritkulova wants to merge 16 commits into
devfrom
feat/add-u256

Conversation

@aritkulova

@aritkulova aritkulova commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator
  • This PR suggests a bug fix and I've added the necessary tests.
  • This PR introduces a new feature and I've discussed the update in an Issue or with the team.
  • This PR is just a minor change like a typo fix.

refactored normalize_to_threshold to calculate_normalizer_base_64;
made algorithm_d function private
@aritkulova
aritkulova requested a review from Hrom131 August 1, 2026 13:50
@aritkulova aritkulova self-assigned this Aug 1, 2026
@Hrom131
Hrom131 changed the base branch from master to dev August 3, 2026 09:26

@LesterEvSe LesterEvSe left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also have the eq_128 function, but I couldn't find eq_256. So it would be better to add it as well

Comment thread simf/lib/u256.simf
Comment thread tests/common/helper.rs Outdated
Comment thread simf/lib/u256.simf Outdated
Comment thread tests/u256_test_arithmetic_2.rs Outdated
@LesterEvSe

Copy link
Copy Markdown
Collaborator

The u256_test_arithmetic_N naming makes it hard to tell which operations a file covers and where a given check lives. Let's split the tests by operation instead. Rather than the current naming, I suggest:

u256_test_compareis_zero / lt / le / eq
u256_test_addsplit / add / add_128
u256_test_mulsub / mul
u256_test_divdiv_mod_256_64 / div_mod_256_128 / div_mod_256 / div_256

Comment thread tests/common/helper.rs
Comment thread simf/u128_test_arithmetic.simf Outdated
@aritkulova

Copy link
Copy Markdown
Collaborator Author

We also have the eq_128 function, but I couldn't find eq_256. So it would be better to add it as well

We have a jet for eq_256, which is missing for u128

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants