Correct abs type behaviour for quaternions

This commit is contained in:
gingerBill committed 2021-12-31 22:54:12 +00:00
1 parent 9b5cfe2677
commit bdf66bb1e1
2 files changed
+17 -3

No files matched your search

+7
View File
@@ -1253,6 +1253,13 @@ bool is_type_quaternion(Type *t) {
}
return false;
}
bool is_type_complex_or_quaternion(Type *t) {
t = core_type(t);
if (t->kind == Type_Basic) {
return (t->Basic.flags & (BasicFlag_Complex|BasicFlag_Quaternion)) != 0;
}
return false;
}
bool is_type_f16(Type *t) {
t = core_type(t);
if (t->kind == Type_Basic) {