-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Add snippet
u64::trailing_zeros
BREAKING CHANGE: Remove snippet `u64::index_of_last_nonzero_bit`, which more or less computes the same thing as `trailing_zeros`, but is less efficient, less general since it fails on input “0”, and uses an uncommon name.
- Loading branch information
1 parent
1b1a18e
commit a376c4a
Showing
8 changed files
with
178 additions
and
289 deletions.
There are no files selected for viewing
24 changes: 0 additions & 24 deletions
24
tasm-lib/benchmarks/tasmlib_arithmetic_u64_index_of_last_nonzero_bit.json
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
tasm-lib/benchmarks/tasmlib_arithmetic_u64_trailing_zeros.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[ | ||
{ | ||
"name": "tasmlib_arithmetic_u64_trailing_zeros", | ||
"benchmark_result": { | ||
"clock_cycle_count": 29, | ||
"hash_table_height": 42, | ||
"u32_table_height": 83, | ||
"op_stack_table_height": 17, | ||
"ram_table_height": 0 | ||
}, | ||
"case": "CommonCase" | ||
}, | ||
{ | ||
"name": "tasmlib_arithmetic_u64_trailing_zeros", | ||
"benchmark_result": { | ||
"clock_cycle_count": 30, | ||
"hash_table_height": 42, | ||
"u32_table_height": 99, | ||
"op_stack_table_height": 19, | ||
"ram_table_height": 0 | ||
}, | ||
"case": "WorstCase" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
254 changes: 0 additions & 254 deletions
254
tasm-lib/src/arithmetic/u64/index_of_last_nonzero_bit.rs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.