Sycnhronize docs of primitives in JS-IR, Wasm, Native sources

This commit is contained in:
Ilya Gorbunov
2022-09-30 14:39:04 +02:00
committed by Space Team
parent 34de2d9155
commit 607f15b55b
4 changed files with 251 additions and 123 deletions
@@ -158,42 +158,42 @@ public final class Byte private constructor() : Number(), Comparable<Byte> {
this.toDouble() / other
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Byte): Int =
this.toInt() % other.toInt()
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Short): Int =
this.toInt() % other.toInt()
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Int): Int =
this.toInt() % other
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Long): Long =
this.toLong() % other
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Float): Float =
this.toFloat() % other
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
@@ -501,42 +501,42 @@ public final class Short private constructor() : Number(), Comparable<Short> {
this.toDouble() / other
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Byte): Int =
this.toInt() % other.toInt()
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Short): Int =
this.toInt() % other.toInt()
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Int): Int =
this.toInt() % other
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Long): Long =
this.toLong() % other
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Float): Float =
this.toFloat() % other
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
@@ -839,42 +839,42 @@ public final class Int private constructor() : Number(), Comparable<Int> {
this.toDouble() / other
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Byte): Int =
this % other.toInt()
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Short): Int =
this % other.toInt()
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
@TypedIntrinsic(IntrinsicType.SIGNED_REM)
external public operator fun rem(other: Int): Int
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Long): Long =
this.toLong() % other
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Float): Float =
this.toFloat() % other
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
@@ -1222,42 +1222,42 @@ public final class Long private constructor() : Number(), Comparable<Long> {
this.toDouble() / other
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Byte): Long =
this % other.toLong()
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Short): Long =
this % other.toLong()
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Int): Long =
this % other.toLong()
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
@TypedIntrinsic(IntrinsicType.SIGNED_REM)
external public operator fun rem(other: Long): Long
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Float): Float =
this.toFloat() % other
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
@@ -1628,42 +1628,42 @@ public final class Float private constructor() : Number(), Comparable<Float> {
this.toDouble() / other
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Byte): Float =
this % other.toFloat()
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Short): Float =
this % other.toFloat()
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Int): Float =
this % other.toFloat()
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Long): Float =
this % other.toFloat()
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
@TypedIntrinsic(IntrinsicType.SIGNED_REM)
external public operator fun rem(other: Float): Float
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
@@ -1936,42 +1936,42 @@ public final class Double private constructor() : Number(), Comparable<Double> {
external public operator fun div(other: Double): Double
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Byte): Double =
this % other.toDouble()
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Short): Double =
this % other.toDouble()
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Int): Double =
this % other.toDouble()
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Long): Double =
this % other.toDouble()
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/
public inline operator fun rem(other: Float): Double =
this % other.toDouble()
/**
* Calculates the remainder of truncating division of this value by the other value.
* Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
*
* The result is either zero or has the same sign as the _dividend_ and has the absolute value less than the absolute value of the divisor.
*/