This instruction is slow on all processors. Replace it by:
FISTP QWORD PTR [TEMP] FILD QWORD PTR [TEMP]This code is faster despite a possible penalty for attempting to read from [TEMP] before the write is finished. It is recommended to put other instructions in between in order to avoid this penalty. See chapter 27.5 on how to truncate.