UM11029
All information provided in this document is subject to legal disclaimers.
© NXP Semiconductors N.V. 2017. All rights reserved.
User manual
Rev. 1.0 — 16 June 2017
487 of 515
NXP Semiconductors
UM11029
Chapter 30: LPC84x ROM API integer divide routines
30.4.2 DIV unsigned integer division
30.4.3 DIV signed integer division with remainder
30.4.4 DIV unsigned integer division with remainder
Input parameter
numerator: Numerator signed integer. denominator: Denominator signed
integer.
Return
Signed division result without remainder.
Description
Signed integer division
Table 472. sidiv
Routine
sidiv
Table 473. uidiv
Routine
uidiv
Prototype
int(*uidiv) (int32_t numerator, int32_t denominator);
Input parameter
numerator: Numerator signed integer. denominator: Denominator signed
integer.
Return
Unsigned division result without remainder.
Description
Unsigned integer division
Table 474. sidivmod
Routine
sidivmod
Prototype
IDIV_RETURN_T (*sidivmod) (int32_t numerator, int32_t denominator);
Input parameter
numerator: Numerator signed integer. denominator: Denominator signed
integer.
Return
Signed division result remainder.
Description
Signed integer division with remainder
Table 475. uidivmod
Routine
uidivmod
Prototype
UIDIV_RETURN_T(*uidiv) (uint32_t numerator, uint32_t denominator);
Input parameter
numerator: Numerator unsigned integer. denominator: Denominator unsigned
integer.
Return
Unsigned division result with remainder.
Description
Unsigned integer division