Make fillw faster in the usual case.

This commit is contained in:
mycroft 1993-04-23 06:33:20 +00:00
parent c2ef5bd114
commit 49515ccd94
1 changed files with 9 additions and 1 deletions

View File

@ -468,8 +468,16 @@ _fillw:
pushl %edi
movl 8(%esp),%eax
movl 12(%esp),%edi
movl 16(%esp),%ecx
movw %ax, %cx
rorl $16, %eax
movw %cx, %ax
cld
movl 16(%esp),%ecx
shrl %ecx
rep
stosl
movl 16(%esp),%ecx
andl $1, %ecx
rep
stosw
popl %edi