I know there have been discussion about adding "proper" bit manipulation to Kotlin, and I'd like to also see some of Java's static Integer methods added to Int's companion object (so they could be used in platform independent code). I doubt it would be worth adding to the standard library, but perhaps to a kotlinx math library?
This could include:
- reverse bits
- unsigned operations (especially compare)
- highest/lowest one bit
- leading/trailing zeros
and maybe some others.