aboutsummaryrefslogtreecommitdiff
path: root/pl/math/v_log2f_data.c
blob: 7e5cb1e26694feb60a6aeee119e82b10116c18d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * Coefficients for vector log2f
 *
 * Copyright (c) 2022, 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}};