From 154bcd887d3772addc8196944044fa57738d3cf2 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Fri, 13 Nov 2015 12:24:35 +0100 Subject: tools: runtime SSE/SSE2 detection Change-Id: I29330061e2986ec2ae899c2f3a63d0eadd9cc194 --- include/tools/cpuid.hxx | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 include/tools/cpuid.hxx (limited to 'include/tools') diff --git a/include/tools/cpuid.hxx b/include/tools/cpuid.hxx new file mode 100644 index 000000000000..316e656c06cb --- /dev/null +++ b/include/tools/cpuid.hxx @@ -0,0 +1,28 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + */ + +#ifndef INCLUDED_TOOLS_CPUID_HXX +#define INCLUDED_TOOLS_CPUID_HXX + +#include +#include + +namespace tools +{ +namespace cpuid +{ + TOOLS_DLLPUBLIC bool hasSSE(); + TOOLS_DLLPUBLIC bool hasSSE2(); +} +} + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit