Skip to content

Commit e5b0c02

Browse files
author
The Miri Cronjob Bot
committed
fmt
1 parent 1930043 commit e5b0c02

File tree

1 file changed

+2
-10
lines changed
  • src/tools/miri/src/intrinsics

1 file changed

+2
-10
lines changed

src/tools/miri/src/intrinsics/mod.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
292292
let b = this.read_scalar(b)?.to_f32()?;
293293
let c = this.read_scalar(c)?.to_f32()?;
294294
let fuse: bool = this.machine.float_nondet && this.machine.rng.get_mut().random();
295-
let res = if fuse {
296-
a.mul_add(b, c).value
297-
} else {
298-
((a * b).value + c).value
299-
};
295+
let res = if fuse { a.mul_add(b, c).value } else { ((a * b).value + c).value };
300296
let res = this.adjust_nan(res, &[a, b, c]);
301297
this.write_scalar(res, dest)?;
302298
}
@@ -306,11 +302,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
306302
let b = this.read_scalar(b)?.to_f64()?;
307303
let c = this.read_scalar(c)?.to_f64()?;
308304
let fuse: bool = this.machine.float_nondet && this.machine.rng.get_mut().random();
309-
let res = if fuse {
310-
a.mul_add(b, c).value
311-
} else {
312-
((a * b).value + c).value
313-
};
305+
let res = if fuse { a.mul_add(b, c).value } else { ((a * b).value + c).value };
314306
let res = this.adjust_nan(res, &[a, b, c]);
315307
this.write_scalar(res, dest)?;
316308
}

0 commit comments

Comments
 (0)