28.2.141 __builtin_udiv

Architecture

dsPIC33A

Description

Perform a mixed mode unsigned divide.

Prototype

uint16_t __builtin_udiv_3216(const uint32_t x, const uint16_t y);

Arguments

x – numerator

y – denominator

Return Value

Returns x/y if the result is in bounds of a 16-bit unsigned result.

Machine Instruction

divu.l

Error Messages

None.