rewrite hex2sint(), add sign_expand()