remove F128

This commit is contained in:
Folkert 2022-12-14 23:28:38 +01:00
parent 6f2e14cf18
commit d287eafa3a
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
15 changed files with 7 additions and 73 deletions

View file

@ -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
}};