rationalize pico_float/pico_double libraries #2208
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!2208
Loading…
Reference in a new issue
No description provided.
Delete branch "pico_float_double_cleanup"
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?
fixes #2160
cc @armandomontanez - i fixed up the main bazel build, but did not attempt to add the new tests
@ -16,50 +16,153 @@ extern "C" {#endifSome kind of copy-paste typo? "compiler built-ins when and math library functions"
@ -16,50 +16,153 @@ extern "C" {#endif"methods versions" doesn't sound right?
@ -16,50 +16,153 @@ extern "C" {#endifWas the
fma_flasthere supposed to sayfma_fast?@ -21,68 +21,296 @@ extern "C" {*nit: capital N on
nohere?@ -21,68 +21,296 @@ extern "C" {*"however allows" -> "however it allows" ?
@ -21,68 +21,296 @@ extern "C" {*"ot" -> "to"
@ -21,68 +21,296 @@ extern "C" {*Also
flot->float? 😉@ -21,68 +21,296 @@ extern "C" {*Same "when and" typo as earlier.
@ -21,68 +21,296 @@ extern "C" {*"methods versions" again
@ -21,68 +21,296 @@ extern "C" {*Was this supposed to be
LIB_PICO_FLOAT_PICO_VFP?@ -79,4 +79,31 @@ else ()target_link_libraries(m33 pico_double pico_stdlib)Why the commented-out
if()here? Would it make sense to remove it?@ -21,68 +21,296 @@ extern "C" {*Are the mentions of
pico_float_vfphere (and elsewhere) supposed to bepico_float_pico_vfp? 🤷@ -16,50 +16,153 @@ extern "C" {#endif"curretly" -> "currently"
(and also on lines 123 and 130)
@ -16,50 +16,153 @@ extern "C" {#endifThis is the only mention of
pico_double_pico_vfpin this PR, andpico_double_vfpalso appears 5 times. I've no idea which version is correct! (Perhaps they both are?)@ -16,50 +16,153 @@ extern "C" {#endifnit: Should probably be a colon at the end of this line? (and same in
float.h)Thanks for the heads up. If Bazel starts to get in the way, just temporarily disable the checks and I'll do a pass to make it happy again.
@ -21,68 +21,296 @@ extern "C" {*yup; i copied and pasted ;-)
@ -16,50 +16,153 @@ extern "C" {#endifThere's still several mentions of
pico_double_vfp, which (unlikepico_float_pico_vfp) isn't listed earlier as one of the available pico_double "flavours"?@ -0,0 +238,4 @@test_checki(double2fix_z(3.25, 2), 13, "double2fix_z7");test_checki(double2fix_z(-3.24999, 2), -12, "double2fix_z8");test_checki(double2fix_z(-3.25, 2), -13, "double2fix_z9");test_checki(double2fix_z(-0.75, 1), -1, "double2fix_z10");You've now used "double2int6" twice, but every other test_check label is unique.
merging fixes post review with mark