File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -907,6 +907,8 @@ SWIFT_RUNTIME_EXPORT
907
907
const ValueWitnessTable VALUE_WITNESS_SYM (Bi128_); // Builtin.Int128
908
908
SWIFT_RUNTIME_EXPORT
909
909
const ValueWitnessTable VALUE_WITNESS_SYM (Bi256_); // Builtin.Int256
910
+ SWIFT_RUNTIME_EXPORT
911
+ const ValueWitnessTable VALUE_WITNESS_SYM (Bi512_); // Builtin.Int512
910
912
911
913
// The object-pointer table can be used for arbitrary Swift refcounted
912
914
// pointer types.
@@ -1337,6 +1339,8 @@ const FullOpaqueMetadata METADATA_SYM(Bi128_); // Builtin.Int128
1337
1339
SWIFT_RUNTIME_EXPORT
1338
1340
const FullOpaqueMetadata METADATA_SYM (Bi256_); // Builtin.Int256
1339
1341
SWIFT_RUNTIME_EXPORT
1342
+ const FullOpaqueMetadata METADATA_SYM (Bi512_); // Builtin.Int512
1343
+ SWIFT_RUNTIME_EXPORT
1340
1344
const FullOpaqueMetadata METADATA_SYM (Bo); // Builtin.NativeObject
1341
1345
SWIFT_RUNTIME_EXPORT
1342
1346
const FullOpaqueMetadata METADATA_SYM (Bb); // Builtin.BridgeObject
Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ namespace {
41
41
struct alignas (32 ) int256_like {
42
42
char data[32 ];
43
43
};
44
+ struct alignas (64 ) int512_like {
45
+ char data[64 ];
46
+ };
44
47
} // end anonymous namespace
45
48
46
49
// We use explicit sizes and alignments here just in case the C ABI
@@ -57,6 +60,8 @@ const ValueWitnessTable swift::VALUE_WITNESS_SYM(Bi128_) =
57
60
ValueWitnessTableForBox<NativeBox<int128_like, 16>>::table;
58
61
const ValueWitnessTable swift::VALUE_WITNESS_SYM (Bi256_) =
59
62
ValueWitnessTableForBox<NativeBox<int256_like, 32>>::table;
63
+ const ValueWitnessTable swift::VALUE_WITNESS_SYM (Bi512_) =
64
+ ValueWitnessTableForBox<NativeBox<int512_like, 64>>::table;
60
65
61
66
// / The basic value-witness table for Swift object pointers.
62
67
const ExtraInhabitantsValueWitnessTable swift::VALUE_WITNESS_SYM (Bo) =
@@ -157,6 +162,7 @@ OPAQUE_METADATA(Bi32_)
157
162
OPAQUE_METADATA(Bi64_)
158
163
OPAQUE_METADATA(Bi128_)
159
164
OPAQUE_METADATA(Bi256_)
165
+ OPAQUE_METADATA(Bi512_)
160
166
OPAQUE_METADATA(Bo)
161
167
OPAQUE_METADATA(Bb)
162
168
OPAQUE_METADATA(Bp)
Original file line number Diff line number Diff line change @@ -1381,6 +1381,9 @@ void swift::installCommonValueWitnesses(ValueWitnessTable *vwtable) {
1381
1381
case sizeWithAlignmentMask (32 , 31 ):
1382
1382
commonVWT = &VALUE_WITNESS_SYM (Bi256_);
1383
1383
break ;
1384
+ case sizeWithAlignmentMask (64 , 63 ):
1385
+ commonVWT = &VALUE_WITNESS_SYM (Bi512_);
1386
+ break ;
1384
1387
}
1385
1388
1386
1389
#define INSTALL_POD_COMMON_WITNESS (NAME ) vwtable->NAME = commonVWT->NAME;
You can’t perform that action at this time.
0 commit comments