blob: 90776bacb368d8b88fa0e10106f5c42b3b6c7e9e [file] [log] [blame]
Yaowu Xuc27fc142016-08-22 16:08:15 -07001;
Yaowu Xu9c01aa12016-09-01 14:32:49 -07002; Copyright (c) 2016, Alliance for Open Media. All rights reserved
Yaowu Xuc27fc142016-08-22 16:08:15 -07003;
Yaowu Xu9c01aa12016-09-01 14:32:49 -07004; 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
Yaowu Xuc27fc142016-08-22 16:08:15 -070012;
13
14
15%include "aom_ports/x86_abi_support.asm"
16
17section .text
Yaowu Xuf883b422016-08-30 14:01:10 -070018global sym(aom_reset_mmx_state) PRIVATE
19sym(aom_reset_mmx_state):
Yaowu Xuc27fc142016-08-22 16:08:15 -070020 emms
21 ret
22
23
24%if LIBAOM_YASM_WIN64
Yaowu Xuf883b422016-08-30 14:01:10 -070025global sym(aom_winx64_fldcw) PRIVATE
26sym(aom_winx64_fldcw):
Yaowu Xuc27fc142016-08-22 16:08:15 -070027 sub rsp, 8
28 mov [rsp], rcx ; win x64 specific
29 fldcw [rsp]
30 add rsp, 8
31 ret
32
33
Yaowu Xuf883b422016-08-30 14:01:10 -070034global sym(aom_winx64_fstcw) PRIVATE
35sym(aom_winx64_fstcw):
Yaowu Xuc27fc142016-08-22 16:08:15 -070036 sub rsp, 8
37 fstcw [rsp]
38 mov rax, [rsp]
39 add rsp, 8
40 ret
41%endif