blob: db8da287375206fad61ad631ba0abcb7c4f3709e [file] [log] [blame]
John Koleszar0ea50ce2010-05-18 11:58:33 -04001;
John Koleszarc2140b82010-09-09 08:16:39 -04002; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
John Koleszar0ea50ce2010-05-18 11:58:33 -04003;
John Koleszar94c52e42010-06-18 12:39:21 -04004; Use of this source code is governed by a BSD-style license
John Koleszar09202d82010-06-04 16:19:40 -04005; 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
John Koleszar94c52e42010-06-18 12:39:21 -04007; in the file PATENTS. All contributing project authors may
John Koleszar09202d82010-06-04 16:19:40 -04008; be found in the AUTHORS file in the root of the source tree.
John Koleszar0ea50ce2010-05-18 11:58:33 -04009;
10
11
Jan Kratochvilfc2b06c2010-07-31 17:12:32 +020012%include "vpx_ports/x86_abi_support.asm"
John Koleszar0ea50ce2010-05-18 11:58:33 -040013
14section .text
Alpha Lam0f7e4662012-05-23 15:52:34 -070015global sym(vpx_reset_mmx_state) PRIVATE
John Koleszar0ea50ce2010-05-18 11:58:33 -040016sym(vpx_reset_mmx_state):
17 emms
18 ret
19
20
Frank Galliganf67d7402013-01-31 15:36:55 -080021%if LIBVPX_YASM_WIN64
Alpha Lam0f7e4662012-05-23 15:52:34 -070022global sym(vpx_winx64_fldcw) PRIVATE
John Koleszar0ea50ce2010-05-18 11:58:33 -040023sym(vpx_winx64_fldcw):
24 sub rsp, 8
25 mov [rsp], rcx ; win x64 specific
26 fldcw [rsp]
27 add rsp, 8
28 ret
29
30
Alpha Lam0f7e4662012-05-23 15:52:34 -070031global sym(vpx_winx64_fstcw) PRIVATE
John Koleszar0ea50ce2010-05-18 11:58:33 -040032sym(vpx_winx64_fstcw):
33 sub rsp, 8
34 fstcw [rsp]
35 mov rax, [rsp]
36 add rsp, 8
37 ret
38%endif