Skip to content

Conversation

@radik878
Copy link

@radik878 radik878 commented Dec 1, 2025

Simplify the computation of xs[3] in isogeny() by replacing a one-iteration loop with xs[3] = xs[2] * x. This clarifies intent, avoids constructing a Range for a single step, and keeps the faster square() for x^2. No functional impact; tests should behave identically.

@tarcieri
Copy link
Member

tarcieri commented Dec 1, 2025

Looks OK at first glance.

cc @daxpedda

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