diff --git a/Source/Common/md5.h b/Source/Common/md5.h index 0d8fd6cc6..997d5966c 100644 --- a/Source/Common/md5.h +++ b/Source/Common/md5.h @@ -43,6 +43,9 @@ documentation and/or software. #include #include + +#include +#include #include "path.h" struct MD5Digest diff --git a/Source/Project64-core/Logging.cpp b/Source/Project64-core/Logging.cpp index f8083a3ec..ab9e76931 100644 --- a/Source/Project64-core/Logging.cpp +++ b/Source/Project64-core/Logging.cpp @@ -10,6 +10,10 @@ ****************************************************************************/ #include "stdafx.h" #include "Logging.h" + +#include +#include +#include #include #include #include diff --git a/Source/Project64-core/Multilanguage/LanguageClass.cpp b/Source/Project64-core/Multilanguage/LanguageClass.cpp index 61a3dba95..a5db5556e 100644 --- a/Source/Project64-core/Multilanguage/LanguageClass.cpp +++ b/Source/Project64-core/Multilanguage/LanguageClass.cpp @@ -9,6 +9,7 @@ * * ****************************************************************************/ #include "stdafx.h" +#include #include #include diff --git a/Source/Project64-core/N64System/CheatClass.cpp b/Source/Project64-core/N64System/CheatClass.cpp index 9af75a463..5905cf8fa 100644 --- a/Source/Project64-core/N64System/CheatClass.cpp +++ b/Source/Project64-core/N64System/CheatClass.cpp @@ -9,8 +9,9 @@ * * ****************************************************************************/ #include "stdafx.h" - +#include #include "CheatClass.h" + #include #include #include diff --git a/Source/Project64-core/N64System/FramePerSecondClass.h b/Source/Project64-core/N64System/FramePerSecondClass.h index 45d74a9e7..011967ab8 100644 --- a/Source/Project64-core/N64System/FramePerSecondClass.h +++ b/Source/Project64-core/N64System/FramePerSecondClass.h @@ -31,6 +31,6 @@ private: enum { NoOfFrames = 7 }; - __int64 m_Frequency, m_Frames[NoOfFrames], m_LastFrame; + int64_t m_Frequency, m_Frames[NoOfFrames], m_LastFrame; int m_CurrentFrame; }; diff --git a/Source/Project64-core/N64System/Mips/OpcodeName.cpp b/Source/Project64-core/N64System/Mips/OpcodeName.cpp index b93695d52..4c5f672b3 100644 --- a/Source/Project64-core/N64System/Mips/OpcodeName.cpp +++ b/Source/Project64-core/N64System/Mips/OpcodeName.cpp @@ -9,6 +9,7 @@ * * ****************************************************************************/ #include "stdafx.h" +#include #include "OpCode.h" #include "RegisterClass.h" diff --git a/Source/Project64-core/N64System/Mips/PifRam.cpp b/Source/Project64-core/N64System/Mips/PifRam.cpp index 2d7bfe1ae..0d56b94bb 100644 --- a/Source/Project64-core/N64System/Mips/PifRam.cpp +++ b/Source/Project64-core/N64System/Mips/PifRam.cpp @@ -9,7 +9,10 @@ * * ****************************************************************************/ #include "stdafx.h" +#include +#include #include "PifRam.h" + #include #include #include diff --git a/Source/Project64-core/N64System/Mips/RegisterClass.cpp b/Source/Project64-core/N64System/Mips/RegisterClass.cpp index e7608340f..e7fcfbf0e 100644 --- a/Source/Project64-core/N64System/Mips/RegisterClass.cpp +++ b/Source/Project64-core/N64System/Mips/RegisterClass.cpp @@ -9,7 +9,9 @@ * * ****************************************************************************/ #include "stdafx.h" +#include #include "RegisterClass.h" + #include #include #include diff --git a/Source/Project64-core/N64System/Mips/SystemTiming.cpp b/Source/Project64-core/N64System/Mips/SystemTiming.cpp index 0a08d2ff0..efa7b0557 100644 --- a/Source/Project64-core/N64System/Mips/SystemTiming.cpp +++ b/Source/Project64-core/N64System/Mips/SystemTiming.cpp @@ -55,12 +55,12 @@ void CSystemTimer::SetTimer(TimerType Type, uint32_t Cycles, bool bRelative) } else { - m_TimerDetatils[Type].CyclesToTimer = (__int64)Cycles - (__int64)m_NextTimer; //replace the new cycles + m_TimerDetatils[Type].CyclesToTimer = (int64_t)Cycles - (int64_t)m_NextTimer; //replace the new cycles } } else { - m_TimerDetatils[Type].CyclesToTimer = (__int64)Cycles - (__int64)m_NextTimer; //replace the new cycles + m_TimerDetatils[Type].CyclesToTimer = (int64_t)Cycles - (int64_t)m_NextTimer; //replace the new cycles } FixTimers(); } @@ -76,7 +76,7 @@ uint32_t CSystemTimer::GetTimer(TimerType Type) { return 0; } - __int64 CyclesToTimer = m_TimerDetatils[Type].CyclesToTimer + m_NextTimer; + int64_t CyclesToTimer = m_TimerDetatils[Type].CyclesToTimer + m_NextTimer; if (CyclesToTimer < 0) { return 0; diff --git a/Source/Project64-core/N64System/Mips/SystemTiming.h b/Source/Project64-core/N64System/Mips/SystemTiming.h index a6fec748d..9a6e8affd 100644 --- a/Source/Project64-core/N64System/Mips/SystemTiming.h +++ b/Source/Project64-core/N64System/Mips/SystemTiming.h @@ -35,7 +35,7 @@ public: struct TIMER_DETAILS { bool Active; - __int64 CyclesToTimer; + int64_t CyclesToTimer; }; public: diff --git a/Source/Project64-core/N64System/N64Types.h b/Source/Project64-core/N64System/N64Types.h index f892557d9..4bc0cee01 100644 --- a/Source/Project64-core/N64System/N64Types.h +++ b/Source/Project64-core/N64System/N64Types.h @@ -10,6 +10,19 @@ ****************************************************************************/ #pragma once +#include + +/* + * The limits of COP1 extend to native SSE2 register capabilities, but for + * now this is only being included to dodge the MSVC inline asm for x86. + * + * As better cross-platform methods of handling FP precision are implemented + * for non-Intel-architecture builds, this #include may become obsolete. + */ +#if defined(__i386) || defined(__x86_64__) || defined(_M_X64) +#include +#endif + enum PauseType { PauseType_FromMenu, diff --git a/Source/Project64-core/N64System/ProfilingClass.cpp b/Source/Project64-core/N64System/ProfilingClass.cpp index 7e0a83e24..7b813fad5 100644 --- a/Source/Project64-core/N64System/ProfilingClass.cpp +++ b/Source/Project64-core/N64System/ProfilingClass.cpp @@ -62,9 +62,9 @@ SPECIAL_TIMERS CProfiling::StopTimer() { g_Notify->BreakPoint(__FILE__, __LINE__); #endif - __int64 StopTime = ((unsigned __int64)HiValue << 32) + (unsigned __int64)LoValue; - __int64 StartTime = ((unsigned __int64)m_StartTimeHi << 32) + (unsigned __int64)m_StartTimeLo; - __int64 TimeTaken = StopTime - StartTime; + int64_t StopTime = ((uint64_t)HiValue << 32) + (uint64_t)LoValue; + int64_t StartTime = ((uint64_t)m_StartTimeHi << 32) + (uint64_t)m_StartTimeLo; + int64_t TimeTaken = StopTime - StartTime; PROFILE_ENRTY Entry = m_Entries.find(m_CurrentTimerAddr); if (Entry != m_Entries.end()) { @@ -79,7 +79,7 @@ SPECIAL_TIMERS CProfiling::StopTimer() { } void CProfiling::ShowCPU_Usage() { - __int64 TotalTime, CPU = 0, Alist = 0, Dlist = 0, Idle = 0; + int64_t TotalTime, CPU = 0, Alist = 0, Dlist = 0, Idle = 0; PROFILE_ENRTY Entry; if (m_CurrentDisplayCount > 0) { m_CurrentDisplayCount -= 1; return; } @@ -132,7 +132,7 @@ void CProfiling::GenerateLog() { LogFileName = Log.FileName(); //Get the total time - __int64 TotalTime = 0; + int64_t TotalTime = 0; for (PROFILE_ENRTY itemTime = m_Entries.begin(); itemTime != m_Entries.end(); itemTime++ ) { TotalTime += itemTime->second; } diff --git a/Source/Project64-core/N64System/ProfilingClass.h b/Source/Project64-core/N64System/ProfilingClass.h index 471efbf2a..5a4824ef9 100644 --- a/Source/Project64-core/N64System/ProfilingClass.h +++ b/Source/Project64-core/N64System/ProfilingClass.h @@ -11,7 +11,7 @@ #pragma once #include -typedef std::map PROFILE_ENRTIES; +typedef std::map PROFILE_ENRTIES; typedef PROFILE_ENRTIES::iterator PROFILE_ENRTY; typedef PROFILE_ENRTIES::value_type PROFILE_VALUE; diff --git a/Source/Project64-core/N64System/Recompiler/CodeBlock.cpp b/Source/Project64-core/N64System/Recompiler/CodeBlock.cpp index cd7f87dd0..8164fd08a 100644 --- a/Source/Project64-core/N64System/Recompiler/CodeBlock.cpp +++ b/Source/Project64-core/N64System/Recompiler/CodeBlock.cpp @@ -9,8 +9,10 @@ * * ****************************************************************************/ #include "stdafx.h" +#include #include "CodeBlock.h" #include "x86CodeLog.h" + #include #include #include diff --git a/Source/Project64-core/N64System/Recompiler/LoopAnalysis.cpp b/Source/Project64-core/N64System/Recompiler/LoopAnalysis.cpp index b65bb4423..1dc21f449 100644 --- a/Source/Project64-core/N64System/Recompiler/LoopAnalysis.cpp +++ b/Source/Project64-core/N64System/Recompiler/LoopAnalysis.cpp @@ -9,7 +9,9 @@ * * ****************************************************************************/ #include "stdafx.h" +#include #include "LoopAnalysis.h" + #include #include #include diff --git a/Source/Project64-core/N64System/Recompiler/RecompilerOps.cpp b/Source/Project64-core/N64System/Recompiler/RecompilerOps.cpp index 3cbec5009..9cf790878 100644 --- a/Source/Project64-core/N64System/Recompiler/RecompilerOps.cpp +++ b/Source/Project64-core/N64System/Recompiler/RecompilerOps.cpp @@ -15,6 +15,8 @@ #include #include #include + +#include #include "RecompilerClass.h" #include "RecompilerOps.h" #include "CodeSection.h" diff --git a/Source/Project64-core/N64System/Recompiler/RegInfo.cpp b/Source/Project64-core/N64System/Recompiler/RegInfo.cpp index ca4428a3d..7e44bfaa5 100644 --- a/Source/Project64-core/N64System/Recompiler/RegInfo.cpp +++ b/Source/Project64-core/N64System/Recompiler/RegInfo.cpp @@ -11,6 +11,9 @@ #include "stdafx.h" #include #include + +#include +#include #include "RegInfo.h" #include "RecompilerClass.h" #include "x86CodeLog.h"