micropython/lib/libm
Alessandro Gatti 3613ad9624 lib/libm: Do not force floating point type size evaluation.
Since C99, `FLT_EVAL_METHOD` should be left for the compiler/libc to
define.  Its redefinition breaks compilation with picolibc as the
target's libc, since it defines said symbol in math.h before the libm
define is evaluated by the compiler.

In its place, there is a check to make sure floating point type sizes
are what are expected to be, triggering a compilation error if those
assumptions are no longer valid.

Co-authored-by: Angus Gratton <angus@redyak.com.au>
Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
2024-05-31 17:04:24 +10:00
..
acoshf.c lib/libm: Add acosh, asinh, atanh, tan; get working with stmhal. 2014-12-18 14:44:02 +00:00
asinfacosf.c all: Fix implicit conversion from double to float. 2020-04-18 22:42:24 +10:00
asinhf.c lib/libm: Add acosh, asinh, atanh, tan; get working with stmhal. 2014-12-18 14:44:02 +00:00
atan2f.c all: Fix implicit conversion from double to float. 2020-04-18 22:42:24 +10:00
atanf.c all: Fix implicit conversion from double to float. 2020-04-18 22:42:24 +10:00
atanhf.c lib/libm: Add acosh, asinh, atanh, tan; get working with stmhal. 2014-12-18 14:44:02 +00:00
ef_rem_pio2.c lib/libm: Reduce size of static two_over_pi array. 2020-09-04 00:45:56 +10:00
ef_sqrt.c all: Fix implicit conversion from double to float. 2020-04-18 22:42:24 +10:00
erf_lgamma.c all: Fix implicit conversion from double to float. 2020-04-18 22:42:24 +10:00
fdlibm.h lib/libm: Reduce size of static two_over_pi array. 2020-09-04 00:45:56 +10:00
fmodf.c py: Implement divmod, % and proper // for floating point. 2014-09-13 18:43:09 +01:00
kf_cos.c all: Fix implicit conversion from double to float. 2020-04-18 22:42:24 +10:00
kf_rem_pio2.c lib/libm: Reduce size of static two_over_pi array. 2020-09-04 00:45:56 +10:00
kf_sin.c all: Fix implicit conversion from double to float. 2020-04-18 22:42:24 +10:00
kf_tan.c all: Fix implicit conversion from double to float. 2020-04-18 22:42:24 +10:00
libm.h lib/libm: Do not force floating point type size evaluation. 2024-05-31 17:04:24 +10:00
log1pf.c all: Fix implicit conversion from double to float. 2020-04-18 22:42:24 +10:00
math.c all: Fix implicit floating point to integer conversions. 2020-04-18 22:42:24 +10:00
nearbyintf.c lib/libm: Add implementation of nearbyintf, from musl-1.1.16. 2017-03-24 10:38:11 +11:00
roundf.c py: Add builtin round function. 2014-10-31 11:28:50 +00:00
sf_cos.c all: Use the name MicroPython consistently in comments 2017-07-31 18:35:40 +10:00
sf_erf.c all: Fix implicit conversion from double to float. 2020-04-18 22:42:24 +10:00
sf_frexp.c all: Fix implicit conversion from double to float. 2020-04-18 22:42:24 +10:00
sf_ldexp.c all: Remove commented-out include statements. 2020-04-23 11:24:15 +10:00
sf_modf.c all: Fix implicit conversion from double to float. 2020-04-18 22:42:24 +10:00
sf_sin.c all: Use the name MicroPython consistently in comments 2017-07-31 18:35:40 +10:00
sf_tan.c all: Use the name MicroPython consistently in comments 2017-07-31 18:35:40 +10:00
thumb_vfp_sqrtf.c lib/libm: Use __asm__ instead of asm. 2022-11-10 11:36:41 +11:00
wf_lgamma.c all: Remove commented-out include statements. 2020-04-23 11:24:15 +10:00
wf_tgamma.c lib/libm/wf_tgamma: Fix tgammaf handling of -inf, should return nan. 2018-09-04 17:00:35 +10:00