From f9f37c002ab5a580accfe26b731eef45e798b435 Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Mon, 22 Feb 2021 11:59:12 +0000 Subject: Import Arm Optimized Routines v21.02 We already have copies of some of these files in the repository without a vendor import and we should really be using contrib/ instead. We should also be able to use some of the math functions to allow the tests to pass on AArch64 (and other architectures) instead of just x86. We should also be able to reuse some of the tests for the kyua testsuite. Imported using ``` curl -L https://github.com/ARM-software/optimized-routines/tarball/e823e3abf5f89ecba58a10fc0fd82c13d9984b6b | tar --strip-components=1 -xvzf - git add . ``` --- math/v_log.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 math/v_log.h (limited to 'math/v_log.h') diff --git a/math/v_log.h b/math/v_log.h new file mode 100644 index 000000000000..bcc2fa6fa930 --- /dev/null +++ b/math/v_log.h @@ -0,0 +1,18 @@ +/* + * Declarations for double-precision log(x) vector function. + * + * Copyright (c) 2019, Arm Limited. + * SPDX-License-Identifier: MIT + */ + +#include "v_math.h" +#if WANT_VMATH + +#define V_LOG_TABLE_BITS 7 + +extern const struct v_log_data +{ + f64_t invc; + f64_t logc; +} __v_log_data[1 << V_LOG_TABLE_BITS] HIDDEN; +#endif -- cgit v1.3