Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(354)

Side by Side Diff: source/libvpx/vp9/common/vp9_systemdependent.h

Issue 11974002: libvpx: Pull from upstream (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « source/libvpx/vp9/common/vp9_swapyv12buffer.c ('k') | source/libvpx/vp9/common/vp9_textblit.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10
10 #ifndef VP9_COMMON_VP9_SYSTEMDEPENDENT_H_ 11 #ifndef VP9_COMMON_VP9_SYSTEMDEPENDENT_H_
11 #define VP9_COMMON_VP9_SYSTEMDEPENDENT_H_ 12 #define VP9_COMMON_VP9_SYSTEMDEPENDENT_H_
12 13
13 #include "vpx_ports/config.h" 14 #ifdef _MSC_VER
15 #include <math.h>
16 #endif
17
18 #include "./vpx_config.h"
14 #if ARCH_X86 || ARCH_X86_64 19 #if ARCH_X86 || ARCH_X86_64
15 void vpx_reset_mmx_state(void); 20 void vpx_reset_mmx_state(void);
16 #define vp9_clear_system_state() vpx_reset_mmx_state() 21 #define vp9_clear_system_state() vpx_reset_mmx_state()
17 #else 22 #else
18 #define vp9_clear_system_state() 23 #define vp9_clear_system_state()
19 #endif 24 #endif
20 25
26 #ifdef _MSC_VER
27 // round is not defined in MSVC
28 static int round(double x) {
29 if (x < 0)
30 return (int)ceil(x - 0.5);
31 else
32 return (int)floor(x + 0.5);
33 }
34 #endif
35
21 struct VP9Common; 36 struct VP9Common;
22 void vp9_machine_specific_config(struct VP9Common *); 37 void vp9_machine_specific_config(struct VP9Common *);
23 #endif 38
39 #endif // VP9_COMMON_VP9_SYSTEMDEPENDENT_H_
OLDNEW
« no previous file with comments | « source/libvpx/vp9/common/vp9_swapyv12buffer.c ('k') | source/libvpx/vp9/common/vp9_textblit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698