+ 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,13 +145,14 @@ var
begin begin
Result:=True; Result:=True;
I:=0; I:=0;
While Result and (i<Length) do If (P1)<>(P2) then
begin While Result and (i<Length) do
Result:=Byte(P1^)=Byte(P2^); begin
Inc(I); Result:=PByte(P1)^=PByte(P2)^;
Inc(pchar(P1)); Inc(I);
Inc(pchar(P2)); Inc(pchar(P1));
end; Inc(pchar(P2));
end;
end; end;
@ -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