Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Jul 6, 2017
1 parent e791dbf commit 4d61bfc
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 29 deletions.
6 changes: 6 additions & 0 deletions Makefile
Expand Up @@ -310,6 +310,12 @@ FLAGS += $(INCFLAGS) $(INCFLAGS_PLATFORM)

FLAGS += $(ENDIANNESS_DEFINES) -DSIZEOF_DOUBLE=8 $(WARNINGS) -DMEDNAFEN_VERSION=\"0.9.31\" -DPACKAGE=\"mednafen\" -DMEDNAFEN_VERSION_NUMERIC=931 -DPSS_STYLE=1 -DMPC_FIXED_POINT -DSTDC_HEADERS -D__STDC_LIMIT_MACROS -D__LIBRETRO__ -D_LOW_ACCURACY_ $(EXTRA_INCLUDES)

ifneq (,$(findstring msvc,$(platform)))
FLAGS += -DINLINE="_inline"
else
FLAGS += -DINLINE="inline"
endif

CXXFLAGS += $(FLAGS)
CFLAGS += $(FLAGS)

Expand Down
2 changes: 1 addition & 1 deletion jni/Android.mk
Expand Up @@ -49,7 +49,7 @@ endif
LDFLAGS += $(fpic) $(SHARED)
FLAGS += $(fpic) $(NEW_GCC_FLAGS) $(INCFLAGS)

FLAGS += $(ENDIANNESS_DEFINES) -DSIZEOF_DOUBLE=8 $(WARNINGS) -DMEDNAFEN_VERSION=\"0.9.26\" -DPACKAGE=\"mednafen\" -DMEDNAFEN_VERSION_NUMERIC=926 -DPSS_STYLE=1 -DMPC_FIXED_POINT -DSTDC_HEADERS -D__STDC_LIMIT_MACROS -D__LIBRETRO__ -DNDEBUG -D_LOW_ACCURACY_
FLAGS += $(ENDIANNESS_DEFINES) -DSIZEOF_DOUBLE=8 $(WARNINGS) -DMEDNAFEN_VERSION=\"0.9.26\" -DPACKAGE=\"mednafen\" -DMEDNAFEN_VERSION_NUMERIC=926 -DPSS_STYLE=1 -DMPC_FIXED_POINT -DSTDC_HEADERS -D__STDC_LIMIT_MACROS -D__LIBRETRO__ -DNDEBUG -D_LOW_ACCURACY_ -DINLINE="inline"

LOCAL_CFLAGS = $(FLAGS)
LOCAL_CXXFLAGS += $(FLAGS) -fexceptions
Expand Down
8 changes: 0 additions & 8 deletions mednafen/hw_cpu/v810/fpu-new/mednafen-gcc.h
Expand Up @@ -59,11 +59,3 @@ typedef int64_t sbits64;
*----------------------------------------------------------------------------*/
#define LIT64( a ) a##LL
#endif

/*----------------------------------------------------------------------------
| The macro `INLINE' can be used before functions that should be inlined. If
| a compiler does not support explicit inlining, this macro should be defined
| to be `static'.
*----------------------------------------------------------------------------*/
//#define INLINE extern inline
#define INLINE static inline
34 changes: 17 additions & 17 deletions mednafen/hw_cpu/v810/fpu-new/softfloat-macros
Expand Up @@ -39,7 +39,7 @@ these four paragraphs for those parts of this code that are retained.
| The result is stored in the location pointed to by `zPtr'.
*----------------------------------------------------------------------------*/

INLINE void shift32RightJamming( bits32 a, int16 count, bits32 *zPtr )
static INLINE void shift32RightJamming( bits32 a, int16 count, bits32 *zPtr )
{
bits32 z;

Expand All @@ -64,7 +64,7 @@ INLINE void shift32RightJamming( bits32 a, int16 count, bits32 *zPtr )
| which are stored at the locations pointed to by `z0Ptr' and `z1Ptr'.
*----------------------------------------------------------------------------*/

INLINE void
static INLINE void
shift64Right(
bits32 a0, bits32 a1, int16 count, bits32 *z0Ptr, bits32 *z1Ptr )
{
Expand Down Expand Up @@ -99,7 +99,7 @@ INLINE void
| the locations pointed to by `z0Ptr' and `z1Ptr'.
*----------------------------------------------------------------------------*/

INLINE void
static INLINE void
shift64RightJamming(
bits32 a0, bits32 a1, int16 count, bits32 *z0Ptr, bits32 *z1Ptr )
{
Expand Down Expand Up @@ -150,7 +150,7 @@ INLINE void
| `z2Ptr'.)
*----------------------------------------------------------------------------*/

INLINE void
static INLINE void
shift64ExtraRightJamming(
bits32 a0,
bits32 a1,
Expand Down Expand Up @@ -208,7 +208,7 @@ INLINE void
| pieces which are stored at the locations pointed to by `z0Ptr' and `z1Ptr'.
*----------------------------------------------------------------------------*/

INLINE void
static INLINE void
shortShift64Left(
bits32 a0, bits32 a1, int16 count, bits32 *z0Ptr, bits32 *z1Ptr )
{
Expand All @@ -227,7 +227,7 @@ INLINE void
| `z1Ptr', and `z2Ptr'.
*----------------------------------------------------------------------------*/

INLINE void
static INLINE void
shortShift96Left(
bits32 a0,
bits32 a1,
Expand Down Expand Up @@ -262,7 +262,7 @@ INLINE void
| are stored at the locations pointed to by `z0Ptr' and `z1Ptr'.
*----------------------------------------------------------------------------*/

INLINE void
static INLINE void
add64(
bits32 a0, bits32 a1, bits32 b0, bits32 b1, bits32 *z0Ptr, bits32 *z1Ptr )
{
Expand All @@ -282,7 +282,7 @@ INLINE void
| `z1Ptr', and `z2Ptr'.
*----------------------------------------------------------------------------*/

INLINE void
static INLINE void
add96(
bits32 a0,
bits32 a1,
Expand Down Expand Up @@ -320,7 +320,7 @@ INLINE void
| `z1Ptr'.
*----------------------------------------------------------------------------*/

INLINE void
static INLINE void
sub64(
bits32 a0, bits32 a1, bits32 b0, bits32 b1, bits32 *z0Ptr, bits32 *z1Ptr )
{
Expand All @@ -338,7 +338,7 @@ INLINE void
| `z0Ptr', `z1Ptr', and `z2Ptr'.
*----------------------------------------------------------------------------*/

INLINE void
static INLINE void
sub96(
bits32 a0,
bits32 a1,
Expand Down Expand Up @@ -374,7 +374,7 @@ INLINE void
| `z0Ptr' and `z1Ptr'.
*----------------------------------------------------------------------------*/

INLINE void mul32To64( bits32 a, bits32 b, bits32 *z0Ptr, bits32 *z1Ptr )
static INLINE void mul32To64( bits32 a, bits32 b, bits32 *z0Ptr, bits32 *z1Ptr )
{
bits16 aHigh, aLow, bHigh, bLow;
bits32 z0, zMiddleA, zMiddleB, z1;
Expand Down Expand Up @@ -404,7 +404,7 @@ INLINE void mul32To64( bits32 a, bits32 b, bits32 *z0Ptr, bits32 *z1Ptr )
| `z2Ptr'.
*----------------------------------------------------------------------------*/

INLINE void
static INLINE void
mul64By32To96(
bits32 a0,
bits32 a1,
Expand Down Expand Up @@ -432,7 +432,7 @@ INLINE void
| the locations pointed to by `z0Ptr', `z1Ptr', `z2Ptr', and `z3Ptr'.
*----------------------------------------------------------------------------*/

INLINE void
static INLINE void
mul64To128(
bits32 a0,
bits32 a1,
Expand Down Expand Up @@ -579,7 +579,7 @@ static int8 countLeadingZeros32( bits32 a )
| returns 0.
*----------------------------------------------------------------------------*/

INLINE flag eq64( bits32 a0, bits32 a1, bits32 b0, bits32 b1 )
static INLINE flag eq64( bits32 a0, bits32 a1, bits32 b0, bits32 b1 )
{

return ( a0 == b0 ) && ( a1 == b1 );
Expand All @@ -592,7 +592,7 @@ INLINE flag eq64( bits32 a0, bits32 a1, bits32 b0, bits32 b1 )
| Otherwise, returns 0.
*----------------------------------------------------------------------------*/

INLINE flag le64( bits32 a0, bits32 a1, bits32 b0, bits32 b1 )
static INLINE flag le64( bits32 a0, bits32 a1, bits32 b0, bits32 b1 )
{

return ( a0 < b0 ) || ( ( a0 == b0 ) && ( a1 <= b1 ) );
Expand All @@ -605,7 +605,7 @@ INLINE flag le64( bits32 a0, bits32 a1, bits32 b0, bits32 b1 )
| returns 0.
*----------------------------------------------------------------------------*/

INLINE flag lt64( bits32 a0, bits32 a1, bits32 b0, bits32 b1 )
static INLINE flag lt64( bits32 a0, bits32 a1, bits32 b0, bits32 b1 )
{

return ( a0 < b0 ) || ( ( a0 == b0 ) && ( a1 < b1 ) );
Expand All @@ -618,7 +618,7 @@ INLINE flag lt64( bits32 a0, bits32 a1, bits32 b0, bits32 b1 )
| returns 0.
*----------------------------------------------------------------------------*/

INLINE flag ne64( bits32 a0, bits32 a1, bits32 b0, bits32 b1 )
static INLINE flag ne64( bits32 a0, bits32 a1, bits32 b0, bits32 b1 )
{

return ( a0 != b0 ) || ( a1 != b1 );
Expand Down
3 changes: 0 additions & 3 deletions mednafen/mednafen-types.h
Expand Up @@ -18,7 +18,6 @@ typedef uint64_t uint64;
#define MDFN_UNLIKELY(n) __builtin_expect((n) != 0, 0)
#define MDFN_LIKELY(n) __builtin_expect((n) != 0, 1)

#define INLINE inline __attribute__((always_inline))
#define NO_INLINE __attribute__((noinline))

#if defined(__386__) || defined(__i386__) || defined(__i386) || defined(_M_IX86) || defined(_M_I386)
Expand All @@ -34,7 +33,6 @@ typedef uint64_t uint64;

#elif defined(_MSC_VER)
#define roundf(in) (in >= 0.0f ? floorf(in + 0.5f) : ceilf(in - 0.5f))
#define INLINE inline
#define NO_INLINE
#define MDFN_LIKELY(n) ((n) != 0)
#define MDFN_UNLIKELY(n) ((n) != 0)
Expand All @@ -50,7 +48,6 @@ typedef uint64_t uint64;

#else
#error "Not compiling with GCC nor MSVC"
#define INLINE inline
#define NO_INLINE

#define MDFN_FASTCALL
Expand Down

0 comments on commit 4d61bfc

Please sign in to comment.