protected static boolean unsignedFitsInShort(int value) {
    return value == (value & 0xffff);
  }
Helper method to determine if an unsigned int value fits in a short.

@param value the value in question
@return {@code true} iff it's in the range 0..0xffff
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/code/InsnFormat.java