-
Notifications
You must be signed in to change notification settings - Fork 97
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 sin and cos #80
Add sin and cos #80
Conversation
7011ad4
to
1fa5b83
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except for the removal of the re-exports.
src/math/mod.rs
Outdated
mod rem_pio2_large; | ||
mod rem_pio2f; | ||
|
||
use self::{k_cosf::k_cosf, k_sinf::k_sinf, rem_pio2_large::rem_pio2_large, rem_pio2f::rem_pio2f}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These re-export are OK to keep as they are private and won't become part of this crate public API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I ended up removing that really because it was the single line and I hadn't needed it, I'll change things up so that it's multiple lines.
Thanks @porglezomp bors r+ |
Build failed |
src/math/rem_pio2.rs
Outdated
return (n, ty[0], ty[1]); | ||
} | ||
|
||
fn rem_pio2_large(_tx: &[f64], _ty: &mut [f64; 3], _e0: i32, _prec: i32) -> i32 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this needs to be replaced with an import, I think
The cos implementation has test failures:
Note that the literals are integer representations of floats and need to be converted to floats using |
I think I fixed those issues, the x1p24 constant was wrong. Any idea why CI is currently not running on this PR? |
I disabled testing PRs because they were using up too much CI time. Let's
see if this works from email.
bors try
…On Sat, Jul 14, 2018, 5:56 PM C Jones ***@***.***> wrote:
I think I fixed those issues, the x1p24 constant was wrong. Any idea why
CI is currently not running on this PR?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#80 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AEySZS6z35dvAcpNFiM4KtU4_Q_YZ8Wzks5uGncPgaJpZM4VPtsp>
.
|
bors try |
bors r+ |
Build succeeded |
Closes #11
Closes #33