pico-sdk/src
Peter Pettersson 3bd7a829db
Some optimizations for the hardware divider (#1033)
* Remove unnecessary wait in pico_divider.

There is no need to wait if there is more than 8 cycles between setup and result readout.
Dividend/divisor readout should be correct without delay. Update comment to reflect that.

* Optimize hw_divider_save_state/hw_divider_restore_state.

Doing multiple pushes to avoid stack usage is faster.
The wait loop in hw_divider_save_state had an incorrect branch in the wait loop.
This didn't matter since the wait wasn't necessary to begin with.

* Remove pointless aligns in hardware_divider.

The regular_func_with_section inserts a new section so if aligning
is desired it should be placed in the macro after section start.

* Save a few bytes in hardware_divider.

Signed and unsigned code can use the same exit code.
Branching to the common code is free since we need the 8 cycle
delay anyway.
2022-10-16 17:40:22 -05:00
..
boards Add Pico W and lwIP support 2022-06-30 00:46:13 -05:00
common fix wconversion warning (#981) 2022-09-06 11:02:45 -05:00
host move get_core_num() into platform.h (#852) 2022-06-06 08:20:00 -05:00
rp2_common Some optimizations for the hardware divider (#1033) 2022-10-16 17:40:22 -05:00
rp2040 Increase PLL min VCO from 400MHz to 750MHz for improved stability across operating conditions (#869) 2022-06-20 10:28:03 -05:00
board_setup.cmake Fix default PICO_BOARD value (#536) 2021-08-06 12:21:59 -05:00
CMakeLists.txt respect OUTPUT_NAME target property when generating supplemental files (#592) 2021-10-12 09:08:44 -05:00
host.cmake Initial Release 2021-01-20 10:44:27 -06:00
rp2_common.cmake typo (#905) 2022-08-02 07:29:08 -05:00
rp2040.cmake Initial Release 2021-01-20 10:44:27 -06:00