Clean up WasExperimental annotation from declarations with SinceKotlin<=1.4
Since it is not possible to use -api-version < 1.4, this annotation has no effect
This commit is contained in:
committed by
Space Team
parent
081e1de5af
commit
9ccce52915
@@ -109,7 +109,6 @@ internal external fun fromBits(bits: Int): Float
|
||||
* Counts the number of set bits in the binary representation of this [Int] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@GCUnsafeCall("Kotlin_Int_countOneBits")
|
||||
public actual external fun Int.countOneBits(): Int
|
||||
|
||||
@@ -124,7 +123,6 @@ private external fun countLeadingZeroBits(value: Int): Int
|
||||
* Counts the number of consecutive most significant bits that are zero in the binary representation of this [Int] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun Int.countLeadingZeroBits(): Int =
|
||||
if (this == 0) 32 else countLeadingZeroBits(this)
|
||||
|
||||
@@ -139,7 +137,6 @@ private external fun countTrailingZeroBits(value: Int): Int
|
||||
* Counts the number of consecutive least significant bits that are zero in the binary representation of this [Int] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun Int.countTrailingZeroBits(): Int =
|
||||
if (this == 0) 32 else countTrailingZeroBits(this)
|
||||
|
||||
@@ -148,7 +145,6 @@ public actual fun Int.countTrailingZeroBits(): Int =
|
||||
* or zero, if this number is zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun Int.takeHighestOneBit(): Int =
|
||||
if (this == 0) 0 else 1.shl(32 - 1 - countLeadingZeroBits(this))
|
||||
|
||||
@@ -157,7 +153,6 @@ public actual fun Int.takeHighestOneBit(): Int =
|
||||
* or zero, if this number is zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun Int.takeLowestOneBit(): Int =
|
||||
this and -this
|
||||
|
||||
@@ -197,7 +192,6 @@ public actual fun Int.rotateRight(bitCount: Int): Int =
|
||||
* Counts the number of set bits in the binary representation of this [Long] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@GCUnsafeCall("Kotlin_Long_countOneBits")
|
||||
public actual external fun Long.countOneBits(): Int
|
||||
|
||||
@@ -212,7 +206,6 @@ private external fun countLeadingZeroBits(value: Long): Int
|
||||
* Counts the number of consecutive most significant bits that are zero in the binary representation of this [Long] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun Long.countLeadingZeroBits(): Int =
|
||||
if (this == 0L) 64 else countLeadingZeroBits(this)
|
||||
|
||||
@@ -227,7 +220,6 @@ private external fun countTrailingZeroBits(value: Long): Int
|
||||
* Counts the number of consecutive least significant bits that are zero in the binary representation of this [Long] number.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun Long.countTrailingZeroBits(): Int =
|
||||
if (this == 0L) 64 else countTrailingZeroBits(this)
|
||||
|
||||
@@ -236,7 +228,6 @@ public actual fun Long.countTrailingZeroBits(): Int =
|
||||
* or zero, if this number is zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun Long.takeHighestOneBit(): Long =
|
||||
if (this == 0L) 0L else 1L.shl(64 - 1 - countLeadingZeroBits(this))
|
||||
|
||||
@@ -245,7 +236,6 @@ public actual fun Long.takeHighestOneBit(): Long =
|
||||
* or zero, if this number is zero.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
public actual fun Long.takeLowestOneBit(): Long =
|
||||
this and -this
|
||||
|
||||
|
||||
Reference in New Issue
Block a user