mirror of https://github.com/FDOS/kernel.git
Save a couple bytes by moving the strncmp_retzero block.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@789 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
216f51cb65
commit
d06b147cb0
|
@ -468,15 +468,8 @@ strncmp_loop:
|
||||||
jne strncmp_done
|
jne strncmp_done
|
||||||
test al,al
|
test al,al
|
||||||
loopne strncmp_loop
|
loopne strncmp_loop
|
||||||
|
jmp short strncmp_retzero
|
||||||
%endif
|
%endif
|
||||||
strncmp_retzero:
|
|
||||||
xor ax, ax
|
|
||||||
jmp short strncmp_done2
|
|
||||||
strncmp_done:
|
|
||||||
lahf
|
|
||||||
ror ah,1
|
|
||||||
strncmp_done2: jmp pascal_return
|
|
||||||
|
|
||||||
|
|
||||||
;**********************************************************************
|
;**********************************************************************
|
||||||
; fmemcmp(BYTE FAR *s1 , BYTE FAR *s2, int count);
|
; fmemcmp(BYTE FAR *s1 , BYTE FAR *s2, int count);
|
||||||
|
@ -516,4 +509,11 @@ domemcmp:
|
||||||
jcxz strncmp_retzero
|
jcxz strncmp_retzero
|
||||||
repe cmpsb
|
repe cmpsb
|
||||||
jne strncmp_done
|
jne strncmp_done
|
||||||
jmp short strncmp_retzero
|
strncmp_retzero:
|
||||||
|
xor ax, ax
|
||||||
|
jmp short strncmp_done2
|
||||||
|
strncmp_done:
|
||||||
|
lahf
|
||||||
|
ror ah,1
|
||||||
|
strncmp_done2: jmp pascal_return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue