1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/libvpx/vpx_ports/emms.asm Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,38 @@ 1.4 +; 1.5 +; Copyright (c) 2010 The WebM project authors. All Rights Reserved. 1.6 +; 1.7 +; Use of this source code is governed by a BSD-style license 1.8 +; that can be found in the LICENSE file in the root of the source 1.9 +; tree. An additional intellectual property rights grant can be found 1.10 +; in the file PATENTS. All contributing project authors may 1.11 +; be found in the AUTHORS file in the root of the source tree. 1.12 +; 1.13 + 1.14 + 1.15 +%include "vpx_ports/x86_abi_support.asm" 1.16 + 1.17 +section .text 1.18 +global sym(vpx_reset_mmx_state) PRIVATE 1.19 +sym(vpx_reset_mmx_state): 1.20 + emms 1.21 + ret 1.22 + 1.23 + 1.24 +%if LIBVPX_YASM_WIN64 1.25 +global sym(vpx_winx64_fldcw) PRIVATE 1.26 +sym(vpx_winx64_fldcw): 1.27 + sub rsp, 8 1.28 + mov [rsp], rcx ; win x64 specific 1.29 + fldcw [rsp] 1.30 + add rsp, 8 1.31 + ret 1.32 + 1.33 + 1.34 +global sym(vpx_winx64_fstcw) PRIVATE 1.35 +sym(vpx_winx64_fstcw): 1.36 + sub rsp, 8 1.37 + fstcw [rsp] 1.38 + mov rax, [rsp] 1.39 + add rsp, 8 1.40 + ret 1.41 +%endif