Skip to content

Commit 8e37910

Browse files
committed
mt vec arith
1 parent 30ec128 commit 8e37910

14 files changed

Lines changed: 23820 additions & 2746 deletions

File tree

Coplt.Mathematics.SIMT/scalar/arith/scalar.arith.cs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ public static float_mt4 Two
5555
public static float_mt4 operator/(float_mt4 a, float b) => new(a.vector / b);
5656

5757
[MethodImpl(256 | 512)]
58-
public static float_mt4 operator%(float_mt4 a, float_mt4 b) => new(simd.Rem(a.vector, b.vector));
58+
public static float_mt4 operator%(float_mt4 a, float_mt4 b) => math_mt.rem(a, b);
5959

6060
[MethodImpl(256 | 512)]
61-
public static float_mt4 operator%(float_mt4 a, float b) => new(simd.Rem(a.vector, b));
61+
public static float_mt4 operator%(float_mt4 a, float b) => math_mt.rem(a, b);
6262

6363
[MethodImpl(256 | 512)]
6464
public static float_mt4 operator++(float_mt4 a) => a + One;
@@ -265,10 +265,10 @@ public static float_mt8 Two
265265
public static float_mt8 operator/(float_mt8 a, float b) => new(a.vector / b);
266266

267267
[MethodImpl(256 | 512)]
268-
public static float_mt8 operator%(float_mt8 a, float_mt8 b) => new(simd.Rem(a.vector, b.vector));
268+
public static float_mt8 operator%(float_mt8 a, float_mt8 b) => math_mt.rem(a, b);
269269

270270
[MethodImpl(256 | 512)]
271-
public static float_mt8 operator%(float_mt8 a, float b) => new(simd.Rem(a.vector, b));
271+
public static float_mt8 operator%(float_mt8 a, float b) => math_mt.rem(a, b);
272272

273273
[MethodImpl(256 | 512)]
274274
public static float_mt8 operator++(float_mt8 a) => a + One;
@@ -475,10 +475,10 @@ public static float_mt16 Two
475475
public static float_mt16 operator/(float_mt16 a, float b) => new(a.vector / b);
476476

477477
[MethodImpl(256 | 512)]
478-
public static float_mt16 operator%(float_mt16 a, float_mt16 b) => new(simd.Rem(a.vector, b.vector));
478+
public static float_mt16 operator%(float_mt16 a, float_mt16 b) => math_mt.rem(a, b);
479479

480480
[MethodImpl(256 | 512)]
481-
public static float_mt16 operator%(float_mt16 a, float b) => new(simd.Rem(a.vector, b));
481+
public static float_mt16 operator%(float_mt16 a, float b) => math_mt.rem(a, b);
482482

483483
[MethodImpl(256 | 512)]
484484
public static float_mt16 operator++(float_mt16 a) => a + One;
@@ -685,10 +685,10 @@ public static float_mt32 Two
685685
public static float_mt32 operator/(float_mt32 a, float b) => new(a.vector0 / b, a.vector1 / b);
686686

687687
[MethodImpl(256 | 512)]
688-
public static float_mt32 operator%(float_mt32 a, float_mt32 b) => new(simd.Rem(a.vector0, b.vector0), simd.Rem(a.vector1, b.vector1));
688+
public static float_mt32 operator%(float_mt32 a, float_mt32 b) => math_mt.rem(a, b);
689689

690690
[MethodImpl(256 | 512)]
691-
public static float_mt32 operator%(float_mt32 a, float b) => new(simd.Rem(a.vector0, b), simd.Rem(a.vector1, b));
691+
public static float_mt32 operator%(float_mt32 a, float b) => math_mt.rem(a, b);
692692

693693
[MethodImpl(256 | 512)]
694694
public static float_mt32 operator++(float_mt32 a) => a + One;
@@ -896,10 +896,10 @@ public static double_mt4 Two
896896
public static double_mt4 operator/(double_mt4 a, double b) => new(a.vector / b);
897897

898898
[MethodImpl(256 | 512)]
899-
public static double_mt4 operator%(double_mt4 a, double_mt4 b) => new(simd.Rem(a.vector, b.vector));
899+
public static double_mt4 operator%(double_mt4 a, double_mt4 b) => math_mt.rem(a, b);
900900

901901
[MethodImpl(256 | 512)]
902-
public static double_mt4 operator%(double_mt4 a, double b) => new(simd.Rem(a.vector, b));
902+
public static double_mt4 operator%(double_mt4 a, double b) => math_mt.rem(a, b);
903903

904904
[MethodImpl(256 | 512)]
905905
public static double_mt4 operator++(double_mt4 a) => a + One;
@@ -1106,10 +1106,10 @@ public static double_mt8 Two
11061106
public static double_mt8 operator/(double_mt8 a, double b) => new(a.vector / b);
11071107

11081108
[MethodImpl(256 | 512)]
1109-
public static double_mt8 operator%(double_mt8 a, double_mt8 b) => new(simd.Rem(a.vector, b.vector));
1109+
public static double_mt8 operator%(double_mt8 a, double_mt8 b) => math_mt.rem(a, b);
11101110

11111111
[MethodImpl(256 | 512)]
1112-
public static double_mt8 operator%(double_mt8 a, double b) => new(simd.Rem(a.vector, b));
1112+
public static double_mt8 operator%(double_mt8 a, double b) => math_mt.rem(a, b);
11131113

11141114
[MethodImpl(256 | 512)]
11151115
public static double_mt8 operator++(double_mt8 a) => a + One;
@@ -1316,10 +1316,10 @@ public static double_mt16 Two
13161316
public static double_mt16 operator/(double_mt16 a, double b) => new(a.vector0 / b, a.vector1 / b);
13171317

13181318
[MethodImpl(256 | 512)]
1319-
public static double_mt16 operator%(double_mt16 a, double_mt16 b) => new(simd.Rem(a.vector0, b.vector0), simd.Rem(a.vector1, b.vector1));
1319+
public static double_mt16 operator%(double_mt16 a, double_mt16 b) => math_mt.rem(a, b);
13201320

13211321
[MethodImpl(256 | 512)]
1322-
public static double_mt16 operator%(double_mt16 a, double b) => new(simd.Rem(a.vector0, b), simd.Rem(a.vector1, b));
1322+
public static double_mt16 operator%(double_mt16 a, double b) => math_mt.rem(a, b);
13231323

13241324
[MethodImpl(256 | 512)]
13251325
public static double_mt16 operator++(double_mt16 a) => a + One;
@@ -1527,10 +1527,10 @@ public static double_mt32 Two
15271527
public static double_mt32 operator/(double_mt32 a, double b) => new(a.vector0 / b, a.vector1 / b, a.vector2 / b, a.vector3 / b);
15281528

15291529
[MethodImpl(256 | 512)]
1530-
public static double_mt32 operator%(double_mt32 a, double_mt32 b) => new(simd.Rem(a.vector0, b.vector0), simd.Rem(a.vector1, b.vector1), simd.Rem(a.vector2, b.vector2), simd.Rem(a.vector3, b.vector3));
1530+
public static double_mt32 operator%(double_mt32 a, double_mt32 b) => math_mt.rem(a, b);
15311531

15321532
[MethodImpl(256 | 512)]
1533-
public static double_mt32 operator%(double_mt32 a, double b) => new(simd.Rem(a.vector0, b), simd.Rem(a.vector1, b), simd.Rem(a.vector2, b), simd.Rem(a.vector3, b));
1533+
public static double_mt32 operator%(double_mt32 a, double b) => math_mt.rem(a, b);
15341534

15351535
[MethodImpl(256 | 512)]
15361536
public static double_mt32 operator++(double_mt32 a) => a + One;

0 commit comments

Comments
 (0)