GDCC icon indicating copy to clipboard operation
GDCC copied to clipboard

Fixed-point promotion

Open DavidPH opened this issue 5 years ago • 0 comments

Operations mixing fixed-point and integer types convert their operands to the promoted type before the operation. For addition and subtraction, this is fine, but multiplication and division with fract types is almost impossible. Therefore, conversion should happen after the operation for multiplication and division. This will make fract types much more useful as well as optimize accum-integer operations.

DavidPH avatar Apr 17 '19 14:04 DavidPH