protected static String literalBitsComment(CstLiteralBits value, int width) {
    StringBuilder sb = new StringBuilder(20);

    sb.append("#");

    long bits;

    if (value instanceof CstLiteral64) {
      bits = value.getLongBits();
    } else {
      bits = value.getIntBits();
    }

    switch (width) {
      case 4:
        sb.append(Hex.uNibble((int) bits));
        break;
      case 8:
        sb.append(Hex.u1((int) bits));
        break;
      case 16:
        sb.append(Hex.u2((int) bits));
        break;
      case 32:
        sb.append(Hex.u4((int) bits));
        break;
      case 64:
        sb.append(Hex.u8(bits));
        break;
      default:
        {
          throw new RuntimeException("shouldn't happen");
        }
    }

    return sb.toString();
  }
Helper method to return a literal bits comment string.

@param value the value
@param width the width of the constant, in bits (used for displaying the uninterpreted bits;
    one of: {@code 4 8 16 32 64}
@return {@code non-null;} the comment
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/code/InsnFormat.java