-
Notifications
You must be signed in to change notification settings - Fork 211
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
Add tgamma and tgammaf #482
Conversation
Not sure I fully understand the failure, but guessing it may be due to #[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)] |
I believe the issue that is this line in n = (n + 1) / 2; In debug builds this introduces a call to panic because we still emit a check against division by zero. This can be fixed by using the |
Thanks @Amanieu! I updated the call in this branch. It looks like there may be another panic. env RUSTFLAGS='-Ccodegen-units=1' cargo test --all --release --features 'unstable musl-reference-tests' (on Ubuntu 20.04) gives:
Will try to track it down, but please let me know if you have any ideas. Edit: Looks like it may be in the |
Looks like it was indexing. Replaced with |
I've merged the libm PR, you can update the submodule in this PR. |
Great, thanks! Looks like it fixed the test suite. |
I published a new version of the crate, you can now make PR to rust-lang/rust to update it there. |
Perfect, I appreciate all the help (first time contributing to Rust). |
For rust-lang/rust#99747