diff options
author | yuawn <ssspeed00@gmail.com> | 2021-12-11 10:20:40 +0000 |
---|---|---|
committer | yuawn <ssspeed00@gmail.com> | 2021-12-11 10:20:40 +0000 |
commit | 5b9397f3dda38df3f63bd31e4fb5f8ad64d9f271 (patch) | |
tree | e3eeb77e74527ace90961af9d3ffaf35ab7bf0b0 /test/test-fp_NaNcases.c | |
parent | 269054e5c5a5b8897dff230f4a5fe864e47d57ad (diff) | |
download | afl++-5b9397f3dda38df3f63bd31e4fb5f8ad64d9f271.tar.gz |
code format
Diffstat (limited to 'test/test-fp_NaNcases.c')
-rw-r--r-- | test/test-fp_NaNcases.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/test-fp_NaNcases.c b/test/test-fp_NaNcases.c index 78d32711..94a0ff71 100644 --- a/test/test-fp_NaNcases.c +++ b/test/test-fp_NaNcases.c @@ -6,7 +6,7 @@ #include <assert.h> #define _GNU_SOURCE -#include <math.h> /* for NaNs and infinity values */ +#include <math.h> /* for NaNs and infinity values */ int main() { @@ -14,14 +14,14 @@ int main() { /* NaN */ #ifdef NAN - a = (FLOAT_TYPE) NAN; /* produces NaN */ + a = (FLOAT_TYPE)NAN; /* produces NaN */ #else - a = 0.0 / 0.0; /* produces NaN */ + a = 0.0 / 0.0; /* produces NaN */ #endif #ifdef INFINITY - FLOAT_TYPE inf = (FLOAT_TYPE) INFINITY; + FLOAT_TYPE inf = (FLOAT_TYPE)INFINITY; #else - FLOAT_TYPE inf = 1.0 / 0.0; /* produces infinity */ + FLOAT_TYPE inf = 1.0 / 0.0; /* produces infinity */ #endif FLOAT_TYPE negZero = 1.0 / -inf; FLOAT_TYPE posZero = 0.0; @@ -42,7 +42,7 @@ int main() { assert((a != b)); assert(!(a == b)); - b = 1.0 / -(1.0 / 0.0); /* negative 0 */ + b = 1.0 / -(1.0 / 0.0); /* negative 0 */ assert(!(a < b)); assert(!(a <= b)); assert(!(a > b)); @@ -66,7 +66,7 @@ int main() { assert((a != b)); assert(!(a == b)); - b = (1.0 / 0.0); /* positive infinity */ + b = (1.0 / 0.0); /* positive infinity */ assert(!(a < b)); assert(!(a <= b)); assert(!(a > b)); @@ -74,7 +74,7 @@ int main() { assert((a != b)); assert(!(a == b)); - b = -(1.0 / 0.0); /* negative infinity */ + b = -(1.0 / 0.0); /* negative infinity */ assert(!(a < b)); assert(!(a <= b)); assert(!(a > b)); |