Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2004-07

fpc_mod_qword

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marcel Martin

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
|
|

Florian Klaempfl
to Marcel Martin
Marcel Martin wrote 19 lines
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.