Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

[No Merge]Adding SSE4.2 STTNI intrinsic APIs#19958

Closed
fiigii wants to merge 1 commit into
dotnet:masterfrom
fiigii:sse42
Closed

[No Merge]Adding SSE4.2 STTNI intrinsic APIs#19958
fiigii wants to merge 1 commit into
dotnet:masterfrom
fiigii:sse42

Conversation

@fiigii
Copy link
Copy Markdown

@fiigii fiigii commented Sep 14, 2018

This PR adds SSE4.2 STTNI intrinsic APIs that need to be reviewed.

@fiigii
Copy link
Copy Markdown
Author

fiigii commented Sep 14, 2018

@CarolEidt @tannergooding @eerhardt PTAL

@4creators
Copy link
Copy Markdown

Could we simplify enum names? IndexStringComparisonMode.NegativeUsefulResult is a bit large and not very much self documenting name.

Comment thread src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Enums.cs Outdated
Comment thread src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Enums.cs Outdated
Copy link
Copy Markdown

@CarolEidt CarolEidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should have a "Redesign" PR in coreclr.
I think we should first discuss the kinds of design decisions we're talking about in the corefx issue (https://github.com/dotnet/corefx/issues/30373)

Comment thread src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/X86/Enums.cs Outdated
/// PCMPISTRI xmm, xmm/m128, imm8
/// int _mm_cmpistrs (__m128i a, __m128i b, const int imm8)
/// </summary>
public static bool CompareNoMatchAndRightNotTerminated(Vector128<sbyte> left, Vector128<sbyte> right, StringComparisonMode mode) { throw new PlatformNotSupportedException(); }
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is so verbose - since we have RightTerminated doesn't it make sense for the lack of that modifier to imply that it is not right terminated?
Also, could we think of a better way to express CompareNoMatch?

@fiigii fiigii changed the title Redesign SSE4.2 STTNI intrinsic APIs [No Merge]Adding SSE4.2 STTNI intrinsic APIs Nov 12, 2018
@tannergooding
Copy link
Copy Markdown
Member

@fiigii, can this be closed for now; until we have a better design?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants