Migrate Vector128 from kotlin.native to kotlinx.cinterop #KT-58402
Make kotlin.native.Vector128 a typealias for kotlinx.cinterop.Vector128 Choose source compatibility over binary compatibility.
This commit is contained in:
committed by
Space Team
parent
2823fff63d
commit
0f33d71de3
@@ -93,7 +93,7 @@ bool IsSubInterface(const TypeInfo* thiz, const TypeInfo* other) {
|
||||
return false;
|
||||
}
|
||||
|
||||
KVector4f Kotlin_Vector4f_of(KFloat f0, KFloat f1, KFloat f2, KFloat f3) {
|
||||
KVector4f Kotlin_Interop_Vector4f_of(KFloat f0, KFloat f1, KFloat f2, KFloat f3) {
|
||||
return {f0, f1, f2, f3};
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ KVector4f Kotlin_Vector4f_of(KFloat f0, KFloat f1, KFloat f2, KFloat f3) {
|
||||
* To avoid illegal bitcast from/to function types the following function
|
||||
* return type MUST be <4 x float> and explicit type cast is done on the variable type.
|
||||
*/
|
||||
KVector4f Kotlin_Vector4i32_of(KInt f0, KInt f1, KInt f2, KInt f3) {
|
||||
KVector4f Kotlin_Interop_Vector4i32_of(KInt f0, KInt f1, KInt f2, KInt f3) {
|
||||
KInt __attribute__ ((__vector_size__(16))) v4i = {f0, f1, f2, f3};
|
||||
return (KVector4f)v4i;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user