Fixed typo
Former-commit-id: 3de64e02311033aa54524e33d7d136c9c405d3f7
This commit is contained in:
parent
a132b0a4e1
commit
9cec8c3a4b
|
|
@ -1,5 +1,5 @@
|
||||||
// Copyright (C) 2012 Jérôme Leclercq
|
// Copyright (C) 2012 Jérôme Leclercq
|
||||||
// This file is part of the "Nazara Engine - Renderer module"
|
// This file is part of the "Nazara Engine - Core module"
|
||||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// Copyright (C) 2012 Jérôme Leclercq
|
// Copyright (C) 2012 Jérôme Leclercq
|
||||||
// This file is part of the "Nazara Engine - Utility module"
|
// This file is part of the "Nazara Engine - Core module"
|
||||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// Copyright (C) 2012 Jérôme Leclercq
|
// Copyright (C) 2012 Jérôme Leclercq
|
||||||
// This file is part of the "Nazara Engine - Utility module"
|
// This file is part of the "Nazara Engine - Core module"
|
||||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||||
|
|
||||||
#include <Nazara/Core/Config.hpp>
|
#include <Nazara/Core/Config.hpp>
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,7 @@ bool NzHardwareInfo::Initialize()
|
||||||
|
|
||||||
if (ids >= 1)
|
if (ids >= 1)
|
||||||
{
|
{
|
||||||
NzHardwareInfoImpl::Cpuid(1, result);
|
NzHardwareInfoImpl::Cpuid(1, result);
|
||||||
s_capabilities[nzProcessorCap_AVX] = (result[2] & (1U << 28)) != 0;
|
s_capabilities[nzProcessorCap_AVX] = (result[2] & (1U << 28)) != 0;
|
||||||
s_capabilities[nzProcessorCap_FMA3] = (result[2] & (1U << 12)) != 0;
|
s_capabilities[nzProcessorCap_FMA3] = (result[2] & (1U << 12)) != 0;
|
||||||
s_capabilities[nzProcessorCap_MMX] = (result[3] & (1U << 23)) != 0;
|
s_capabilities[nzProcessorCap_MMX] = (result[3] & (1U << 23)) != 0;
|
||||||
|
|
@ -121,7 +121,7 @@ bool NzHardwareInfo::Initialize()
|
||||||
|
|
||||||
if (exIds >= 0x80000001)
|
if (exIds >= 0x80000001)
|
||||||
{
|
{
|
||||||
NzHardwareInfoImpl::Cpuid(0x80000001, result);
|
NzHardwareInfoImpl::Cpuid(0x80000001, result);
|
||||||
s_capabilities[nzProcessorCap_FMA4] = (result[2] & (1U << 16)) != 0;
|
s_capabilities[nzProcessorCap_FMA4] = (result[2] & (1U << 16)) != 0;
|
||||||
s_capabilities[nzProcessorCap_SSE4a] = (result[2] & (1U << 6)) != 0;
|
s_capabilities[nzProcessorCap_SSE4a] = (result[2] & (1U << 6)) != 0;
|
||||||
s_capabilities[nzProcessorCap_XOP] = (result[2] & (1U << 11)) != 0;
|
s_capabilities[nzProcessorCap_XOP] = (result[2] & (1U << 11)) != 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue