mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-26 19:48:01 +02:00
Add Runtime.Features to detect SIMD instruction set
This commit is contained in:
parent
893beb432f
commit
7dad948f20
5 changed files with 160 additions and 14 deletions
|
@ -2,8 +2,7 @@ namespace System.Numerics.X86
|
|||
{
|
||||
static class SSE
|
||||
{
|
||||
[Intrinsic(":add_ps")]
|
||||
public static extern v128 add_ps(v128 a, v128 b);
|
||||
public static bool IsSupported => Runtime.Features.SSE;
|
||||
|
||||
[Inline]
|
||||
public static v128 add_ss(v128 a, v128 b)
|
||||
|
|
|
@ -2,5 +2,6 @@ namespace System.Numerics.X86
|
|||
{
|
||||
static class SSE2
|
||||
{
|
||||
public static bool IsSupported => Runtime.Features.SSE2;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue