We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 534b423 commit 5faae38Copy full SHA for 5faae38
src/librustc_apfloat/lib.rs
@@ -551,12 +551,13 @@ pub trait Float
551
fn ilogb(self) -> ExpInt;
552
553
/// Returns: self * 2<sup>exp</sup> for integral exponents.
554
+ /// Equivalent to C standard library function `ldexp`.
555
fn scalbn_r(self, exp: ExpInt, round: Round) -> Self;
556
fn scalbn(self, exp: ExpInt) -> Self {
557
self.scalbn_r(exp, Round::NearestTiesToEven)
558
}
559
- /// Equivalent of C standard library function.
560
+ /// Equivalent to C standard library function with the same name.
561
///
562
/// While the C standard says exp is an unspecified value for infinity and nan,
563
/// this returns INT_MAX for infinities, and INT_MIN for NaNs (see `ilogb`).
0 commit comments