[MPP] Commonize to platform integers considering target's bit width

Commonized type should match the platform's `platform.posix.ssize_t`
type alias' width. The implementation hard-codes platform widths for
all the targets, this can be potentially changed to search for ssize_t
in dependencies and get width from its type.

Use real targets in platform int commonization tests.

KT-41509
This commit is contained in:
Pavel Kirpichenkov
2022-02-07 18:14:25 +03:00
committed by teamcity
parent 8f4d04dad2
commit f257297505
6 changed files with 640 additions and 170 deletions
@@ -34,8 +34,8 @@ val ULONG_RANGE_ID = ClassId.fromString("kotlin/ranges/ULongRange")
val INT_PROGRESSION_ID = ClassId.fromString("kotlin/ranges/IntProgression")
val LONG_PROGRESSION_ID = ClassId.fromString("kotlin/ranges/LongProgression")
val UINT_PROGRESSION = ClassId.fromString("kotlin/ranges/UIntProgression")
val ULONG_PROGRESSION = ClassId.fromString("kotlin/ranges/ULongProgression")
val UINT_PROGRESSION_ID = ClassId.fromString("kotlin/ranges/UIntProgression")
val ULONG_PROGRESSION_ID = ClassId.fromString("kotlin/ranges/ULongProgression")
val PLATFORM_INT_ID = ClassId.fromString("kotlin/PlatformInt")
val PLATFORM_UINT_ID = ClassId.fromString("kotlin/PlatformUInt")