This commit applies rustfmt with rust-lang/rust's default settings to files in src/libstd/sys *that are not involved in any currently open PR* to minimize merge conflicts. THe list of files involved in open PRs was determined by querying GitHub's GraphQL API with this script: https://gist.github.com/dtolnay/aa9c34993dc051a4f344d1b10e4487e8 With the list of files from the script in outstanding_files, the relevant commands were: $ find src/libstd/sys -name '*.rs' \ | xargs rustfmt --edition=2018 --unstable-features --skip-children $ rg libstd/sys outstanding_files | xargs git checkout -- Repeating this process several months apart should get us coverage of most of the rest of the files. To confirm no funny business: $ git checkout $THIS_COMMIT^ $ git show --pretty= --name-only $THIS_COMMIT \ | xargs rustfmt --edition=2018 --unstable-features --skip-children $ git diff $THIS_COMMIT # there should be no difference
29 lines
970 B
Rust
29 lines
970 B
Rust
// These symbols are all defined in `compiler-builtins`
|
|
extern "C" {
|
|
pub fn acos(n: f64) -> f64;
|
|
pub fn acosf(n: f32) -> f32;
|
|
pub fn asin(n: f64) -> f64;
|
|
pub fn asinf(n: f32) -> f32;
|
|
pub fn atan(n: f64) -> f64;
|
|
pub fn atan2(a: f64, b: f64) -> f64;
|
|
pub fn atan2f(a: f32, b: f32) -> f32;
|
|
pub fn atanf(n: f32) -> f32;
|
|
pub fn cbrt(n: f64) -> f64;
|
|
pub fn cbrtf(n: f32) -> f32;
|
|
pub fn cosh(n: f64) -> f64;
|
|
pub fn coshf(n: f32) -> f32;
|
|
pub fn expm1(n: f64) -> f64;
|
|
pub fn expm1f(n: f32) -> f32;
|
|
pub fn fdim(a: f64, b: f64) -> f64;
|
|
pub fn fdimf(a: f32, b: f32) -> f32;
|
|
pub fn hypot(x: f64, y: f64) -> f64;
|
|
pub fn hypotf(x: f32, y: f32) -> f32;
|
|
pub fn log1p(n: f64) -> f64;
|
|
pub fn log1pf(n: f32) -> f32;
|
|
pub fn sinh(n: f64) -> f64;
|
|
pub fn sinhf(n: f32) -> f32;
|
|
pub fn tan(n: f64) -> f64;
|
|
pub fn tanf(n: f32) -> f32;
|
|
pub fn tanh(n: f64) -> f64;
|
|
pub fn tanhf(n: f32) -> f32;
|
|
}
|