Leaked source code of windows server 2003
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.

45 lines
956 B

  1. include ksamd64.inc
  2. public _get_fpsr
  3. _status$ = 0
  4. NESTED_ENTRY _get_fpsr, _TEXT$00
  5. sub rsp, 8
  6. .allocstack 8
  7. .endprolog
  8. stmxcsr DWORD PTR _status$[rsp]
  9. mov eax, DWORD PTR _status$[rsp]
  10. add rsp, 8
  11. ret
  12. NESTED_END _get_fpsr, _TEXT$00
  13. PUBLIC _set_fpsr
  14. _TEXT SEGMENT
  15. _status$ = 8
  16. _set_fpsr PROC NEAR
  17. mov DWORD PTR _status$[rsp], ecx
  18. ldmxcsr DWORD PTR _status$[rsp]
  19. ret
  20. _set_fpsr ENDP
  21. _TEXT ENDS
  22. PUBLIC _fclrf
  23. _TEXT SEGMENT
  24. _fclrf PROC NEAR
  25. stmxcsr DWORD PTR _status$[rsp]
  26. mov ecx, 0ffffffc0h
  27. and DWORD PTR _status$[rsp], ecx
  28. ldmxcsr DWORD PTR _status$[rsp]
  29. ret
  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
  38. _frnd ENDP
  39. _TEXT ENDS
  40. END