mirror of
https://github.com/apache/nuttx.git
synced 2026-05-14 02:58:01 +08:00
213b954a90
- Add check in roundx() functions for infinite or NaN cases - Add block to avoid style warnings - Define long double constants and macros for infinity and nan - Correct return syntax to match NuttX style - Make c89 compliant - Fix definitions of INFINITY_L/NAN_L * include/nuttx/lib/math.h - match standard naming conventions - Rename isinf_l to isinfl - Rename isinf_f to isinff - Add finite() - Add finitel() - Add finitef() - Define isnanl and isnanf - Define isfinite() so that it uses the appropriate macro * libs/libc/math/lib_asinf.c libs/libc/math/lib_asinl.c libs/libc/math/lib_roundf.c libs/libc/math/lib_roundl.c libs/libc/math/lib_sqrtf.c libs/libc/math/lib_sqrtl.c - Use renamed macros - Use correct NAN_x or INFINIT_x macro on returns