aboutsummaryrefslogtreecommitdiff
path: root/pl/math/include/pl_test.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2023-01-25 21:31:42 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-01-25 21:31:42 +0000
commit8a481eb48cf7ace04026cbe776d65492f89a6d7d (patch)
tree945eb1832687ad5eb97c433013617dbe107718e5 /pl/math/include/pl_test.h
parent0bc581b0e4f509c96bffa7af329087ae2b4bfb97 (diff)
parent8783f524beaad825ac1bddeb93cef35b5f793513 (diff)
downloadarm-optimized-routines-8a481eb48cf7ace04026cbe776d65492f89a6d7d.tar.gz
Upgrade ARM-software/optimized-routines to v23.01 am: 62662f115a am: 8783f524be
Original change: https://android-review.googlesource.com/c/platform/external/arm-optimized-routines/+/2402215 Change-Id: Ief5438cf89d86c43e5f52d5e48b882bacb945170 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'pl/math/include/pl_test.h')
-rw-r--r--pl/math/include/pl_test.h26
1 files changed, 26 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..6a81360
--- /dev/null
+++ b/pl/math/include/pl_test.h
@@ -0,0 +1,26 @@
+/*
+ * 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-2023, 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)
+
+/* Emit routine name if e == 1 and f is expected to correctly trigger fenv
+ exceptions. e allows declaration to be emitted conditionally upon certain
+ build flags - defer expansion by one pass to allow those flags to be expanded
+ properly. */
+#define PL_TEST_EXPECT_FENV(f, e)
+#define PL_TEST_EXPECT_FENV_ALWAYS(f)
+
+#define PL_TEST_INTERVAL(f, lo, hi, n)
+#define PL_TEST_INTERVAL_C(f, lo, hi, n, c)