@@ -5,40 +5,40 @@ import java.math.BigInteger
5
5
*/
6
6
7
7
infix fun Byte.udiv (b : Byte ) = (toUInt() / b.toUInt()).toByte()
8
- infix fun Byte.umod (b : Byte ) = (toUInt() % b.toUInt()).toByte()
8
+ infix fun Byte.urem (b : Byte ) = (toUInt() % b.toUInt()).toByte()
9
9
infix fun Byte.ucmp (b : Byte ) = toUInt().compareTo(b.toUInt())
10
10
infix fun Byte.ushr (b : Byte ) = (toUInt() ushr b.toUInt()).toByte()
11
11
12
12
infix fun Byte.udiv (b : Int ) = (toUInt() / b).toByte()
13
- infix fun Byte.umod (b : Int ) = (toUInt() % b).toByte()
13
+ infix fun Byte.urem (b : Int ) = (toUInt() % b).toByte()
14
14
infix fun Byte.ucmp (b : Int ) = toUInt().compareTo(b)
15
15
infix fun Byte.ushr (b : Int ) = (toUInt() ushr b).toByte()
16
16
17
17
infix fun Short.udiv (b : Short ) = (toUInt() / b.toUInt()).toShort()
18
- infix fun Short.umod (b : Short ) = (toUInt() % b.toUInt()).toShort()
18
+ infix fun Short.urem (b : Short ) = (toUInt() % b.toUInt()).toShort()
19
19
infix fun Short.ucmp (b : Short ) = toUInt().compareTo(b.toUInt())
20
20
infix fun Short.ushr (b : Short ) = (toUInt() ushr b.toUInt()).toShort()
21
21
22
22
infix fun Short.udiv (b : Int ) = (toUInt() / b).toShort()
23
- infix fun Short.umod (b : Int ) = (toUInt() % b).toShort()
23
+ infix fun Short.urem (b : Int ) = (toUInt() % b).toShort()
24
24
infix fun Short.ucmp (b : Int ) = toUInt().compareTo(b)
25
25
infix fun Short.ushr (b : Int ) = (toUInt() ushr b).toShort()
26
26
27
27
infix fun Int.udiv (b : Byte ) = Integer .divideUnsigned(this , b.toUInt())
28
- infix fun Int.umod (b : Byte ) = Integer .remainderUnsigned(this , b.toUInt())
28
+ infix fun Int.urem (b : Byte ) = Integer .remainderUnsigned(this , b.toUInt())
29
29
infix fun Int.ucmp (b : Byte ) = Integer .compareUnsigned(this , b.toUInt())
30
30
// Int.ushl(b: Int) is already provided by Kotlin lib
31
31
infix fun Int.udiv (b : Short ) = Integer .divideUnsigned(this , b.toUInt())
32
- infix fun Int.umod (b : Short ) = Integer .remainderUnsigned(this , b.toUInt())
32
+ infix fun Int.urem (b : Short ) = Integer .remainderUnsigned(this , b.toUInt())
33
33
infix fun Int.ucmp (b : Short ) = Integer .compareUnsigned(this , b.toUInt())
34
34
// Int.ushl(b: Int) is already provided by Kotlin lib
35
35
infix fun Int.udiv (b : Int ) = Integer .divideUnsigned(this , b)
36
- infix fun Int.umod (b : Int ) = Integer .remainderUnsigned(this , b)
36
+ infix fun Int.urem (b : Int ) = Integer .remainderUnsigned(this , b)
37
37
infix fun Int.ucmp (b : Int ) = Integer .compareUnsigned(this , b)
38
38
// Int.ushl(b: Int) is already provided by Kotlin lib
39
39
40
40
infix fun Long.udiv (b : Long ) = java.lang.Long .divideUnsigned(this , b)
41
- infix fun Long.umod (b : Long ) = java.lang.Long .remainderUnsigned(this , b)
41
+ infix fun Long.urem (b : Long ) = java.lang.Long .remainderUnsigned(this , b)
42
42
infix fun Long.ucmp (b : Long ) = java.lang.Long .compareUnsigned(this , b)
43
43
// Long.ushl(b: Long) is already provided by Kotlin lib
44
44
0 commit comments