diff options
Diffstat (limited to 'pl/math/v_log2f_data.c')
-rw-r--r-- | pl/math/v_log2f_data.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pl/math/v_log2f_data.c b/pl/math/v_log2f_data.c new file mode 100644 index 0000000..b144e8f --- /dev/null +++ b/pl/math/v_log2f_data.c @@ -0,0 +1,15 @@ +/* + * Coefficients for vector log2f + * + * Copyright (c) 2022-2023, Arm Limited. + * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception + */ + +#include "math_config.h" + +/* See tools/v_log2f.sollya for the algorithm used to generate these + coefficients. */ +const struct v_log2f_data __v_log2f_data + = {.poly = {0x1.715476p0f, /* (float)(1 / ln(2)). */ + -0x1.715458p-1f, 0x1.ec701cp-2f, -0x1.7171a4p-2f, 0x1.27a0b8p-2f, + -0x1.e5143ep-3f, 0x1.9d8ecap-3f, -0x1.c675bp-3f, 0x1.9e495p-3f}}; |