-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Adding missing overloads of the Sse2 and Sse41 Extract methods #21197
Conversation
CC. @fiigii, @CarolEidt, @eerhardt |
/// int _mm_extract_epi8 (__m128i a, const int imm8) | ||
/// PEXTRB reg/m8, xmm, imm8 | ||
/// </summary> | ||
public static byte Extract(Vector128<sbyte> value, byte index) => Extract(value, index); |
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.
should this be public static sbyte Extract
?
This is intentional #17637 |
/// int _mm_extract_epi8 (__m128i a, const int imm8) | ||
/// PEXTRB reg/m8, xmm, imm8 | ||
/// </summary> | ||
public static byte Extract(Vector128<sbyte> value, byte index) => Extract(value, index); |
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.
(super nit) - all the other overloads has the "signed" version listed first, then the "unsigned" version. Do we want to keep it consistent to have the signed version first here?
Ah, right. I forgot about that.... I encountered this when trying to implement the |
Yes, but it is caused by the hardware feature... |
Right. The current issue is that However, we should probably also explicitly discuss and get an official API decision (as we've done with the other cases so far) on what we want to do here:
|
Closing this and opened https://github.com/dotnet/corefx/issues/33696 |
We were missing the signed overloads of a few of these methods.