xref: /freebsd/contrib/arm-optimized-routines/pl/math/include/pl_test.h (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1 /*
2  * PL macros to aid testing. This version of this file is used for building the
3  * routine, not the tests. Separate definitions are found in test/pl_test.h
4  * which emit test parameters.
5  *
6  * Copyright (c) 2022-2023, Arm Limited.
7  * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception.
8  */
9 
10 /* Emit max ULP threshold - silenced for building the routine.  */
11 #define PL_TEST_ULP(f, l)
12 
13 /* Emit routine name if e == 1 and f is expected to correctly trigger fenv
14    exceptions. e allows declaration to be emitted conditionally upon certain
15    build flags - defer expansion by one pass to allow those flags to be expanded
16    properly.  */
17 #define PL_TEST_EXPECT_FENV(f, e)
18 #define PL_TEST_EXPECT_FENV_ALWAYS(f)
19 
20 #define PL_TEST_INTERVAL(f, lo, hi, n)
21 #define PL_TEST_SYM_INTERVAL(f, lo, hi, n)
22 #define PL_TEST_INTERVAL_C(f, lo, hi, n, c)
23 #define PL_TEST_SYM_INTERVAL_C(f, lo, hi, n, c)
24 #define PL_TEST_INTERVAL2(f, xlo, xhi, ylo, yhi, n)
25