Add missing long2ipf function