float_control_word.asm 788 B

123456789101112131415161718192021222324252627282930313233
  1. ;
  2. ; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
  3. ;
  4. ; Use of this source code is governed by a BSD-style license
  5. ; that can be found in the LICENSE file in the root of the source
  6. ; tree. An additional intellectual property rights grant can be found
  7. ; in the file PATENTS. All contributing project authors may
  8. ; be found in the AUTHORS file in the root of the source tree.
  9. ;
  10. %include "vpx_ports/x86_abi_support.asm"
  11. section .text
  12. %if LIBVPX_YASM_WIN64
  13. global sym(vpx_winx64_fldcw) PRIVATE
  14. sym(vpx_winx64_fldcw):
  15. sub rsp, 8
  16. mov [rsp], rcx ; win x64 specific
  17. fldcw [rsp]
  18. add rsp, 8
  19. ret
  20. global sym(vpx_winx64_fstcw) PRIVATE
  21. sym(vpx_winx64_fstcw):
  22. sub rsp, 8
  23. fstcw [rsp]
  24. mov rax, [rsp]
  25. add rsp, 8
  26. ret
  27. %endif