2016-08-07 20:58:05 +00:00
|
|
|
#![feature(asm)]
|
2016-08-16 02:08:04 +00:00
|
|
|
#![feature(core_intrinsics)]
|
2016-08-13 02:20:56 +00:00
|
|
|
#![feature(linkage)]
|
2016-08-07 20:58:05 +00:00
|
|
|
#![feature(naked_functions)]
|
2016-08-13 21:58:44 +00:00
|
|
|
#![cfg_attr(not(test), no_std)]
|
2016-08-13 17:16:52 +00:00
|
|
|
#![no_builtins]
|
2016-08-07 20:58:05 +00:00
|
|
|
// TODO(rust-lang/rust#35021) uncomment when that PR lands
|
|
|
|
// #![feature(rustc_builtins)]
|
|
|
|
|
2016-08-13 08:51:54 +00: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-09-26 20:55:11 +00:00
|
|
|
// NOTE cfg(all(feature = "c", ..)) indicate that compiler-rt provides an arch optimized
|
|
|
|
// implementation of that intrinsic and we'll prefer to use that
|
|
|
|
|
2016-08-11 00:12:37 +00:00
|
|
|
#[cfg(test)]
|
|
|
|
#[macro_use]
|
|
|
|
extern crate quickcheck;
|
2016-08-07 20:58:05 +00:00
|
|
|
|
2016-08-13 21:58:44 +00:00
|
|
|
#[cfg(test)]
|
|
|
|
extern crate core;
|
|
|
|
|
2016-09-16 20:53:14 +00:00
|
|
|
#[cfg(test)]
|
|
|
|
extern crate gcc_s;
|
|
|
|
|
2016-09-27 05:22:10 +00:00
|
|
|
#[cfg(test)]
|
|
|
|
extern crate compiler_rt;
|
|
|
|
|
2016-09-22 02:38:06 +00:00
|
|
|
#[cfg(test)]
|
|
|
|
extern crate rand;
|
|
|
|
|
2016-09-22 19:46:05 +00:00
|
|
|
#[cfg(feature = "weak")]
|
2016-08-15 02:59:48 +00:00
|
|
|
extern crate rlibc;
|
|
|
|
|
2016-09-27 05:22:10 +00:00
|
|
|
#[cfg(test)]
|
|
|
|
#[macro_use]
|
|
|
|
mod qc;
|
|
|
|
|
2016-08-17 20:50:24 +00:00
|
|
|
pub mod int;
|
2016-08-17 20:51:37 +00:00
|
|
|
pub mod float;
|
2016-08-17 20:50:24 +00:00
|
|
|
|
2016-08-07 20:58:05 +00:00
|
|
|
#[cfg(target_arch = "arm")]
|
|
|
|
pub mod arm;
|
|
|
|
|
2016-08-16 22:46:46 +00:00
|
|
|
#[cfg(target_arch = "x86_64")]
|
|
|
|
pub mod x86_64;
|