fn tanh(n: c_float) -> c_float = cmath::c_float::tanh
)
+// FIXME(#11621): These constants should be deprecated once CTFE is implemented
+// in favour of calling their respective functions in `Bounded` and `Float`.
+
pub static RADIX: uint = 2u;
pub static MANTISSA_DIGITS: uint = 53u;
pub mod consts {
// FIXME (requires Issue #1433 to fix): replace with mathematical
// staticants from cmath.
+
+ // FIXME(#11621): These constants should be deprecated once CTFE is
+ // implemented in favour of calling their respective functions in `Real`.
+
/// Archimedes' constant
pub static PI: f32 = 3.14159265358979323846264338327950288_f32;
// FIXME (#1433): obtain these in a different way
+// FIXME(#11621): These constants should be deprecated once CTFE is implemented
+// in favour of calling their respective functions in `Bounded` and `Float`.
+
pub static RADIX: uint = 2u;
pub static MANTISSA_DIGITS: uint = 53u;
pub mod consts {
// FIXME (requires Issue #1433 to fix): replace with mathematical
// constants from cmath.
+
+ // FIXME(#11621): These constants should be deprecated once CTFE is
+ // implemented in favour of calling their respective functions in `Real`.
+
/// Archimedes' constant
pub static PI: f64 = 3.14159265358979323846264338327950288_f64;
macro_rules! int_module (($T:ty, $bits:expr) => (
+// FIXME(#11621): Should be deprecated once CTFE is implemented in favour of
+// calling the `mem::size_of` function.
pub static bits : uint = $bits;
+// FIXME(#11621): Should be deprecated once CTFE is implemented in favour of
+// calling the `mem::size_of` function.
pub static bytes : uint = ($bits / 8);
+// FIXME(#11621): Should be deprecated once CTFE is implemented in favour of
+// calling the `Bounded::min_value` function.
pub static min_value: $T = (-1 as $T) << (bits - 1);
// FIXME(#9837): Compute min_value like this so the high bits that shouldn't exist are 0.
+// FIXME(#11621): Should be deprecated once CTFE is implemented in favour of
+// calling the `Bounded::max_value` function.
pub static max_value: $T = !min_value;
impl CheckedDiv for $T {