Feat/add u256 - #30
Conversation
refactored normalize_to_threshold to calculate_normalizer_base_64; made algorithm_d function private
added tests for u256
LesterEvSe
left a comment
There was a problem hiding this comment.
We also have the eq_128 function, but I couldn't find eq_256. So it would be better to add it as well
|
The
|
We have a jet for |
LesterEvSe
left a comment
There was a problem hiding this comment.
ACK 7ae47db; tested locally with simplex test --test-threads 8
* Convert functions for u8 (#34) * added convert functions for u8 * commented out eq_256 (will be available with pr#30) * added split and safe_convert functions * refactored widening functions * linting * refactored u8 functions * typo * removed unused import * Convert functions for u1 (#35) * added assert_eq_bool * added convert functions for u1 * Convert functions for u16 (#36) * added convert functions for u16 * typo * added convert functions for u32 (#37) * Feat/add u256 (#30) * added full_add_128; refactored normalize_to_threshold to calculate_normalizer_base_64; made algorithm_d function private * added functions for uint256 * added U256Wrapper for u256 tests; added tests for u256 * fixed typo * splitted u256 arithmetic tests into two batches for faster tests * refactored split_256_into_64 * added full_sub_128 * linting * splitted u256 arithmetic tests into more batches * typo * removed unnecessary eq_256 * linting * review fixes: typos, helper optimization * renamed arithmetic tests files into more specific ones * linting for consistency * refactoring and typos * added missing check for division algorithm * added mul_128_64, mul_256_64 and mul_256_128 for optimization * doc fixes and small refactoring * Сonvert functions for u64 (#41) * added convert functions for u64 * typo * returned u32 typo back, it will be fixed in upcoming pr; renamed to -> into for u64 * added missing split_u64_into_u8 * fixed typo: `split to` -> `split into` (#43) * Convert functions for u128 (#42) * moved u128 to math file * added convert functions for u128 * typo * fixed typo * added missing split_u128 functions * resolved todo; utilized assert_eq in tests * fixed path * splitted math file into comparison and bit * renamed arithmetic test to basic math test for avoid ambiguity * Convert functions for u256 (#47) * added convert functions for u256; splitted u256_math into bit and comparison * updated readme * bumped simplex version * Update README * Bump Simplex version (#49) * quick reame fix --------- Co-authored-by: Yuliia Aritkulova <94910987+aritkulova@users.noreply.github.com> Co-authored-by: Artem Chystiakov <artem.ch31@gmail.com>
Uh oh!
There was an error while loading. Please reload this page.