EasyManuals Logo

Intel ARCHITECTURE IA-32 User Manual

Intel ARCHITECTURE IA-32
568 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #244 background imageLoading...
Page #244 background image
IA-32 Intel® Architecture Optimization
4-24
Absolute Difference of Signed Numbers
Chapter 4 computes the absolute difference of two signed numbers.
The technique used here is to first sort the corresponding elements of the
input operands into packed words of the maximum values, and packed
words of the minimum values. Then the minimum values are subtracted
from the maximum values to generate the required absolute difference.
The key is a fast sorting technique that uses the fact that
B = xor(A,
xor (A,B)) and A = xor(A,0). Thus in a packed data type, having
some elements being
xor(A,B) and some being 0, you could xor such
an operand with
A and receive in some places values of A and in some
values of
B. The following examples assume a packed-word data type,
each element being a signed value.
NOTE. There is no MMX™ technology subtract
instruction that receives
SIGNED operands and
subtracts them with UNSIGNED saturation.
Example 4-17 Absolute Difference of Signed Numbers
;Input:
; MM0 signed source operand
; MM1 signed source operand
;Output:
; MM0 absolute difference of the unsigned
; operands
continued

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Intel ARCHITECTURE IA-32 and is the answer not in the manual?

Intel ARCHITECTURE IA-32 Specifications

General IconGeneral
Instruction Setx86
Instruction Set TypeCISC
Memory SegmentationSupported
Operating ModesReal mode, Protected mode, Virtual 8086 mode
Max Physical Address Size36 bits (with PAE)
Max Virtual Address Size32 bits
ArchitectureIA-32 (Intel Architecture 32-bit)
Addressable Memory4 GB (with Physical Address Extension up to 64 GB)
Floating Point Registers8 x 80-bit
MMX Registers8 x 64-bit
SSE Registers8 x 128-bit
RegistersGeneral-purpose registers (EAX, EBX, ECX, EDX, ESI, EDI, ESP, EBP), Segment registers (CS, DS, SS, ES, FS, GS), Instruction pointer (EIP), Flags register (EFLAGS)
Floating Point UnitYes (x87)

Related product manuals