shr

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.3)
infix fun shr(bitCount: Int): Int

Shifts this value right by the bitCount number of bits, filling the leftmost bits with copies of the sign bit.

Note that only the five lowest-order bits of the bitCount are used as the shift distance. The shift distance actually used is therefore always in the range 0..31.

© 2010–2021 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/shr.html