函数function _ftol: Integer; cdecl;varf: double;beginasmlea eax, ffstp qword ptr [eax]end;Result := Trunc(f);end;
在delphi中可以直接引起汇编,建议直接嵌入到delphi程序中