We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 199c92c commit 802085dCopy full SHA for 802085d
src/tools/miri/src/math.rs
@@ -125,9 +125,9 @@ pub(crate) fn sqrt<S: rustc_apfloat::ieee::Semantics>(x: IeeeFloat<S>) -> IeeeFl
125
}
126
127
128
-impl<S: rustc_apfloat::ieee::Semantics> IeeeExt for IeeeFloat<S> {}
129
/// Extend functionality of rustc_apfloat softfloats
130
pub trait IeeeExt: rustc_apfloat::Float {
+ #[inline]
131
fn one() -> Self {
132
Self::from_u128(1).value
133
@@ -137,6 +137,7 @@ pub trait IeeeExt: rustc_apfloat::Float {
137
self.maximum(min).minimum(max)
138
139
140
+impl<S: rustc_apfloat::ieee::Semantics> IeeeExt for IeeeFloat<S> {}
141
142
#[cfg(test)]
143
mod tests {
0 commit comments