[fpc-pascal]fpc_mod_qword

Florian Klaempfl Florian.Klaempfl at gmx.de
Sun Jul 25 13:48:36 CEST 2004


Marcel Martin wrote:
> Hello,
> 
> I saw in the file fpc/rtl/i386/int64p.inc that the function
> fpc_mod_qword was disabled with the comment "This does not work 
> correctly".
> 
> The problem is a bad instruction (presumably a typo):
> 
>   .Lqwordmodr_big_divisior:
>      |
>      |  
>    shrdl %cl,%edx,%eax
>    shrl %cl,%edx
>    rorl $1,%edi     <-- should be a "roll"
>    divl %ebx
>    movl z,%ebx
>      |
>      |
> 

Fixed, thx.




More information about the fpc-pascal mailing list