nuttx/libs/libc/math
Neale Ferguson 213b954a90 * Squash round() commits
- 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
2022-09-08 20:57:27 +08:00
..
__cos.c LICENSE: add libs/libc/math/ to license file 2021-09-02 21:56:05 +08:00
__sin.c LICENSE: add libs/libc/math/ to license file 2021-09-02 21:56:05 +08:00
Kconfig Sources and Docs: Fix typos and nxstyle issues 2020-10-02 04:54:52 +02:00
lib_acos.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_acosf.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_acosh.c author: Brennan Ashton: update licenses to Apache 2021-09-02 21:56:05 +08:00
lib_acoshf.c author: Brennan Ashton: update licenses to Apache 2021-09-02 21:56:05 +08:00
lib_acoshl.c author: Brennan Ashton: update licenses to Apache 2021-09-02 21:56:05 +08:00
lib_acosl.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_asin.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_asinf.c * Squash round() commits 2022-09-08 20:57:27 +08:00
lib_asinh.c author: Brennan Ashton: update licenses to Apache 2021-09-02 21:56:05 +08:00
lib_asinhf.c author: Brennan Ashton: update licenses to Apache 2021-09-02 21:56:05 +08:00
lib_asinhl.c author: Brennan Ashton: update licenses to Apache 2021-09-02 21:56:05 +08:00
lib_asinl.c * Squash round() commits 2022-09-08 20:57:27 +08:00
lib_atan2.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_atan2f.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_atan2l.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_atan.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_atanf.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_atanh.c author: Brennan Ashton: update licenses to Apache 2021-09-02 21:56:05 +08:00
lib_atanhf.c author: Brennan Ashton: update licenses to Apache 2021-09-02 21:56:05 +08:00
lib_atanhl.c author: Brennan Ashton: update licenses to Apache 2021-09-02 21:56:05 +08:00
lib_atanl.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_cbrt.c math: Implement cbrt 2020-08-14 07:27:55 -05:00
lib_ceil.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_ceilf.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_ceill.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_copysign.c libs: libc: update licenses to Apache 2021-05-27 08:07:25 +09:00
lib_copysignf.c LICENSE: add libs/libc/math/ to license file 2021-09-02 21:56:05 +08:00
lib_copysignl.c libs: libc: update licenses to Apache 2021-05-27 08:07:25 +09:00
lib_cos.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_cosf.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_cosh.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_coshf.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_coshl.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_cosl.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_erf.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_erfc.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
lib_erfcf.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
lib_erfcl.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
lib_erff.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_erfl.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_exp.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_expf.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_expl.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_expm1.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
lib_expm1f.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
lib_expm1l.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
lib_fabs.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_fabsf.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_fabsl.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_floor.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_floorf.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_floorl.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_fmax.c libc/math: Add fmax and fmin functions 2021-07-10 11:00:07 -03:00
lib_fmaxf.c libc/math: Add fmax and fmin functions 2021-07-10 11:00:07 -03:00
lib_fmaxl.c libc/math: Add fmax and fmin functions 2021-07-10 11:00:07 -03:00
lib_fmin.c libc/math: Add fmax and fmin functions 2021-07-10 11:00:07 -03:00
lib_fminf.c libc/math: Add fmax and fmin functions 2021-07-10 11:00:07 -03:00
lib_fminl.c libc/math: Add fmax and fmin functions 2021-07-10 11:00:07 -03:00
lib_fmod.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_fmodf.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_fmodl.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_frexp.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_frexpf.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_frexpl.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_gamma.c
lib_ldexp.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_ldexpf.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_ldexpl.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_lgamma.c LICENSE: add libs/libc/math/ to license file 2021-09-02 21:56:05 +08:00
lib_libexpi.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_libexpif.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_libsqrtapprox.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_llround.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
lib_llroundf.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
lib_llroundl.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
lib_log2.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_log2f.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_log2l.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_log10.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_log10f.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_log10l.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_log.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_logf.c * Squash round() commits 2022-09-08 20:57:27 +08:00
lib_logl.c * Squash round() commits 2022-09-08 20:57:27 +08:00
lib_lround.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
lib_lroundf.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
lib_lroundl.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
lib_modf.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_modff.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_modfl.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_nan.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
lib_nanf.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
lib_nanl.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
lib_pow.c Fixed pow() for negative bases. 2022-09-03 21:19:10 +08:00
lib_powf.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_powl.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_rint.c NuttX: Fix nxtyle errors 2021-04-03 04:20:31 -07:00
lib_rintf.c NuttX: Fix nxtyle errors 2021-04-03 04:20:31 -07:00
lib_rintl.c NuttX: Fix nxtyle errors 2021-04-03 04:20:31 -07:00
lib_round.c * Squash round() commits 2022-09-08 20:57:27 +08:00
lib_roundf.c * Squash round() commits 2022-09-08 20:57:27 +08:00
lib_roundl.c * Squash round() commits 2022-09-08 20:57:27 +08:00
lib_sin.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_sinf.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_sinh.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_sinhf.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_sinhl.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_sinl.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_sqrt.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_sqrtf.c * Squash round() commits 2022-09-08 20:57:27 +08:00
lib_sqrtl.c * Squash round() commits 2022-09-08 20:57:27 +08:00
lib_tan.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_tanf.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_tanh.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_tanhf.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_tanhl.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_tanl.c Fix various typos 2022-07-08 02:15:54 +08:00
lib_trunc.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
lib_truncf.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
lib_truncl.c libs: fix nxstyle errors 2021-04-02 11:12:25 -05:00
Make.defs libs/libc: correct config name 2022-07-27 20:18:05 +08:00