Beispiel #1
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 #2
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 #3
0
        public T Remainder(
            T thisValue,
            T divisor,
            EContext ctx,
            bool roundAfterDivide)
        {
            EContext tctx   = (ctx == null) ? ctx : ctx.GetNontrapping();
            T        result = this.math.Remainder(
                thisValue,
                divisor,
                tctx,
                roundAfterDivide);

            return(ctx == null ? result : ctx.TriggerTraps(result, tctx));
        }
Beispiel #4
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 #5
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 #6
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 #7
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));
        }