diff options
author | Damien George <damien@micropython.org> | 2023-12-05 16:38:44 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-12-06 14:00:07 +1100 |
commit | 3f2c423686e735ae4c8529b1df018d9884f48ce2 (patch) | |
tree | 992c16d343e0cff45c428f743c972a730b9a75d1 /extmod/btstack/modbluetooth_btstack.c | |
parent | 1323a71823cbf54f02395252912df1377a61824e (diff) | |
download | micropython-3f2c423686e735ae4c8529b1df018d9884f48ce2.tar.gz micropython-3f2c423686e735ae4c8529b1df018d9884f48ce2.zip |
rp2: Switch to locally provided math library.
This commit fixes all known floating-point bugs with the pico-sdk. There
are two things going on here:
- Use a custom pico float component so that the pico-sdk doesn't include
its math functions, and then provide our own from lib/libm.
- Provide a wrapper for __aeabi_fadd to fix the infinity addition bug.
Prior to this commit, the following tests failed on the rp2 port: cmath_fun
float_parse math_domain math_domain_special math_fun_special. With this
commit, all these tests pass.
Thanks to @projectgus for how to approach this fix.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'extmod/btstack/modbluetooth_btstack.c')
0 files changed, 0 insertions, 0 deletions