From e28145fccf96be5a69831b38b6029fa10a0034c0 Mon Sep 17 00:00:00 2001 From: Sonicadvance1 Date: Wed, 15 Jul 2009 11:36:01 +0000 Subject: [PATCH] Commit to allow Interpreter to work on devices that don't support SSE2, just via simple defines git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3797 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/AudioCommon/Src/OpenALStream.cpp | 2 +- .../Src/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/Core/AudioCommon/Src/OpenALStream.cpp b/Source/Core/AudioCommon/Src/OpenALStream.cpp index 749e6ae793..5b91372412 100644 --- a/Source/Core/AudioCommon/Src/OpenALStream.cpp +++ b/Source/Core/AudioCommon/Src/OpenALStream.cpp @@ -33,7 +33,7 @@ bool OpenALStream::Start() pDeviceList = new ALDeviceList(); if ((pDeviceList) && (pDeviceList->GetNumDevices())) { - pDevice = alcOpenDevice((const ALCchar *)pDeviceList->GetDeviceName(pDeviceList->GetDefaultDevice())); + pDevice = alcOpenDevice((ALCubyte*)pDeviceList->GetDeviceName(pDeviceList->GetDefaultDevice())); if (pDevice) { pContext = alcCreateContext(pDevice, NULL); diff --git a/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp b/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp index 7cb849b75f..290212ceff 100644 --- a/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp +++ b/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp @@ -35,7 +35,11 @@ #include "../../Core.h" #include "Interpreter.h" #include "MathUtil.h" - +#ifndef _mm_cvttsd_si32 // No SSE2 support +#define _mm_set_sd +#define _mm_cvttsd_si32 truncl +#define _mm_cvtsd_si32 lrint +#endif // F-ZERO IS BEING A ROYAL PAIN // POSSIBLE APPROACHES: // * Full SW FPU. Urgh.