mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-20 17:08:00 +02:00
Add basic math methods to SSE
This commit is contained in:
parent
bf36bf4b95
commit
ef5f336ef7
1 changed files with 9 additions and 0 deletions
|
@ -4,6 +4,15 @@ namespace System.Numerics.X86
|
|||
{
|
||||
public static bool IsSupported => Runtime.Features.SSE;
|
||||
|
||||
[Inline]
|
||||
public static v128 add_ps(v128 a, v128 b) => (.) ((float4) a + (float4) b);
|
||||
[Inline]
|
||||
public static v128 sub_ps(v128 a, v128 b) => (.) ((float4) a - (float4) b);
|
||||
[Inline]
|
||||
public static v128 mul_ps(v128 a, v128 b) => (.) ((float4) a * (float4) b);
|
||||
[Inline]
|
||||
public static v128 div_ps(v128 a, v128 b) => (.) ((float4) a / (float4) b);
|
||||
|
||||
[Inline]
|
||||
public static v128 min_ps(v128 a, v128 b) => (.) float4.min((.) a, (.) b);
|
||||
[Inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue