Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/FLRE.pas
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@

*******************************************************************************)
unit FLRE;

//{$define assemblyBasedSearchMatch}

{$ifdef fpc}
{$mode delphi}
{$ifdef cpui386}
Expand Down Expand Up @@ -12180,7 +12183,8 @@ function TFLREDFA.FastProcessNextState(State:PFLREDFAState;const CurrentChar:TFL

end;

function TFLREDFA.SearchMatchFast(const StartPosition,UntilExcludingPosition:TFLREInt32;out MatchEnd:TFLREInt32;const UnanchoredStart:longbool):TFLREInt32; {$ifdef cpu386}assembler; stdcall;
function TFLREDFA.SearchMatchFast(const StartPosition,UntilExcludingPosition:TFLREInt32;out MatchEnd:TFLREInt32;const UnanchoredStart:longbool):TFLREInt32;
{$if defined(cpu386) and defined(assemblyBasedSearchMatch)}assembler; stdcall;
var ResultValue:TFLREInt32;
StartOffset:pointer;
asm
Expand Down Expand Up @@ -12370,7 +12374,8 @@ function TFLREDFA.SearchMatchFast(const StartPosition,UntilExcludingPosition:TFL
end;
{$endif}

function TFLREDFA.SearchMatchFastReversed(const StartPosition,UntilIncludingPosition:TFLREInt32;out MatchBegin:TFLREInt32;const UnanchoredStart:longbool):TFLREInt32; {$ifdef cpu386}assembler; stdcall;
function TFLREDFA.SearchMatchFastReversed(const StartPosition,UntilIncludingPosition:TFLREInt32;out MatchBegin:TFLREInt32;const UnanchoredStart:longbool):TFLREInt32;
{$ifdef defined(cpu386) and defined(assemblyBasedSearchMatch)}assembler; stdcall;
var ResultValue:TFLREInt32;
StartOffset:pointer;
asm
Expand Down