ftol and the 64bit Delphi inline asm changes
1
2
3
4
5
6
7
8
|
function _ftol( f: double) : Integer; cdecl;
begin
asm
lea eax, f
fstp qword ptr [eax]
end;
result := Trunc(f);
end;
|
Above is a Delphi inline asm version of the ftol (Floating Point to Integer Conversion) function used by our HotPDF Delphi PDF component. When compiling above Delphi codes in the 64-bit target platform, Delphi will raise below error: [dcc64…