Skip to content

Commit e0ef6ca

Browse files
committed
refactor!: Remove trivial snippet u64::Eq
Migration guide: use `DataType::U64.compare()`.
1 parent 16a1c1c commit e0ef6ca

9 files changed

+57
-351
lines changed

tasm-lib/benchmarks/tasmlib_mmr_calculate_new_peaks_from_leaf_mutation.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
{
33
"name": "tasmlib_mmr_calculate_new_peaks_from_leaf_mutation",
44
"benchmark_result": {
5-
"clock_cycle_count": 2436,
6-
"hash_table_height": 426,
5+
"clock_cycle_count": 2332,
6+
"hash_table_height": 414,
77
"u32_table_height": 1265,
88
"op_stack_table_height": 1584,
99
"ram_table_height": 192
@@ -13,8 +13,8 @@
1313
{
1414
"name": "tasmlib_mmr_calculate_new_peaks_from_leaf_mutation",
1515
"benchmark_result": {
16-
"clock_cycle_count": 4650,
17-
"hash_table_height": 612,
16+
"clock_cycle_count": 4484,
17+
"hash_table_height": 600,
1818
"u32_table_height": 2160,
1919
"op_stack_table_height": 3082,
2020
"ram_table_height": 378

tasm-lib/benchmarks/tasmlib_mmr_verify_from_secret_in_leaf_index_on_stack.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
{
33
"name": "tasmlib_mmr_verify_from_secret_in_leaf_index_on_stack",
44
"benchmark_result": {
5-
"clock_cycle_count": 964,
6-
"hash_table_height": 360,
5+
"clock_cycle_count": 898,
6+
"hash_table_height": 354,
77
"u32_table_height": 829,
88
"op_stack_table_height": 494,
99
"ram_table_height": 6
@@ -13,8 +13,8 @@
1313
{
1414
"name": "tasmlib_mmr_verify_from_secret_in_leaf_index_on_stack",
1515
"benchmark_result": {
16-
"clock_cycle_count": 1714,
17-
"hash_table_height": 540,
16+
"clock_cycle_count": 1588,
17+
"hash_table_height": 534,
1818
"u32_table_height": 945,
1919
"op_stack_table_height": 854,
2020
"ram_table_height": 6

tasm-lib/benchmarks/tasmlib_mmr_verify_from_secret_in_secret_leaf_index.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
"name": "tasmlib_mmr_verify_from_secret_in_secret_leaf_index",
44
"benchmark_result": {
5-
"clock_cycle_count": 976,
5+
"clock_cycle_count": 910,
66
"hash_table_height": 372,
77
"u32_table_height": 796,
88
"op_stack_table_height": 500,
@@ -13,7 +13,7 @@
1313
{
1414
"name": "tasmlib_mmr_verify_from_secret_in_secret_leaf_index",
1515
"benchmark_result": {
16-
"clock_cycle_count": 1726,
16+
"clock_cycle_count": 1600,
1717
"hash_table_height": 552,
1818
"u32_table_height": 1010,
1919
"op_stack_table_height": 860,

tasm-lib/src/arithmetic/u64.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ pub mod and;
33
pub mod decr;
44
pub mod div2;
55
pub mod div_mod;
6-
pub mod eq;
76
pub mod incr;
87
pub mod leading_zeros;
98
pub mod log_2_floor;

tasm-lib/src/arithmetic/u64/eq.rs

Lines changed: 0 additions & 290 deletions
This file was deleted.

tasm-lib/src/exported_snippets.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ pub fn name_to_snippet(fn_name: &str) -> Option<Box<dyn BasicSnippet>> {
104104
"tasmlib_arithmetic_u64_decr" => Some(Box::new(u64::decr::Decr)),
105105
"tasmlib_arithmetic_u64_div2" => Some(Box::new(u64::div2::Div2)),
106106
"tasmlib_arithmetic_u64_div_mod" => Some(Box::new(u64::div_mod::DivMod)),
107-
"tasmlib_arithmetic_u64_eq" => Some(Box::new(u64::eq::Eq)),
108107
"tasmlib_arithmetic_u64_incr" => Some(Box::new(u64::incr::Incr)),
109108
"tasmlib_arithmetic_u64_leading_zeros" => Some(Box::new(u64::leading_zeros::LeadingZeros)),
110109
"tasmlib_arithmetic_u64_trailing_zeros" => {

0 commit comments

Comments
 (0)