def ntohs(x): return rffi.cast(lltype.Signed, _c.ntohs(x))
def ntohs(x): assert isinstance(x, int) return rffi.cast(lltype.Signed, _c.ntohs(x))