We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 186e715 commit 2dd58bfCopy full SHA for 2dd58bf
src/rp2_common/hardware_divider/include/hardware/divider.h
@@ -110,7 +110,7 @@ static inline void hw_divider_divmod_s32_start(int32_t a, int32_t b) {
110
sio_hw->div_sdividend = (uint32_t)a;
111
sio_hw->div_sdivisor = (uint32_t)b;
112
#else
113
- hw_divider_divmod_s32(a, b);
+ hw_divider_results[get_core_num()] = hw_divider_divmod_s32(a, b);
114
#endif
115
}
116
@@ -130,7 +130,7 @@ static inline void hw_divider_divmod_u32_start(uint32_t a, uint32_t b) {
130
sio_hw->div_udividend = a;
131
sio_hw->div_udivisor = b;
132
133
- hw_divider_divmod_u32(a, b);
+ hw_divider_results[get_core_num()] = hw_divider_divmod_u32(a, b);
134
135
136
0 commit comments