mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 09:24:33 +00:00
Correct abs type behaviour for quaternions
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user