mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-23 14:35:12 +00:00
remove F128
This commit is contained in:
parent
6f2e14cf18
commit
d287eafa3a
15 changed files with 7 additions and 73 deletions
|
@ -73,7 +73,6 @@ pub enum DecWidth {
|
|||
pub enum FloatWidth {
|
||||
F32,
|
||||
F64,
|
||||
F128,
|
||||
}
|
||||
|
||||
impl FloatWidth {
|
||||
|
@ -86,7 +85,6 @@ impl FloatWidth {
|
|||
match self {
|
||||
F32 => 4,
|
||||
F64 => 8,
|
||||
F128 => 16,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -99,7 +97,7 @@ impl FloatWidth {
|
|||
// the compiler is targeting (e.g. what the Roc code will be compiled to).
|
||||
match self {
|
||||
F32 => 4,
|
||||
F64 | F128 => match target_info.architecture {
|
||||
F64 => match target_info.architecture {
|
||||
X86_64 | Aarch64 | Wasm32 => 8,
|
||||
X86_32 | Aarch32 => 4,
|
||||
},
|
||||
|
@ -225,7 +223,6 @@ impl Index<FloatWidth> for IntrinsicName {
|
|||
match index {
|
||||
FloatWidth::F32 => self.options[1],
|
||||
FloatWidth::F64 => self.options[2],
|
||||
FloatWidth::F128 => self.options[3],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -256,7 +253,6 @@ macro_rules! float_intrinsic {
|
|||
|
||||
output.options[1] = concat!($name, ".f32");
|
||||
output.options[2] = concat!($name, ".f64");
|
||||
output.options[3] = concat!($name, ".f128");
|
||||
|
||||
output
|
||||
}};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue