File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -60,12 +60,13 @@ pub fn floor(mut x: f64) -> f64 {
6060 }
6161 x
6262}
63- /// Implements the exponential functions with `x87` assembly. This relies on
64- /// the instruction `f2xm1`, which computes `2^x - 1` (for |x| < 1). This
65- /// transcendental instruction is documented to produce results with error
66- /// below 1ulp (in the native double-extended precision format).
67- /// This translates to correctly rounded results for f32, but results
68- /// in f64 may have 1ulp error, which may depend on the hardware.
63+ /// Implements the exponential functions with `x87` assembly.
64+ ///
65+ /// This relies on the instruction `f2xm1`, which computes `2^x - 1` (for
66+ /// |x| < 1). This transcendental instruction is documented to produce results
67+ /// with error below 1ulp (in the native double-extended precision format). This
68+ /// translates to correctly rounded results for f32, but results in f64 may have
69+ /// 1ulp error, which may depend on the hardware.
6970macro_rules! x87exp {
7071 ( $float_ty: ident, $word_size: literal, $fn_name: ident, $load_op: literal) => {
7172 pub fn $fn_name( mut x: $float_ty) -> $float_ty { unsafe {
You can’t perform that action at this time.
0 commit comments