19 |
; * along with this program ; if not, write to the Free Software |
; * along with this program ; if not, write to the Free Software |
20 |
; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
; * |
; * |
22 |
; * $Id: quantize_h263_3dne.asm,v 1.5 2004-08-29 10:02:38 edgomez Exp $ |
; * $Id: quantize_h263_3dne.asm,v 1.6 2007-09-11 12:41:13 suxen_drol Exp $ |
23 |
; * |
; * |
24 |
; *************************************************************************/ |
; *************************************************************************/ |
25 |
; |
; |
396 |
|
|
397 |
quant_intra1 3 |
quant_intra1 3 |
398 |
psubw mm5, mm4 ;C8 |
psubw mm5, mm4 ;C8 |
399 |
mov esi, [dword esp + 12] ; pop back the register value |
mov esi, [esp + 12] ; pop back the register value |
400 |
mov edi, [esp + 4] ; pop back the register value |
mov edi, [esp + 4] ; pop back the register value |
401 |
sar eax, 16 |
sar eax, 16 |
402 |
lea ebx, [byte eax + 1] ; workaround for eax < 0 |
lea ebx, [byte eax + 1] ; workaround for eax < 0 |
755 |
pmaxsw mm2, mm3 ;|c| ;B4 (2nd) |
pmaxsw mm2, mm3 ;|c| ;B4 (2nd) |
756 |
pmullw mm2, [edi] ;*= 2Q ;B8 (3rd+) |
pmullw mm2, [edi] ;*= 2Q ;B8 (3rd+) |
757 |
psraw mm3, 15 ; sign(c) ;B7 (2nd) |
psraw mm3, 15 ; sign(c) ;B7 (2nd) |
758 |
mov edx, [dword esp+ 4+12] ; data |
mov edx, [esp+ 4+12] ; data |
759 |
|
|
760 |
ALIGN 8 |
ALIGN 8 |
761 |
|
|