Replace vera++ with clang-format (#4518)

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik robert.fancsik@h-lab.eu
This commit is contained in:
Robert Fancsik
2021-11-05 14:15:47 +01:00
committed by GitHub
parent bc091e1742
commit badfdf4dba
564 changed files with 10195 additions and 15090 deletions
+45 -58
View File
@@ -34,11 +34,11 @@
#include "jerry-math-internal.h"
#define zero 0.00000000000000000000e+00 /* 0x00000000, 0x00000000 */
#define half 5.00000000000000000000e-01 /* 0x3FE00000, 0x00000000 */
#define one 1.00000000000000000000e+00 /* 0x3FF00000, 0x00000000 */
#define two24 1.67772160000000000000e+07 /* 0x41700000, 0x00000000 */
#define twon24 5.96046447753906250000e-08 /* 0x3E700000, 0x00000000 */
#define zero 0.00000000000000000000e+00 /* 0x00000000, 0x00000000 */
#define half 5.00000000000000000000e-01 /* 0x3FE00000, 0x00000000 */
#define one 1.00000000000000000000e+00 /* 0x3FF00000, 0x00000000 */
#define two24 1.67772160000000000000e+07 /* 0x41700000, 0x00000000 */
#define twon24 5.96046447753906250000e-08 /* 0x3E700000, 0x00000000 */
/* __kernel_rem_pio2(x,y,e0,nx,prec)
* double x[],y[]; int e0,nx,prec;
@@ -151,13 +151,9 @@
*/
/* initial value for jk */
static const int init_jk[] =
{
2, 3, 4, 6
};
static const int init_jk[] = { 2, 3, 4, 6 };
static const double PIo2[] =
{
static const double PIo2[] = {
1.57079625129699707031e+00, /* 0x3FF921FB, 0x40000000 */
7.54978941586159635335e-08, /* 0x3E74442D, 0x00000000 */
5.39030252995776476554e-15, /* 0x3CF84698, 0x80000000 */
@@ -171,19 +167,13 @@ static const double PIo2[] =
/*
* Table of constants for 2/pi, 396 Hex digits (476 decimal) of 2/pi
*/
static const int ipio2[] =
{
0xA2F983, 0x6E4E44, 0x1529FC, 0x2757D1, 0xF534DD, 0xC0DB62,
0x95993C, 0x439041, 0xFE5163, 0xABDEBB, 0xC561B7, 0x246E3A,
0x424DD2, 0xE00649, 0x2EEA09, 0xD1921C, 0xFE1DEB, 0x1CB129,
0xA73EE8, 0x8235F5, 0x2EBB44, 0x84E99C, 0x7026B4, 0x5F7E41,
0x3991D6, 0x398353, 0x39F49C, 0x845F8B, 0xBDF928, 0x3B1FF8,
0x97FFDE, 0x05980F, 0xEF2F11, 0x8B5A0A, 0x6D1F6D, 0x367ECF,
0x27CB09, 0xB74F46, 0x3F669E, 0x5FEA2D, 0x7527BA, 0xC7EBE5,
0xF17B3D, 0x0739F7, 0x8A5292, 0xEA6BFB, 0x5FB11F, 0x8D5D08,
0x560330, 0x46FC7B, 0x6BABF0, 0xCFBC20, 0x9AF436, 0x1DA9E3,
0x91615E, 0xE61B08, 0x659985, 0x5F14A0, 0x68408D, 0xFFD880,
0x4D7327, 0x310606, 0x1556CA, 0x73A8C9, 0x60E27B, 0xC08C6B,
static const int ipio2[] = {
0xA2F983, 0x6E4E44, 0x1529FC, 0x2757D1, 0xF534DD, 0xC0DB62, 0x95993C, 0x439041, 0xFE5163, 0xABDEBB, 0xC561B7,
0x246E3A, 0x424DD2, 0xE00649, 0x2EEA09, 0xD1921C, 0xFE1DEB, 0x1CB129, 0xA73EE8, 0x8235F5, 0x2EBB44, 0x84E99C,
0x7026B4, 0x5F7E41, 0x3991D6, 0x398353, 0x39F49C, 0x845F8B, 0xBDF928, 0x3B1FF8, 0x97FFDE, 0x05980F, 0xEF2F11,
0x8B5A0A, 0x6D1F6D, 0x367ECF, 0x27CB09, 0xB74F46, 0x3F669E, 0x5FEA2D, 0x7527BA, 0xC7EBE5, 0xF17B3D, 0x0739F7,
0x8A5292, 0xEA6BFB, 0x5FB11F, 0x8D5D08, 0x560330, 0x46FC7B, 0x6BABF0, 0xCFBC20, 0x9AF436, 0x1DA9E3, 0x91615E,
0xE61B08, 0x659985, 0x5F14A0, 0x68408D, 0xFFD880, 0x4D7327, 0x310606, 0x1556CA, 0x73A8C9, 0x60E27B, 0xC08C6B,
};
static int
@@ -445,14 +435,11 @@ recompute:
* use __kernel_rem_pio2()
*/
static const int npio2_hw[] =
{
0x3FF921FB, 0x400921FB, 0x4012D97C, 0x401921FB, 0x401F6A7A, 0x4022D97C,
0x4025FDBB, 0x402921FB, 0x402C463A, 0x402F6A7A, 0x4031475C, 0x4032D97C,
0x40346B9C, 0x4035FDBB, 0x40378FDB, 0x403921FB, 0x403AB41B, 0x403C463A,
0x403DD85A, 0x403F6A7A, 0x40407E4C, 0x4041475C, 0x4042106C, 0x4042D97C,
0x4043A28C, 0x40446B9C, 0x404534AC, 0x4045FDBB, 0x4046C6CB, 0x40478FDB,
0x404858EB, 0x404921FB,
static const int npio2_hw[] = {
0x3FF921FB, 0x400921FB, 0x4012D97C, 0x401921FB, 0x401F6A7A, 0x4022D97C, 0x4025FDBB, 0x402921FB,
0x402C463A, 0x402F6A7A, 0x4031475C, 0x4032D97C, 0x40346B9C, 0x4035FDBB, 0x40378FDB, 0x403921FB,
0x403AB41B, 0x403C463A, 0x403DD85A, 0x403F6A7A, 0x40407E4C, 0x4041475C, 0x4042106C, 0x4042D97C,
0x4043A28C, 0x40446B9C, 0x404534AC, 0x4045FDBB, 0x4046C6CB, 0x40478FDB, 0x404858EB, 0x404921FB,
};
/*
@@ -630,12 +617,12 @@ __ieee754_rem_pio2 (double x, double *y)
* sin(x) = x + (S1*x + (x *(r-y/2)+y))
*/
#define S1 -1.66666666666666324348e-01 /* 0xBFC55555, 0x55555549 */
#define S2 8.33333333332248946124e-03 /* 0x3F811111, 0x1110F8A6 */
#define S3 -1.98412698298579493134e-04 /* 0xBF2A01A0, 0x19C161D5 */
#define S4 2.75573137070700676789e-06 /* 0x3EC71DE3, 0x57B1FE7D */
#define S5 -2.50507602534068634195e-08 /* 0xBE5AE5E6, 0x8A2B9CEB */
#define S6 1.58969099521155010221e-10 /* 0x3DE5D93A, 0x5ACFD57C */
#define S1 -1.66666666666666324348e-01 /* 0xBFC55555, 0x55555549 */
#define S2 8.33333333332248946124e-03 /* 0x3F811111, 0x1110F8A6 */
#define S3 -1.98412698298579493134e-04 /* 0xBF2A01A0, 0x19C161D5 */
#define S4 2.75573137070700676789e-06 /* 0x3EC71DE3, 0x57B1FE7D */
#define S5 -2.50507602534068634195e-08 /* 0xBE5AE5E6, 0x8A2B9CEB */
#define S6 1.58969099521155010221e-10 /* 0x3DE5D93A, 0x5ACFD57C */
static double
__kernel_sin (double x, double y, int iy)
@@ -699,12 +686,12 @@ __kernel_sin (double x, double y, int iy)
* thus, reducing the rounding error in the subtraction.
*/
#define C1 4.16666666666666019037e-02 /* 0x3FA55555, 0x5555554C */
#define C2 -1.38888888888741095749e-03 /* 0xBF56C16C, 0x16C15177 */
#define C3 2.48015872894767294178e-05 /* 0x3EFA01A0, 0x19CB1590 */
#define C4 -2.75573143513906633035e-07 /* 0xBE927E4F, 0x809C52AD */
#define C5 2.08757232129817482790e-09 /* 0x3E21EE9E, 0xBDB4B1C4 */
#define C6 -1.13596475577881948265e-11 /* 0xBDA8FAE9, 0xBE8838D4 */
#define C1 4.16666666666666019037e-02 /* 0x3FA55555, 0x5555554C */
#define C2 -1.38888888888741095749e-03 /* 0xBF56C16C, 0x16C15177 */
#define C3 2.48015872894767294178e-05 /* 0x3EFA01A0, 0x19CB1590 */
#define C4 -2.75573143513906633035e-07 /* 0xBE927E4F, 0x809C52AD */
#define C5 2.08757232129817482790e-09 /* 0x3E21EE9E, 0xBDB4B1C4 */
#define C6 -1.13596475577881948265e-11 /* 0xBDA8FAE9, 0xBE8838D4 */
static double
__kernel_cos (double x, double y)
@@ -777,21 +764,21 @@ __kernel_cos (double x, double y)
* = 1 - 2*(tan(y) - (tan(y)^2)/(1+tan(y)))
*/
#define T0 3.33333333333334091986e-01 /* 3FD55555, 55555563 */
#define T1 1.33333333333201242699e-01 /* 3FC11111, 1110FE7A */
#define T2 5.39682539762260521377e-02 /* 3FABA1BA, 1BB341FE */
#define T3 2.18694882948595424599e-02 /* 3F9664F4, 8406D637 */
#define T4 8.86323982359930005737e-03 /* 3F8226E3, E96E8493 */
#define T5 3.59207910759131235356e-03 /* 3F6D6D22, C9560328 */
#define T6 1.45620945432529025516e-03 /* 3F57DBC8, FEE08315 */
#define T7 5.88041240820264096874e-04 /* 3F4344D8, F2F26501 */
#define T8 2.46463134818469906812e-04 /* 3F3026F7, 1A8D1068 */
#define T9 7.81794442939557092300e-05 /* 3F147E88, A03792A6 */
#define T10 7.14072491382608190305e-05 /* 3F12B80F, 32F0A7E9 */
#define T0 3.33333333333334091986e-01 /* 3FD55555, 55555563 */
#define T1 1.33333333333201242699e-01 /* 3FC11111, 1110FE7A */
#define T2 5.39682539762260521377e-02 /* 3FABA1BA, 1BB341FE */
#define T3 2.18694882948595424599e-02 /* 3F9664F4, 8406D637 */
#define T4 8.86323982359930005737e-03 /* 3F8226E3, E96E8493 */
#define T5 3.59207910759131235356e-03 /* 3F6D6D22, C9560328 */
#define T6 1.45620945432529025516e-03 /* 3F57DBC8, FEE08315 */
#define T7 5.88041240820264096874e-04 /* 3F4344D8, F2F26501 */
#define T8 2.46463134818469906812e-04 /* 3F3026F7, 1A8D1068 */
#define T9 7.81794442939557092300e-05 /* 3F147E88, A03792A6 */
#define T10 7.14072491382608190305e-05 /* 3F12B80F, 32F0A7E9 */
#define T11 -1.85586374855275456654e-05 /* BEF375CB, DB605373 */
#define T12 2.59073051863633712884e-05 /* 3EFB2A70, 74BF7AD4 */
#define pio4 7.85398163397448278999e-01 /* 3FE921FB, 54442D18 */
#define pio4lo 3.06161699786838301793e-17 /* 3C81A626, 33145C07 */
#define T12 2.59073051863633712884e-05 /* 3EFB2A70, 74BF7AD4 */
#define pio4 7.85398163397448278999e-01 /* 3FE921FB, 54442D18 */
#define pio4lo 3.06161699786838301793e-17 /* 3C81A626, 33145C07 */
static double
__kernel_tan (double x, double y, int iy)