Chapter 13: FP Vector Multiplication and Division

Overview

There are multitudes of variations of multiplicative mnemonic manipulations. It seems almost every processor supports a slightly different scheme involving different integer word sizes, floating-point precision types, methods of rounding, with saturations, etc. Fundamentally, despite its variations, it is very similar to and uses the same methodologies as the addition detailed in the last chapter.

Notice the integer multiplication examples below. The example on the left requires more bits to contain the results of the operation and thus different methods have been implemented to reduce that value to its component size. The results of the floating-point multiplication in the other two examples follow the rules of the IEEE-754 standard for binary floating-point arithmetic. The result of a multiplication is stored with no increase in data containment size , but there is a penalty of a loss of precision.

Integer

Floating-Point

Expanded FP

    3287565
        — 593
1949526045

3.28757e+006
         — 593.0
1.94953e+009

    3287570.0
        — 593.0
1949530000.0

Workbench Files: 4vec (Mul/Div) \qvmd3d\

                         project    

platform    

3D (Mul/Div)     \vmd3d\

\vc6

4vec (Mul/Div)  \qvmd3d\

\vc.net



32.64-Bit 80X86 Assembly Language Architecture
32/64-Bit 80x86 Assembly Language Architecture
ISBN: 1598220020
EAN: 2147483647
Year: 2003
Pages: 191

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net