Skip to content

Commit

Permalink
Define ALWAYS_INLINE to __forceinline for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
evpobr committed Jun 6, 2021
1 parent 5300a9e commit 62b7fb3
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ALAC/ag_dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@

#if __GNUC__
#define ALWAYS_INLINE __attribute__ ((always_inline))
#elif defined _MSC_VER
#define ALWAYS_INLINE __forceinline
#else
#define ALWAYS_INLINE
#endif
Expand Down
2 changes: 2 additions & 0 deletions src/ALAC/ag_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@

#if __GNUC__
#define ALWAYS_INLINE __attribute__ ((always_inline))
#elif defined _MSC_VER
#define ALWAYS_INLINE __forceinline
#else
#define ALWAYS_INLINE
#endif
Expand Down
2 changes: 2 additions & 0 deletions src/ALAC/dp_dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@

#if __GNUC__
#define ALWAYS_INLINE __attribute__ ((always_inline))
#elif defined _MSC_VER
#define ALWAYS_INLINE __forceinline
#else
#define ALWAYS_INLINE
#endif
Expand Down
2 changes: 2 additions & 0 deletions src/ALAC/dp_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@

#if __GNUC__
#define ALWAYS_INLINE __attribute__ ((always_inline))
#elif defined _MSC_VER
#define ALWAYS_INLINE __forceinline
#else
#define ALWAYS_INLINE
#endif
Expand Down
2 changes: 2 additions & 0 deletions src/ALAC/shift.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

#if __GNUC__
#define ALWAYS_INLINE __attribute__ ((always_inline))
#elif defined _MSC_VER
#define ALWAYS_INLINE __forceinline
#else
#define ALWAYS_INLINE
#endif
Expand Down
2 changes: 2 additions & 0 deletions src/G72x/g72x_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ void private_init_state (G72x_STATE *state_ptr) ;

#if __GNUC__
#define ALWAYS_INLINE __attribute__ ((always_inline))
#elif defined _MSC_VER
#define ALWAYS_INLINE __forceinline
#else
#define ALWAYS_INLINE
#endif
Expand Down
2 changes: 2 additions & 0 deletions src/GSM610/gsm610_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ extern int16_t gsm_FAC [8] ;

#if __GNUC__
#define ALWAYS_INLINE __attribute__ ((always_inline))
#elif defined _MSC_VER
#define ALWAYS_INLINE __forceinline
#else
#define ALWAYS_INLINE
#endif
Expand Down

0 comments on commit 62b7fb3

Please sign in to comment.