diff --git a/audio/sinc.c b/audio/sinc.c index dec3808f36..8d52df9091 100644 --- a/audio/sinc.c +++ b/audio/sinc.c @@ -238,6 +238,7 @@ static void aligned_free__(void *ptr) free(p[-1]); } +#if !(defined(__AVX__) && ENABLE_AVX) && !defined(__SSE__) static inline void process_sinc_C(rarch_sinc_resampler_t *resamp, float *out_buffer) { unsigned i; @@ -270,6 +271,7 @@ static inline void process_sinc_C(rarch_sinc_resampler_t *resamp, float *out_buf out_buffer[0] = sum_l; out_buffer[1] = sum_r; } +#endif #if defined(__AVX__) && ENABLE_AVX #define process_sinc_func process_sinc diff --git a/gfx/gl.c b/gfx/gl.c index fe858f3ccb..e10d6cf052 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -1773,6 +1773,7 @@ static inline void gl_set_texture_fmts(void *data, bool rgb32) #endif } +#ifdef RARCH_CONSOLE static inline void gl_reinit_textures(void *data, const video_info_t *video) { gl_t *gl = (gl_t*)data; @@ -1818,6 +1819,7 @@ static inline void gl_reinit_textures(void *data, const video_info_t *video) if (!gl_check_error()) RARCH_ERR("GL error reported while reinitializing textures. This should not happen ...\n"); } +#endif #if !defined(HAVE_OPENGLES) && defined(HAVE_FFMPEG) static void gl_init_pbo_readback(void *data) diff --git a/gfx/scaler/scaler_int.c b/gfx/scaler/scaler_int.c index fdb2cb79a9..7ab54e2010 100644 --- a/gfx/scaler/scaler_int.c +++ b/gfx/scaler/scaler_int.c @@ -26,11 +26,6 @@ #endif #endif -static inline uint64_t build_argb64(uint16_t a, uint16_t r, uint16_t g, uint16_t b) -{ - return ((uint64_t)a << 48) | ((uint64_t)r << 32) | ((uint64_t)g << 16) | ((uint64_t)b << 0); -} - // ARGB8888 scaler is split in two: // // First, horizontal scaler is applied. @@ -196,6 +191,11 @@ void scaler_argb8888_horiz(const struct scaler_ctx *ctx, const void *input_, int } } #else +static inline uint64_t build_argb64(uint16_t a, uint16_t r, uint16_t g, uint16_t b) +{ + return ((uint64_t)a << 48) | ((uint64_t)r << 32) | ((uint64_t)g << 16) | ((uint64_t)b << 0); +} + void scaler_argb8888_horiz(const struct scaler_ctx *ctx, const void *input_, int stride) { int h, w, x; diff --git a/hash.c b/hash.c index 5900b66fe8..c96cd9601b 100644 --- a/hash.c +++ b/hash.c @@ -28,21 +28,11 @@ (((uint32_t)(x) & 0xff000000) >> 24) \ )) -static inline void store32le(uint32_t *addr, uint32_t data) -{ - *addr = is_little_endian() ? data : SWAP32(data); -} - static inline void store32be(uint32_t *addr, uint32_t data) { *addr = is_little_endian() ? SWAP32(data) : data; } -static inline uint32_t load32le(const uint32_t *addr) -{ - return is_little_endian() ? *addr : SWAP32(*addr); -} - static inline uint32_t load32be(const uint32_t *addr) { return is_little_endian() ? SWAP32(*addr) : *addr;