-
-
Notifications
You must be signed in to change notification settings - Fork 436
SIMD for Silk.NET.Math #3 #684
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
SIMD for Silk.NET.Math #3 #684
Conversation
if (typeof(T) == typeof(int)) | ||
if (typeof(T) == typeof(sbyte)) | ||
{ | ||
return (int) (object) f < 0; | ||
return (sbyte) (object) f < 0; |
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.
A bug from scalar
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.
There turns out a few bugs in scalar 🦆
@@ -476,7 +487,13 @@ static bool Float(T f) | |||
{ | |||
if (typeof(T) == typeof(float)) | |||
{ | |||
return IsNormal((float) (object) f); |
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.
A bug from scalar
@@ -487,7 +504,13 @@ static bool Double(T f) | |||
{ | |||
if (typeof(T) == typeof(double)) | |||
{ | |||
return IsNormal((double) (object) f); |
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.
and another bug from scalar
Benchmark reportsSilk.NET.Maths.Benchmark.SimdBenchmarks-asm.md Some methods are not inlined. Investigating... |
Summary of the PR
Working on #666
Tasks
IsFinite
IsInfinity
IsNaN
IsNegative
IsNegativeInfinity
IsNormal
IsPositiveInfinity
Sign
Tests
IsFinite
IsInfinity
IsNaN
IsNegative
IsNegativeInfinity
IsNormal
IsPositiveInfinity
Sign
Benchmarks
State of number
IsFinite
IsInfinity
IsNaN
IsNegative
IsNegativeInfinity
IsNormal
IsPositiveInfinity
Sign
Other