-
Notifications
You must be signed in to change notification settings - Fork 676
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
Math for embed devices #87
Comments
It may not work on stm32, because it only supports single precision floating point format, not double. It seems that the DOUBLE_TO_ECMA_NUMBER_T macro should be implemented manually as low-level function. #33 |
Hi, I have run the |
Hi, I think the reason for the link failure is that jerry uses the fdlibm (which is in the third-party dir) and you don't pass as a library when linking the final target. Also note that the fdlibm is a C project and not a C++ one, I saw that you only use |
Description for this issue was too short. Forgive me for insufficient explanation. As there is a patch for this problem, #91, I've done with below steps in manual
But there are VFP issues.
|
Hi @seanshpark, |
@seanshpark could you try this patch? https://gist.github.com/galpeter/4383e5d2a1c78c9a777d |
@galpeter , thank you for the patch. please make a pull request to iotjs. |
For me after applying the patch the VFP errors were gone, I'll do the pull request. |
It's working ok for me too with jerryscript-project/iotjs#52. Thank you. |
NuttX doesn't provide libm and have link problem.
fabs, acos, asin, atan, atan2, ceil, cos, exp, floor, log, pow, sin, sqrt and tan are undefined.
I'm posting this issue for discussion.
The text was updated successfully, but these errors were encountered: