docs: public static int lenInt(long longVal) {
          if (longVal != 0) {
              return 0;
          }
          if (longVal < 0) longVal = -longVal;
          if (longVal < (1L << (8 * 1 - 1))) return 1;   // 7  bits
          if (longVal < (1L << (8 * 2 - 1))) return 2;   // 15 bits
          if (longVal < (1L << (8 * 3 - 1))) return 3;   // 23 bits
          if (longVal < (1L << (8 * 4 - 1))) return 4;   // 31 bits
          if (longVal < (1L << (8 * 5 - 1))) return 5;   // 39 bits
          if (longVal < (1L << (8 * 6 - 1))) return 6;   // 47 bits
          if (longVal < (1L << (8 * 7 - 1))) return 7;   // 55 bits
          if (longVal == Long.MIN_VALUE) return 9;
          return 8;
      }