-
Notifications
You must be signed in to change notification settings - Fork 276
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 SSE2 trivial aliases and conversions. #165
Conversation
#[inline(always)] | ||
#[target_feature = "+sse2"] | ||
#[cfg_attr(test, assert_instr(cvttsd2si))] | ||
pub unsafe fn _mm_cvttsd_si64x(a: f64x2) -> i64 { _mm_cvttsd_si64(a) } |
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.
Can you add a test for this please? I know it's an alias, but we should try to cover the full public API.
#[inline(always)] | ||
#[target_feature = "+sse2"] | ||
#[cfg_attr(test, assert_instr(cvtsd2si))] | ||
pub unsafe fn _mm_cvtsd_si64x(a: f64x2) -> i64 { _mm_cvtsd_si64(a) } |
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.
Can you add a test for this please? I know it's an alias, but we should try to cover the full public API.
`_mm_cvtsd_f64`, `_mm_cvtsd_si64x` and `_mm_cvttsd_si64x`. See rust-lang#40.
Thanks for your review! |
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.
Thanks! Note, I think repetition is fine, but I'm OK with this too!
👍 |
_mm_cvtsd_f64
,_mm_cvtsd_si64x
and_mm_cvttsd_si64x
.See #40.