Skip to content

Commit

Permalink
Use native shift in block_to_field wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
x-mass authored and martun committed May 6, 2024
1 parent 45b1d96 commit 94cf3bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ namespace nil {
std::size_t field_bits_left_ = Field::modulus_bits;
auto tmp_iter = input_container_l_;
for (std::size_t i = 0; i < container_elements_per_field_element_ && tmp_iter != input_container_r_; ++i) {
field_element *= 1 << input_value_bits_; // TODO: add shift operators to field values
field_element.data <<= input_value_bits_; // TODO: add shift operators to field values
field_element += *tmp_iter++;
field_bits_left_ -= input_value_bits_;
}
Expand Down

0 comments on commit 94cf3bf

Please sign in to comment.