diff options
Diffstat (limited to 'src/nvim/math.c')
-rw-r--r-- | src/nvim/math.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/math.c b/src/nvim/math.c index 63a29509bd..b427688083 100644 --- a/src/nvim/math.c +++ b/src/nvim/math.c @@ -1,7 +1,9 @@ // This is an open source non-commercial project. Dear PVS-Studio, please check // it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com +// uncrustify:off #include <math.h> +// uncrustify:on #include <stdint.h> #include <string.h> @@ -29,10 +31,12 @@ int xfpclassify(double d) return m ? FP_NAN : FP_INFINITE; } } + int xisinf(double d) { return FP_INFINITE == xfpclassify(d); } + int xisnan(double d) { return FP_NAN == xfpclassify(d); |