float.asm 886 B

12345678910111213141516171819202122232425262728293031323334
  1. ;
  2. ; Copyright (c) 2016, Alliance for Open Media. All rights reserved
  3. ;
  4. ; This source code is subject to the terms of the BSD 2 Clause License and
  5. ; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
  6. ; was not distributed with this source code in the LICENSE file, you can
  7. ; obtain it at www.aomedia.org/license/software. If the Alliance for Open
  8. ; Media Patent License 1.0 was not distributed with this source code in the
  9. ; PATENTS file, you can obtain it at www.aomedia.org/license/patent.
  10. ;
  11. %include "aom_ports/x86_abi_support.asm"
  12. section .text
  13. %if LIBAOM_YASM_WIN64
  14. globalsym(aom_winx64_fldcw)
  15. sym(aom_winx64_fldcw):
  16. sub rsp, 8
  17. mov [rsp], rcx ; win x64 specific
  18. fldcw [rsp]
  19. add rsp, 8
  20. ret
  21. globalsym(aom_winx64_fstcw)
  22. sym(aom_winx64_fstcw):
  23. sub rsp, 8
  24. fstcw [rsp]
  25. mov rax, [rsp]
  26. add rsp, 8
  27. ret
  28. %endif