Multiplication of fixed point values by negative integers AI-00475/05 1
88-05-23 BI WJ
| !standard 04.05.05 (08) 88-05-23 AI-00475/05
!class binding interpretation 86-10-13
| !status approved by WG9/AJPO 88-02-05
| !status approved by Director, AJPO 88-02-05
| !status approved by WG9/Ada Board 87-12-07
!status approved by Ada Board 87-07-30
!status panel/committee-approved 87-05-06 (reviewed)
!status panel/committee-approved (8-0-0) 87-02-18 (pending editorial review)
!status work-item 87-01-15
!status received 86-10-13
!references 83-00829
!topic Multiplication of fixed point values by negative integers
!summary 87-03-17
If the integer in an integer multiplication of a fixed point value is
negative, the multiplication is equivalent to changing the sign of the fixed
point value followed by repeated addition.
!question 87-01-15
4.5.5(8) says:
Integer multiplication of fixed point values is equivalent to
repeated addition.
What is the effect of multiplication by a negative integer?
!recommendation 87-03-17
If the integer in an integer multiplication of a fixed point value is
negative, the multiplication is equivalent to changing the sign of the fixed
point value followed by repeated addition.
!discussion 87-01-15
Clearly the intent in defining the effect of multiplication of a fixed point
value by an integer was to specify that the result have the proper sign.