![Intel ITANIUM ARCHITECTURE Скачать руководство пользователя страница 570](http://html.mh-extra.com/html/intel/itanium-architecture/itanium-architecture_manual_2073403570.webp)
Volume 4: IA-32 SSE Instruction Reference
4:563
PAVGB/PAVGW: Packed Average
Operation:
if (instruction == PAVGB) {
x[0] = mm1[7-0]
y[0] = mm2/m64[7-0];
x[1] = mm1[15-8]
y[1] = mm2/m64[15-8];
x[2]
= mm1[23-16]
y[2] = mm2/m64[23-16];
x[3] = mm1[31-24]
y[3] = mm2/m64[31-24];
x[4] = mm1[39-32]
y[4] = mm2/m64[39-32];
x[5] = mm1[47-40]
y[5] = mm2/m64[47-40];
x[6] = mm1[55-48]
y[6] = mm2/m64[55-48];
x[7] = mm1[63-56]
y[7] = mm2/m64[63-56];
for (i = 0; i < 8; i++) {
temp[i] = zero_ext(x[i], 8) + zero_ext(y[i], 8);
res[i] = (temp[i] +1) >> 1;
}
mm1[7-0] =
res[0];
...
mm1[63-56] =
res[7];
}
else if (instruction == PAVGW){
x[0] = mm1[15-0]
y[0] = mm2/m64[15-0];
x[1] = mm1[31-16]
y[1] = mm2/m64[31-16];
x[2] = mm1[47-32]
y[2] = mm2/m64[47-32];
x[3] = mm1[63-48]
y[3] = mm2/m64[63-48];
for (i = 0; i < 4; i++) {
Opcode
Instruction
Description
0F,E0, /r
PAVGB mm1,mm2/m64
Average with rounding packed unsigned bytes from
MM2/Mem to packed bytes in MM1 register.
0F,E3, /r
PAVGW mm1, mm2/m64
Average with rounding packed unsigned words from
MM2/Mem to packed words in MM1 register.
Содержание ITANIUM ARCHITECTURE
Страница 1: ......
Страница 7: ...402 Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Страница 199: ...4 192 Volume 4 Base IA 32 Instruction Reference FWAIT Wait See entry for WAIT ...
Страница 269: ...4 262 Volume 4 Base IA 32 Instruction Reference LES Load Full Pointer See entry for LDS LES LFS LGS LSS ...
Страница 270: ...Volume 4 Base IA 32 Instruction Reference 4 263 LFS Load Full Pointer See entry for LDS LES LFS LGS LSS ...
Страница 273: ...4 266 Volume 4 Base IA 32 Instruction Reference LGS Load Full Pointer See entry for LDS LES LFS LGS LSS ...
Страница 288: ...Volume 4 Base IA 32 Instruction Reference 4 281 LSS Load Full Pointer See entry for LDS LES LFS LGS LSS ...
Страница 352: ...Volume 4 Base IA 32 Instruction Reference 4 345 ROL ROR Rotate See entry for RCL RCR ROL ROR ...
Страница 368: ...Volume 4 Base IA 32 Instruction Reference 4 361 SHL SHR Shift Instructions See entry for SAL SAR SHL SHR ...
Страница 373: ...4 366 Volume 4 Base IA 32 Instruction Reference SIDT Store Interrupt Descriptor Table Register See entry for SGDT SIDT ...
Страница 589: ...4 582 Volume 4 IA 32 SSE Instruction Reference ...
Страница 590: ...Index Intel Itanium Architecture Software Developer s Manual Rev 2 3 Index ...
Страница 591: ...Index Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Страница 603: ...INDEX Index 12 Index for Volumes 1 2 3 and 4 ...
Страница 604: ......