Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #161 from alexcrichton/ldexp
Add bindings for ldexp/ldexpf
- Loading branch information
Showing
3 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#[inline] | ||
#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)] | ||
pub fn ldexp(x: f64, n: i32) -> f64 { | ||
super::scalbn(x, n) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#[inline] | ||
#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)] | ||
pub fn ldexpf(x: f32, n: i32) -> f32 { | ||
super::scalbnf(x, n) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters