EasyManua.ls Logo

NXP Semiconductors LPC11U3x

NXP Semiconductors LPC11U3x
523 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
UM10462 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2016. All rights reserved.
User manual Rev. 5.5 — 21 December 2016 429 of 523
NXP Semiconductors
UM10462
Chapter 22: LPC11U3x/2x/1x Integer division routines
result = pDivROM->sidiv(-99, 6);
/* result now contains (-16) */
22.4.3 Unsigned division with remainder
The example C-code listing below shows how to perform an unsigned integer division with
remainder via the ROM API.
/* Modulus Divide (+99) by (+4) */
uidiv_return result;
result = pDivROM-> uidivmod (+99, 4);
/* result.quot contains (+24) */
/* result.rem contains (+3) */

Table of Contents

Related product manuals