diff options
Diffstat (limited to 'src/nvim/math.c')
-rw-r--r-- | src/nvim/math.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/math.c b/src/nvim/math.c index 04ded0fd39..b427688083 100644 --- a/src/nvim/math.c +++ b/src/nvim/math.c @@ -31,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); |