various floating point fixes #2849
No reviewers
Labels
No labels
bazel
bluetooth
board settings
boot_stage2
bug
build
c++
can't reproduce
clang
clib-interface
cmsis
code cleanliness
code size
compiler version issues
cyw43_driver
debug
discussion
documentation
duplicate
dynamic_clock
elf2uf2
enhancement
errata
filesystem
flash layout
floating point
FreeRTOS
hardware_adc
hardware_claim
hardware_clocks
hardware_dma
hardware_exception
hardware_flash
hardware_gpio
hardware_i2c
hardware_irq
hardware_pio
hardware_pwm
hardware_rcp
hardware_rtc
hardware_spi
hardware_sync
hardware_uart
hardware_vreg
hardware_watchdog
hardware_xosc
help wanted
host
IAR
installation
invalid
linker scripts
lto
lwip
mbedtls
missing API
needs reporter detail
networking
newlib
newlib-multicore
non-c
non-cmake
non-gcc
openocd
orphan PR
OS integration
pico_async_context
pico_base
pico_binary_info
pico_flash
picolibc
pico_lwip
pico_malloc
pico_multicore
pico_printf
pico_runtime
pico_stdio
pico_stdio_usb
pico_sync
pico_time
pico_util
pioasm
port
question
review
review2
rtos interop
runtime init
static library
svd
test
tinyusb
vscode
wifi integration
wontfix
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-raspberrypi/pico-sdk!2849
Loading…
Reference in a new issue
No description provided.
Delete branch "float_fixes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -179,6 +181,15 @@ int test() {test_checki(double2fix(-0.0, 16), 0, "double2fix13");?
@ -189,13 +200,23 @@ int test() {test_checku(double2ufix(-INFINITY, 16), 0, "double2ufix5b");@ -239,6 +262,14 @@ int test() {test_checki64(double2fix64(u64d.d, 19), -13ll * (1ll << 17) - 1ll, "double2fix6415j");@ -250,11 +281,22 @@ int test() {test_checku64(double2ufix64(-INFINITY, 16), 0, "double2ufix645b");@ -275,6 +319,14 @@ int test() {test_checki(double2fix_z(-0.0, 16), 0, "double2fix_z13");(for consistency)
@ -283,8 +335,10 @@ int test() {test_checku(double2ufix_z(65536.0, 16), UINT32_MAX, "double2ufix_z4");@ -333,6 +397,14 @@ int test() {test_checki64(double2fix64_z(u64d.d, 19), -13ll * (1ll << 17), "double2fix64_z15j");@ -179,6 +181,15 @@ int test() {test_checki(double2fix(-0.0, 16), 0, "double2fix13");oops; i got heavy handed in fixing duplicates somewhere
@ -342,15 +414,25 @@ int test() {test_checki64(double2ufix64_z(65536.0 * 65536.0 * 65536.0, 16), UINT64_MAX, "double2ufix64_z4b");@ -301,22 +367,48 @@ int test() {test_checki64(float2fix64_z(65536.0f, 16), 65536ll << 16, "float2fix64_z4");@ -342,15 +414,25 @@ int test() {test_checki64(double2ufix64_z(65536.0 * 65536.0 * 65536.0, 16), UINT64_MAX, "double2ufix64_z4b");@ -216,6 +216,10 @@ int test() {test_checki(float2fix(-65536.0f, 16), INT32_MIN, "float2fix4b");@ -216,6 +216,10 @@ int test() {test_checki(float2fix(-65536.0f, 16), INT32_MIN, "float2fix4b");@ -245,11 +266,24 @@ int test() {test_checki64(float2fix64(2147483648.0f, 16), 2147483648ll << 16, "float2fix644b");@ -258,9 +292,24 @@ int test() {test_checku64(float2ufix64(65536.0f, 16), 65536ull << 16, "float2ufix644");@ -269,6 +318,10 @@ int test() {test_checki(float2fix_z(65536.0f, 16), INT32_MAX, "float2fix_z4");@ -269,6 +318,10 @@ int test() {test_checki(float2fix_z(65536.0f, 16), INT32_MAX, "float2fix_z4");@ -301,22 +367,48 @@ int test() {test_checki64(float2fix64_z(65536.0f, 16), 65536ll << 16, "float2fix64_z4");@ -301,22 +367,48 @@ int test() {test_checki64(float2fix64_z(65536.0f, 16), 65536ll << 16, "float2fix64_z4");@ -301,22 +367,48 @@ int test() {test_checki64(float2fix64_z(65536.0f, 16), 65536ll << 16, "float2fix64_z4");Should the
test_checki64here betest_checku64?@ -250,11 +281,22 @@ int test() {test_checku64(double2ufix64(-INFINITY, 16), 0, "double2ufix645b");Should these two lines be using
test_checku64?@ -250,11 +281,22 @@ int test() {test_checku64(double2ufix64(-INFINITY, 16), 0, "double2ufix645b");@ -250,11 +281,22 @@ int test() {test_checku64(double2ufix64(-INFINITY, 16), 0, "double2ufix645b");@ -301,22 +367,48 @@ int test() {test_checki64(float2fix64_z(65536.0f, 16), 65536ll << 16, "float2fix64_z4");