Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request removes the usage of
try ... catch
for control flow in theget_evaluation_domain
function.This fixes the problems described by:
When exception control flow is disabled at the compiler-level, either by choice (to generally speed things up) or by requirement (e.g. the Cheerp WASM compiler doesn't support catching exceptions), then the code either
abort()
or picks the wrong option. This was also triggering misbehaviour with optimised builds on OSX with Clang (where the wrong option is picked, due to buggy catch handling).This commit also comments-out the comment in the inline-assembly in
basic_radix2_domain_aux.tcc
, which was breaking Emscripten WASM builds due to it lacking support for inline assembly (of any kind).There is a different patch in MinaProtocol/mina#1419 but it breaks compatibility with the API, this patch remains API compatibility.
I added the
get_root_of_unity_will_throw
function, to determine if getting the root of unity will throw, however I need to avoid duplicating the code at:I will make these changes to be included in the pull request.