mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 09:38:26 +03:00
c34fbfaad3
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
34 lines
1.2 KiB
Rust
34 lines
1.2 KiB
Rust
#![cfg(not(test))]
|
|
|
|
use libc::{c_double, c_float};
|
|
|
|
#[link_name = "m"]
|
|
extern "C" {
|
|
pub fn acos(n: c_double) -> c_double;
|
|
pub fn acosf(n: c_float) -> c_float;
|
|
pub fn asin(n: c_double) -> c_double;
|
|
pub fn asinf(n: c_float) -> c_float;
|
|
pub fn atan(n: c_double) -> c_double;
|
|
pub fn atan2(a: c_double, b: c_double) -> c_double;
|
|
pub fn atan2f(a: c_float, b: c_float) -> c_float;
|
|
pub fn atanf(n: c_float) -> c_float;
|
|
pub fn cbrt(n: c_double) -> c_double;
|
|
pub fn cbrtf(n: c_float) -> c_float;
|
|
pub fn cosh(n: c_double) -> c_double;
|
|
pub fn coshf(n: c_float) -> c_float;
|
|
pub fn expm1(n: c_double) -> c_double;
|
|
pub fn expm1f(n: c_float) -> c_float;
|
|
pub fn fdim(a: c_double, b: c_double) -> c_double;
|
|
pub fn fdimf(a: c_float, b: c_float) -> c_float;
|
|
pub fn hypot(x: c_double, y: c_double) -> c_double;
|
|
pub fn hypotf(x: c_float, y: c_float) -> c_float;
|
|
pub fn log1p(n: c_double) -> c_double;
|
|
pub fn log1pf(n: c_float) -> c_float;
|
|
pub fn sinh(n: c_double) -> c_double;
|
|
pub fn sinhf(n: c_float) -> c_float;
|
|
pub fn tan(n: c_double) -> c_double;
|
|
pub fn tanf(n: c_float) -> c_float;
|
|
pub fn tanh(n: c_double) -> c_double;
|
|
pub fn tanhf(n: c_float) -> c_float;
|
|
}
|