
UM10800
All information provided in this document is subject to legal disclaimers.
© NXP Semiconductors N.V. 2016. All rights reserved.
User manual
Rev. 1.2 — 5 October 2016
445 of 487
32.1 How to read this chapter
The ROM-based 32-bit integer division routines are available on all parts.
32.2 Features
•
Performance-optimized signed/unsigned integer division.
•
Performance-optimized signed/unsigned integer division with remainder.
•
ROM-based routines to reduce code size.
•
Support for integers up to 32 bit.
•
ROM calls can easily be added to EABI-compliant functions to overload “/” and “%”
operators in C.
32.3 General description
The API calls to the ROM are performed by executing functions which are pointed by a
pointer within the ROM Driver Table.
shows the pointer structure used to call
the Integer divider API.
UM10800
Chapter 32: LPC82x ROM API integer divide routines
Rev. 1.2 — 5 October 2016
User manual
Fig 66. ROM pointer structure
Ptr to ROM Driver table
Ptr to Device Table 2
Ptr to Device Table 1
Ptr to Device Table 1
…
Ptr to Device Table n
sdiv
udiv
sdivmod
udivmod
Ptr to Function 2
Ptr to Function 0
Ptr to Function 1
…
Ptr to Function n
Integer division routines function table
Device n
ROM Driver Table
0x1FFF 1FF8
+0x0
+0x4
+0x8
+0x10
+0xC
Ptr to Device Table 3
Ptr to Integer Division routines Table