div_s32s32() function
Optimized 32 and 64 bit division functions accelerated by the RP2040 hardware divider Additionally provides integration with the C `/` and `%` operators \file pico/divider.h High level APIs including combined quotient and remainder functions for 32 and 64 bit accelerated by the hardware divider These functions all call __aeabi_idiv0 or __aebi_ldiv0 on division by zero passing the largest applicably signed value Functions with unsafe in their name do not save/restore divider state, so are unsafe to call from interrupts. Unsafe functions are slightly faster. Integer divide of two signed 32-bit values
Syntax
int32_t div_s32s32(int32_t a,
int32_t b);
Return value
quotient
div_s32s32() is called by 1 function and calls 1 function:
![]()
div_s32s32()
div_s32s32():
![]()
div_s32s32()