- 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 |
||
|---|---|---|
| .. | ||
| builtin.h | ||
| float.h | ||
| lib.h | ||
| math.h | ||
| math32.h | ||
| modlib.h | ||
| setjmp.h | ||
| stdarg.h | ||
| xorshift128.h | ||