diff options
author | Twinaphex | 2017-08-14 07:23:57 +0200 |
---|---|---|
committer | GitHub | 2017-08-14 07:23:57 +0200 |
commit | 262051693823522c34a3e19904bf4ed9f1877e65 (patch) | |
tree | d0dd772a589dbfa07bacd70207fc4db0f37d4109 /source/port.h | |
parent | 62be8bed4dc3dc7793f1df1391f153436e4ea949 (diff) | |
parent | 5e450063fbe25926ae50d569c285db428055318a (diff) | |
download | snes9x2005-262051693823522c34a3e19904bf4ed9f1877e65.tar.gz snes9x2005-262051693823522c34a3e19904bf4ed9f1877e65.tar.bz2 snes9x2005-262051693823522c34a3e19904bf4ed9f1877e65.zip |
Merge pull request #39 from jamsilva/master
Fixes and cleanups
Diffstat (limited to 'source/port.h')
-rw-r--r-- | source/port.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/port.h b/source/port.h index 3d96509..dfd08f1 100644 --- a/source/port.h +++ b/source/port.h @@ -54,8 +54,7 @@ void _splitpath(const char* path, char* drive, char* dir, char* fname, char* ext #define SLASH_STR "/" #define SLASH_CHAR '/' -#if defined(__i386__) || defined(__i486__) || defined(__i586__) || \ - defined(__WIN32__) || defined(__alpha__) +#if defined(__i386__) || defined(__i486__) || defined(__i586__) || defined(__WIN32__) || defined(__alpha__) #define FAST_LSB_WORD_ACCESS #elif defined(__MIPSEL__) // On little-endian MIPS, a 16-bit word can be read directly from an address @@ -88,12 +87,12 @@ static INLINE int32_t _isqrt(int32_t val) remainder -= (squaredbit | root); root >>= 1; root |= squaredbit; - } else + } + else root >>= 1; squaredbit >>= 2; } return root; } - #endif |