xref: /freebsd/contrib/arm-optimized-routines/pl/math/v_exp_data.c (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1 /*
2  * Scale values for vector exp and exp2
3  *
4  * Copyright (c) 2023, Arm Limited.
5  * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
6  */
7 
8 #include "math_config.h"
9 
10 /* 2^(j/N), j=0..N, N=2^7=128. Copied from math/v_exp_data.c.  */
11 const uint64_t __v_exp_data[] = {
12   0x3ff0000000000000, 0x3feff63da9fb3335, 0x3fefec9a3e778061,
13   0x3fefe315e86e7f85, 0x3fefd9b0d3158574, 0x3fefd06b29ddf6de,
14   0x3fefc74518759bc8, 0x3fefbe3ecac6f383, 0x3fefb5586cf9890f,
15   0x3fefac922b7247f7, 0x3fefa3ec32d3d1a2, 0x3fef9b66affed31b,
16   0x3fef9301d0125b51, 0x3fef8abdc06c31cc, 0x3fef829aaea92de0,
17   0x3fef7a98c8a58e51, 0x3fef72b83c7d517b, 0x3fef6af9388c8dea,
18   0x3fef635beb6fcb75, 0x3fef5be084045cd4, 0x3fef54873168b9aa,
19   0x3fef4d5022fcd91d, 0x3fef463b88628cd6, 0x3fef3f49917ddc96,
20   0x3fef387a6e756238, 0x3fef31ce4fb2a63f, 0x3fef2b4565e27cdd,
21   0x3fef24dfe1f56381, 0x3fef1e9df51fdee1, 0x3fef187fd0dad990,
22   0x3fef1285a6e4030b, 0x3fef0cafa93e2f56, 0x3fef06fe0a31b715,
23   0x3fef0170fc4cd831, 0x3feefc08b26416ff, 0x3feef6c55f929ff1,
24   0x3feef1a7373aa9cb, 0x3feeecae6d05d866, 0x3feee7db34e59ff7,
25   0x3feee32dc313a8e5, 0x3feedea64c123422, 0x3feeda4504ac801c,
26   0x3feed60a21f72e2a, 0x3feed1f5d950a897, 0x3feece086061892d,
27   0x3feeca41ed1d0057, 0x3feec6a2b5c13cd0, 0x3feec32af0d7d3de,
28   0x3feebfdad5362a27, 0x3feebcb299fddd0d, 0x3feeb9b2769d2ca7,
29   0x3feeb6daa2cf6642, 0x3feeb42b569d4f82, 0x3feeb1a4ca5d920f,
30   0x3feeaf4736b527da, 0x3feead12d497c7fd, 0x3feeab07dd485429,
31   0x3feea9268a5946b7, 0x3feea76f15ad2148, 0x3feea5e1b976dc09,
32   0x3feea47eb03a5585, 0x3feea34634ccc320, 0x3feea23882552225,
33   0x3feea155d44ca973, 0x3feea09e667f3bcd, 0x3feea012750bdabf,
34   0x3fee9fb23c651a2f, 0x3fee9f7df9519484, 0x3fee9f75e8ec5f74,
35   0x3fee9f9a48a58174, 0x3fee9feb564267c9, 0x3feea0694fde5d3f,
36   0x3feea11473eb0187, 0x3feea1ed0130c132, 0x3feea2f336cf4e62,
37   0x3feea427543e1a12, 0x3feea589994cce13, 0x3feea71a4623c7ad,
38   0x3feea8d99b4492ed, 0x3feeaac7d98a6699, 0x3feeace5422aa0db,
39   0x3feeaf3216b5448c, 0x3feeb1ae99157736, 0x3feeb45b0b91ffc6,
40   0x3feeb737b0cdc5e5, 0x3feeba44cbc8520f, 0x3feebd829fde4e50,
41   0x3feec0f170ca07ba, 0x3feec49182a3f090, 0x3feec86319e32323,
42   0x3feecc667b5de565, 0x3feed09bec4a2d33, 0x3feed503b23e255d,
43   0x3feed99e1330b358, 0x3feede6b5579fdbf, 0x3feee36bbfd3f37a,
44   0x3feee89f995ad3ad, 0x3feeee07298db666, 0x3feef3a2b84f15fb,
45   0x3feef9728de5593a, 0x3feeff76f2fb5e47, 0x3fef05b030a1064a,
46   0x3fef0c1e904bc1d2, 0x3fef12c25bd71e09, 0x3fef199bdd85529c,
47   0x3fef20ab5fffd07a, 0x3fef27f12e57d14b, 0x3fef2f6d9406e7b5,
48   0x3fef3720dcef9069, 0x3fef3f0b555dc3fa, 0x3fef472d4a07897c,
49   0x3fef4f87080d89f2, 0x3fef5818dcfba487, 0x3fef60e316c98398,
50   0x3fef69e603db3285, 0x3fef7321f301b460, 0x3fef7c97337b9b5f,
51   0x3fef864614f5a129, 0x3fef902ee78b3ff6, 0x3fef9a51fbc74c83,
52   0x3fefa4afa2a490da, 0x3fefaf482d8e67f1, 0x3fefba1bee615a27,
53   0x3fefc52b376bba97, 0x3fefd0765b6e4540, 0x3fefdbfdad9cbe14,
54   0x3fefe7c1819e90d8, 0x3feff3c22b8f71f1,
55 };
56