28.2.25 __builtin_divmodf_16

Architecture

dsPIC33A

Description

Perform a fixed point divide and capture the remainder.

Prototype

int16_t __builtin_divmodf_16(int16_t x, int16_t y, int16_t *remainder);

Arguments

x - fixed point numerator

y  - fixed point denominator

remainder - location to store the remainder result

Return Value

Returns x/y  and stores x%y into the location referenced by remainder.

Machine Instruction

divf.w

Error Messages

None.