Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
862 B

  1. ; Listing generated by Microsoft (R) Optimizing Compiler Version 13.00.8982
  2. TITLE fpctrl.c
  3. PUBLIC _get_fpsr
  4. _TEXT SEGMENT
  5. _status$ = 0
  6. _get_fpsr PROC NEAR ; COMDAT
  7. sub rsp, 8
  8. stmxcsr DWORD PTR _status$[rsp]
  9. mov eax, DWORD PTR _status$[rsp]
  10. add rsp, 8
  11. ret 0
  12. _get_fpsr ENDP
  13. _TEXT ENDS
  14. PUBLIC _set_fpsr
  15. _TEXT SEGMENT
  16. _status$ = 8
  17. _set_fpsr PROC NEAR ; COMDAT
  18. mov DWORD PTR _status$[rsp], ecx
  19. ldmxcsr DWORD PTR _status$[rsp]
  20. ret 0
  21. _set_fpsr ENDP
  22. _TEXT ENDS
  23. PUBLIC _fclrf
  24. _TEXT SEGMENT
  25. _fclrf PROC NEAR
  26. stmxcsr DWORD PTR _status$[rsp]
  27. mov ecx, 0ffffffc0h
  28. and DWORD PTR _status$[rsp], ecx
  29. ldmxcsr DWORD PTR _status$[rsp]
  30. _fclrf ENDP
  31. _TEXT ENDS
  32. PUBLIC _frnd
  33. _TEXT SEGMENT
  34. _frnd PROC NEAR
  35. CVTPD2DQ xmm(1), xmm(0)
  36. CVTDQ2PD xmm(0), xmm(1)
  37. ret 0
  38. _frnd ENDP
  39. _TEXT ENDS
  40. END