+ Small optimization in comparemem

This commit is contained in:
michael 2003-11-22 16:17:26 +00:00
parent cae0e667de
commit 3e33c1a5ab

View File

@ -145,9 +145,10 @@ var
begin begin
Result:=True; Result:=True;
I:=0; I:=0;
If (P1)<>(P2) then
While Result and (i<Length) do While Result and (i<Length) do
begin begin
Result:=Byte(P1^)=Byte(P2^); Result:=PByte(P1)^=PByte(P2)^;
Inc(I); Inc(I);
Inc(pchar(P1)); Inc(pchar(P1));
Inc(pchar(P2)); Inc(pchar(P2));
@ -2008,7 +2009,10 @@ const
{ {
$Log$ $Log$
Revision 1.5 2003-11-22 15:46:48 michael Revision 1.6 2003-11-22 16:17:26 michael
+ Small optimization in comparemem
Revision 1.5 2003/11/22 15:46:48 michael
+ Patched CompareMem for case when length is 0 + Patched CompareMem for case when length is 0
Revision 1.4 2003/11/09 13:37:42 michael Revision 1.4 2003/11/09 13:37:42 michael