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/include/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/include/pl_test.h')
-rw-r--r-- | pl/math/include/pl_test.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pl/math/include/pl_test.h b/pl/math/include/pl_test.h new file mode 100644 index 0000000..1ab3814 --- /dev/null +++ b/pl/math/include/pl_test.h @@ -0,0 +1,16 @@ +/* + * PL macros to aid testing. This version of this file is used for building the + * routine, not the tests. Separate definitions are found in test/pl_test.h + * which emit test parameters. + * + * Copyright (c) 2022, Arm Limited. + * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception. + */ + +/* Emit max ULP threshold - silenced for building the routine. */ +#define PL_TEST_ULP(f, l) + +/* Emit alias. The PL_TEST_ALIAS declaration is piggy-backed on top of + strong_alias. Use PL_ALIAS instead of strong_alias to make sure the alias is + also added to the test suite. */ +#define PL_ALIAS(a, b) strong_alias (a, b) |