1
0
Fork 0
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:
MineGame159 2023-04-02 15:07:51 +02:00
parent bf36bf4b95
commit ef5f336ef7

View file

@ -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]