aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fmdsp/fmdsp.h4
-rw-r--r--gtk/Makefile.am1
-rw-r--r--libopna/opnassg.h4
3 files changed, 4 insertions, 5 deletions
diff --git a/fmdsp/fmdsp.h b/fmdsp/fmdsp.h
index a8c3edc..1aba5d9 100644
--- a/fmdsp/fmdsp.h
+++ b/fmdsp/fmdsp.h
@@ -58,10 +58,10 @@ extern fmdsp_vramlookup_type fmdsp_vramlookup_func;
void fmdsp_vramlookup_c(uint8_t *vram32,
const uint8_t *vram,
const uint8_t *palette,
- int stride);
+ int stride) __attribute__((hot,optimize(3)));
void fmdsp_vramlookup_neon(uint8_t *, const uint8_t *, const uint8_t *, int);
-void fmdsp_vramlookup_ssse3(uint8_t *, const uint8_t *, const uint8_t *, int);
+void fmdsp_vramlookup_ssse3(uint8_t *, const uint8_t *, const uint8_t *, int) __attribute__((hot,optimize(3)));
#ifdef __cplusplus
}
#endif
diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index 5d75f84..0247644 100644
--- a/gtk/Makefile.am
+++ b/gtk/Makefile.am
@@ -37,7 +37,6 @@ fmplayer_LDADD+=libsse.a
libsse_a_SOURCES=../libopna/opnassg-sinc-sse2.c \
../fmdsp/fmdsp-vramlookup-ssse3.c
libsse_a_CPPFLAGS=$(fmplayer_CPPFLAGS)
-#no way to add -O3?? (always overridden by CFLAGS)
libsse_a_CFLAGS=-mssse3
endif
diff --git a/libopna/opnassg.h b/libopna/opnassg.h
index aadf53e..8af8429 100644
--- a/libopna/opnassg.h
+++ b/libopna/opnassg.h
@@ -65,9 +65,9 @@ typedef void (*opna_ssg_sinc_calc_func_type)(unsigned resampler_index,
const int16_t *inbuf, int32_t *outbuf);
extern opna_ssg_sinc_calc_func_type opna_ssg_sinc_calc_func;
void opna_ssg_sinc_calc_c(unsigned resampler_index,
- const int16_t *inbuf, int32_t *outbuf);
+ const int16_t *inbuf, int32_t *outbuf) __attribute__((hot, optimize(3)));
void opna_ssg_sinc_calc_neon(unsigned, const int16_t *, int32_t *);
-void opna_ssg_sinc_calc_sse2(unsigned, const int16_t *, int32_t *);
+void opna_ssg_sinc_calc_sse2(unsigned, const int16_t *, int32_t *) __attribute__((hot, optimize(3)));
extern const int16_t opna_ssg_sinctable[OPNA_SSG_SINCTABLELEN*2];