[fpc-pascal] fast integer multiplication
vsnijders at quicknet.nl
Thu Jul 21 14:51:02 CEST 2005
Suppose I have the following code:
a := 10000000;
b := 20000000;
c := a * b;
Now, although c is large enough to contain the result only the lower
dword is filled. I can force correct results by using c := qword(a) * b,
but the slow fpc_mul_qword is used.
The code generated for the above sample is:
#  c:=a*b;
What I want is the above code, but without the "movl $0,%edx"
instruction. Is there a way to do this (wihtout using fpc_mul_qword).
More information about the fpc-pascal