Skip to content

Commit dac9a39

Browse files
committed
gradle wrapper updated
1 parent 50a6c89 commit dac9a39

11 files changed

+24
-194
lines changed

.idea/compiler.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_runtime_1_1_M03.xml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_1_M03.xml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.idea/misc.xml

Lines changed: 0 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules/kotlin-unsigned.iml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.idea/modules/kotlin-unsigned_main.iml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.idea/modules/kotlin-unsigned_test.iml

Lines changed: 0 additions & 53 deletions
This file was deleted.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
#Mon Jun 13 12:14:42 CEST 2016
12
distributionBase=GRADLE_USER_HOME
23
distributionPath=wrapper/dists
34
zipStoreBase=GRADLE_USER_HOME
45
zipStorePath=wrapper/dists
5-
distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-script-kotlin-3.4-20170106171830+0000-all.zip
6+
distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-script-kotlin-3.4-20170110192032+0000-all.zip

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
rootProject.name = 'gradle-script-kotlin'
12
rootProject.buildFileName = 'build.gradle.kts'

src/main/kotlin/unsigned.kt

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ data class Ubyte(var v: Byte = 0) : Number() {
112112
infix operator fun div(b: Byte) = Ubyte(toInt() / b.toUInt())
113113
infix operator fun div(b: Int) = Ubyte(Integer.divideUnsigned(toInt(), b))
114114

115-
infix operator fun mod(b: Ubyte) = Ubyte(toInt() % b.toInt())
116-
infix operator fun mod(b: Byte) = Ubyte(toInt() % b.toUInt())
117-
infix operator fun mod(b: Int) = Ubyte(Integer.remainderUnsigned(toInt(), b))
115+
infix operator fun rem(b: Ubyte) = Ubyte(toInt() % b.toInt())
116+
infix operator fun rem(b: Byte) = Ubyte(toInt() % b.toUInt())
117+
infix operator fun rem(b: Int) = Ubyte(Integer.remainderUnsigned(toInt(), b))
118118

119119
// TODO add counterparts with res
120120
infix fun and(b: Ubyte) = Ubyte(v and b.v)
@@ -192,8 +192,8 @@ data class Uint(var v: Int = 0) : Number() {
192192
infix operator fun div(b: Uint) = Uint(Integer.divideUnsigned(v, b.toInt()))
193193
infix operator fun div(b: Int) = Uint(Integer.divideUnsigned(v, b))
194194

195-
infix operator fun mod(b: Uint) = Uint(Integer.remainderUnsigned(v, b.toInt()))
196-
infix operator fun mod(b: Int) = Uint(Integer.remainderUnsigned(v, b))
195+
infix operator fun rem(b: Uint) = Uint(Integer.remainderUnsigned(v, b.toInt()))
196+
infix operator fun rem(b: Int) = Uint(Integer.remainderUnsigned(v, b))
197197

198198
infix fun and(b: Uint) = Uint(v and b.toInt())
199199
infix fun and(b: Int) = Uint(v and b)
@@ -264,8 +264,8 @@ data class Ulong(var v: Long = 0) : Number(), Comparable<Ulong> {
264264
infix operator fun div(b: Ulong) = Ulong(java.lang.Long.divideUnsigned(v, b.toLong()))
265265
infix operator fun div(b: Long) = Ulong(java.lang.Long.divideUnsigned(v, b))
266266

267-
infix operator fun mod(b: Ulong) = Ulong(java.lang.Long.remainderUnsigned(v, b.toLong()))
268-
infix operator fun mod(b: Long) = Ulong(java.lang.Long.remainderUnsigned(v, b))
267+
infix operator fun rem(b: Ulong) = Ulong(java.lang.Long.remainderUnsigned(v, b.toLong()))
268+
infix operator fun rem(b: Long) = Ulong(java.lang.Long.remainderUnsigned(v, b))
269269

270270
infix fun and(b: Ulong) = Ulong(v and b.toLong())
271271
infix fun and(b: Long) = Ulong(v and b)
@@ -359,9 +359,9 @@ data class Ushort(var v: Short = 0) : Number() {
359359
infix operator fun div(b: Short) = Ushort(toInt() / b.toUInt())
360360
infix operator fun div(b: Int) = Ushort(Integer.divideUnsigned(toInt(), b))
361361

362-
infix operator fun mod(b: Ushort) = Ushort(toInt() % b.toInt())
363-
infix operator fun mod(b: Short) = Ushort(toInt() % b.toUInt())
364-
infix operator fun mod(b: Int) = Ushort(Integer.remainderUnsigned(toInt(), b))
362+
infix operator fun rem(b: Ushort) = Ushort(toInt() % b.toInt())
363+
infix operator fun rem(b: Short) = Ushort(toInt() % b.toUInt())
364+
infix operator fun rem(b: Int) = Ushort(Integer.remainderUnsigned(toInt(), b))
365365

366366
infix fun and(b: Ushort) = Ushort(v and b.v)
367367
infix fun and(b: Short) = Ushort(v and b)
@@ -395,7 +395,7 @@ operator fun Byte.plus(b: Ubyte): Byte = (toUInt() + b.toInt()).toByte()
395395
operator fun Byte.minus(b: Ubyte) = (toUInt() - b.toInt()).toByte()
396396
operator fun Byte.times(b: Ubyte) = (toUInt() * b.toInt()).toByte()
397397
operator fun Byte.div(b: Ubyte) = (toUInt() / b.toInt()).toByte()
398-
operator fun Byte.mod(b: Ubyte) = (toUInt() % b.toInt()).toByte()
398+
operator fun Byte.rem(b: Ubyte) = (toUInt() % b.toInt()).toByte()
399399
infix fun Byte.and(b: Ubyte) = (this and b.v).toByte()
400400
infix fun Byte.or(b: Ubyte) = (this or b.v).toByte()
401401
infix fun Byte.xor(b: Ubyte) = (this xor b.v).toByte()
@@ -409,7 +409,7 @@ operator fun Int.plus(b: Ubyte) = this + b.toInt()
409409
operator fun Int.minus(b: Ubyte) = this - b.toInt()
410410
operator fun Int.times(b: Ubyte) = this * b.toInt()
411411
operator fun Int.div(b: Ubyte) = Integer.divideUnsigned(this, b.toInt())
412-
operator fun Int.mod(b: Ubyte) = Integer.remainderUnsigned(this, b.toInt())
412+
operator fun Int.rem(b: Ubyte) = Integer.remainderUnsigned(this, b.toInt())
413413
infix fun Int.and(b: Ubyte) = this and b.toInt()
414414
infix fun Int.or(b: Ubyte) = this or b.toInt()
415415
infix fun Int.xor(b: Ubyte) = this xor b.toInt()
@@ -423,7 +423,7 @@ operator fun Int.plus(b: Uint) = this + b.toInt()
423423
operator fun Int.minus(b: Uint) = this - b.toInt()
424424
operator fun Int.times(b: Uint) = this * b.toInt()
425425
operator fun Int.div(b: Uint) = Integer.divideUnsigned(this, b.toInt())
426-
operator fun Int.mod(b: Uint) = Integer.remainderUnsigned(this, b.toInt())
426+
operator fun Int.rem(b: Uint) = Integer.remainderUnsigned(this, b.toInt())
427427
infix fun Int.and(b: Uint) = this and b.toInt()
428428
infix fun Int.or(b: Uint) = this or b.toInt()
429429
infix fun Int.xor(b: Uint) = this xor b.toInt()
@@ -437,7 +437,7 @@ operator fun Long.plus(b: Ulong) = this + b.toLong()
437437
operator fun Long.minus(b: Ulong) = this - b.toLong()
438438
operator fun Long.times(b: Ulong) = this * b.toLong()
439439
operator fun Long.div(b: Ulong) = java.lang.Long.divideUnsigned(this, b.toLong())
440-
operator fun Long.mod(b: Ulong) = java.lang.Long.remainderUnsigned(this, b.toLong())
440+
operator fun Long.rem(b: Ulong) = java.lang.Long.remainderUnsigned(this, b.toLong())
441441
infix fun Long.and(b: Ulong) = this and b.toLong()
442442
infix fun Long.or(b: Ulong) = this or b.toLong()
443443
infix fun Long.xor(b: Ulong) = this xor b.toLong()
@@ -449,7 +449,7 @@ operator fun Short.plus(b: Ushort) = (toInt() + b.toInt()).toShort()
449449
operator fun Short.minus(b: Ushort) = (toInt() - b.toInt()).toShort()
450450
operator fun Short.times(b: Ushort) = (toInt() * b.toInt()).toShort()
451451
operator fun Short.div(b: Ushort) = (toUInt() / b.toInt()).toShort()
452-
operator fun Short.mod(b: Ushort) = (toUInt() % b.toInt()).toShort()
452+
operator fun Short.rem(b: Ushort) = (toUInt() % b.toInt()).toShort()
453453
infix fun Short.and(b: Ushort) = (this and b.v).toShort()
454454
infix fun Short.or(b: Ushort) = (this or b.v).toShort()
455455
infix fun Short.xor(b: Ushort) = (this xor b.v).toShort()
@@ -463,7 +463,7 @@ operator fun Int.plus(b: Ushort) = this + b.toInt()
463463
operator fun Int.minus(b: Ushort) = this - b.toInt()
464464
operator fun Int.times(b: Ushort) = this * b.toInt()
465465
operator fun Int.div(b: Ushort) = Integer.divideUnsigned(this, b.toInt())
466-
operator fun Int.mod(b: Ushort) = Integer.remainderUnsigned(this, b.toInt())
466+
operator fun Int.rem(b: Ushort) = Integer.remainderUnsigned(this, b.toInt())
467467
infix fun Int.and(b: Ushort) = this and b.toInt()
468468
infix fun Int.or(b: Ushort) = this or b.toInt()
469469
infix fun Int.xor(b: Ushort) = this xor b.toInt()

0 commit comments

Comments
 (0)