Are there unsigned equivalents of the x87 FILD and SSE CVTSI2SD instructions?

前端 未结 5 1366
离开以前
离开以前 2021-01-18 20:12

I want to implement the equivalent of C\'s uint-to-double cast in the GHC Haskell compiler. We already implement int-to-double

5条回答
  •  梦毁少年i
    2021-01-18 21:05

    If I'm understanding you correctly you should be able to move your 32-bit uint to a temp area on stack, zero out the next dword, then use fild qword ptr to load the now 64-bit unsigned integer as a double.

提交回复
热议问题