diff options
author | Mamadou DIOP <bossiel@yahoo.fr> | 2016-02-23 22:00:35 +0100 |
---|---|---|
committer | Mamadou DIOP <bossiel@yahoo.fr> | 2016-02-23 22:00:35 +0100 |
commit | 50dfb4359619563012997bc3ddafb7667741066c (patch) | |
tree | db234c1edc3240a653363b5735fc4077af4b8720 /thirdparties/common/include/libyuv/libyuv/cpu_id.h | |
parent | 94b2219209038e05dd26395f6fb700be4d1062c0 (diff) | |
download | doubango-50dfb4359619563012997bc3ddafb7667741066c.zip doubango-50dfb4359619563012997bc3ddafb7667741066c.tar.gz |
Add new QoS implementation
Code formatting
Diffstat (limited to 'thirdparties/common/include/libyuv/libyuv/cpu_id.h')
-rwxr-xr-x | thirdparties/common/include/libyuv/libyuv/cpu_id.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/thirdparties/common/include/libyuv/libyuv/cpu_id.h b/thirdparties/common/include/libyuv/libyuv/cpu_id.h index e964383..99bd197 100755 --- a/thirdparties/common/include/libyuv/libyuv/cpu_id.h +++ b/thirdparties/common/include/libyuv/libyuv/cpu_id.h @@ -12,7 +12,8 @@ #define INCLUDE_LIBYUV_CPU_ID_H_ #ifdef __cplusplus -namespace libyuv { +namespace libyuv +{ extern "C" { #endif @@ -36,10 +37,11 @@ static const int kCpuHasAVX = 0x200; // Detect CPU has SSE2 etc. // Test_flag parameter should be one of kCpuHas constants above. // returns non-zero if instruction set is detected -static __inline int TestCpuFlag(int test_flag) { - extern int cpu_info_; - extern int InitCpuFlags(); - return (cpu_info_ ? cpu_info_ : InitCpuFlags()) & test_flag; +static __inline int TestCpuFlag(int test_flag) +{ + extern int cpu_info_; + extern int InitCpuFlags(); + return (cpu_info_ ? cpu_info_ : InitCpuFlags()) & test_flag; } // For testing, allow CPU flags to be disabled. |