pkarashchenko commented on code in PR #7025: URL: https://github.com/apache/incubator-nuttx/pull/7025#discussion_r965597492
########## include/nuttx/lib/math.h: ########## @@ -81,11 +81,23 @@ #define INFINITY_F (1.0F/0.0F) #define NAN_F (0.0F/0.0F) -#define isnan(x) ((x) != (x)) -#define isinf(x) (((x) == INFINITY) || ((x) == -INFINITY)) -#define isfinite(x) (!(isinf(x) || isnan(x))) - -#define isinf_f(x) (((x) == INFINITY_F) || ((x) == -INFINITY_F)) +#define INFINITY_L (1.0L/0.0L) +#define NAN_L (0.0L/0.0L) + +#define isnan(x) ((x) != (x)) +#define isnanf(x) ((x) != (x)) +#define isnanl(x) ((x) != (x)) +#define isinf(x) (((x) == INFINITY) || ((x) == -INFINITY)) +#define isinff(x) (((x) == INFINITY_F) || ((x) == -INFINITY_F)) +#define isinfl(x) (((x) == INFINITY_L) || ((x) == -INFINITY_L)) + +#define finite(x) (!(isinf(x) || isnan(x))) +#define finitef(x) (!(isinff(x) || isnanf(x))) +#define finitel(x) (!(isinfl(x) || isnanl(x))) + +#define isfinite(x) (!(isinf(x) || isnan(x))) +#define isfinitef(x) (!(isinff(x) || isnanf(x))) +#define isfinitel(x) (!(isinfl(x) || isnanl(x))) Review Comment: There are no `isfinitef` and `isfinitel`. Please remove -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org