aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar John Ericson <Ericson2314@Yahoo.com> 2016-06-27 18:01:38 -0700
committerGravatar John Ericson <Ericson2314@Yahoo.com> 2016-06-29 22:48:09 -0700
commit7234146529386a0d59817055c847b5e906ab605c (patch)
tree1492c609b6c80676f0b7a5ab330ccc7df9a02fb6
parentdd3bb0fca40118e52c4584c11f0d010410da4a0c (diff)
downloadrust-x86-7234146529386a0d59817055c847b5e906ab605c.tar.gz
rust-x86-7234146529386a0d59817055c847b5e906ab605c.tar.zst
rust-x86-7234146529386a0d59817055c847b5e906ab605c.zip
Add `::current` module for whichever of `bits{32,64}` is active
-rw-r--r--src/lib.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 85ac7f2..27bd00f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -22,6 +22,13 @@ pub mod bits32;
pub mod bits64;
pub mod shared;
+pub mod current {
+ #[cfg(target_arch="x86")]
+ pub use bits32::*;
+ #[cfg(target_arch="x86_64")]
+ pub use bits64::*;
+}
+
mod std {
pub use core::fmt;
pub use core::ops;