Skip to content

Commit

Permalink
fix emulated asynchronous divisions started via hw_divider_divmod_s32…
Browse files Browse the repository at this point in the history
…_start and hw_divider_divmod_u32_start (#2299)
  • Loading branch information
kilograham authored Feb 18, 2025
1 parent 186e715 commit 2dd58bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rp2_common/hardware_divider/include/hardware/divider.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ static inline void hw_divider_divmod_s32_start(int32_t a, int32_t b) {
sio_hw->div_sdividend = (uint32_t)a;
sio_hw->div_sdivisor = (uint32_t)b;
#else
hw_divider_divmod_s32(a, b);
hw_divider_results[get_core_num()] = hw_divider_divmod_s32(a, b);
#endif
}

Expand All @@ -130,7 +130,7 @@ static inline void hw_divider_divmod_u32_start(uint32_t a, uint32_t b) {
sio_hw->div_udividend = a;
sio_hw->div_udivisor = b;
#else
hw_divider_divmod_u32(a, b);
hw_divider_results[get_core_num()] = hw_divider_divmod_u32(a, b);
#endif
}

Expand Down

0 comments on commit 2dd58bf

Please sign in to comment.