Skip to content
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

Use em_math.h functions in jsmath.c #23147

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Dec 13, 2024

Unlike the current EM_JS implementations, the em_math.h functions map directly to Math.xxx without a wrapper function.

The other advantage of doing it this way is that we avoid duplicate implementations of all these functions.

Fixes: #19284

Unlike the current EM_JS implementations, the `em_math.h` functions map
directly to `Math.xxx` without a wrapper function.

The other advantage of doing it this way is that we avoid duplicate
implementations of all these functions.

Fixes: emscripten-core#19284
@sbc100 sbc100 requested a review from kripken December 13, 2024 00:28
@sbc100 sbc100 enabled auto-merge (squash) December 13, 2024 00:35
@sbc100 sbc100 merged commit 5efa98e into emscripten-core:main Dec 13, 2024
28 checks passed
@sbc100 sbc100 deleted the jsmath_remove_em_js branch December 13, 2024 01:37
hedwigz pushed a commit to hedwigz/emscripten that referenced this pull request Dec 18, 2024
Unlike the current EM_JS implementations, the `em_math.h` functions map
directly to `Math.xxx` without a wrapper function.

The other advantage of doing it this way is that we avoid duplicate
implementations of all these functions.

Fixes: emscripten-core#19284
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.

Very poor performance of trigonometric functions
2 participants