-
-
Notifications
You must be signed in to change notification settings - Fork 813
feat: add C implementation for math/base/special/log2
#1717
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
Conversation
@stdlib/math/base/special/log2
math/base/special/log2
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.
This is good. Requested few changes.
lib/node_modules/@stdlib/math/base/special/log2/benchmark/c/native/benchmark.c
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/math/base/special/log2/lib/polyval_p.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/math/base/special/log2/lib/polyval_q.js
Outdated
Show resolved
Hide resolved
Signed-off-by: Pranav <[email protected]>
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.
Tested locally, this is good to merge. Thanks @aman-095 !
Thanks @Pranavchiku looking forward to more contributions. |
Signed-off-by: Athan <[email protected]>
Signed-off-by: Athan <[email protected]>
lib/node_modules/@stdlib/math/base/special/log2/examples/c/example.c
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/math/base/special/log2/include/stdlib/math/base/special/log2.h
Outdated
Show resolved
Hide resolved
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.
Thanks for working on this, @aman-095. I believe there is a bug in the implementation and there are a few style/doc changes which need to be made before this can be merged.
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.
Just a minor comment, rest all looks good.
Signed-off-by: Pranav <[email protected]>
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.
Looks good to me.
Signed-off-by: Athan <[email protected]>
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.
The current implementation matches the JS implementation, with the exception of integer typing. Would be good to get that sorted before merging.
@kgryte applied all changes please review. |
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.
Thanks! Let's land this one.
Description
This RFC proposes adding native C implementation for
@stdlib/math/base/special/log2
Questions
No.
Other
No.
Checklist
@stdlib-js/reviewers