-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: align bbmalloc implementations #1513
Conversation
@@ -1,8 +1,5 @@ | |||
#include "aes128.hpp" | |||
|
|||
#define WASM_EXPORT __attribute__((visibility("default"))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cleaned up the places WASM_EXPORT was used while untangling errors. This now takes advantage that 'extern C' is implied by WASM_EXPORT.
@@ -77,14 +77,6 @@ template <size_t TREE_HEIGHT> void rightfill_with_zeroleaves(std::vector<NT::fr> | |||
|
|||
} // namespace | |||
|
|||
// Note: We don't have a simple way of calling the barretenberg c-bind. | |||
// Mimic bbmalloc behaviour. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Laziness on my part initially. Goes back to hackathon. Easy now at least to provide a way to call the function while iterating circuits.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice cleanup! Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks great. LGTM
This was wrong in circuits. This should have never been duplicated (mea culpa). The implementations drifted with the WASI SDK version 20 push.
Don't think we hit issues with this, but they'd be nasty if we did.