28.2.26 __builtin_divmodf_3216

Architecture

dsPIC33A

Description

Perform a mixed mode fixed point divide and capture the remainder.

Prototype

int16_t __builtin_divmodf_3216(int32_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  provided the result fits into a 16-bit result; also writes x%y to the location referenced by remainder.

Machine Instruction

divf.l

Error Messages

None.