mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
pow is total overkill for x*x, introduce pow2 inline function to fix it.
fix a warning. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2323 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -27,6 +27,9 @@
|
||||
uses round towards zero.
|
||||
*/
|
||||
|
||||
inline float pow2f(float x) {return x * x;}
|
||||
inline double pow2(double x) {return x * x;}
|
||||
|
||||
void SaveSSEState();
|
||||
void LoadSSEState();
|
||||
void LoadDefaultSSEState();
|
||||
|
@ -257,7 +257,7 @@ CPluginInfo::CPluginInfo(const char *_rFilename)
|
||||
If the user has done that he will instead get the "Can't open %s, it's missing" message. */
|
||||
void CPluginManager::GetPluginInfo(CPluginInfo *&info, std::string Filename)
|
||||
{
|
||||
for (int i = 0; i < m_PluginInfos.size(); i++)
|
||||
for (int i = 0; i < (int)m_PluginInfos.size(); i++)
|
||||
{
|
||||
if (m_PluginInfos.at(i).GetFilename() == Filename)
|
||||
{
|
||||
|
Reference in New Issue
Block a user