'Check if results of _decimal\'s power function are within the
allowed ulp ranges.'

def bin_resolve_ulp(self, t):

    if (t.rc.is_nan() or t.rp.is_nan()):
        return False
    self.maxctx.prec = (context.p.prec * 2)
    (op1, op2) = (t.pop[0], t.pop[1])
    if t.contextfunc:
        exact = getattr(self.maxctx, t.funcname)(op1, op2)
    else:
        exact = getattr(op1, t.funcname)(op2, context=self.maxctx)
    rounded = P.Decimal(t.cresults[0])
    self.ulpdiff += 1
    return self.check_ulpdiff(exact, rounded)
