-
-
Notifications
You must be signed in to change notification settings - Fork 439
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
WhiteBlackGoose
left a comment
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 🦆
| { | ||
| 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
| { | ||
| 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
IsFiniteIsInfinityIsNaNIsNegativeIsNegativeInfinityIsNormalIsPositiveInfinitySignTests
IsFiniteIsInfinityIsNaNIsNegativeIsNegativeInfinityIsNormalIsPositiveInfinitySignBenchmarks
State of number
IsFiniteIsInfinityIsNaNIsNegativeIsNegativeInfinityIsNormalIsPositiveInfinitySignOther