-
Couldn't load subscription status.
- Fork 3.4k
Remove unnecessary functions from jsmath.c. NFC #23143
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
|
See emscripten/system/include/emscripten/em_math.h Lines 25 to 36 in 1171ada
|
e724526 to
f421b08
Compare
| }) | ||
|
|
||
| double nearbyint(double x) { return rint(x); } | ||
| float nearbyintf(float x) { return rintf(x); } |
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.
These two are already implement in musl in terms of rint and rintf
f421b08 to
1c9b29d
Compare
See the comments at the top of `emscripten/js_math.h` for why JS versions of these functions are not needed. As a followup I plan to map `jsmath.c` functions to `em_math.h` functions instead of using EM_JS here. See emscripten-core#19284
1c9b29d to
c35b7e0
Compare
See the comments at the top of `emscripten/js_math.h` for why JS versions of these functions are not needed. As a followup I plan to map `jsmath.c` functions to `em_math.h` functions instead of using EM_JS here. See emscripten-core#19284
See the comments at the top of
emscripten/js_math.hfor why JS versions of these functions are not needed.As a followup I plan to map
jsmath.cfunctions toem_math.hfunctions instead of using EM_JS here.See #19284