@@ -1243,6 +1243,30 @@ extension ${Self} {
1243
1243
}
1244
1244
}
1245
1245
1246
+ //===----------------------------------------------------------------------===//
1247
+ // Placeholder Operators
1248
+ //===----------------------------------------------------------------------===//
1249
+
1250
+ // TODO: Remove these operators once protocol-based math functions are
1251
+ // incorporated from Swift Numerics into the standard library.
1252
+
1253
+ ${ Availability ( bits) }
1254
+ extension ${ Self} {
1255
+ @_alwaysEmitIntoClient
1256
+ @available ( * , unavailable,
1257
+ message: " Import C standard library or Foundation to use 'pow' instead " )
1258
+ public static func ** ( _ lhs: Self , _ rhs: Self ) -> Self {
1259
+ fatalError ( )
1260
+ }
1261
+
1262
+ @_alwaysEmitIntoClient
1263
+ @available ( * , unavailable,
1264
+ message: " Import C standard library or Foundation to use 'pow' instead " )
1265
+ public static func **= ( _ lhs: inout Self , _ rhs: Self ) {
1266
+ fatalError ( )
1267
+ }
1268
+ }
1269
+
1246
1270
//===----------------------------------------------------------------------===//
1247
1271
// Strideable Conformance
1248
1272
//===----------------------------------------------------------------------===//
@@ -1346,10 +1370,6 @@ internal struct _${Self}AnyHashableBox: _AnyHashableBox {
1346
1370
${ Availability ( bits) }
1347
1371
extension ${ Self} : ConcurrentValue { }
1348
1372
1349
- //===----------------------------------------------------------------------===//
1350
- // Deprecated operators
1351
- //===----------------------------------------------------------------------===//
1352
-
1353
1373
% if bits in [ 16 , 80 ] :
1354
1374
#else
1355
1375
@@ -1374,6 +1394,10 @@ public struct ${Self} {
1374
1394
% end
1375
1395
% end # for bits in all_floating_point_types
1376
1396
1397
+ //===----------------------------------------------------------------------===//
1398
+ // Deprecated Operators
1399
+ //===----------------------------------------------------------------------===//
1400
+
1377
1401
@_transparent
1378
1402
@available ( * , unavailable,
1379
1403
message: " For floating point numbers use truncatingRemainder instead " )
0 commit comments