Updated lazyusf

CQTexperiment
Chris Moeller 2014-04-02 17:02:44 -07:00
parent ac71543e87
commit 299704cc24
6 changed files with 14 additions and 11 deletions

View File

@ -34,7 +34,7 @@
#ifdef _MSC_VER
#define INLINE __forceinline
#else
#define INLINE __attribute__((always_inline))
#define INLINE inline __attribute__((always_inline))
#endif
#include "usf_internal.h"
@ -1047,11 +1047,11 @@ void r4300i_COP1_BCTL (usf_state_t * state) {
}
}
/************************** COP1: S functions ************************/
INLINE void Float_RoundToInteger32( int32_t * Dest, float * Source ) {
static INLINE void Float_RoundToInteger32( int32_t * Dest, float * Source ) {
*Dest = (int32_t)*Source;
}
INLINE void Float_RoundToInteger64( int64_t * Dest, float * Source ) {
static INLINE void Float_RoundToInteger64( int64_t * Dest, float * Source ) {
*Dest = (int64_t)*Source;
}
@ -1183,11 +1183,11 @@ void r4300i_COP1_S_CMP (usf_state_t * state) {
}
/************************** COP1: D functions ************************/
INLINE void Double_RoundToInteger32( int32_t * Dest, double * Source ) {
static INLINE void Double_RoundToInteger32( int32_t * Dest, double * Source ) {
*Dest = (int32_t)*Source;
}
INLINE void Double_RoundToInteger64( int64_t * Dest, double * Source ) {
static INLINE void Double_RoundToInteger64( int64_t * Dest, double * Source ) {
*Dest = (int64_t)*Source;
}

View File

@ -19,7 +19,7 @@
#define NOINLINE __declspec(noinline)
#define ALIGNED _declspec(align(16))
#else
#define INLINE __attribute__((always_inline))
#define INLINE inline __attribute__((always_inline))
#define NOINLINE __attribute__((noinline))
#define ALIGNED __attribute__((aligned(16)))
#endif
@ -34,6 +34,9 @@
#ifdef ARCH_MIN_SSE2
#include <emmintrin.h>
#endif
#ifdef ARCH_MIN_ARM_NEON
#include <arm_neon.h>
#endif
typedef unsigned char byte;

View File

@ -413,8 +413,8 @@ void alist_envmix_lin(
*(int16_t *)(save_buffer + 0) = wet; /* 0-1 */
*(int16_t *)(save_buffer + 2) = dry; /* 2-3 */
*(int16_t *)(save_buffer + 4) = (int16_t)ramps[0].target >> 16; /* 4-5 */
*(int16_t *)(save_buffer + 6) = (int16_t)ramps[1].target >> 16; /* 6-7 */
*(int16_t *)(save_buffer + 4) = (int16_t)(ramps[0].target >> 16); /* 4-5 */
*(int16_t *)(save_buffer + 6) = (int16_t)(ramps[1].target >> 16); /* 6-7 */
*(int32_t *)(save_buffer + 8) = (int32_t)ramps[0].step; /* 8-9 (save_buffer is a 16bit pointer) */
*(int32_t *)(save_buffer + 10) = (int32_t)ramps[1].step; /* 10-11 */
*(int32_t *)(save_buffer + 16) = (int32_t)ramps[0].value; /* 16-17 */

View File

@ -27,7 +27,7 @@
#ifdef _MSC_VER
#define INLINE __forceinline
#else
#define INLINE __attribute__((always_inline))
#define INLINE inline __attribute__((always_inline))
#endif
INLINE static int16_t clamp_s16(int_fast32_t x)

View File

@ -32,7 +32,7 @@ int32_t rdot(size_t n, const int16_t *x, const int16_t *y);
#ifdef _MSC_VER
#define INLINE __forceinline
#else
#define INLINE __attribute__((always_inline))
#define INLINE inline __attribute__((always_inline))
#endif
INLINE static int16_t adpcm_predict_sample(uint8_t byte, uint8_t mask,

View File

@ -60,7 +60,7 @@ enum {
#ifdef _MSC_VER
#define INLINE __forceinline
#else
#define INLINE __attribute__((always_inline))
#define INLINE inline __attribute__((always_inline))
#endif
INLINE static unsigned int align(unsigned int x, unsigned amount)