Beispiel #1
0
        public T RemainderNear(T thisValue, T divisor, EContext ctx)
        {
            EContext tctx   = (ctx == null) ? ctx : ctx.GetNontrapping();
            T        result = this.math.RemainderNear(thisValue, divisor, tctx);

            return(ctx == null ? result : ctx.TriggerTraps(result, tctx));
        }
Beispiel #2
0
        public T Pi(EContext ctx)
        {
            EContext tctx   = (ctx == null) ? ctx : ctx.GetNontrapping();
            T        result = this.math.Pi(tctx);

            return(ctx == null ? result : ctx.TriggerTraps(result, tctx));
        }
Beispiel #3
0
        public T SignalOverflow(EContext ctx, bool neg)
        {
            EContext tctx   = (ctx == null) ? ctx : ctx.GetNontrapping();
            T        result = this.math.SignalOverflow(tctx, neg);

            return(ctx == null ? result : ctx.TriggerTraps(result, tctx));
        }
Beispiel #4
0
        public T Negate(T value, EContext ctx)
        {
            EContext tctx   = (ctx == null) ? ctx : ctx.GetNontrapping();
            T        result = this.math.Negate(value, tctx);

            return(ctx == null ? result : ctx.TriggerTraps(result, tctx));
        }
Beispiel #5
0
        public T Reduce(T thisValue, EContext ctx)
        {
            EContext tctx   = (ctx == null) ? ctx : ctx.GetNontrapping();
            T        result = this.math.Reduce(thisValue, ctx);

            return(ctx == null ? result : ctx.TriggerTraps(result, tctx));
        }
Beispiel #6
0
        public T RoundAfterConversion(T thisValue, EContext ctx)
        {
            EContext tctx   = (ctx == null) ? ctx : ctx.GetNontrapping();
            T        result = this.math.RoundAfterConversion(thisValue, tctx);

            return(ctx == null ? result : ctx.TriggerTraps(result, tctx));
        }
Beispiel #7
0
        public T Add(T thisValue, T other, EContext ctx)
        {
            EContext tctx   = (ctx == null) ? ctx : ctx.GetNontrapping();
            T        result = this.math.Add(thisValue, other, tctx);

            return(ctx == null ? result : ctx.TriggerTraps(result, tctx));
        }
Beispiel #8
0
        public T Min(T a, T b, EContext ctx)
        {
            EContext tctx   = (ctx == null) ? ctx : ctx.GetNontrapping();
            T        result = this.math.Min(a, b, tctx);

            return(ctx == null ? result : ctx.TriggerTraps(result, tctx));
        }
Beispiel #9
0
        public T Power(T thisValue, T pow, EContext ctx)
        {
            EContext tctx   = (ctx == null) ? ctx : ctx.GetNontrapping();
            T        result = this.math.Power(thisValue, pow, tctx);

            return(ctx == null ? result : ctx.TriggerTraps(result, tctx));
        }
Beispiel #10
0
        public T DivideToIntegerZeroScale(
            T thisValue,
            T divisor,
            EContext ctx)
        {
            EContext tctx   = (ctx == null) ? ctx : ctx.GetNontrapping();
            T        result = this.math.DivideToIntegerZeroScale(thisValue, divisor, tctx);

            return(ctx == null ? result : ctx.TriggerTraps(result, tctx));
        }
Beispiel #11
0
        public T RoundToExponentSimple(
            T thisValue,
            EInteger expOther,
            EContext ctx)
        {
            EContext tctx   = (ctx == null) ? ctx : ctx.GetNontrapping();
            T        result = this.math.RoundToExponentSimple(thisValue, expOther, ctx);

            return(ctx == null ? result : ctx.TriggerTraps(result, tctx));
        }
Beispiel #12
0
        public T AddEx(
            T thisValue,
            T other,
            EContext ctx,
            bool roundToOperandPrecision)
        {
            EContext tctx   = (ctx == null) ? ctx : ctx.GetNontrapping();
            T        result = this.math.AddEx(
                thisValue,
                other,
                ctx,
                roundToOperandPrecision);

            return(ctx == null ? result : ctx.TriggerTraps(result, tctx));
        }
Beispiel #13
0
        public T CompareToWithContext(
            T thisValue,
            T otherValue,
            bool treatQuietNansAsSignaling,
            EContext ctx)
        {
            EContext tctx   = (ctx == null) ? ctx : ctx.GetNontrapping();
            T        result = this.math.CompareToWithContext(
                thisValue,
                otherValue,
                treatQuietNansAsSignaling,
                tctx);

            return(ctx == null ? result : ctx.TriggerTraps(result, tctx));
        }
Beispiel #14
0
        public T MultiplyAndAdd(
            T thisValue,
            T multiplicand,
            T augend,
            EContext ctx)
        {
            EContext tctx   = (ctx == null) ? ctx : ctx.GetNontrapping();
            T        result = this.math.MultiplyAndAdd(
                thisValue,
                multiplicand,
                augend,
                tctx);

            return(ctx == null ? result : ctx.TriggerTraps(result, tctx));
        }
Beispiel #15
0
        public T DivideToExponent(
            T thisValue,
            T divisor,
            EInteger desiredExponent,
            EContext ctx)
        {
            EContext tctx   = (ctx == null) ? ctx : ctx.GetNontrapping();
            T        result = this.math.DivideToExponent(
                thisValue,
                divisor,
                desiredExponent,
                tctx);

            return(ctx == null ? result : ctx.TriggerTraps(result, tctx));
        }