static public int long_arity(long l) { ulong v = (ulong)(l < 0 ? -l : l); int sz = 3; /* Type, arity and sign */ while (v != 0) { sz++; v >>= 8; } return sz; }