diff options
author | Joe Ramsay <Joe.Ramsay@arm.com> | 2022-12-15 13:27:39 +0000 |
---|---|---|
committer | Joe Ramsay <joe.ramsay@arm.com> | 2022-12-15 13:27:39 +0000 |
commit | ecb1c6f6ea7872645cb4c26514d5f64815b61a1b (patch) | |
tree | 9eace7b472f020f534b7946cd47ef8e08ac11bec /pl/math/test/pl_test.h | |
parent | 1bca1a541cce13c352296acd5dfa16160fc27bc9 (diff) | |
download | arm-optimized-routines-ecb1c6f6ea7872645cb4c26514d5f64815b61a1b.tar.gz |
pl/math: Move ULP limits to routine source files
Introduces a new set of macros and Make rules for mechanically
generating a list of ULP limits for each routine, to be consumed
by runulp.sh. This removes the need to maintain long lists of
thresholds in runulp.sh.
Diffstat (limited to 'pl/math/test/pl_test.h')
-rw-r--r-- | pl/math/test/pl_test.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pl/math/test/pl_test.h b/pl/math/test/pl_test.h new file mode 100644 index 0000000..d4901b1 --- /dev/null +++ b/pl/math/test/pl_test.h @@ -0,0 +1,14 @@ +/* + * PL macros for emitting various details about routines for consumption by + * runulp.sh. + * + * Copyright (c) 2022, Arm Limited. + * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception. + */ + +/* Emit the max ULP threshold, l, for routine f. */ +#define PL_TEST_ULP(f, l) PL_TEST_ULP f l + +/* Emit aliases to allow test params to be mapped from aliases back to their + aliasees. */ +#define PL_ALIAS(a, b) PL_TEST_ALIAS a b |