Rollup merge of #120109 - joboet:move_pal_cmath, r=ChrisDenton
Move cmath into `sys` Part of #117276. r? ``@ChrisDenton``
This commit is contained in:
commit
42e1db52ac
15 changed files with 14 additions and 26 deletions
|
@ -1,5 +1,3 @@
|
||||||
#![cfg(not(test))]
|
|
||||||
|
|
||||||
// These symbols are all defined by `libm`,
|
// These symbols are all defined by `libm`,
|
||||||
// or by `compiler-builtins` on unsupported platforms.
|
// or by `compiler-builtins` on unsupported platforms.
|
||||||
|
|
11
library/std/src/sys/cmath/mod.rs
Normal file
11
library/std/src/sys/cmath/mod.rs
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
#![cfg(not(test))]
|
||||||
|
|
||||||
|
cfg_if::cfg_if! {
|
||||||
|
if #[cfg(target_os = "windows")] {
|
||||||
|
mod windows;
|
||||||
|
pub use windows::*;
|
||||||
|
} else {
|
||||||
|
mod builtins;
|
||||||
|
pub use builtins::*;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,5 +1,3 @@
|
||||||
#![cfg(not(test))]
|
|
||||||
|
|
||||||
use core::ffi::{c_double, c_float, c_int};
|
use core::ffi::{c_double, c_float, c_int};
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
|
@ -3,9 +3,11 @@
|
||||||
/// descriptors.
|
/// descriptors.
|
||||||
mod pal;
|
mod pal;
|
||||||
|
|
||||||
pub mod os_str;
|
|
||||||
mod personality;
|
mod personality;
|
||||||
|
|
||||||
|
pub mod cmath;
|
||||||
|
pub mod os_str;
|
||||||
|
|
||||||
// FIXME(117276): remove this, move feature implementations into individual
|
// FIXME(117276): remove this, move feature implementations into individual
|
||||||
// submodules.
|
// submodules.
|
||||||
pub use pal::*;
|
pub use pal::*;
|
||||||
|
|
|
@ -19,8 +19,6 @@ use crate::os::raw::c_char;
|
||||||
|
|
||||||
pub mod alloc;
|
pub mod alloc;
|
||||||
pub mod args;
|
pub mod args;
|
||||||
#[path = "../unix/cmath.rs"]
|
|
||||||
pub mod cmath;
|
|
||||||
pub mod env;
|
pub mod env;
|
||||||
pub mod fd;
|
pub mod fd;
|
||||||
pub mod fs;
|
pub mod fs;
|
||||||
|
|
|
@ -13,8 +13,6 @@ mod waitqueue;
|
||||||
|
|
||||||
pub mod alloc;
|
pub mod alloc;
|
||||||
pub mod args;
|
pub mod args;
|
||||||
#[path = "../unix/cmath.rs"]
|
|
||||||
pub mod cmath;
|
|
||||||
pub mod env;
|
pub mod env;
|
||||||
pub mod fd;
|
pub mod fd;
|
||||||
#[path = "../unsupported/fs.rs"]
|
#[path = "../unsupported/fs.rs"]
|
||||||
|
|
|
@ -21,8 +21,6 @@ mod itron {
|
||||||
pub mod alloc;
|
pub mod alloc;
|
||||||
#[path = "../unsupported/args.rs"]
|
#[path = "../unsupported/args.rs"]
|
||||||
pub mod args;
|
pub mod args;
|
||||||
#[path = "../unix/cmath.rs"]
|
|
||||||
pub mod cmath;
|
|
||||||
pub mod env;
|
pub mod env;
|
||||||
// `error` is `pub(crate)` so that it can be accessed by `itron/error.rs` as
|
// `error` is `pub(crate)` so that it can be accessed by `itron/error.rs` as
|
||||||
// `crate::sys::error`
|
// `crate::sys::error`
|
||||||
|
|
|
@ -11,8 +11,6 @@ pub use self::rand::hashmap_random_keys;
|
||||||
pub mod alloc;
|
pub mod alloc;
|
||||||
#[path = "../unsupported/args.rs"]
|
#[path = "../unsupported/args.rs"]
|
||||||
pub mod args;
|
pub mod args;
|
||||||
#[path = "../unix/cmath.rs"]
|
|
||||||
pub mod cmath;
|
|
||||||
#[path = "../unsupported/env.rs"]
|
#[path = "../unsupported/env.rs"]
|
||||||
pub mod env;
|
pub mod env;
|
||||||
pub mod locks;
|
pub mod locks;
|
||||||
|
|
|
@ -14,8 +14,6 @@
|
||||||
|
|
||||||
pub mod alloc;
|
pub mod alloc;
|
||||||
pub mod args;
|
pub mod args;
|
||||||
#[path = "../unix/cmath.rs"]
|
|
||||||
pub mod cmath;
|
|
||||||
pub mod env;
|
pub mod env;
|
||||||
#[path = "../unsupported/fs.rs"]
|
#[path = "../unsupported/fs.rs"]
|
||||||
pub mod fs;
|
pub mod fs;
|
||||||
|
|
|
@ -11,8 +11,6 @@ pub mod weak;
|
||||||
pub mod alloc;
|
pub mod alloc;
|
||||||
pub mod android;
|
pub mod android;
|
||||||
pub mod args;
|
pub mod args;
|
||||||
#[path = "../unix/cmath.rs"]
|
|
||||||
pub mod cmath;
|
|
||||||
pub mod env;
|
pub mod env;
|
||||||
pub mod fd;
|
pub mod fd;
|
||||||
pub mod fs;
|
pub mod fs;
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
|
|
||||||
pub mod alloc;
|
pub mod alloc;
|
||||||
pub mod args;
|
pub mod args;
|
||||||
#[path = "../unix/cmath.rs"]
|
|
||||||
pub mod cmath;
|
|
||||||
pub mod env;
|
pub mod env;
|
||||||
pub mod fs;
|
pub mod fs;
|
||||||
pub mod io;
|
pub mod io;
|
||||||
|
|
|
@ -20,8 +20,6 @@ use crate::mem;
|
||||||
#[path = "../unix/alloc.rs"]
|
#[path = "../unix/alloc.rs"]
|
||||||
pub mod alloc;
|
pub mod alloc;
|
||||||
pub mod args;
|
pub mod args;
|
||||||
#[path = "../unix/cmath.rs"]
|
|
||||||
pub mod cmath;
|
|
||||||
pub mod env;
|
pub mod env;
|
||||||
pub mod fd;
|
pub mod fd;
|
||||||
pub mod fs;
|
pub mod fs;
|
||||||
|
|
|
@ -19,8 +19,6 @@
|
||||||
pub mod alloc;
|
pub mod alloc;
|
||||||
#[path = "../unsupported/args.rs"]
|
#[path = "../unsupported/args.rs"]
|
||||||
pub mod args;
|
pub mod args;
|
||||||
#[path = "../unix/cmath.rs"]
|
|
||||||
pub mod cmath;
|
|
||||||
pub mod env;
|
pub mod env;
|
||||||
#[path = "../unsupported/fs.rs"]
|
#[path = "../unsupported/fs.rs"]
|
||||||
pub mod fs;
|
pub mod fs;
|
||||||
|
|
|
@ -15,7 +15,6 @@ pub mod compat;
|
||||||
pub mod alloc;
|
pub mod alloc;
|
||||||
pub mod args;
|
pub mod args;
|
||||||
pub mod c;
|
pub mod c;
|
||||||
pub mod cmath;
|
|
||||||
pub mod env;
|
pub mod env;
|
||||||
pub mod fs;
|
pub mod fs;
|
||||||
pub mod handle;
|
pub mod handle;
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
pub mod alloc;
|
pub mod alloc;
|
||||||
#[path = "../unsupported/args.rs"]
|
#[path = "../unsupported/args.rs"]
|
||||||
pub mod args;
|
pub mod args;
|
||||||
#[path = "../unix/cmath.rs"]
|
|
||||||
pub mod cmath;
|
|
||||||
#[path = "../unsupported/env.rs"]
|
#[path = "../unsupported/env.rs"]
|
||||||
pub mod env;
|
pub mod env;
|
||||||
#[path = "../unsupported/fs.rs"]
|
#[path = "../unsupported/fs.rs"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue