1474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org;
2474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org;  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org;
4474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org;  Use of this source code is governed by a BSD-style license
5474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org;  that can be found in the LICENSE file in the root of the source
6474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org;  tree. An additional intellectual property rights grant can be found
7474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org;  in the file PATENTS.  All contributing project authors may
8474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org;  be found in the AUTHORS file in the root of the source tree.
9474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org;
10474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org
11474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org
12474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org%include "vpx_ports/x86_abi_support.asm"
13474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org
14474eb7536515fb785e925cc9375d22817c416851hclam@chromium.orgsection .text
15f18f5eb544bb35db231ced346e077907a8c61fc9hclam@chromium.orgglobal sym(vpx_reset_mmx_state) PRIVATE
16474eb7536515fb785e925cc9375d22817c416851hclam@chromium.orgsym(vpx_reset_mmx_state):
17474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org    emms
18474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org    ret
19474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org
20474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org
21fa43a22c16ae2b81f2532c907fb9eb2c1cd2a373fgalligan@chromium.org%if LIBVPX_YASM_WIN64
22f18f5eb544bb35db231ced346e077907a8c61fc9hclam@chromium.orgglobal sym(vpx_winx64_fldcw) PRIVATE
23474eb7536515fb785e925cc9375d22817c416851hclam@chromium.orgsym(vpx_winx64_fldcw):
24474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org    sub   rsp, 8
25474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org    mov   [rsp], rcx ; win x64 specific
26474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org    fldcw [rsp]
27474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org    add   rsp, 8
28474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org    ret
29474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org
30474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org
31f18f5eb544bb35db231ced346e077907a8c61fc9hclam@chromium.orgglobal sym(vpx_winx64_fstcw) PRIVATE
32474eb7536515fb785e925cc9375d22817c416851hclam@chromium.orgsym(vpx_winx64_fstcw):
33474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org    sub   rsp, 8
34474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org    fstcw [rsp]
35474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org    mov   rax, [rsp]
36474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org    add   rsp, 8
37474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org    ret
38474eb7536515fb785e925cc9375d22817c416851hclam@chromium.org%endif
39