//! Operations and constants for `i16`
+#[allow(non_uppercase_statics)];
+
+use prelude::*;
+
+use default::Default;
use num::{BitCount, CheckedAdd, CheckedSub, CheckedMul};
+use num::{CheckedDiv, Zero, One, strconv};
+use num::{ToStrRadix, FromStrRadix};
use option::{Option, Some, None};
+use str;
use unstable::intrinsics;
-pub use self::generated::*;
-
int_module!(i16, 16)
impl BitCount for i16 {
//! Operations and constants for `i32`
+#[allow(non_uppercase_statics)];
+
+use prelude::*;
+
+use default::Default;
use num::{BitCount, CheckedAdd, CheckedSub, CheckedMul};
+use num::{CheckedDiv, Zero, One, strconv};
+use num::{ToStrRadix, FromStrRadix};
use option::{Option, Some, None};
+use str;
use unstable::intrinsics;
-pub use self::generated::*;
-
int_module!(i32, 32)
impl BitCount for i32 {
//! Operations and constants for `i64`
-use num::{BitCount, CheckedAdd, CheckedSub};
+#[allow(non_uppercase_statics)];
+
+use prelude::*;
+
+use default::Default;
#[cfg(target_word_size = "64")]
use num::CheckedMul;
+use num::{BitCount, CheckedAdd, CheckedSub};
+use num::{CheckedDiv, Zero, One, strconv};
+use num::{ToStrRadix, FromStrRadix};
use option::{Option, Some, None};
+use str;
use unstable::intrinsics;
-pub use self::generated::*;
-
int_module!(i64, 64)
impl BitCount for i64 {
//! Operations and constants for `i8`
+#[allow(non_uppercase_statics)];
+
+use prelude::*;
+
+use default::Default;
use num::{BitCount, CheckedAdd, CheckedSub, CheckedMul};
+use num::{CheckedDiv, Zero, One, strconv};
+use num::{ToStrRadix, FromStrRadix};
use option::{Option, Some, None};
+use str;
use unstable::intrinsics;
-pub use self::generated::*;
-
int_module!(i8, 8)
impl BitCount for i8 {
#[allow(non_uppercase_statics)];
+use prelude::*;
+
+use default::Default;
use num::{BitCount, CheckedAdd, CheckedSub, CheckedMul};
+use num::{CheckedDiv, Zero, One, strconv};
+use num::{ToStrRadix, FromStrRadix};
use option::{Option, Some, None};
+use str;
use unstable::intrinsics;
-pub use self::generated::*;
-
-#[cfg(target_word_size = "32")] pub static bits: uint = 32;
-#[cfg(target_word_size = "64")] pub static bits: uint = 64;
-
-int_module!(int, super::bits)
+#[cfg(target_word_size = "32")] int_module!(int, 32)
+#[cfg(target_word_size = "64")] int_module!(int, 64)
#[cfg(target_word_size = "32")]
impl BitCount for int {
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// FIXME(#4375): This shouldn't have to be a nested module named 'generated'...
-// FIXME(#10716): ... but now that we could solve that, the import lines and
-// attributes still prevent a removal of that module.
-
#[macro_escape];
#[doc(hidden)];
-macro_rules! int_module (($T:ty, $bits:expr) => (mod generated {
-
-#[allow(non_uppercase_statics)];
-
-use default::Default;
-use num::{ToStrRadix, FromStrRadix};
-use num::{CheckedDiv, Zero, One, strconv};
-use prelude::*;
-use str;
+macro_rules! int_module (($T:ty, $bits:expr) => (
pub static bits : uint = $bits;
pub static bytes : uint = ($bits / 8);
}
}
-}))
+))
//! Operations and constants for `u16`
+#[allow(non_uppercase_statics)];
+
+use prelude::*;
+
+use default::Default;
+use num::BitCount;
use num::{CheckedAdd, CheckedSub, CheckedMul};
+use num::{CheckedDiv, Zero, One, strconv};
+use num::{ToStrRadix, FromStrRadix};
use option::{Option, Some, None};
+use str;
use unstable::intrinsics;
-pub use self::generated::*;
-
uint_module!(u16, i16, 16)
impl CheckedAdd for u16 {
//! Operations and constants for `u32`
+#[allow(non_uppercase_statics)];
+
+use prelude::*;
+
+use default::Default;
+use num::BitCount;
use num::{CheckedAdd, CheckedSub, CheckedMul};
+use num::{CheckedDiv, Zero, One, strconv};
+use num::{ToStrRadix, FromStrRadix};
use option::{Option, Some, None};
+use str;
use unstable::intrinsics;
-pub use self::generated::*;
-
uint_module!(u32, i32, 32)
impl CheckedAdd for u32 {
//! Operations and constants for `u64`
-use num::{CheckedAdd, CheckedSub};
+#[allow(non_uppercase_statics)];
+
+use prelude::*;
+
+use default::Default;
+use num::BitCount;
#[cfg(target_word_size = "64")]
use num::CheckedMul;
+use num::{CheckedAdd, CheckedSub};
+use num::{CheckedDiv, Zero, One, strconv};
+use num::{ToStrRadix, FromStrRadix};
use option::{Option, Some, None};
+use str;
use unstable::intrinsics;
-pub use self::generated::*;
-
uint_module!(u64, i64, 64)
impl CheckedAdd for u64 {
//! Operations and constants for `u8`
+#[allow(non_uppercase_statics)];
+
+use prelude::*;
+
+use default::Default;
+use num::BitCount;
use num::{CheckedAdd, CheckedSub, CheckedMul};
+use num::{CheckedDiv, Zero, One, strconv};
+use num::{ToStrRadix, FromStrRadix};
use option::{Option, Some, None};
+use str;
use unstable::intrinsics;
-pub use self::generated::*;
-
uint_module!(u8, i8, 8)
impl CheckedAdd for u8 {
//! Operations and constants for `uint`
-use num;
+#[allow(non_uppercase_statics)];
+
+use prelude::*;
+
+use default::Default;
+use mem;
+use num::BitCount;
use num::{CheckedAdd, CheckedSub, CheckedMul};
+use num::{CheckedDiv, Zero, One, strconv};
+use num::{ToStrRadix, FromStrRadix};
+use num;
use option::{Option, Some, None};
+use str;
use unstable::intrinsics;
-use mem;
-
-pub use self::generated::*;
uint_module!(uint, int, ::int::bits)
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// FIXME(#4375): This shouldn't have to be a nested module named 'generated'...
-// FIXME(#10716): ... but now that we could solve that, the import lines and
-// attributes still prevent a removal of that module.
-
#[macro_escape];
#[doc(hidden)];
-macro_rules! uint_module (($T:ty, $T_SIGNED:ty, $bits:expr) => (mod generated {
-
-#[allow(non_uppercase_statics)];
-
-use default::Default;
-use num::BitCount;
-use num::{ToStrRadix, FromStrRadix};
-use num::{CheckedDiv, Zero, One, strconv};
-use prelude::*;
-use str;
+macro_rules! uint_module (($T:ty, $T_SIGNED:ty, $bits:expr) => (
pub static bits : uint = $bits;
pub static bytes : uint = ($bits / 8);
}
}
-}))
+))