2016-08-08 04:58:05 +08:00
|
|
|
#![feature(asm)]
|
2016-08-16 10:08:04 +08:00
|
|
|
#![feature(core_intrinsics)]
|
2016-08-13 10:20:56 +08:00
|
|
|
#![feature(linkage)]
|
2016-08-08 04:58:05 +08:00
|
|
|
#![feature(naked_functions)]
|
2016-08-14 05:58:44 +08:00
|
|
|
#![cfg_attr(not(test), no_std)]
|
2016-08-14 01:16:52 +08:00
|
|
|
#![no_builtins]
|
2016-08-08 04:58:05 +08:00
|
|
|
// TODO(rust-lang/rust#35021) uncomment when that PR lands
|
|
|
|
// #![feature(rustc_builtins)]
|
|
|
|
|
2016-08-13 16:51:54 +08:00
|
|
|
// We disable #[no_mangle] for tests so that we can verify the test results
|
|
|
|
// against the native compiler-rt implementations of the builtins.
|
|
|
|
|
2016-08-11 08:12:37 +08:00
|
|
|
#[cfg(test)]
|
|
|
|
#[macro_use]
|
|
|
|
extern crate quickcheck;
|
2016-08-08 04:58:05 +08:00
|
|
|
|
2016-08-14 05:58:44 +08:00
|
|
|
#[cfg(test)]
|
|
|
|
extern crate core;
|
|
|
|
|
2016-08-15 10:59:48 +08:00
|
|
|
#[cfg(all(not(windows), not(target_os = "macos")))]
|
|
|
|
extern crate rlibc;
|
|
|
|
|
2016-08-18 04:50:24 +08:00
|
|
|
pub mod int;
|
2016-08-18 04:51:37 +08:00
|
|
|
pub mod float;
|
2016-08-18 04:50:24 +08:00
|
|
|
|
2016-08-08 04:58:05 +08:00
|
|
|
#[cfg(target_arch = "arm")]
|
|
|
|
pub mod arm;
|
|
|
|
|
2016-08-17 06:46:46 +08:00
|
|
|
#[cfg(target_arch = "x86_64")]
|
|
|
|
pub mod x86_64;
|
|
|
|
|
2016-08-14 05:58:44 +08:00
|
|
|
#[cfg(test)]
|
|
|
|
mod qc;
|
|
|
|
|