Digital signal processors (DSPs) and general-purpose processors, such as the processors in desktop computers, differ from each other.
The Quotient & Remainder function in a DSP application returns different values than in a Windows application when the x input is a negative number. The floor(x/y) (quotient) in a DSP application is one greater than the floor(x/y) in a Windows application. The x-y*floor(x/y) (remainder) is a negative number in a DSP application and a positive number in a Windows application.For example, in the following figure the x input is –25 and the y input is 10.

The following table lists the output values for a Windows application and a DSP application.
| Windows | DSP | |
|---|---|---|
| Value of remainder | 5 | -5 |
| Value of quotient | -3 | -2 |