aboutsummaryrefslogtreecommitdiff
path: root/source/cpu_id.cc
diff options
context:
space:
mode:
authorFrank Barchard <fbarchard@google.com>2016-02-05 14:49:54 -0800
committerFrank Barchard <fbarchard@google.com>2016-02-05 14:49:54 -0800
commit0d880e5bc07cde197a5a0a4e1bb4bda408373f6f (patch)
tree76e05e47017eb9ec5600cc5e819d54fe5ef3407a /source/cpu_id.cc
parentaf90e82155a42ec8239685ca8626c547c7173220 (diff)
downloadlibyuv-0d880e5bc07cde197a5a0a4e1bb4bda408373f6f.tar.gz
rename MIPS_DSPR2 to DSPR2 for consistency
When attempting to normalize function names to end in Row_SIMD it was made harder with MIPS_DSPR2 naming convention. Other CPUs do not include the vendor. This should be named consistently. Removed the DISABLE_MIPS in favour of DISABLE_ASM for consistency with other processors. TBR=harryjin@google.com BUG=libyuv:562 Review URL: https://codereview.chromium.org/1677633002 .
Diffstat (limited to 'source/cpu_id.cc')
-rw-r--r--source/cpu_id.cc10
1 files changed, 3 insertions, 7 deletions
diff --git a/source/cpu_id.cc b/source/cpu_id.cc
index ff7bdbd9..8d2c3a49 100644
--- a/source/cpu_id.cc
+++ b/source/cpu_id.cc
@@ -251,15 +251,11 @@ int InitCpuFlags(void) {
#endif
#if defined(__mips__) && defined(__linux__)
#if defined(__mips_dspr2)
- cpu_info |= kCpuHasMIPS_DSPR2;
+ cpu_info |= kCpuHasDSPR2;
#endif
cpu_info |= kCpuHasMIPS;
-
- if (getenv("LIBYUV_DISABLE_MIPS")) {
- cpu_info &= ~kCpuHasMIPS;
- }
- if (getenv("LIBYUV_DISABLE_MIPS_DSPR2")) {
- cpu_info &= ~kCpuHasMIPS_DSPR2;
+ if (getenv("LIBYUV_DISABLE_DSPR2")) {
+ cpu_info &= ~kCpuHasDSPR2;
}
#endif
#if defined(__arm__) || defined(__aarch64__)