xref: /freebsd/contrib/arm-optimized-routines/pl/math/v_exp_tail.h (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1 /*
2  * Constants for double-precision e^(x+tail) vector function.
3  *
4  * Copyright (c) 2019-2023, Arm Limited.
5  * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
6  */
7 
8 #include "math_config.h"
9 
10 #define C1_scal 0x1.fffffffffffd4p-2
11 #define C2_scal 0x1.5555571d6b68cp-3
12 #define C3_scal 0x1.5555576a59599p-5
13 #define InvLn2_scal 0x1.71547652b82fep8 /* N/ln2.  */
14 #define Ln2hi_scal 0x1.62e42fefa39efp-9 /* ln2/N.  */
15 #define Ln2lo_scal 0x1.abc9e3b39803f3p-64
16 
17 #define N (1 << V_EXP_TAIL_TABLE_BITS)
18 #define Tab __v_exp_tail_data
19 #define IndexMask_scal (N - 1)
20 #define Shift_scal 0x1.8p+52
21 #define Thres_scal 704.0
22