1/// The raw x87 80-bit extended-precision floating-point type.
2///
3/// This type has a size of 80 bits, and corresponds to the store size (what a load/store touches)
4/// of x87_f80. This is different to what LLVM calls the alloc size, the number of bytes used to
5/// calculate field offsets or the size of an alloca.
6///
7/// The `x87_f80` wrapper type below corresponds to the alloc size: it applies the target-specific
8/// alignment, raising the total size to 12 or 16.
9///
10/// NOTE: this type should not be used anywhere except in the x87_f80 wrapper below. The backend
11/// can handle it fine, but callconv calculation will likely panic.
12#[cfg_attr(any(target_arch = "x86", target_arch = "x86_64"), lang = "x87_f80_raw")]
13#[allow(non_camel_case_types)]
14#[derive(#[automatically_derived]#[doc(hidden)]#[allow(non_camel_case_types)]
unsafe impl crate::clone::TrivialClone for x87_f80_raw { }
#[automatically_derived]#[allow(non_camel_case_types)]
impl crate::clone::Clone for x87_f80_raw {
#[inline]
#[rustc_trivial_field_reads]
fn clone(&self) -> Self { *self }
}Clone, #[automatically_derived]#[allow(non_camel_case_types)]
impl crate::marker::Copy for x87_f80_raw { }Copy)]
15struct x87_f80_raw {}
1617/// The x87 80-bit extended-precision floating-point lang item.
18///
19/// Here we define just the lang item, the public-facing type is defined
20/// in core_arch. It transparently wraps this definition.
21///
22/// This x87_f80 type should only be used on x86 and x86_64 targets, but is always defined
23/// for the purpose of doc builds, specifically doc builds in the stdarch repo.
24#[doc(hidden)]
25#[cfg_attr(any(target_arch = "x86", target_arch = "x86_64"), lang = "x87_f80")]
26#[unstable(feature = "num_internals", issue = "none")]
27#[allow(non_camel_case_types, dead_code)]
28#[derive(#[automatically_derived]#[doc(hidden)]#[unstable(feature = "num_internals",
issue = "none")]
#[allow(non_camel_case_types, dead_code)]
unsafe impl crate::clone::TrivialClone for x87_f80 { }
#[automatically_derived]#[unstable(feature = "num_internals", issue = "none")]
#[allow(non_camel_case_types, dead_code)]
impl crate::clone::Clone for x87_f80 {
#[inline]
#[rustc_trivial_field_reads]
fn clone(&self) -> Self {
let _: crate::clone::AssertParamIsClone<x87_f80_raw>;
*self
}
}Clone, #[automatically_derived]#[unstable(feature = "num_internals", issue = "none")]
#[allow(non_camel_case_types, dead_code)]
impl crate::marker::Copy for x87_f80 { }Copy)]
29pub struct x87_f80(x87_f80_raw);
3031#[unstable(feature = "num_internals", issue = "none")]
32impl crate::fmt::Debugfor x87_f80 {
33fn fmt(&self, f: &mut crate::fmt::Formatter<'_>) -> crate::fmt::Result {
34f.debug_tuple("x87_f80").finish()
35 }
36}