mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 09:49:35 +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}
|
{$endif}
|
||||||
movl $0xffffffff,%ecx
|
movl $0xffffffff,%ecx
|
||||||
xorl %eax,%eax
|
xorl %eax,%eax
|
||||||
|
cmp %edi,%edi
|
||||||
|
jz .LStrLenDone
|
||||||
cld
|
cld
|
||||||
repne
|
repne
|
||||||
scasb
|
scasb
|
||||||
movl $0xfffffffe,%eax
|
movl $0xfffffffe,%eax
|
||||||
subl %ecx,%eax
|
subl %ecx,%eax
|
||||||
movl saveedi,%edi
|
movl saveedi,%edi
|
||||||
|
.LStrLenDone:
|
||||||
end;
|
end;
|
||||||
{$endif FPC_SYSTEM_HAS_FPC_PCHAR_LENGTH}
|
{$endif FPC_SYSTEM_HAS_FPC_PCHAR_LENGTH}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user