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

Side by Side Diff: include/libyuv/cpu_id.h

Issue 2285683002: Add MIPS SIMD Arch (MSA) optimized MirrorRow function (Closed)
Patch Set: Fixed merge conflicts with master Created 4 years, 3 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
« no previous file with comments | « docs/getting_started.md ('k') | include/libyuv/macros_msa.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 2011 The LibYuv Project Authors. All rights reserved. 2 * Copyright 2011 The LibYuv 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
(...skipping 24 matching lines...) Expand all
35 static const int kCpuHasAVX = 0x200; 35 static const int kCpuHasAVX = 0x200;
36 static const int kCpuHasAVX2 = 0x400; 36 static const int kCpuHasAVX2 = 0x400;
37 static const int kCpuHasERMS = 0x800; 37 static const int kCpuHasERMS = 0x800;
38 static const int kCpuHasFMA3 = 0x1000; 38 static const int kCpuHasFMA3 = 0x1000;
39 static const int kCpuHasAVX3 = 0x2000; 39 static const int kCpuHasAVX3 = 0x2000;
40 // 0x2000, 0x4000, 0x8000 reserved for future X86 flags. 40 // 0x2000, 0x4000, 0x8000 reserved for future X86 flags.
41 41
42 // These flags are only valid on MIPS processors. 42 // These flags are only valid on MIPS processors.
43 static const int kCpuHasMIPS = 0x10000; 43 static const int kCpuHasMIPS = 0x10000;
44 static const int kCpuHasDSPR2 = 0x20000; 44 static const int kCpuHasDSPR2 = 0x20000;
45 static const int kCpuHasMSA = 0x40000;
45 46
46 // Internal function used to auto-init. 47 // Internal function used to auto-init.
47 LIBYUV_API 48 LIBYUV_API
48 int InitCpuFlags(void); 49 int InitCpuFlags(void);
49 50
50 // Internal function for parsing /proc/cpuinfo. 51 // Internal function for parsing /proc/cpuinfo.
51 LIBYUV_API 52 LIBYUV_API
52 int ArmCpuCaps(const char* cpuinfo_name); 53 int ArmCpuCaps(const char* cpuinfo_name);
53 54
54 // Detect CPU has SSE2 etc. 55 // Detect CPU has SSE2 etc.
(...skipping 16 matching lines...) Expand all
71 // ecx is typically the cpu number, and should normally be zero. 72 // ecx is typically the cpu number, and should normally be zero.
72 LIBYUV_API 73 LIBYUV_API
73 void CpuId(uint32 eax, uint32 ecx, uint32* cpu_info); 74 void CpuId(uint32 eax, uint32 ecx, uint32* cpu_info);
74 75
75 #ifdef __cplusplus 76 #ifdef __cplusplus
76 } // extern "C" 77 } // extern "C"
77 } // namespace libyuv 78 } // namespace libyuv
78 #endif 79 #endif
79 80
80 #endif // INCLUDE_LIBYUV_CPU_ID_H_ NOLINT 81 #endif // INCLUDE_LIBYUV_CPU_ID_H_ NOLINT
OLDNEW
« no previous file with comments | « docs/getting_started.md ('k') | include/libyuv/macros_msa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698