-
Notifications
You must be signed in to change notification settings - Fork 206
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
FE_DOWNWARD, FE_UPWARD and FE_TOWARDZERO are not defined #85
Comments
Thanks! WebAssembly itself only supports round-to-nearest. It doesn't support any other rounding modes. To reflect this, WASI libc only defines You're welcome to manually define them, although note that this won't enable the platform to respect these rounding modes, so you may see floating-point results with incorrect rounding. |
Ah, this is good to know! Do you see the other modes ever making it to the spec? |
It's possible. There are some ideas about how this might work sketched out here, though at this time there isn't yet an active proposal for them, so it's difficult to say when this might advance. |
Thanks for the insight! Feel free to close this if appropriate. Cheers! |
Hey there! I'm having quite some fun with WASI, kudos for the nice work!
Today while porting a library (QuickJS specifically) I ran into this. As the title says, those are not defined in
wasi-sdk/share/sysroot/include/bits/fenv.h
. I manually defined them and compilation continued though :-)The text was updated successfully, but these errors were encountered: