mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 01:26:11 +02:00
* i386 version of fpc_pchar_length did not accept NIL strings, maybe we have to check other implementations also
git-svn-id: trunk@12461 -
This commit is contained in:
parent
660a7c4b6d
commit
fe3263eb08
@ -1037,12 +1037,15 @@ asm
|
||||
{$endif}
|
||||
movl $0xffffffff,%ecx
|
||||
xorl %eax,%eax
|
||||
cmp %edi,%edi
|
||||
jz .LStrLenDone
|
||||
cld
|
||||
repne
|
||||
scasb
|
||||
movl $0xfffffffe,%eax
|
||||
subl %ecx,%eax
|
||||
movl saveedi,%edi
|
||||
.LStrLenDone:
|
||||
end;
|
||||
{$endif FPC_SYSTEM_HAS_FPC_PCHAR_LENGTH}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user