Move code around to reduce differences (#1185)

Code is moved to reduce the differences between tests for single- and
double-precision.

Improve consistency in double-literal.

Signed-off-by: Marco Antognini <marco.antognini@arm.com>
This commit is contained in:
Marco Antognini
2021-03-09 22:55:33 +00:00
committed by GitHub
parent a483255e50
commit a53917a37e
10 changed files with 398 additions and 395 deletions

View File

@@ -186,8 +186,8 @@ static const double specialValuesDouble[] = {
MAKE_HEX_DOUBLE(-0x1.0000000000001p31, -0x10000000000001LL, -21),
MAKE_HEX_DOUBLE(-0x1.0p31, -0x1LL, 31),
MAKE_HEX_DOUBLE(-0x1.fffffffffffffp30, -0x1fffffffffffffLL, -22),
-1000.,
-100.,
-1000.0,
-100.0,
-4.0,
-3.5,
-3.0,
@@ -240,8 +240,8 @@ static const double specialValuesDouble[] = {
MAKE_HEX_DOUBLE(+0x1.0000000000001p31, +0x10000000000001LL, -21),
MAKE_HEX_DOUBLE(+0x1.0p31, +0x1LL, 31),
MAKE_HEX_DOUBLE(+0x1.fffffffffffffp30, +0x1fffffffffffffLL, -22),
+1000.,
+100.,
+1000.0,
+100.0,
+4.0,
+3.5,
+3.0,