also update copysign docs · patricklam/verify-rust-std@07cfc6a (original) (raw)
4 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -248,11 +248,11 @@ impl f128 { | ||
248 | 248 | /// Returns a number composed of the magnitude of `self` and the sign of |
249 | 249 | /// `sign`. |
250 | 250 | /// |
251 | - /// Equal to `self` if the sign of `self` and `sign` are the same, otherwise | |
252 | - /// equal to `-self`. If `self` is a NaN, then a NaN with the sign bit of | |
253 | - /// `sign` is returned. Note, however, that conserving the sign bit on NaN | |
254 | - /// across arithmetical operations is not generally guaranteed. | |
255 | - /// See [explanation of NaN as a special value](primitive@f128) for more info. | |
251 | + /// Equal to `self` if the sign of `self` and `sign` are the same, otherwise equal to `-self`. | |
252 | + /// If `self` is a NaN, then a NaN with the same payload as `self` and the sign bit of `sign` is | |
253 | + /// returned. Note, however, that conserving the sign bit on NaN across arithmetical operations | |
254 | + /// is not generally guaranteed. See [specification of NaN bit | |
255 | + /// patterns](primitive@f32#nan-bit-patterns) for more info. | |
256 | 256 | /// |
257 | 257 | /// # Examples |
258 | 258 | /// |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -247,11 +247,11 @@ impl f16 { | ||
247 | 247 | /// Returns a number composed of the magnitude of `self` and the sign of |
248 | 248 | /// `sign`. |
249 | 249 | /// |
250 | - /// Equal to `self` if the sign of `self` and `sign` are the same, otherwise | |
251 | - /// equal to `-self`. If `self` is a NaN, then a NaN with the sign bit of | |
252 | - /// `sign` is returned. Note, however, that conserving the sign bit on NaN | |
253 | - /// across arithmetical operations is not generally guaranteed. | |
254 | - /// See [explanation of NaN as a special value](primitive@f16) for more info. | |
250 | + /// Equal to `self` if the sign of `self` and `sign` are the same, otherwise equal to `-self`. | |
251 | + /// If `self` is a NaN, then a NaN with the same payload as `self` and the sign bit of `sign` is | |
252 | + /// returned. Note, however, that conserving the sign bit on NaN across arithmetical operations | |
253 | + /// is not generally guaranteed. See [specification of NaN bit | |
254 | + /// patterns](primitive@f32#nan-bit-patterns) for more info. | |
255 | 255 | /// |
256 | 256 | /// # Examples |
257 | 257 | /// |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -226,11 +226,11 @@ impl f32 { | ||
226 | 226 | /// Returns a number composed of the magnitude of `self` and the sign of |
227 | 227 | /// `sign`. |
228 | 228 | /// |
229 | - /// Equal to `self` if the sign of `self` and `sign` are the same, otherwise | |
230 | - /// equal to `-self`. If `self` is a NaN, then a NaN with the sign bit of | |
231 | - /// `sign` is returned. Note, however, that conserving the sign bit on NaN | |
232 | - /// across arithmetical operations is not generally guaranteed. | |
233 | - /// See [explanation of NaN as a special value](primitive@f32) for more info. | |
229 | + /// Equal to `self` if the sign of `self` and `sign` are the same, otherwise equal to `-self`. | |
230 | + /// If `self` is a NaN, then a NaN with the same payload as `self` and the sign bit of `sign` is | |
231 | + /// returned. Note, however, that conserving the sign bit on NaN across arithmetical operations | |
232 | + /// is not generally guaranteed. See [specification of NaN bit | |
233 | + /// patterns](primitive@f32#nan-bit-patterns) for more info. | |
234 | 234 | /// |
235 | 235 | /// # Examples |
236 | 236 | /// |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -226,11 +226,11 @@ impl f64 { | ||
226 | 226 | /// Returns a number composed of the magnitude of `self` and the sign of |
227 | 227 | /// `sign`. |
228 | 228 | /// |
229 | - /// Equal to `self` if the sign of `self` and `sign` are the same, otherwise | |
230 | - /// equal to `-self`. If `self` is a NaN, then a NaN with the sign bit of | |
231 | - /// `sign` is returned. Note, however, that conserving the sign bit on NaN | |
232 | - /// across arithmetical operations is not generally guaranteed. | |
233 | - /// See [explanation of NaN as a special value](primitive@f32) for more info. | |
229 | + /// Equal to `self` if the sign of `self` and `sign` are the same, otherwise equal to `-self`. | |
230 | + /// If `self` is a NaN, then a NaN with the same payload as `self` and the sign bit of `sign` is | |
231 | + /// returned. Note, however, that conserving the sign bit on NaN across arithmetical operations | |
232 | + /// is not generally guaranteed. See [specification of NaN bit | |
233 | + /// patterns](primitive@f32#nan-bit-patterns) for more info. | |
234 | 234 | /// |
235 | 235 | /// # Examples |
236 | 236 | /// |