Promote top-level kotlin.math.cbrt() to stable #KT-53277

This commit is contained in:
Abduqodiri Qurbonzoda
2022-09-08 00:15:34 +03:00
committed by Space
parent 0763ab7bc1
commit 73a65c1bb1
7 changed files with 28 additions and 28 deletions
@@ -395,8 +395,8 @@ public actual fun max(a: Double, b: Double): Double = when {
* - If the argument is infinite, then the result is an infinity with the same sign as the argument.
* - If the argument is zero, then the result is a zero with the same sign as the argument.
*/
@SinceKotlin("1.7")
@ExperimentalStdlibApi
@SinceKotlin("1.8")
@WasExperimental(ExperimentalStdlibApi::class)
@GCUnsafeCall("Kotlin_math_cbrt")
public external actual fun cbrt(x: Double): Double
@@ -962,8 +962,8 @@ public actual fun max(a: Float, b: Float): Float = when {
* - If the argument is infinite, then the result is an infinity with the same sign as the argument.
* - If the argument is zero, then the result is a zero with the same sign as the argument.
*/
@SinceKotlin("1.7")
@ExperimentalStdlibApi
@SinceKotlin("1.8")
@WasExperimental(ExperimentalStdlibApi::class)
@GCUnsafeCall("Kotlin_math_cbrtf")
public external actual fun cbrt(x: Float): Float
+4 -4
View File
@@ -107,13 +107,13 @@ public inline fun atanh(x: kotlin.Double): kotlin.Double
@kotlin.internal.InlineOnly
public inline fun atanh(x: kotlin.Float): kotlin.Float
@kotlin.SinceKotlin(version = "1.7")
@kotlin.ExperimentalStdlibApi
@kotlin.SinceKotlin(version = "1.8")
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
@kotlin.internal.InlineOnly
public inline fun cbrt(x: kotlin.Double): kotlin.Double
@kotlin.SinceKotlin(version = "1.7")
@kotlin.ExperimentalStdlibApi
@kotlin.SinceKotlin(version = "1.8")
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
@kotlin.internal.InlineOnly
public inline fun cbrt(x: kotlin.Float): kotlin.Float
+4 -4
View File
@@ -107,13 +107,13 @@ public inline fun atanh(x: kotlin.Double): kotlin.Double
@kotlin.internal.InlineOnly
public inline fun atanh(x: kotlin.Float): kotlin.Float
@kotlin.SinceKotlin(version = "1.7")
@kotlin.ExperimentalStdlibApi
@kotlin.SinceKotlin(version = "1.8")
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
@kotlin.internal.InlineOnly
public inline fun cbrt(x: kotlin.Double): kotlin.Double
@kotlin.SinceKotlin(version = "1.7")
@kotlin.ExperimentalStdlibApi
@kotlin.SinceKotlin(version = "1.8")
@kotlin.WasExperimental(markerClass = {kotlin.ExperimentalStdlibApi::class})
@kotlin.internal.InlineOnly
public inline fun cbrt(x: kotlin.Float): kotlin.Float
+4 -4
View File
@@ -365,8 +365,8 @@ public expect fun max(a: Double, b: Double): Double
* - If the argument is infinite, then the result is an infinity with the same sign as the argument.
* - If the argument is zero, then the result is a zero with the same sign as the argument.
*/
@SinceKotlin("1.7")
@ExperimentalStdlibApi
@SinceKotlin("1.8")
@WasExperimental(ExperimentalStdlibApi::class)
public expect fun cbrt(x: Double): Double
@@ -844,8 +844,8 @@ public expect fun max(a: Float, b: Float): Float
* - If the argument is infinite, then the result is an infinity with the same sign as the argument.
* - If the argument is zero, then the result is a zero with the same sign as the argument.
*/
@SinceKotlin("1.7")
@ExperimentalStdlibApi
@SinceKotlin("1.8")
@WasExperimental(ExperimentalStdlibApi::class)
public expect fun cbrt(x: Float): Float
+4 -4
View File
@@ -391,8 +391,8 @@ public actual inline fun max(a: Double, b: Double): Double = nativeMath.max(a, b
* - If the argument is infinite, then the result is an infinity with the same sign as the argument.
* - If the argument is zero, then the result is a zero with the same sign as the argument.
*/
@SinceKotlin("1.7")
@ExperimentalStdlibApi
@SinceKotlin("1.8")
@WasExperimental(ExperimentalStdlibApi::class)
@InlineOnly
public actual inline fun cbrt(x: Double): Double = nativeMath.cbrt(x)
@@ -928,8 +928,8 @@ public actual inline fun max(a: Float, b: Float): Float = nativeMath.max(a, b)
* - If the argument is infinite, then the result is an infinity with the same sign as the argument.
* - If the argument is zero, then the result is a zero with the same sign as the argument.
*/
@SinceKotlin("1.7")
@ExperimentalStdlibApi
@SinceKotlin("1.8")
@WasExperimental(ExperimentalStdlibApi::class)
@InlineOnly
public actual inline fun cbrt(x: Float): Float = nativeMath.cbrt(x.toDouble()).toFloat()
@@ -474,8 +474,8 @@ public actual inline fun max(a: Double, b: Double): Double = nativeMath.max(a, b
* - If the argument is infinite, then the result is an infinity with the same sign as the argument.
* - If the argument is zero, then the result is a zero with the same sign as the argument.
*/
@SinceKotlin("1.7")
@ExperimentalStdlibApi
@SinceKotlin("1.8")
@WasExperimental(ExperimentalStdlibApi::class)
@InlineOnly
public actual inline fun cbrt(x: Double): Double = nativeMath.cbrt(x)
@@ -1021,8 +1021,8 @@ public actual inline fun max(a: Float, b: Float): Float = nativeMath.max(a, b)
* - If the argument is infinite, then the result is an infinity with the same sign as the argument.
* - If the argument is zero, then the result is a zero with the same sign as the argument.
*/
@SinceKotlin("1.7")
@ExperimentalStdlibApi
@SinceKotlin("1.8")
@WasExperimental(ExperimentalStdlibApi::class)
@InlineOnly
public actual inline fun cbrt(x: Float): Float = nativeMath.cbrt(x.toDouble()).toFloat()
@@ -359,8 +359,8 @@ public actual fun max(a: Double, b: Double): Double = kotlin.wasm.internal.wasm_
* - If the argument is infinite, then the result is an infinity with the same sign as the argument.
* - If the argument is zero, then the result is a zero with the same sign as the argument.
*/
@SinceKotlin("1.7")
@ExperimentalStdlibApi
@SinceKotlin("1.8")
@WasExperimental(ExperimentalStdlibApi::class)
public actual fun cbrt(x: Double): Double = kotlin.math.fdlibm.__ieee754_cbrt(x)
@@ -867,8 +867,8 @@ public actual fun max(a: Float, b: Float): Float = kotlin.wasm.internal.wasm_f32
* - If the argument is infinite, then the result is an infinity with the same sign as the argument.
* - If the argument is zero, then the result is a zero with the same sign as the argument.
*/
@SinceKotlin("1.7")
@ExperimentalStdlibApi
@SinceKotlin("1.8")
@WasExperimental(ExperimentalStdlibApi::class)
public actual fun cbrt(x: Float): Float = kotlin.math.fdlibm.__ieee754_cbrt(x.toDouble()).toFloat()