Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
StackExchange.Redis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
StackExchange.Redis
Commits
01628bb1
Commit
01628bb1
authored
Aug 28, 2018
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add more indirection for the numerics check, because... IL
parent
6ff3c970
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
ConnectionMultiplexer.cs
src/StackExchange.Redis/ConnectionMultiplexer.cs
+7
-1
No files found.
src/StackExchange.Redis/ConnectionMultiplexer.cs
View file @
01628bb1
...
...
@@ -971,7 +971,7 @@ private static void CheckNumericsVectors()
{
try
{
DoNothingWith
(
System
.
Numerics
.
Vector
.
IsHardwareAccelerated
,
System
.
Numerics
.
Vector
<
byte
>.
Count
);
CheckNumericsVectorsImpl
(
);
}
catch
(
Exception
ex
)
{
...
...
@@ -985,6 +985,12 @@ private static void CheckNumericsVectors()
}
}
[
MethodImpl
(
MethodImplOptions
.
NoInlining
)]
private
static
void
CheckNumericsVectorsImpl
()
{
DoNothingWith
(
System
.
Numerics
.
Vector
.
IsHardwareAccelerated
,
System
.
Numerics
.
Vector
<
byte
>.
Count
);
}
[
MethodImpl
(
MethodImplOptions
.
NoInlining
)]
#pragma warning disable RCS1163 // Unused parameter.
private
static
void
DoNothingWith
(
bool
b
,
int
i
)
{
}
#pragma warning restore RCS1163 // Unused parameter.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment