aboutsummaryrefslogtreecommitdiff
path: root/src/check_builtin.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2021-05-30 11:48:17 +0100
committerGitHub <noreply@github.com>2021-05-30 11:48:17 +0100
commit599d0cf6ac58f3ebc1aed3fd967f4d9c8ac56ead (patch)
treec72d9a5cc06743dd606d8252b54975714fd5d9a3 /src/check_builtin.cpp
parentc8b353b6d8ac03a887a2e141243192cbbf5a9ea9 (diff)
parentd7dba495fd5703facfb8e4339da161da895dab35 (diff)
Merge pull request #1005 from Kelimion/maths
Add `abs_f16` support + endian versions of maths routines.
Diffstat (limited to 'src/check_builtin.cpp')
-rw-r--r--src/check_builtin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp
index 1630b5b7d..ccc234af9 100644
--- a/src/check_builtin.cpp
+++ b/src/check_builtin.cpp
@@ -1406,6 +1406,7 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32
{
Type *bt = base_type(operand->type);
+ if (are_types_identical(bt, t_f16)) add_package_dependency(c, "runtime", "abs_f16");
if (are_types_identical(bt, t_f32)) add_package_dependency(c, "runtime", "abs_f32");
if (are_types_identical(bt, t_f64)) add_package_dependency(c, "runtime", "abs_f64");
if (are_types_identical(bt, t_complex64)) add_package_dependency(c, "runtime", "abs_complex64");