blob: 306e235ced1859336331d159c832cc00cea141cc [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
15 global sym(vpx_reset_mmx_state)
16sym(vpx_reset_mmx_state):
17 emms
18 ret
19
20
21%ifidn __OUTPUT_FORMAT__,x64
22global sym(vpx_winx64_fldcw)
23sym(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
31global sym(vpx_winx64_fstcw)
32sym(vpx_winx64_fstcw):
33 sub rsp, 8
34 fstcw [rsp]
35 mov rax, [rsp]
36 add rsp, 8
37 ret
38%endif