public final static boolean fits (long val, int bits) { val = val >> bits-1; return (val == 0L || val == -1L);
public final static boolean fits (Offset val, int bits) { Word o = val.toWord().rsha(bits-1); return (o.isZero() || o.isMax());
  public final static boolean fits (long val, int bits) {    val = val >> bits-1;    return (val == 0L || val == -1L);  }