diff options
Diffstat (limited to 'intern/cycles/util/util_system.cpp')
-rw-r--r-- | intern/cycles/util/util_system.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/intern/cycles/util/util_system.cpp b/intern/cycles/util/util_system.cpp index 345c76bdfab..79bf5fd26b7 100644 --- a/intern/cycles/util/util_system.cpp +++ b/intern/cycles/util/util_system.cpp @@ -101,9 +101,7 @@ string system_cpu_brand_string() replace_string(brand, "(TM)", ""); replace_string(brand, "(R)", ""); - size_t i; - if((i = brand.find(" ")) != string::npos) - brand = brand.substr(0, i); + brand = string_strip(brand); return brand; } @@ -195,6 +193,11 @@ bool system_cpu_support_sse3() return caps.sse && caps.sse2 && caps.sse3 && caps.ssse3; } +bool system_cpu_support_sse41() +{ + CPUCapabilities& caps = system_cpu_capabilities(); + return caps.sse && caps.sse2 && caps.sse3 && caps.ssse3 && caps.sse41; +} #else bool system_cpu_support_sse2() |