Skip to content

fast poly eval with precomputation#4

Open
shibammukherjee wants to merge 1 commit intodkales:mainfrom
shibammukherjee:fastpolyeval
Open

fast poly eval with precomputation#4
shibammukherjee wants to merge 1 commit intodkales:mainfrom
shibammukherjee:fastpolyeval

Conversation

@shibammukherjee
Copy link

fast poly eval with precomputation

return buffer;
}

uint64_t GF2E::get_data() const { return this->data; }
Copy link
Owner

Choose a reason for hiding this comment

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

This should be removed here too.

// normal optmized polynomial evaluation with precomputation optmization
GF2E eval_fast(const std::vector<GF2E> &poly, const std::vector<GF2E> &x_pow_n,
const size_t lambda) {
__m128i acc = _mm_set_epi64x(0, poly[0].get_data());
Copy link
Owner

Choose a reason for hiding this comment

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

Can this not just call dot_product? Then we don't need get_data, and lamda at all.

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