Add the unsafe variant of dcp functions to floating point library #2790

Open
opened 2026-01-10 20:52:37 -06:00 by andylinpersonal · 0 comments
andylinpersonal commented 2026-01-10 20:52:37 -06:00 (Migrated from github.com)

Similar to the implementation in pico_divider, we can add a unsafe implementation to fully skip the save and restore wrapper in dcp variant of pico_float and pico_double.

This is particularly useful when integrating with RTOS (I’m porting it to Zephyr 😜), since the save/restore logic can be handled during context switches or ISR entry.

Similar to the implementation in [pico_divider](https://github.com/raspberrypi/pico-sdk/blob/a1438dff1d38bd9c65dbd693f0e5db4b9ae91779/src/rp2_common/pico_divider/divider_hardware.S#L113), we can add a unsafe implementation to fully skip the save and restore wrapper in `dcp` variant of `pico_float` and `pico_double`. This is particularly useful when integrating with RTOS (I’m porting it to Zephyr 😜), since the save/restore logic can be handled during context switches or ISR entry.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-raspberrypi/pico-sdk#2790
No description provided.