emms.asm 872 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. global sym(vpx_reset_mmx_state) PRIVATE
  13. sym(vpx_reset_mmx_state):
  14. emms
  15. ret
  16. %if LIBVPX_YASM_WIN64
  17. global sym(vpx_winx64_fldcw) PRIVATE
  18. sym(vpx_winx64_fldcw):
  19. sub rsp, 8
  20. mov [rsp], rcx ; win x64 specific
  21. fldcw [rsp]
  22. add rsp, 8
  23. ret
  24. global sym(vpx_winx64_fstcw) PRIVATE
  25. sym(vpx_winx64_fstcw):
  26. sub rsp, 8
  27. fstcw [rsp]
  28. mov rax, [rsp]
  29. add rsp, 8
  30. ret
  31. %endif