Skip to main content

core/num/imp/
ppcf128.rs

1/// The IBM extended-precision (double-double) floating-point lang item.
2///
3/// Here we define just the lang item, the public-facing type is defined
4/// in core_arch. It transparently wraps this definition.
5///
6/// The ppcf128 type should only be used on PowerPC targets, but is always defined
7/// for the purpose of doc builds, specifically doc builds in the stdarch repo.
8#[doc(hidden)]
9#[cfg_attr(any(target_arch = "powerpc", target_arch = "powerpc64"), lang = "ppcf128")]
10#[unstable(feature = "num_internals", issue = "none")]
11#[allow(non_camel_case_types, dead_code)]
12#[derive(#[automatically_derived]#[unstable(feature = "num_internals", issue = "none")]
#[allow(non_camel_case_types, dead_code)]
impl crate::fmt::Debug for ppcf128 {
    #[inline]
    #[rustc_trivial_field_reads]
    fn fmt(&self, f: &mut crate::fmt::Formatter) -> crate::fmt::Result {
        crate::fmt::Formatter::debug_struct_field1_finish(f, "ppcf128",
            &&self.0)
    }
}Debug, #[automatically_derived]#[doc(hidden)]#[unstable(feature = "num_internals",
issue = "none")]
#[allow(non_camel_case_types, dead_code)]
unsafe impl crate::clone::TrivialClone for ppcf128 { }
#[automatically_derived]#[unstable(feature = "num_internals", issue = "none")]
#[allow(non_camel_case_types, dead_code)]
impl crate::clone::Clone for ppcf128 {
    #[inline]
    #[rustc_trivial_field_reads]
    fn clone(&self) -> Self {
        let _: crate::clone::AssertParamIsClone<u128>;
        *self
    }
}Clone, #[automatically_derived]#[unstable(feature = "num_internals", issue = "none")]
#[allow(non_camel_case_types, dead_code)]
impl crate::marker::Copy for ppcf128 { }Copy)]
13pub struct ppcf128(u128);