From 057f7b65a11c54f4d9ff6dd444fcfdd935ca737f Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Tue, 19 May 2020 10:15:06 +0200 Subject: [PATCH] Code formatting --- tests/testExp.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tests/testExp.c b/tests/testExp.c index b8f59c4dda..01a65b8ccc 100644 --- a/tests/testExp.c +++ b/tests/testExp.c @@ -32,14 +32,12 @@ * @param b Second value * @param s String used to identify this check in messages */ -void check_value(double a, double b, const double tol, const double x) { +void check_value(double a, double b, const double tol, const double x) { if (fabs(a - b) / fabs(a + b) > tol) - error( - "Values are inconsistent: %12.15e %12.15e rel=%e (for x=%e).", - a, b, fabs(a - b) / fabs(a + b), x); + error("Values are inconsistent: %12.15e %12.15e rel=%e (for x=%e).", a, b, + fabs(a - b) / fabs(a + b), x); } - int main(int argc, char* argv[]) { /* Initialize CPU frequency, this also starts time. */ @@ -58,7 +56,7 @@ int main(int argc, char* argv[]) { /* Loop over some values */ for (float x = 0.; x < 32.; x += 0.000001) { - + const double exact_p = exp(x); const double exact_n = exp(-x); const double swift_exp_p = optimized_expf(x); @@ -70,4 +68,3 @@ int main(int argc, char* argv[]) { return 0; } - -- GitLab