[Libreoffice-commits] core.git: include/tools tools/source

Tomaž Vajngerl tomaz.vajngerl at collabora.co.uk
Fri Nov 13 05:56:38 PST 2015


 include/tools/cpuid.hxx     |    1 -
 tools/source/misc/cpuid.cxx |    7 -------
 2 files changed, 8 deletions(-)

New commits:
commit 726ce582abb800a809ac144f50a7aa20e3fadcef
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
Date:   Fri Nov 13 14:48:25 2015 +0100

    remove SSE detection code (but keep SSE2)
    
    For corner case CPUs out there that support SSE and not SSE2 it
    makes more sense to use the "fallback" code path instead of
    writing a SSE only version. For this reason detecting SSE is not
    relevant anymore - so removing it.
    
    Change-Id: I3f1425af2cb5cdf9fba699e2996014598a15b5c1

diff --git a/include/tools/cpuid.hxx b/include/tools/cpuid.hxx
index 316e656..2445129 100644
--- a/include/tools/cpuid.hxx
+++ b/include/tools/cpuid.hxx
@@ -18,7 +18,6 @@ namespace tools
 {
 namespace cpuid
 {
-    TOOLS_DLLPUBLIC bool hasSSE();
     TOOLS_DLLPUBLIC bool hasSSE2();
 }
 }
diff --git a/tools/source/misc/cpuid.cxx b/tools/source/misc/cpuid.cxx
index 1d0518c..b4406be 100644
--- a/tools/source/misc/cpuid.cxx
+++ b/tools/source/misc/cpuid.cxx
@@ -36,12 +36,6 @@ static void getCpuId(uint32_t array[4])
 #endif
 }
 
-bool hasSSE()
-{
-    uint32_t cpuInfoArray[] = {0, 0, 0, 0};
-    getCpuId(cpuInfoArray);
-    return (cpuInfoArray[3] & (1 << 25)) != 0;
-}
 bool hasSSE2()
 {
     uint32_t cpuInfoArray[] = {0, 0, 0, 0};
@@ -51,7 +45,6 @@ bool hasSSE2()
 
 #else
 
-bool hasSSE() { return false; }
 bool hasSSE2() { return false; }
 
 #endif


More information about the Libreoffice-commits mailing list