mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix sqrt for simd
This commit is contained in:
@@ -3704,12 +3704,7 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!is_type_float(x.type)) {
|
if (is_type_float(x.type) && x.mode == Addressing_Constant) {
|
||||||
gbString xts = type_to_string(x.type);
|
|
||||||
error(x.expr, "Expected a floating point value for '%.*s', got %s", LIT(builtin_name), xts);
|
|
||||||
gb_string_free(xts);
|
|
||||||
return false;
|
|
||||||
} else if (x.mode == Addressing_Constant) {
|
|
||||||
f64 v = exact_value_to_f64(x.value);
|
f64 v = exact_value_to_f64(x.value);
|
||||||
|
|
||||||
operand->mode = Addressing_Constant;
|
operand->mode = Addressing_Constant;
|
||||||
|
|||||||
Reference in New Issue
Block a user