diff options
| author | Alex Richardson <arichardson@FreeBSD.org> | 2021-02-22 11:59:12 +0000 |
|---|---|---|
| committer | Alex Richardson <arichardson@FreeBSD.org> | 2021-02-22 11:59:12 +0000 |
| commit | f9f37c002ab5a580accfe26b731eef45e798b435 (patch) | |
| tree | 6c5f3a7746c1d8a0d7a04012d47b6428c7b3057e /math/v_log.h | |
Import Arm Optimized Routines v21.02vendor/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 .
```
Diffstat (limited to 'math/v_log.h')
| -rw-r--r-- | math/v_log.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 |
