Skip to content

Commit b44c9fa

Browse files
committed
Removing the 'unsafe' keyword from the intrinsic definitions
Change-Id: I1ecc680afa0d15dc701395cd83b383b1282fcdc2
1 parent 28a936a commit b44c9fa

File tree

2 files changed

+40
-40
lines changed

2 files changed

+40
-40
lines changed

src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Arm/Sve2.PlatformNotSupported.cs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,125 +34,125 @@ internal Arm64() { }
3434
/// svuint8_t svaba[_u8](svuint8_t op1, svuint8_t op2, svuint8_t op3)
3535
/// UABA Ztied1.B, Zop2.B, Zop3.B
3636
/// </summary>
37-
public static unsafe Vector<byte> AbsoluteDifferenceAdd(Vector<byte> addend, Vector<byte> left, Vector<byte> right) { throw new PlatformNotSupportedException(); }
37+
public static Vector<byte> AbsoluteDifferenceAdd(Vector<byte> addend, Vector<byte> left, Vector<byte> right) { throw new PlatformNotSupportedException(); }
3838

3939
/// <summary>
4040
/// svint16_t svaba[_s16](svint16_t op1, svint16_t op2, svint16_t op3)
4141
/// SABA Ztied1.H, Zop2.H, Zop3.H
4242
/// </summary>
43-
public static unsafe Vector<short> AbsoluteDifferenceAdd(Vector<short> addend, Vector<short> left, Vector<short> right) { throw new PlatformNotSupportedException(); }
43+
public static Vector<short> AbsoluteDifferenceAdd(Vector<short> addend, Vector<short> left, Vector<short> right) { throw new PlatformNotSupportedException(); }
4444

4545
/// <summary>
4646
/// svint32_t svaba[_s32](svint32_t op1, svint32_t op2, svint32_t op3)
4747
/// SABA Ztied1.S, Zop2.S, Zop3.S
4848
/// </summary>
49-
public static unsafe Vector<int> AbsoluteDifferenceAdd(Vector<int> addend, Vector<int> left, Vector<int> right) { throw new PlatformNotSupportedException(); }
49+
public static Vector<int> AbsoluteDifferenceAdd(Vector<int> addend, Vector<int> left, Vector<int> right) { throw new PlatformNotSupportedException(); }
5050

5151
/// <summary>
5252
/// svint64_t svaba[_s64](svint64_t op1, svint64_t op2, svint64_t op3)
5353
/// SABA Ztied1.D, Zop2.D, Zop3.D
5454
/// </summary>
55-
public static unsafe Vector<long> AbsoluteDifferenceAdd(Vector<long> addend, Vector<long> left, Vector<long> right) { throw new PlatformNotSupportedException(); }
55+
public static Vector<long> AbsoluteDifferenceAdd(Vector<long> addend, Vector<long> left, Vector<long> right) { throw new PlatformNotSupportedException(); }
5656

5757
/// <summary>
5858
/// svint8_t svaba[_s8](svint8_t op1, svint8_t op2, svint8_t op3)
5959
/// SABA Ztied1.B, Zop2.B, Zop3.B
6060
/// </summary>
61-
public static unsafe Vector<sbyte> AbsoluteDifferenceAdd(Vector<sbyte> addend, Vector<sbyte> left, Vector<sbyte> right) { throw new PlatformNotSupportedException(); }
61+
public static Vector<sbyte> AbsoluteDifferenceAdd(Vector<sbyte> addend, Vector<sbyte> left, Vector<sbyte> right) { throw new PlatformNotSupportedException(); }
6262

6363
/// <summary>
6464
/// svuint16_t svaba[_u16](svuint16_t op1, svuint16_t op2, svuint16_t op3)
6565
/// UABA Ztied1.H, Zop2.H, Zop3.H
6666
/// </summary>
67-
public static unsafe Vector<ushort> AbsoluteDifferenceAdd(Vector<ushort> addend, Vector<ushort> left, Vector<ushort> right) { throw new PlatformNotSupportedException(); }
67+
public static Vector<ushort> AbsoluteDifferenceAdd(Vector<ushort> addend, Vector<ushort> left, Vector<ushort> right) { throw new PlatformNotSupportedException(); }
6868

6969
/// <summary>
7070
/// svuint32_t svaba[_u32](svuint32_t op1, svuint32_t op2, svuint32_t op3)
7171
/// UABA Ztied1.S, Zop2.S, Zop3.S
7272
/// </summary>
73-
public static unsafe Vector<uint> AbsoluteDifferenceAdd(Vector<uint> addend, Vector<uint> left, Vector<uint> right) { throw new PlatformNotSupportedException(); }
73+
public static Vector<uint> AbsoluteDifferenceAdd(Vector<uint> addend, Vector<uint> left, Vector<uint> right) { throw new PlatformNotSupportedException(); }
7474

7575
/// <summary>
7676
/// svuint64_t svaba[_u64](svuint64_t op1, svuint64_t op2, svuint64_t op3)
7777
/// UABA Ztied1.D, Zop2.D, Zop3.D
7878
/// </summary>
79-
public static unsafe Vector<ulong> AbsoluteDifferenceAdd(Vector<ulong> addend, Vector<ulong> left, Vector<ulong> right) { throw new PlatformNotSupportedException(); }
79+
public static Vector<ulong> AbsoluteDifferenceAdd(Vector<ulong> addend, Vector<ulong> left, Vector<ulong> right) { throw new PlatformNotSupportedException(); }
8080

8181
// Absolute difference and accumulate long (bottom)
8282

8383
/// <summary>
8484
/// svint16_t svabalb[_s16](svint16_t op1, svint8_t op2, svint8_t op3)
8585
/// SABALB Ztied1.H, Zop2.B, Zop3.B
8686
/// </summary>
87-
public static unsafe Vector<short> AbsoluteDifferenceAddWideningLower(Vector<short> addend, Vector<sbyte> left, Vector<sbyte> right) { throw new PlatformNotSupportedException(); }
87+
public static Vector<short> AbsoluteDifferenceAddWideningLower(Vector<short> addend, Vector<sbyte> left, Vector<sbyte> right) { throw new PlatformNotSupportedException(); }
8888

8989
/// <summary>
9090
/// svint32_t svabalb[_s32](svint32_t op1, svint16_t op2, svint16_t op3)
9191
/// SABALB Ztied1.S, Zop2.H, Zop3.H
9292
/// </summary>
93-
public static unsafe Vector<int> AbsoluteDifferenceAddWideningLower(Vector<int> addend, Vector<short> left, Vector<short> right) { throw new PlatformNotSupportedException(); }
93+
public static Vector<int> AbsoluteDifferenceAddWideningLower(Vector<int> addend, Vector<short> left, Vector<short> right) { throw new PlatformNotSupportedException(); }
9494

9595
/// <summary>
9696
/// svint64_t svabalb[_s64](svint64_t op1, svint32_t op2, svint32_t op3)
9797
/// SABALB Ztied1.D, Zop2.S, Zop3.S
9898
/// </summary>
99-
public static unsafe Vector<long> AbsoluteDifferenceAddWideningLower(Vector<long> addend, Vector<int> left, Vector<int> right) { throw new PlatformNotSupportedException(); }
99+
public static Vector<long> AbsoluteDifferenceAddWideningLower(Vector<long> addend, Vector<int> left, Vector<int> right) { throw new PlatformNotSupportedException(); }
100100

101101
/// <summary>
102102
/// svuint16_t svabalb[_u16](svuint16_t op1, svuint8_t op2, svuint8_t op3)
103103
/// UABALB Ztied1.H, Zop2.B, Zop3.B
104104
/// </summary>
105-
public static unsafe Vector<ushort> AbsoluteDifferenceAddWideningLower(Vector<ushort> addend, Vector<byte> left, Vector<byte> right) { throw new PlatformNotSupportedException(); }
105+
public static Vector<ushort> AbsoluteDifferenceAddWideningLower(Vector<ushort> addend, Vector<byte> left, Vector<byte> right) { throw new PlatformNotSupportedException(); }
106106

107107
/// <summary>
108108
/// svuint32_t svabalb[_u32](svuint32_t op1, svuint16_t op2, svuint16_t op3)
109109
/// UABALB Ztied1.S, Zop2.H, Zop3.H
110110
/// </summary>
111-
public static unsafe Vector<uint> AbsoluteDifferenceAddWideningLower(Vector<uint> addend, Vector<ushort> left, Vector<ushort> right) { throw new PlatformNotSupportedException(); }
111+
public static Vector<uint> AbsoluteDifferenceAddWideningLower(Vector<uint> addend, Vector<ushort> left, Vector<ushort> right) { throw new PlatformNotSupportedException(); }
112112

113113
/// <summary>
114114
/// svuint64_t svabalb[_u64](svuint64_t op1, svuint32_t op2, svuint32_t op3)
115115
/// UABALB Ztied1.D, Zop2.S, Zop3.S
116116
/// </summary>
117-
public static unsafe Vector<ulong> AbsoluteDifferenceAddWideningLower(Vector<ulong> addend, Vector<uint> left, Vector<uint> right) { throw new PlatformNotSupportedException(); }
117+
public static Vector<ulong> AbsoluteDifferenceAddWideningLower(Vector<ulong> addend, Vector<uint> left, Vector<uint> right) { throw new PlatformNotSupportedException(); }
118118

119119
// Absolute difference and accumulate long (top)
120120

121121
/// <summary>
122122
/// svint16_t svabalt[_s16](svint16_t op1, svint8_t op2, svint8_t op3)
123123
/// SABALT Ztied1.H, Zop2.B, Zop3.B
124124
/// </summary>
125-
public static unsafe Vector<short> AbsoluteDifferenceAddWideningUpper(Vector<short> addend, Vector<sbyte> left, Vector<sbyte> right) { throw new PlatformNotSupportedException(); }
125+
public static Vector<short> AbsoluteDifferenceAddWideningUpper(Vector<short> addend, Vector<sbyte> left, Vector<sbyte> right) { throw new PlatformNotSupportedException(); }
126126

127127
/// <summary>
128128
/// svint32_t svabalt[_s32](svint32_t op1, svint16_t op2, svint16_t op3)
129129
/// SABALT Ztied1.S, Zop2.H, Zop3.H
130130
/// </summary>
131-
public static unsafe Vector<int> AbsoluteDifferenceAddWideningUpper(Vector<int> addend, Vector<short> left, Vector<short> right) { throw new PlatformNotSupportedException(); }
131+
public static Vector<int> AbsoluteDifferenceAddWideningUpper(Vector<int> addend, Vector<short> left, Vector<short> right) { throw new PlatformNotSupportedException(); }
132132

133133
/// <summary>
134134
/// svint64_t svabalt[_s64](svint64_t op1, svint32_t op2, svint32_t op3)
135135
/// SABALT Ztied1.D, Zop2.S, Zop3.S
136136
/// </summary>
137-
public static unsafe Vector<long> AbsoluteDifferenceAddWideningUpper(Vector<long> addend, Vector<int> left, Vector<int> right) { throw new PlatformNotSupportedException(); }
137+
public static Vector<long> AbsoluteDifferenceAddWideningUpper(Vector<long> addend, Vector<int> left, Vector<int> right) { throw new PlatformNotSupportedException(); }
138138

139139
/// <summary>
140140
/// svuint16_t svabalt[_u16](svuint16_t op1, svuint8_t op2, svuint8_t op3)
141141
/// UABALT Ztied1.H, Zop2.B, Zop3.B
142142
/// </summary>
143-
public static unsafe Vector<ushort> AbsoluteDifferenceAddWideningUpper(Vector<ushort> addend, Vector<byte> left, Vector<byte> right) { throw new PlatformNotSupportedException(); }
143+
public static Vector<ushort> AbsoluteDifferenceAddWideningUpper(Vector<ushort> addend, Vector<byte> left, Vector<byte> right) { throw new PlatformNotSupportedException(); }
144144

145145
/// <summary>
146146
/// svuint32_t svabalt[_u32](svuint32_t op1, svuint16_t op2, svuint16_t op3)
147147
/// UABALT Ztied1.S, Zop2.H, Zop3.H
148148
/// </summary>
149-
public static unsafe Vector<uint> AbsoluteDifferenceAddWideningUpper(Vector<uint> addend, Vector<ushort> left, Vector<ushort> right) { throw new PlatformNotSupportedException(); }
149+
public static Vector<uint> AbsoluteDifferenceAddWideningUpper(Vector<uint> addend, Vector<ushort> left, Vector<ushort> right) { throw new PlatformNotSupportedException(); }
150150

151151
/// <summary>
152152
/// svuint64_t svabalt[_u64](svuint64_t op1, svuint32_t op2, svuint32_t op3)
153153
/// UABALT Ztied1.D, Zop2.S, Zop3.S
154154
/// </summary>
155-
public static unsafe Vector<ulong> AbsoluteDifferenceAddWideningUpper(Vector<ulong> addend, Vector<uint> left, Vector<uint> right) { throw new PlatformNotSupportedException(); }
155+
public static Vector<ulong> AbsoluteDifferenceAddWideningUpper(Vector<ulong> addend, Vector<uint> left, Vector<uint> right) { throw new PlatformNotSupportedException(); }
156156

157157
// Bitwise clear and exclusive OR
158158

0 commit comments

Comments
 (0)