From cf2b0c884947d5f99302acad6df01a4b5be5c580 Mon Sep 17 00:00:00 2001 From: Brett Saiki Date: Thu, 7 Mar 2024 19:28:13 -0800 Subject: [PATCH] remove comment --- src/ieee754/round.rs | 51 -------------------------------------------- 1 file changed, 51 deletions(-) diff --git a/src/ieee754/round.rs b/src/ieee754/round.rs index 6d96c34..3d6c495 100644 --- a/src/ieee754/round.rs +++ b/src/ieee754/round.rs @@ -529,55 +529,4 @@ impl RoundingContext for IEEE754Context { self.round_finalize(unbounded, tiny_pre, tiny_post, inexact, carry) } } - - // fn format_round(&self, val: &Self::Format) -> Self::Format { - // match &val.num { - // IEEE754Val::Zero(s) => { - // // +/-0 is preserved - // IEEE754 { - // num: IEEE754Val::Zero(*s), - // flags: Default::default(), - // ctx: self.clone(), - // } - // } - // IEEE754Val::Infinity(s) => { - // // +/-Inf is preserved - // IEEE754 { - // num: IEEE754Val::Infinity(*s), - // flags: Default::default(), - // ctx: self.clone(), - // } - // } - // IEEE754Val::Nan(s, _, payload) => { - // // NaN - // // rounding truncates the payload - // // always quiets the result - // let offset = self.max_p() as isize - val.ctx.max_p() as isize; - // let payload = match offset.cmp(&0) { - // std::cmp::Ordering::Less => { - // // truncation: chop off the lower bits - // Integer::from(payload >> -offset) - // } - // std::cmp::Ordering::Greater => { - // // padding - // Integer::from(payload << offset) - // } - // std::cmp::Ordering::Equal => { - // // payload is preserved exactly - // payload.clone() - // } - // }; - - // IEEE754 { - // num: IEEE754Val::Nan(*s, true, payload), - // flags: Default::default(), - // ctx: self.clone(), - // } - // } - // _ => { - // // finite, non-zero - // self.round_finite(val) - // } - // } - // } }