diff --git a/runtime/src/main/kotlin/generated/_ArraysNative.kt b/runtime/src/main/kotlin/generated/_ArraysNative.kt index 7c4b5932453..b199ffbde02 100644 --- a/runtime/src/main/kotlin/generated/_ArraysNative.kt +++ b/runtime/src/main/kotlin/generated/_ArraysNative.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ diff --git a/runtime/src/main/kotlin/generated/_CollectionsNative.kt b/runtime/src/main/kotlin/generated/_CollectionsNative.kt index 5e2b96f1495..776281e0520 100644 --- a/runtime/src/main/kotlin/generated/_CollectionsNative.kt +++ b/runtime/src/main/kotlin/generated/_CollectionsNative.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ diff --git a/runtime/src/main/kotlin/generated/_ComparisonsNative.kt b/runtime/src/main/kotlin/generated/_ComparisonsNative.kt index 352884e8f1f..862cc8fa527 100644 --- a/runtime/src/main/kotlin/generated/_ComparisonsNative.kt +++ b/runtime/src/main/kotlin/generated/_ComparisonsNative.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -136,6 +136,76 @@ public actual inline fun maxOf(a: Double, b: Double, c: Double): Double { return maxOf(a, maxOf(b, c)) } +/** + * Returns the greater of given values. + */ +@SinceKotlin("1.4") +public actual fun > maxOf(a: T, vararg other: T): T { + var max = a + for (e in other) max = maxOf(max, e) + return max +} + +/** + * Returns the greater of given values. + */ +@SinceKotlin("1.4") +public actual fun maxOf(a: Byte, vararg other: Byte): Byte { + var max = a + for (e in other) max = maxOf(max, e) + return max +} + +/** + * Returns the greater of given values. + */ +@SinceKotlin("1.4") +public actual fun maxOf(a: Short, vararg other: Short): Short { + var max = a + for (e in other) max = maxOf(max, e) + return max +} + +/** + * Returns the greater of given values. + */ +@SinceKotlin("1.4") +public actual fun maxOf(a: Int, vararg other: Int): Int { + var max = a + for (e in other) max = maxOf(max, e) + return max +} + +/** + * Returns the greater of given values. + */ +@SinceKotlin("1.4") +public actual fun maxOf(a: Long, vararg other: Long): Long { + var max = a + for (e in other) max = maxOf(max, e) + return max +} + +/** + * Returns the greater of given values. + */ +@SinceKotlin("1.4") +public actual fun maxOf(a: Float, vararg other: Float): Float { + var max = a + for (e in other) max = maxOf(max, e) + return max +} + +/** + * Returns the greater of given values. + */ +@SinceKotlin("1.4") +public actual fun maxOf(a: Double, vararg other: Double): Double { + var max = a + for (e in other) max = maxOf(max, e) + return max +} + /** * Returns the smaller of two values. * If values are equal, returns the first one. @@ -269,3 +339,73 @@ public actual inline fun minOf(a: Double, b: Double, c: Double): Double { return minOf(a, minOf(b, c)) } +/** + * Returns the smaller of given values. + */ +@SinceKotlin("1.4") +public actual fun > minOf(a: T, vararg other: T): T { + var min = a + for (e in other) min = minOf(min, e) + return min +} + +/** + * Returns the smaller of given values. + */ +@SinceKotlin("1.4") +public actual fun minOf(a: Byte, vararg other: Byte): Byte { + var min = a + for (e in other) min = minOf(min, e) + return min +} + +/** + * Returns the smaller of given values. + */ +@SinceKotlin("1.4") +public actual fun minOf(a: Short, vararg other: Short): Short { + var min = a + for (e in other) min = minOf(min, e) + return min +} + +/** + * Returns the smaller of given values. + */ +@SinceKotlin("1.4") +public actual fun minOf(a: Int, vararg other: Int): Int { + var min = a + for (e in other) min = minOf(min, e) + return min +} + +/** + * Returns the smaller of given values. + */ +@SinceKotlin("1.4") +public actual fun minOf(a: Long, vararg other: Long): Long { + var min = a + for (e in other) min = minOf(min, e) + return min +} + +/** + * Returns the smaller of given values. + */ +@SinceKotlin("1.4") +public actual fun minOf(a: Float, vararg other: Float): Float { + var min = a + for (e in other) min = minOf(min, e) + return min +} + +/** + * Returns the smaller of given values. + */ +@SinceKotlin("1.4") +public actual fun minOf(a: Double, vararg other: Double): Double { + var min = a + for (e in other) min = minOf(min, e) + return min +} + diff --git a/runtime/src/main/kotlin/generated/_StringsNative.kt b/runtime/src/main/kotlin/generated/_StringsNative.kt index 258f1103a78..9ed5b20ff09 100644 --- a/runtime/src/main/kotlin/generated/_StringsNative.kt +++ b/runtime/src/main/kotlin/generated/_StringsNative.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ diff --git a/runtime/src/main/kotlin/generated/_UArraysNative.kt b/runtime/src/main/kotlin/generated/_UArraysNative.kt index 152f35000b9..a42075114c8 100644 --- a/runtime/src/main/kotlin/generated/_UArraysNative.kt +++ b/runtime/src/main/kotlin/generated/_UArraysNative.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */