Skip to content

Commit

Permalink
Rollup merge of rust-lang#63416 - RalfJung:apfloat, r=eddyb
Browse files Browse the repository at this point in the history
apfloat: improve doc comments

r? @eddyb @nagisa
  • Loading branch information
Centril authored Oct 1, 2019
2 parents 702b45e + 5faae38 commit 185f8a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/librustc_apfloat/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -555,12 +555,13 @@ pub trait Float
fn ilogb(self) -> ExpInt;

/// Returns: self * 2<sup>exp</sup> for integral exponents.
/// Equivalent to C standard library function `ldexp`.
fn scalbn_r(self, exp: ExpInt, round: Round) -> Self;
fn scalbn(self, exp: ExpInt) -> Self {
self.scalbn_r(exp, Round::NearestTiesToEven)
}

/// Equivalent of C standard library function.
/// Equivalent to C standard library function with the same name.
///
/// While the C standard says exp is an unspecified value for infinity and nan,
/// this returns INT_MAX for infinities, and INT_MIN for NaNs (see `ilogb`).
Expand Down

0 comments on commit 185f8a9

Please sign in to comment.