summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/math.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra/math.h')
-rw-r--r--src/vppinfra/math.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vppinfra/math.h b/src/vppinfra/math.h
index 48f8c0f4b83..cafa1cb3d3f 100644
--- a/src/vppinfra/math.h
+++ b/src/vppinfra/math.h
@@ -52,6 +52,14 @@ fabs (f64 x)
return __builtin_fabs (x);
}
+#ifndef isnan
+#define isnan(x) __builtin_isnan(x)
+#endif
+
+#ifndef isinf
+#define isinf(x) __builtin_isinf(x)
+#endif
+
#endif /* included_math_h */
/*