Add vera rules to check consecutive and trailing empty lines (#3540)

JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
This commit is contained in:
Dániel Bátyai
2020-02-03 16:39:04 +01:00
committed by GitHub
parent 563a5d93e9
commit a78c8d4f16
63 changed files with 68 additions and 87 deletions
-1
View File
@@ -30,7 +30,6 @@
/* Sometimes it's necessary to define __LITTLE_ENDIAN explicitly
but these catch some common cases. */
#ifndef __LITTLE_ENDIAN
/* Check if compiler has byte order macro. Some older versions do not.
* If byte order is supported and set to little or target is among common
-4
View File
@@ -275,7 +275,6 @@ A. sqrt(x) by Newton Iteration
------------------------------------------------------
msb lsb msb lsb ...order
------------------------ ------------------------
x0: |s| e | f1 | x1: | f2 |
------------------------ ------------------------
@@ -307,7 +306,6 @@ A. sqrt(x) by Newton Iteration
y := (y+x/y)/2 ... almost 35 sig. bits
y := y-(y-x/y)/2 ... within 1 ulp
Remark 1.
Another way to improve y to within 1 ulp is:
@@ -320,7 +318,6 @@ A. sqrt(x) by Newton Iteration
2
3y + x
This formula has one division fewer than the one above; however,
it requires more multiplications and additions. Also x must be
scaled in advance to avoid spurious overflow in evaluating the
@@ -367,7 +364,6 @@ A. sqrt(x) by Newton Iteration
Square root of +inf, +-0, or NaN is itself;
Square root of a negative number is NaN with invalid signal.
B. sqrt(x) by Reciproot Iteration
(1) Initial approximation