-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
setrounding/round interaction #26801
Comments
The rounding mode affects rounding direction in case of ties. If you want to round down, use the |
I'm not sure what you mean by ties in this case. We currently have
It seems inconsistent to honor |
I know, it's annoying, but there's not much we can do. The problem is that LLVM doesn't expose a rounding intrinsic which matches One thing we may want to do is not export |
I agree that the idea for global rounding control is bad. Since it is exported I was just tying to make it consistent, but without support from llvm I understand your choice. |
It was added recently (http://llvm.org/docs/LangRef.html#llvm-experimental-constrained-rint-intrinsic), although support is likely still considered experimental and limited |
Not quite: the run time behaviour still depends on the global rounding mode, it just controls the compile time behaviour. |
|
I expect the last 2 to be
1.0
/1
.The text was updated successfully, but these errors were encountered: