From 85db158f020f56d4b82d7c28b5f7ff16aebc0850 Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Sat, 13 Apr 2024 20:11:37 +0000 Subject: [PATCH] MAINT: Minor refactors to have common precisions --- kernel/meson.build | 1 + meson.build | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/kernel/meson.build b/kernel/meson.build index d6c418b7c..3686efeb4 100644 --- a/kernel/meson.build +++ b/kernel/meson.build @@ -322,6 +322,7 @@ base_kops = [ }, }, }, + # TODO: Handle the i*amax style {'base': 'axpby', 'modes': {'s': {'dir': 'arm', 'kernel': 'axpby.c', 'exts': ['_k']}, 'd': {'dir': 'arm', 'kernel': 'axpby.c', 'exts': ['_k']}, diff --git a/meson.build b/meson.build index 7a2578259..af02d14b7 100644 --- a/meson.build +++ b/meson.build @@ -251,6 +251,15 @@ else endif endif +# Common maps +precision_mappings = { + 's': {'undef': ['COMPLEX', 'DOUBLE'], 'def': []}, + 'd': {'undef': ['COMPLEX'], 'def': ['DOUBLE']}, + 'q': {'undef': ['COMPLEX'], 'def': ['XDOUBLE']}, + 'c': {'undef': ['DOUBLE'], 'def': ['COMPLEX']}, + 'z': {'undef': [], 'def': ['COMPLEX', 'DOUBLE']}, + 'x': {'undef': [], 'def': ['COMPLEX', 'XDOUBLE']}, +} # Ignoring other hostarch checks and conflicts for arch in BSD for now _inc = include_directories('.')